axyseo 2.0.0-alpha.0.0.49 → 2.0.0-alpha.0.0.51

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,5 @@
1
1
  import React, { useMemo, useState } from 'react';
2
2
  import { Badge, BlockStack, Button, InlineStack, Text } from '@shopify/polaris';
3
- import "./RelatedKeywordsDescription.scss";
4
3
  const RelatedKeywordDescription = ({
5
4
  words,
6
5
  i18n
@@ -1 +1 @@
1
- {"version":3,"file":"RelatedKeywordsDescription.js","names":["React","useMemo","useState","Badge","BlockStack","Button","InlineStack","Text","RelatedKeywordDescription","words","i18n","viewMore","setViewMore","arr","wordsArr","Object","keys","length","slice","createElement","className","Fragment","gap","map","key","as","percentage","size","variant","onClick","translate"],"sources":["../../src/components/RelatedKeywordsDescription.js"],"sourcesContent":["import React, {useMemo, useState} from 'react';\nimport {Badge, BlockStack, Button, InlineStack, Text} from '@shopify/polaris';\nimport './RelatedKeywordsDescription.scss';\n\nconst RelatedKeywordDescription = ({words, i18n}) => {\n const [viewMore, setViewMore] = useState(false);\n const arr = useMemo(() => {\n if (words) {\n const wordsArr = Object.keys(words);\n return wordsArr?.length > 2 && !viewMore ? wordsArr.slice(0, 2) : wordsArr;\n }\n return [];\n }, [words, viewMore]);\n\n return (\n <div className=\"Avada-Seo-Checklist__Description\">\n {words && (\n <>\n <BlockStack gap=\"200\">\n {arr.map(key => (\n <InlineStack key={key} gap=\"200\">\n <Badge>{key}:</Badge>\n <Text as=\"span\">{words[key].length} words</Text>\n <Text as=\"span\">|</Text>\n <Text as=\"span\">{words[key].percentage}% used</Text>\n </InlineStack>\n ))}\n </BlockStack>\n {Object.keys(words).length > 2 && (\n <div className=\"Avada-Seo-Checklist__Description-Backdrop\">\n <Button size=\"medium\" variant=\"plain\" onClick={() => setViewMore(!viewMore)}>\n {viewMore\n ? i18n.translate('Axyseo.Button.viewLess')\n : i18n.translate('Axyseo.Button.viewMore')}\n </Button>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,MAAM,EAAC,QAAY,CAAC,eAChDjB,KAAA,CAAAmB,aAAA,CAACZ,IAAI;IAACkB,EAAE,EAAC;EAAM,GAAC,GAAO,CAAC,eACxBzB,KAAA,CAAAmB,aAAA,CAACZ,IAAI;IAACkB,EAAE,EAAC;EAAM,GAAEhB,KAAK,CAACe,GAAG,CAAC,CAACE,UAAU,EAAC,QAAY,CACxC,CACd,CACS,CAAC,EACZX,MAAM,CAACC,IAAI,CAACP,KAAK,CAAC,CAACQ,MAAM,GAAG,CAAC,iBAC5BjB,KAAA,CAAAmB,aAAA;IAAKC,SAAS,EAAC;EAA2C,gBACxDpB,KAAA,CAAAmB,aAAA,CAACd,MAAM;IAACsB,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAC,OAAO;IAACC,OAAO,EAAEA,CAAA,KAAMjB,WAAW,CAAC,CAACD,QAAQ;EAAE,GACzEA,QAAQ,GACLD,IAAI,CAACoB,SAAS,CAAC,wBAAwB,CAAC,GACxCpB,IAAI,CAACoB,SAAS,CAAC,wBAAwB,CACrC,CACL,CAEP,CAED,CAAC;AAEV,CAAC;AAED,eAAetB,yBAAyB","ignoreList":[]}
1
+ {"version":3,"file":"RelatedKeywordsDescription.js","names":["React","useMemo","useState","Badge","BlockStack","Button","InlineStack","Text","RelatedKeywordDescription","words","i18n","viewMore","setViewMore","arr","wordsArr","Object","keys","length","slice","createElement","className","Fragment","gap","map","key","as","percentage","size","variant","onClick","translate"],"sources":["../../src/components/RelatedKeywordsDescription.js"],"sourcesContent":["import React, {useMemo, useState} from 'react';\nimport {Badge, BlockStack, Button, InlineStack, Text} from '@shopify/polaris';\n\nconst RelatedKeywordDescription = ({words, i18n}) => {\n const [viewMore, setViewMore] = useState(false);\n const arr = useMemo(() => {\n if (words) {\n const wordsArr = Object.keys(words);\n return wordsArr?.length > 2 && !viewMore ? wordsArr.slice(0, 2) : wordsArr;\n }\n return [];\n }, [words, viewMore]);\n\n return (\n <div className=\"Avada-Seo-Checklist__Description\">\n {words && (\n <>\n <BlockStack gap=\"200\">\n {arr.map(key => (\n <InlineStack key={key} gap=\"200\">\n <Badge>{key}:</Badge>\n <Text as=\"span\">{words[key].length} words</Text>\n <Text as=\"span\">|</Text>\n <Text as=\"span\">{words[key].percentage}% used</Text>\n </InlineStack>\n ))}\n </BlockStack>\n {Object.keys(words).length > 2 && (\n <div className=\"Avada-Seo-Checklist__Description-Backdrop\">\n <Button size=\"medium\" variant=\"plain\" onClick={() => setViewMore(!viewMore)}>\n {viewMore\n ? i18n.translate('Axyseo.Button.viewLess')\n : i18n.translate('Axyseo.Button.viewMore')}\n </Button>\n </div>\n )}\n </>\n )}\n </div>\n );\n};\n\nexport default RelatedKeywordDescription;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,OAAO,EAAEC,QAAQ,QAAO,OAAO;AAC9C,SAAQC,KAAK,EAAEC,UAAU,EAAEC,MAAM,EAAEC,WAAW,EAAEC,IAAI,QAAO,kBAAkB;AAE7E,MAAMC,yBAAyB,GAAGA,CAAC;EAACC,KAAK;EAAEC;AAAI,CAAC,KAAK;EACnD,MAAM,CAACC,QAAQ,EAAEC,WAAW,CAAC,GAAGV,QAAQ,CAAC,KAAK,CAAC;EAC/C,MAAMW,GAAG,GAAGZ,OAAO,CAAC,MAAM;IACxB,IAAIQ,KAAK,EAAE;MACT,MAAMK,QAAQ,GAAGC,MAAM,CAACC,IAAI,CAACP,KAAK,CAAC;MACnC,OAAOK,QAAQ,EAAEG,MAAM,GAAG,CAAC,IAAI,CAACN,QAAQ,GAAGG,QAAQ,CAACI,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,GAAGJ,QAAQ;IAC5E;IACA,OAAO,EAAE;EACX,CAAC,EAAE,CAACL,KAAK,EAAEE,QAAQ,CAAC,CAAC;EAErB,oBACEX,KAAA,CAAAmB,aAAA;IAAKC,SAAS,EAAC;EAAkC,GAC9CX,KAAK,iBACJT,KAAA,CAAAmB,aAAA,CAAAnB,KAAA,CAAAqB,QAAA,qBACErB,KAAA,CAAAmB,aAAA,CAACf,UAAU;IAACkB,GAAG,EAAC;EAAK,GAClBT,GAAG,CAACU,GAAG,CAACC,GAAG,iBACVxB,KAAA,CAAAmB,aAAA,CAACb,WAAW;IAACkB,GAAG,EAAEA,GAAI;IAACF,GAAG,EAAC;EAAK,gBAC9BtB,KAAA,CAAAmB,aAAA,CAAChB,KAAK,QAAEqB,GAAG,EAAC,GAAQ,CAAC,eACrBxB,KAAA,CAAAmB,aAAA,CAACZ,IAAI;IAACkB,EAAE,EAAC;EAAM,GAAEhB,KAAK,CAACe,GAAG,CAAC,CAACP,MAAM,EAAC,QAAY,CAAC,eAChDjB,KAAA,CAAAmB,aAAA,CAACZ,IAAI;IAACkB,EAAE,EAAC;EAAM,GAAC,GAAO,CAAC,eACxBzB,KAAA,CAAAmB,aAAA,CAACZ,IAAI;IAACkB,EAAE,EAAC;EAAM,GAAEhB,KAAK,CAACe,GAAG,CAAC,CAACE,UAAU,EAAC,QAAY,CACxC,CACd,CACS,CAAC,EACZX,MAAM,CAACC,IAAI,CAACP,KAAK,CAAC,CAACQ,MAAM,GAAG,CAAC,iBAC5BjB,KAAA,CAAAmB,aAAA;IAAKC,SAAS,EAAC;EAA2C,gBACxDpB,KAAA,CAAAmB,aAAA,CAACd,MAAM;IAACsB,IAAI,EAAC,QAAQ;IAACC,OAAO,EAAC,OAAO;IAACC,OAAO,EAAEA,CAAA,KAAMjB,WAAW,CAAC,CAACD,QAAQ;EAAE,GACzEA,QAAQ,GACLD,IAAI,CAACoB,SAAS,CAAC,wBAAwB,CAAC,GACxCpB,IAAI,CAACoB,SAAS,CAAC,wBAAwB,CACrC,CACL,CAEP,CAED,CAAC;AAEV,CAAC;AAED,eAAetB,yBAAyB","ignoreList":[]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "axyseo",
3
- "version": "2.0.0-alpha.0.0.49",
3
+ "version": "2.0.0-alpha.0.0.51",
4
4
  "main": "build/index.js",
5
5
  "scripts": {
6
6
  "prepublishOnly": "npm run build && npm version prerelease --preid=alpha",
@@ -48,5 +48,6 @@
48
48
  "nodemon": "^3.1.9",
49
49
  "prettier": "^1.18.2",
50
50
  "typescript": "^5.6.3"
51
- }
51
+ },
52
+ "packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
52
53
  }