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