hmm
This commit is contained in:
parent
ac88082d4e
commit
7275fbd73c
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/pashto-inflector",
|
"name": "@lingdocs/pashto-inflector",
|
||||||
"version": "3.0.8",
|
"version": "3.0.9",
|
||||||
"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",
|
||||||
|
|
|
@ -268,7 +268,7 @@ function compileEnglishVP(VP: T.VPRendered): string[] | undefined {
|
||||||
: undefined;
|
: undefined;
|
||||||
const engAPs = getEngAPs(VP.blocks);
|
const engAPs = getEngAPs(VP.blocks);
|
||||||
// require all English parts for making the English phrase
|
// require all English parts for making the English phrase
|
||||||
const b = (VP.englishBase && engSubj && engObj !== undefined)
|
return (VP.englishBase && engSubj && engObj !== undefined)
|
||||||
? VP.englishBase.map(e => insertEWords(e, {
|
? VP.englishBase.map(e => insertEWords(e, {
|
||||||
// TODO: make sure we actually have the english
|
// TODO: make sure we actually have the english
|
||||||
subject: getEnglishFromRendered(engSubj) || "",
|
subject: getEnglishFromRendered(engSubj) || "",
|
||||||
|
@ -276,7 +276,6 @@ function compileEnglishVP(VP: T.VPRendered): string[] | undefined {
|
||||||
APs: engAPs,
|
APs: engAPs,
|
||||||
})).map(capitalizeFirstLetter)
|
})).map(capitalizeFirstLetter)
|
||||||
: undefined;
|
: undefined;
|
||||||
return b;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function compileEnglishEP(EP: T.EPRendered): string[] | undefined {
|
function compileEnglishEP(EP: T.EPRendered): string[] | undefined {
|
||||||
|
|
|
@ -28,6 +28,8 @@ import Hider from "./components/Hider";
|
||||||
import EntrySelect from "./components/EntrySelect";
|
import EntrySelect from "./components/EntrySelect";
|
||||||
import VerbInfo, { RootsAndStems } from "./components/verb-info/VerbInfo";
|
import VerbInfo, { RootsAndStems } from "./components/verb-info/VerbInfo";
|
||||||
import VPExplorer from "./components/vp-explorer/VPExplorer";
|
import VPExplorer from "./components/vp-explorer/VPExplorer";
|
||||||
|
import { vpsReducer } from "./components/vp-explorer/vps-reducer";
|
||||||
|
import type { VpsReducerAction as VpsA } from "./components/vp-explorer/vps-reducer";
|
||||||
import useStickyState from "./lib/useStickyState";
|
import useStickyState from "./lib/useStickyState";
|
||||||
import Block, { NPBlock, APBlock } from "./components/blocks/Block";
|
import Block, { NPBlock, APBlock } from "./components/blocks/Block";
|
||||||
import { roleIcon } from "./components/vp-explorer/VPExplorerExplanationModal";
|
import { roleIcon } from "./components/vp-explorer/VPExplorerExplanationModal";
|
||||||
|
@ -232,6 +234,7 @@ export {
|
||||||
renderAPSelection,
|
renderAPSelection,
|
||||||
getEnglishVerb,
|
getEnglishVerb,
|
||||||
roleIcon,
|
roleIcon,
|
||||||
|
vpsReducer,
|
||||||
// protobuf helpers
|
// protobuf helpers
|
||||||
readDictionary,
|
readDictionary,
|
||||||
writeDictionary,
|
writeDictionary,
|
||||||
|
@ -273,3 +276,5 @@ export {
|
||||||
// TYPES
|
// TYPES
|
||||||
Types,
|
Types,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export type VpsReducerAction = VpsA;
|
Loading…
Reference in New Issue