@griddo/cx 10.6.15 → 10.6.18
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.
- package/build/browser/index.js +1 -0
- package/build/browser/index.js.map +7 -0
- package/build/build-complete.js +25 -24
- package/build/build-complete.js.map +7 -0
- package/build/constants/endpoints.d.ts +12 -11
- package/build/constants/envs.d.ts +4 -1
- package/build/constants/index.d.ts +4 -0
- package/build/index.d.ts +5 -2
- package/build/index.js +46 -43
- package/build/index.js.map +7 -0
- package/build/react/index.js +3 -3
- package/build/registers/api.d.ts +9 -0
- package/build/registers/gatsby.d.ts +9 -0
- package/build/registers/index.d.ts +3 -0
- package/build/reset-render.js +26 -25
- package/build/reset-render.js.map +7 -0
- package/build/run-start-render.js +46 -43
- package/build/run-start-render.js.map +7 -0
- package/build/services/register.d.ts +38 -0
- package/build/start-render.js +46 -43
- package/build/start-render.js.map +7 -0
- package/build/upload-search-content.js +29 -28
- package/build/upload-search-content.js.map +7 -0
- package/build/utils/alerts.d.ts +2 -0
- package/build/utils/core-utils.d.ts +11 -1
- package/build/utils/folders.d.ts +5 -0
- package/build/utils/sites.d.ts +1 -2
- package/build/utils/store.d.ts +9 -4
- package/exporter/adapters/gatsby/index.ts +48 -7
- package/exporter/constants/endpoints.ts +13 -11
- package/exporter/constants/envs.ts +6 -0
- package/exporter/constants/index.ts +8 -0
- package/exporter/index.ts +40 -16
- package/exporter/react/GriddoIntegrations/index.tsx +5 -15
- package/exporter/registers/api.ts +14 -0
- package/exporter/registers/gatsby.ts +14 -0
- package/exporter/registers/index.ts +4 -0
- package/exporter/services/auth.ts +1 -0
- package/exporter/services/register.ts +119 -0
- package/exporter/services/store.ts +69 -29
- package/exporter/utils/alerts.ts +27 -0
- package/exporter/utils/api.ts +18 -1
- package/exporter/utils/core-utils.ts +53 -0
- package/exporter/utils/folders.ts +13 -8
- package/exporter/utils/loggin.ts +3 -3
- package/exporter/utils/sites.ts +20 -5
- package/exporter/utils/store.ts +55 -45
- package/gatsby-node.ts +42 -4
- package/package.json +4 -3
package/build/browser/index.js
CHANGED
|
@@ -1 +1,2 @@
|
|
|
1
1
|
"use strict";var o=Object.defineProperty;var i=Object.getOwnPropertyDescriptor;var f=Object.getOwnPropertyNames;var l=Object.prototype.hasOwnProperty;var u=(e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})},y=(e,t,n,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of f(t))!l.call(e,r)&&r!==n&&o(e,r,{get:()=>t[r],enumerable:!(a=i(t,r))||a.enumerable});return e};var s=e=>y(o({},"__esModule",{value:!0}),e);var I={};u(I,{filterBodyIntegrationFromPosition:()=>d,filterHeadIntegrations:()=>c,filterPositionIntegrations:()=>g});module.exports=s(I);function d(e,t){return e?.filter(n=>n.contentBody!==null&&n.contentBody!==""&&n.contentBodyPosition===t).map(n=>n.contentBody)||[]}function c(e){return e?.filter(t=>t.contentHead!==null&&t.contentHead!=="").map(t=>t.contentHead)||[]}function g(e,t){switch(t){case"head":return c(e);default:return d(e,t)}}0&&(module.exports={filterBodyIntegrationFromPosition,filterHeadIntegrations,filterPositionIntegrations});
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 3,
|
|
3
|
+
"sources": ["../../exporter/browser/index.ts"],
|
|
4
|
+
"sourcesContent": ["import type { Core } from \"@griddo/core\";\n\nfunction filterBodyIntegrationFromPosition(\n\tintegrations: Array<Core.PageIntegration>,\n\tposition: \"start\" | \"end\",\n) {\n\treturn (\n\t\tintegrations\n\t\t\t?.filter(\n\t\t\t\t(integration) =>\n\t\t\t\t\tintegration.contentBody !== null &&\n\t\t\t\t\tintegration.contentBody !== \"\" &&\n\t\t\t\t\tintegration.contentBodyPosition === position,\n\t\t\t)\n\t\t\t.map((integration) => integration.contentBody!) || []\n\t);\n}\n\nfunction filterHeadIntegrations(integrations: Array<Core.PageIntegration>) {\n\treturn (\n\t\tintegrations\n\t\t\t?.filter(\n\t\t\t\t(integration) =>\n\t\t\t\t\tintegration.contentHead !== null && integration.contentHead !== \"\",\n\t\t\t)\n\t\t\t.map((integration) => integration.contentHead!) || []\n\t);\n}\n\nfunction filterPositionIntegrations(\n\tintegrations: Array<Core.PageIntegration>,\n\tposition: \"head\" | \"start\" | \"end\",\n) {\n\tswitch (position) {\n\t\tcase \"head\":\n\t\t\treturn filterHeadIntegrations(integrations);\n\t\tdefault:\n\t\t\treturn filterBodyIntegrationFromPosition(integrations, position);\n\t}\n}\n\nexport {\n\tfilterBodyIntegrationFromPosition,\n\tfilterHeadIntegrations,\n\tfilterPositionIntegrations,\n};\n"],
|
|
5
|
+
"mappings": "yaAAA,IAAAA,EAAA,GAAAC,EAAAD,EAAA,uCAAAE,EAAA,2BAAAC,EAAA,+BAAAC,IAAA,eAAAC,EAAAL,GAEA,SAASE,EACRI,EACAC,EACC,CACD,OACCD,GACG,OACAE,GACAA,EAAY,cAAgB,MAC5BA,EAAY,cAAgB,IAC5BA,EAAY,sBAAwBD,CACtC,EACC,IAAKC,GAAgBA,EAAY,WAAY,GAAK,CAAC,CAEvD,CAEA,SAASL,EAAuBG,EAA2C,CAC1E,OACCA,GACG,OACAE,GACAA,EAAY,cAAgB,MAAQA,EAAY,cAAgB,EAClE,EACC,IAAKA,GAAgBA,EAAY,WAAY,GAAK,CAAC,CAEvD,CAEA,SAASJ,EACRE,EACAC,EACC,CACD,OAAQA,EAAU,CACjB,IAAK,OACJ,OAAOJ,EAAuBG,CAAY,EAC3C,QACC,OAAOJ,EAAkCI,EAAcC,CAAQ,CACjE,CACD",
|
|
6
|
+
"names": ["browser_exports", "__export", "filterBodyIntegrationFromPosition", "filterHeadIntegrations", "filterPositionIntegrations", "__toCommonJS", "integrations", "position", "integration"]
|
|
7
|
+
}
|