From 2d8fd52aae1c316c23eab4934621aac0b792ddff Mon Sep 17 00:00:00 2001 From: adueck Date: Thu, 13 Jun 2024 15:00:47 -0400 Subject: [PATCH] fixed error on inflection table --- package-lock.json | 4 ++-- package.json | 2 +- src/App.tsx | 25 ++++++++++++------------- src/components/package-lock.json | 4 ++-- src/components/package.json | 2 +- src/components/src/InflectionsTable.tsx | 3 ++- src/lib/package.json | 2 +- 7 files changed, 21 insertions(+), 21 deletions(-) diff --git a/package-lock.json b/package-lock.json index cae1b81..b4567d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "pashto-inflector", - "version": "7.1.1", + "version": "7.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "pashto-inflector", - "version": "7.1.1", + "version": "7.1.2", "hasInstallScript": true, "license": "MIT", "dependencies": { diff --git a/package.json b/package.json index 276f85c..8df02aa 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "pashto-inflector", - "version": "7.1.1", + "version": "7.1.2", "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/App.tsx b/src/App.tsx index 824b733..d542690 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,11 +16,11 @@ import useStickyState from "./components/src/useStickyState"; import EPExplorer from "./components/src/ep-explorer/EPExplorer"; import VPBuilderDemo from "./demo-components/VPBuilderDemo"; import { entryFeeder } from "./demo-components/entryFeeder"; -import { Hider, inflectWord } from "./components/library"; +import Hider from "./components/src/Hider"; import InflectionDemo from "./demo-components/InflectionDemo"; import SpellingDemo from "./demo-components/SpellingDemo"; import ParserDemo from "./demo-components/ParserDemo"; -// import InflectionTable from "./components/src/InflectionsTable"; +import InflectionTable from "./components/src/InflectionsTable"; function App() { const [showingTextOptions, setShowingTextOptions] = useStickyState( @@ -40,17 +40,16 @@ function App() { document.documentElement.setAttribute("data-theme", theme); }, [theme]); - const infout = inflectWord({ - ts: 1527815306, - i: 9623, - p: "ستړی", - f: "stúRay", - g: "stuRay", - e: "tired", - r: 4, - c: "adj. / adv.", - a: 1, - }); + // const infout = inflectWord({ + // ts: 1527814202, + // i: 12761, + // p: "کرسي", + // f: "kUrsee", + // g: "kUrsee", + // e: "chair, seat, stool", + // r: 3, + // c: "n. f.", + // }); return ( <> diff --git a/src/components/package-lock.json b/src/components/package-lock.json index eec140e..ac1ed98 100644 --- a/src/components/package-lock.json +++ b/src/components/package-lock.json @@ -1,12 +1,12 @@ { "name": "@lingdocs/ps-react", - "version": "7.1.1", + "version": "7.1.2", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@lingdocs/ps-react", - "version": "7.1.1", + "version": "7.1.2", "license": "MIT", "dependencies": { "@formkit/auto-animate": "^1.0.0-beta.3", diff --git a/src/components/package.json b/src/components/package.json index 77fa7de..47356eb 100644 --- a/src/components/package.json +++ b/src/components/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/ps-react", - "version": "7.1.1", + "version": "7.1.2", "description": "Pashto inflector library module with React components", "main": "dist/components/library.js", "module": "dist/components/library.js", diff --git a/src/components/src/InflectionsTable.tsx b/src/components/src/InflectionsTable.tsx index 00c806d..ae0713d 100644 --- a/src/components/src/InflectionsTable.tsx +++ b/src/components/src/InflectionsTable.tsx @@ -53,6 +53,7 @@ const InflectionTable = ({ // const handleCloseExplanation = () => setShowingExplanation(false); // const handleShowExplanation = () => setShowingExplanation(true); const isPluralInfs = isPluralInflections(inf); + console.log({ inf }); return (
{!hideTitle && ( @@ -117,7 +118,7 @@ const InflectionTable = ({ center /> )} - {"fem" in inf && i < 2 && ( + {"fem" in inf && (!("masc" in inf) || i < 2) && ( )} diff --git a/src/lib/package.json b/src/lib/package.json index 61afc10..ec5856f 100644 --- a/src/lib/package.json +++ b/src/lib/package.json @@ -1,6 +1,6 @@ { "name": "@lingdocs/inflect", - "version": "7.1.1", + "version": "7.1.2", "description": "Pashto inflector library", "main": "dist/index.js", "types": "dist/lib/library.d.ts",