diff --git a/package-lock.json b/package-lock.json index 2fe3359..ac62f75 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "5.7.14", + "version": "5.7.15", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "5.7.14", + "version": "5.7.15", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 22f9073..568576c 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "5.7.14", + "version": "5.7.15", "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", diff --git a/src/components/package.json b/src/components/package.json index a9d2c79..a35dfe1 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "5.7.14", + "version": "5.7.15", "description": "Pashto inflector library module with React components", "main": "dist/components/library.js", "module": "dist/components/library.js", diff --git a/src/components/src/vp-explorer/VPExplorer.tsx b/src/components/src/vp-explorer/VPExplorer.tsx index 08312ad..f17aaad 100644 --- a/src/components/src/vp-explorer/VPExplorer.tsx +++ b/src/components/src/vp-explorer/VPExplorer.tsx @@ -33,6 +33,7 @@ function VPExplorer(props: { opts: T.TextOptions, handleLinkClick: ((ts: number) => void) | "none", entryFeeder: T.EntryFeeder, + onlyPhrases?: boolean, }) { const [vps, adjustVps] = useStickyReducer( vpsReducer, @@ -44,7 +45,7 @@ function VPExplorer(props: { ); const [mode, setMode] = useStickyState<"charts" | "phrases" | "quiz">( savedMode => { - if (!savedMode) return "charts"; + if (!savedMode) return props.onlyPhrases ? "phrases" : "charts"; if (savedMode === "quiz") return "phrases"; return savedMode; }, @@ -127,7 +128,7 @@ function VPExplorer(props: { opts={props.opts} handleLinkClick={props.handleLinkClick} /> -