removed document ref breaking SSR
This commit is contained in:
parent
715744e9b4
commit
fc8142b56e
|
@ -1,12 +1,12 @@
|
|||
{
|
||||
"name": "pashto-inflector",
|
||||
"version": "5.7.15",
|
||||
"version": "5.7.16",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "pashto-inflector",
|
||||
"version": "5.7.15",
|
||||
"version": "5.7.16",
|
||||
"hasInstallScript": true,
|
||||
"license": "MIT",
|
||||
"dependencies": {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "pashto-inflector",
|
||||
"version": "5.7.15",
|
||||
"version": "5.7.16",
|
||||
"author": "lingdocs.com",
|
||||
"description": "A Pashto inflection and verb conjugation engine, inculding React components for displaying Pashto text, inflections, and conjugations",
|
||||
"homepage": "https://verbs.lingdocs.com",
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# @lingdocs/inflect
|
||||
# @lingdocs/ps-react
|
||||
|
||||
The core inflection engine with grammatical information and tools for processing LingDocs dictionary entries and Pashto text.
|
||||
The core inflection engine with grammatical information and tools for processing LingDocs dictionary entries and Pashto text (@lingdocs/inflect) plus react components for displaying Pashto text, and phrase engine UI etc.
|
||||
|
||||
### Peer depencies required
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/ps-react",
|
||||
"version": "5.7.15",
|
||||
"version": "5.7.16",
|
||||
"description": "Pashto inflector library module with React components",
|
||||
"main": "dist/components/library.js",
|
||||
"module": "dist/components/library.js",
|
||||
|
|
|
@ -2,11 +2,7 @@ import * as T from "../../../types"
|
|||
import Select from "react-select";
|
||||
import ButtonSelect from "../ButtonSelect";
|
||||
import { epTenseOptions as options } from "./epTenseOptions";
|
||||
|
||||
const zIndexProps = {
|
||||
menuPortalTarget: document.body,
|
||||
styles: { menuPortal: (base: any) => ({ ...base, zIndex: 9999 }) },
|
||||
};
|
||||
import { customStyles } from "../EntrySelect";
|
||||
|
||||
function EquativePicker({ equative, onChange, hideNegative }: {
|
||||
equative: { tense: T.EquativeTense, negative: boolean },
|
||||
|
@ -53,10 +49,11 @@ function EquativePicker({ equative, onChange, hideNegative }: {
|
|||
isSearchable={false}
|
||||
// for some reason can't use tOptions with find here;
|
||||
value={options.find(o => o.value === equative.tense)}
|
||||
// @ts-ignore
|
||||
onChange={onTenseSelect}
|
||||
className="mb-2"
|
||||
options={options}
|
||||
{...zIndexProps}
|
||||
styles={customStyles}
|
||||
/>
|
||||
{<div className="d-flex flex-row justify-content-between align-items-center mt-3 mb-1" style={{ width: "100%" }}>
|
||||
<div className="btn btn-light clickable" onClick={moveTense("back")}>
|
||||
|
|
|
@ -72,6 +72,15 @@ function VPExplorer(props: {
|
|||
});
|
||||
// eslint-disable-next-line
|
||||
}, [props.verb]);
|
||||
useEffect(() => {
|
||||
if (props.loaded) {
|
||||
adjustVps({
|
||||
type: "load vps",
|
||||
payload: props.loaded,
|
||||
});
|
||||
}
|
||||
// eslint-disable-next-line
|
||||
}, [props.loaded]);
|
||||
useEffect(() => {
|
||||
const VPSFromUrl = getVPSFromUrl();
|
||||
if (VPSFromUrl) {
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
# @lingdocs/ps-react
|
||||
# @lingdocs/inflect
|
||||
|
||||
The core inflection engine with grammatical information and tools for processing LingDocs dictionary entries and Pashto text (@lingdocs/inflect) plus react components for displaying Pashto text, and phrase engine UI etc.
|
||||
The core inflection engine with grammatical information and tools for processing LingDocs dictionary entries and Pashto text.
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@lingdocs/inflect",
|
||||
"version": "5.7.15",
|
||||
"version": "5.7.16",
|
||||
"description": "Pashto inflector library",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/lib/library.d.ts",
|
||||
|
|
|
@ -30,8 +30,6 @@ import {
|
|||
splitUpSyllables,
|
||||
} from "./accent-helpers";
|
||||
import * as T from "../../types";
|
||||
import { splitFIntoPhonemes } from "./phonetics-to-diacritics";
|
||||
import { splitPsString } from "./splitPsString";
|
||||
|
||||
const endingInSingleARegex = /[^a]'?’?[aá]'?’?$/;
|
||||
const endingInHeyOrAynRegex = /[^ا][هع]$/;
|
||||
|
|
Loading…
Reference in New Issue