try removing auto-animate - its a module only thing hopefully breaking the functions deploy?
This commit is contained in:
parent
9feefe22b6
commit
1b52069114
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "@lingdocs/pashto-inflector",
|
"name": "@lingdocs/pashto-inflector",
|
||||||
"version": "4.1.1",
|
"version": "4.1.2",
|
||||||
"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",
|
||||||
|
@ -23,7 +23,6 @@
|
||||||
"registry": "https://npm.lingdocs.com"
|
"registry": "https://npm.lingdocs.com"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@formkit/auto-animate": "^1.0.0-beta.1",
|
|
||||||
"classnames": "^2.2.6",
|
"classnames": "^2.2.6",
|
||||||
"jsurl2": "^2.1.0",
|
"jsurl2": "^2.1.0",
|
||||||
"lz-string": "^1.4.4",
|
"lz-string": "^1.4.4",
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
import { useState } from "react";
|
import { useState } from "react";
|
||||||
// import autoAnimate from "@formkit/auto-animate";
|
|
||||||
import { filterForVisibleBlocksEP, filterForVisibleBlocksVP } from "../lib/phrase-building/compile";
|
import { filterForVisibleBlocksEP, filterForVisibleBlocksVP } from "../lib/phrase-building/compile";
|
||||||
import * as T from "../types";
|
import * as T from "../types";
|
||||||
import Block from "./blocks/Block";
|
import Block from "./blocks/Block";
|
||||||
|
|
|
@ -4,11 +4,15 @@ import EPDisplay from "./EPDisplay";
|
||||||
import ButtonSelect from "../ButtonSelect";
|
import ButtonSelect from "../ButtonSelect";
|
||||||
import EqChartsDisplay from "./EqChartsDisplay";
|
import EqChartsDisplay from "./EqChartsDisplay";
|
||||||
import epsReducer from "./eps-reducer";
|
import epsReducer from "./eps-reducer";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import {
|
||||||
|
useEffect,
|
||||||
|
// useRef,
|
||||||
|
useState,
|
||||||
|
} from "react";
|
||||||
import { completeEPSelection } from "../../lib/phrase-building/render-ep";
|
import { completeEPSelection } from "../../lib/phrase-building/render-ep";
|
||||||
import { makeEPSBlocks } from "../../lib/phrase-building/blocks-utils";
|
import { makeEPSBlocks } from "../../lib/phrase-building/blocks-utils";
|
||||||
import EquativePicker from "./EquativePicker";
|
import EquativePicker from "./EquativePicker";
|
||||||
import autoAnimate from "@formkit/auto-animate";
|
// import autoAnimate from "@formkit/auto-animate";
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import LZString from "lz-string";
|
import LZString from "lz-string";
|
||||||
import EPPicker from "./EPPicker";
|
import EPPicker from "./EPPicker";
|
||||||
|
@ -46,10 +50,10 @@ function EPExplorer(props: {
|
||||||
// // setAlertMsg,
|
// // setAlertMsg,
|
||||||
// ] = useState<string | undefined>(undefined);
|
// ] = useState<string | undefined>(undefined);
|
||||||
const [showClipped, setShowClipped] = useState<string>("");
|
const [showClipped, setShowClipped] = useState<string>("");
|
||||||
const parent = useRef<HTMLDivElement>(null);
|
// const parent = useRef<HTMLDivElement>(null);
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
parent.current && autoAnimate(parent.current);
|
// parent.current && autoAnimate(parent.current);
|
||||||
}, [parent]);
|
// }, [parent]);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
const EPSFromUrl = getEPSFromUrl();
|
const EPSFromUrl = getEPSFromUrl();
|
||||||
if (EPSFromUrl) {
|
if (EPSFromUrl) {
|
||||||
|
|
|
@ -4,10 +4,13 @@ import EquativePicker from "./EquativePicker";
|
||||||
import ButtonSelect from "../ButtonSelect";
|
import ButtonSelect from "../ButtonSelect";
|
||||||
import ComplementPicker from "../ComplementPicker";
|
import ComplementPicker from "../ComplementPicker";
|
||||||
import epsReducer, { EpsReducerAction } from "./eps-reducer";
|
import epsReducer, { EpsReducerAction } from "./eps-reducer";
|
||||||
import { useEffect, useRef } from "react";
|
import {
|
||||||
|
// useEffect,
|
||||||
|
useRef,
|
||||||
|
} from "react";
|
||||||
import { completeEPSelection } from "../../lib/phrase-building/render-ep";
|
import { completeEPSelection } from "../../lib/phrase-building/render-ep";
|
||||||
import APPicker from "../ap-picker/APPicker";
|
import APPicker from "../ap-picker/APPicker";
|
||||||
import autoAnimate from "@formkit/auto-animate";
|
// import autoAnimate from "@formkit/auto-animate";
|
||||||
|
|
||||||
function EPPicker({ opts, eps, onChange, entryFeeder }: {
|
function EPPicker({ opts, eps, onChange, entryFeeder }: {
|
||||||
opts: T.TextOptions,
|
opts: T.TextOptions,
|
||||||
|
@ -16,9 +19,9 @@ function EPPicker({ opts, eps, onChange, entryFeeder }: {
|
||||||
entryFeeder: T.EntryFeeder,
|
entryFeeder: T.EntryFeeder,
|
||||||
}) {
|
}) {
|
||||||
const parent = useRef<HTMLDivElement>(null);
|
const parent = useRef<HTMLDivElement>(null);
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
parent.current && autoAnimate(parent.current);
|
// parent.current && autoAnimate(parent.current);
|
||||||
}, [parent]);
|
// }, [parent]);
|
||||||
function adjustEps(action: EpsReducerAction) {
|
function adjustEps(action: EpsReducerAction) {
|
||||||
onChange(epsReducer(eps, action));
|
onChange(epsReducer(eps, action));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,12 +1,16 @@
|
||||||
import NPPicker, { shrunkenBackground } from "../np-picker/NPPicker";
|
import NPPicker, { shrunkenBackground } from "../np-picker/NPPicker";
|
||||||
import TensePicker from "./TensePicker";
|
import TensePicker from "./TensePicker";
|
||||||
import * as T from "../../types";
|
import * as T from "../../types";
|
||||||
import { useEffect, useRef, useState } from "react";
|
import {
|
||||||
|
// useEffect,
|
||||||
|
useRef,
|
||||||
|
useState,
|
||||||
|
} from "react";
|
||||||
import { getKingAndServant, renderVP } from "../../lib/phrase-building/render-vp";
|
import { getKingAndServant, renderVP } from "../../lib/phrase-building/render-vp";
|
||||||
import { completeVPSelection, isPastTense } from "../../lib/phrase-building/vp-tools";
|
import { completeVPSelection, isPastTense } from "../../lib/phrase-building/vp-tools";
|
||||||
import VPExplorerExplanationModal, { roleIcon } from "./VPExplorerExplanationModal";
|
import VPExplorerExplanationModal, { roleIcon } from "./VPExplorerExplanationModal";
|
||||||
import APPicker from "../ap-picker/APPicker";
|
import APPicker from "../ap-picker/APPicker";
|
||||||
import autoAnimate from "@formkit/auto-animate";
|
// import autoAnimate from "@formkit/auto-animate";
|
||||||
import {
|
import {
|
||||||
getObjectSelection,
|
getObjectSelection,
|
||||||
getSubjectSelection,
|
getSubjectSelection,
|
||||||
|
@ -23,9 +27,9 @@ function VPPicker({ opts, vps, onChange, entryFeeder }: {
|
||||||
entryFeeder: T.EntryFeeder,
|
entryFeeder: T.EntryFeeder,
|
||||||
}) {
|
}) {
|
||||||
const parent = useRef<HTMLDivElement>(null);
|
const parent = useRef<HTMLDivElement>(null);
|
||||||
useEffect(() => {
|
// useEffect(() => {
|
||||||
parent.current && autoAnimate(parent.current);
|
// parent.current && autoAnimate(parent.current);
|
||||||
}, [parent]);
|
// }, [parent]);
|
||||||
const [showingExplanation, setShowingExplanation] = useState<{ role: "servant" | "king", item: "subject" | "object" } | false>(false);
|
const [showingExplanation, setShowingExplanation] = useState<{ role: "servant" | "king", item: "subject" | "object" } | false>(false);
|
||||||
function adjustVps(action: VpsReducerAction) {
|
function adjustVps(action: VpsReducerAction) {
|
||||||
onChange(vpsReducer(vps, action));
|
onChange(vpsReducer(vps, action));
|
||||||
|
|
|
@ -1336,11 +1336,6 @@
|
||||||
minimatch "^3.0.4"
|
minimatch "^3.0.4"
|
||||||
strip-json-comments "^3.1.1"
|
strip-json-comments "^3.1.1"
|
||||||
|
|
||||||
"@formkit/auto-animate@^1.0.0-beta.1":
|
|
||||||
version "1.0.0-beta.1"
|
|
||||||
resolved "https://registry.yarnpkg.com/@formkit/auto-animate/-/auto-animate-1.0.0-beta.1.tgz#aec5fd2ea5e499ceb7eb117c7fd1217a7f100748"
|
|
||||||
integrity sha512-I3OWOBaPZKSJL4bsooXI8kC3q7bcgibD2oML0P/Lir6MnbvUe/0/7EH8br024juvM/Ulm9C9xGx9CJUQYrOWSA==
|
|
||||||
|
|
||||||
"@fortawesome/fontawesome-free@^5.15.2":
|
"@fortawesome/fontawesome-free@^5.15.2":
|
||||||
version "5.15.4"
|
version "5.15.4"
|
||||||
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz#ecda5712b61ac852c760d8b3c79c96adca5554e5"
|
resolved "https://registry.yarnpkg.com/@fortawesome/fontawesome-free/-/fontawesome-free-5.15.4.tgz#ecda5712b61ac852c760d8b3c79c96adca5554e5"
|
||||||
|
|
Loading…
Reference in New Issue