@pixelated-tech/components 3.14.4 → 3.15.0
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/dist/components/admin/site-health/site-health-core-web-vitals.integration.js +21 -8
- package/dist/components/admin/site-health/site-health-github.integration.js +6 -6
- package/dist/components/admin/site-health/site-health-on-site-seo.integration.js +36 -16
- package/dist/components/admin/site-health/site-health-template.js +10 -6
- package/dist/components/config/config.types.js +12 -0
- package/dist/components/general/markdown.js +35 -0
- package/dist/components/general/nerdjoke.js +2 -4
- package/dist/components/general/proxy-handler.js +2 -2
- package/dist/components/general/sitemap.js +2 -4
- package/dist/components/general/smartfetch.js +211 -0
- package/dist/components/general/tiles.js +1 -1
- package/dist/components/general/urlbuilder.js +74 -0
- package/dist/components/integrations/contentful.delivery.js +24 -20
- package/dist/components/integrations/contentful.management.js +188 -151
- package/dist/components/integrations/flickr.js +15 -22
- package/dist/components/integrations/gemini-api.client.js +22 -21
- package/dist/components/integrations/gemini-api.server.js +50 -46
- package/dist/components/integrations/google.reviews.functions.js +19 -5
- package/dist/components/integrations/googleplaces.js +33 -9
- package/dist/components/integrations/gravatar.functions.js +15 -7
- package/dist/components/integrations/hubspot.components.js +8 -10
- package/dist/components/integrations/instagram.functions.js +9 -4
- package/dist/components/integrations/lipsum.js +6 -10
- package/dist/components/integrations/loremipsum.js +21 -21
- package/dist/components/integrations/socialcard.js +14 -8
- package/dist/components/integrations/spotify.functions.js +7 -4
- package/dist/components/integrations/wordpress.functions.js +17 -19
- package/dist/components/integrations/yelp.js +6 -7
- package/dist/components/shoppingcart/ebay.functions.js +69 -53
- package/dist/components/shoppingcart/shoppingcart.components.js +1 -1
- package/dist/components/sitebuilder/config/google-fonts.js +13 -6
- package/dist/components/sitebuilder/form/formbuilder.js +1 -1
- package/dist/components/sitebuilder/form/formengine.js +37 -10
- package/dist/components/sitebuilder/form/formsubmit.js +205 -0
- package/dist/components/sitebuilder/page/components/SaveLoadSection.js +24 -12
- package/dist/config/pixelated.config.json.enc +1 -1
- package/dist/data/form.json +7 -0
- package/dist/index.js +4 -2
- package/dist/index.server.js +3 -1
- package/dist/scripts/pixelated-eslint-plugin.js +51 -0
- package/dist/types/components/admin/site-health/site-health-core-web-vitals.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-github.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-on-site-seo.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-template.d.ts.map +1 -1
- package/dist/types/components/config/config.types.d.ts +11 -0
- package/dist/types/components/config/config.types.d.ts.map +1 -1
- package/dist/types/components/general/markdown.d.ts +12 -0
- package/dist/types/components/general/markdown.d.ts.map +1 -1
- package/dist/types/components/general/nerdjoke.d.ts.map +1 -1
- package/dist/types/components/general/proxy-handler.d.ts.map +1 -1
- package/dist/types/components/general/sitemap.d.ts.map +1 -1
- package/dist/types/components/general/smartfetch.d.ts +85 -0
- package/dist/types/components/general/smartfetch.d.ts.map +1 -0
- package/dist/types/components/general/tiles.d.ts.map +1 -1
- package/dist/types/components/general/urlbuilder.d.ts +64 -0
- package/dist/types/components/general/urlbuilder.d.ts.map +1 -0
- package/dist/types/components/integrations/contentful.delivery.d.ts.map +1 -1
- package/dist/types/components/integrations/contentful.management.d.ts.map +1 -1
- package/dist/types/components/integrations/flickr.d.ts.map +1 -1
- package/dist/types/components/integrations/gemini-api.client.d.ts.map +1 -1
- package/dist/types/components/integrations/gemini-api.server.d.ts +1 -1
- package/dist/types/components/integrations/gemini-api.server.d.ts.map +1 -1
- package/dist/types/components/integrations/google.reviews.functions.d.ts.map +1 -1
- package/dist/types/components/integrations/googleplaces.d.ts.map +1 -1
- package/dist/types/components/integrations/gravatar.functions.d.ts.map +1 -1
- package/dist/types/components/integrations/hubspot.components.d.ts.map +1 -1
- package/dist/types/components/integrations/instagram.functions.d.ts.map +1 -1
- package/dist/types/components/integrations/lipsum.d.ts.map +1 -1
- package/dist/types/components/integrations/loremipsum.d.ts.map +1 -1
- package/dist/types/components/integrations/socialcard.d.ts.map +1 -1
- package/dist/types/components/integrations/spotify.functions.d.ts.map +1 -1
- package/dist/types/components/integrations/wordpress.functions.d.ts.map +1 -1
- package/dist/types/components/integrations/yelp.d.ts.map +1 -1
- package/dist/types/components/shoppingcart/ebay.functions.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/config/google-fonts.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/form/formengine.d.ts +4 -4
- package/dist/types/components/sitebuilder/form/formengine.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/form/{formutils.d.ts → formengineutilities.d.ts} +1 -1
- package/dist/types/components/sitebuilder/form/formengineutilities.d.ts.map +1 -0
- package/dist/types/components/sitebuilder/form/formsubmit.d.ts +70 -0
- package/dist/types/components/sitebuilder/form/formsubmit.d.ts.map +1 -0
- package/dist/types/components/sitebuilder/page/components/SaveLoadSection.d.ts.map +1 -1
- package/dist/types/index.d.ts +4 -2
- package/dist/types/index.server.d.ts +3 -1
- package/dist/types/scripts/pixelated-eslint-plugin.d.ts +21 -0
- package/dist/types/stories/admin/contentful-migration.stories.d.ts +43 -0
- package/dist/types/stories/admin/contentful-migration.stories.d.ts.map +1 -1
- package/dist/types/stories/general/text-generation.stories.d.ts +116 -0
- package/dist/types/stories/general/text-generation.stories.d.ts.map +1 -0
- package/dist/types/stories/integrations/google.reviews.stories.d.ts +52 -0
- package/dist/types/stories/integrations/google.reviews.stories.d.ts.map +1 -1
- package/dist/types/stories/integrations/gravatar.stories.d.ts.map +1 -1
- package/dist/types/stories/integrations/instagram.stories.d.ts +38 -0
- package/dist/types/stories/integrations/instagram.stories.d.ts.map +1 -1
- package/dist/types/stories/sitebuilder/form-engine.stories.d.ts +13 -7
- package/dist/types/stories/sitebuilder/form-engine.stories.d.ts.map +1 -1
- package/dist/types/stories/sitebuilder/form.honeypot.stories.d.ts +0 -19
- package/dist/types/stories/sitebuilder/form.honeypot.stories.d.ts.map +1 -1
- package/dist/types/test/test-utils.d.ts +2 -0
- package/dist/types/test/test-utils.d.ts.map +1 -1
- package/dist/types/tests/formengineutilities.test.d.ts +2 -0
- package/dist/types/tests/formengineutilities.test.d.ts.map +1 -0
- package/dist/types/tests/google-apis.test.d.ts +2 -0
- package/dist/types/tests/google-apis.test.d.ts.map +1 -0
- package/dist/types/tests/google-fonts.test.d.ts +2 -0
- package/dist/types/tests/google-fonts.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-core-web-vitals.test.d.ts +2 -0
- package/dist/types/tests/site-health-core-web-vitals.test.d.ts.map +1 -0
- package/dist/types/tests/smartfetch.test.d.ts +2 -0
- package/dist/types/tests/smartfetch.test.d.ts.map +1 -0
- package/dist/types/tests/social-media-apis.test.d.ts +7 -0
- package/dist/types/tests/social-media-apis.test.d.ts.map +1 -0
- package/dist/types/tests/specialized-apis.test.d.ts +7 -0
- package/dist/types/tests/specialized-apis.test.d.ts.map +1 -0
- package/dist/types/tests/urlbuilder.test.d.ts +2 -0
- package/dist/types/tests/urlbuilder.test.d.ts.map +1 -0
- package/dist/types/tests/useFormSubmit.test.d.ts +2 -0
- package/dist/types/tests/useFormSubmit.test.d.ts.map +1 -0
- package/package.json +6 -6
- package/dist/components/sitebuilder/form/formemailer.js +0 -119
- package/dist/types/components/sitebuilder/form/formemailer.d.ts +0 -3
- package/dist/types/components/sitebuilder/form/formemailer.d.ts.map +0 -1
- package/dist/types/components/sitebuilder/form/formutils.d.ts.map +0 -1
- package/dist/types/stories/integrations/lipsum.stories.d.ts +0 -38
- package/dist/types/stories/integrations/lipsum.stories.d.ts.map +0 -1
- package/dist/types/stories/integrations/loremipsum.stories.d.ts +0 -46
- package/dist/types/stories/integrations/loremipsum.stories.d.ts.map +0 -1
- package/dist/types/tests/formemailer.honeypot.test.d.ts +0 -2
- package/dist/types/tests/formemailer.honeypot.test.d.ts.map +0 -1
- /package/dist/components/sitebuilder/form/{formutils.js → formengineutilities.js} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.reviews.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/google.reviews.functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"google.reviews.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/google.reviews.functions.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,YAAY,GAAG;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,MAAM,MAAM,kBAAkB,GAAG;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,MAAM,CAAC;IACjB,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,wBAAsB,yBAAyB,CAAC,MAAM,EAAE;IACvD,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CACf,GAAG,OAAO,CAAC;IAAE,KAAK,CAAC,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,YAAY,EAAE,CAAA;CAAE,CAAC,CAqCnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"googleplaces.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/googleplaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"googleplaces.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/googleplaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH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B,CAExE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gravatar.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/gravatar.functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"gravatar.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/gravatar.functions.ts"],"names":[],"mappings":"AAOA,MAAM,MAAM,eAAe,GAAG;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,eAAe,GAAG;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC;IAC7B,MAAM,CAAC,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnD,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC9B,KAAK,EAAE,eAAe,EAAE,CAAC;CACzB,CAAC;AAWF;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CACnC,KAAK,EAAE,MAAM,EACb,IAAI,SAAM,EACV,YAAY,GAAE,KAAK,GAAG,IAAI,GAAG,WAAW,GAAG,WAAW,GAAG,SAAS,GAAG,OAAO,GAAG,OAAc,GAC3F,MAAM,CAOR;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,GAAG,IAAI,CAAC,CAiBvF;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAErG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hubspot.components.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/hubspot.components.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"hubspot.components.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/hubspot.components.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAOnD,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,QAUvE;AAuBD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;AACvE,wBAAgB,WAAW,CAAC,EAC3B,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,WAAsC,EACxE,EAAE,eAAe,2CA+BjB;yBAjCe,WAAW;;QAZ3B,0BAA0B;;QAEzB,gCAAgC;;QAEhC,wBAAwB;;QAExB,kDAAkD;;QAElD,mDAAmD;;;;AAmDpD,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,uBAAuB,2CAQjE;yBARe,mBAAmB;;QAJnC,sDAAsD;;;;AAiCtD,MAAM,MAAM,6BAA6B,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,SAAS,CAAC,CAAC;AACnG,wBAAsB,yBAAyB,CAAC,KAAK,EAAE,6BAA6B,gBAgBnF;yBAhBqB,yBAAyB;;QAR/C,kDAAkD;;QAEjD,wBAAwB;;QAExB,4CAA4C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instagram.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/instagram.functions.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"instagram.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/instagram.functions.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,EAAE,OAAO,GAAG,OAAO,GAAG,gBAAgB,CAAC;IACjD,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;CAClB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACpC,IAAI,EAAE,cAAc,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE;QACR,OAAO,CAAC,EAAE;YACT,MAAM,EAAE,MAAM,CAAC;YACf,KAAK,EAAE,MAAM,CAAC;SACd,CAAC;QACF,IAAI,CAAC,EAAE,MAAM,CAAC;KACd,CAAC;CACF,CAAC;AAEF;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,EAAE;IAC/C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAmB5B;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACpC,KAAK,EAAE,cAAc,EAAE,EACvB,OAAO,CAAC,EAAE;IACT,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,GACC,gBAAgB,EAAE,CAyBpB;AAED;;;;;;;GAOG;AACH,wBAAsB,iBAAiB,CAAC,MAAM,CAAC,EAAE;IAChD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,eAAe,CAAC,EAAE,OAAO,CAAC;CAC1B,GAAG,OAAO,CAAC,gBAAgB,EAAE,CAAC,CAK9B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lipsum.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/lipsum.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"lipsum.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/lipsum.tsx"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAoBnD,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,CAAC;AAChE,wBAAsB,SAAS,CAAC,KAAK,EAAE,UAAU,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAsBpE;yBAtBqB,SAAS;;QAR/B,wCAAwC;;QAEvC,iCAAiC;;QAEjC,gDAAgD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"loremipsum.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/loremipsum.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"loremipsum.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/loremipsum.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAyBnD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,GAAG;IAAE,SAAS,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AAC9F,wBAAgB,UAAU,CAAC,EAAE,UAAc,EAAE,IAAS,EAAE,SAAS,EAAE,SAAc,EAAE,EAAE,cAAc,2CAuGlG;yBAvGe,UAAU;;QAV1B,iCAAiC;;QAEhC,8CAA8C;;QAE9C,wCAAwC;;QAExC,6BAA6B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socialcard.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/socialcard.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"socialcard.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/socialcard.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAMnD,OAAO,kBAAkB,CAAC;AAuC1B,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;AACvE,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,qDA4NjD;yBA5Ne,WAAW;;QAJ3B,sHAAsH;;;;AAiPtH,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;AACrE,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,2CAoB/C;yBApBe,UAAU;;QAR1B,4BAA4B;;QAE3B,4BAA4B;;QAE5B,2DAA2D;;;;AAgC5D,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACrF,wBAAgB,kBAAkB,4CAMjC;yBANe,kBAAkB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"spotify.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/spotify.functions.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"spotify.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/spotify.functions.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAInD,MAAM,MAAM,wBAAwB,GAAG;IACtC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACd,CAAC;AAkDF,MAAM,MAAM,oBAAoB,GAAG,UAAU,CAAC,OAAO,gBAAgB,CAAC,SAAS,CAAC,CAAC;AACjF,wBAAsB,gBAAgB,CAAC,KAAK,EAAE,oBAAoB,iDAYjE;yBAZqB,gBAAgB;;QAJrC,kCAAkC;;;;AAqBnC,MAAM,MAAM,yBAAyB,GAAG;IACvC,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE;QACV,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KACf,CAAC;IACF,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;CACpB,CAAC;AA8CF,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACrF,wBAAsB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,oDAarE;yBAbqB,kBAAkB;;QAJvC,kCAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordpress.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/wordpress.functions.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"wordpress.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/wordpress.functions.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AASnD,MAAM,MAAM,YAAY,GAAG;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,E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,EAAE,MAAM,CAAC;IACZ,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB,CAAC;AAUF,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,SAAS,CAAC,CAAC;AAC7F,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,YAAY,GAAG,qBAAqB,EAAE,CAuClF;yBAvCe,sBAAsB;;QAJtC,4BAA4B;;;;AAkD5B,MAAM,MAAM,oBAAoB,GAAG;IAClC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,CAAC;CACjB,CAAC;AAaF,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,SAAS,CAAC,CAAC;AAC7F,wBAAsB,sBAAsB,CAAC,KAAK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,8BAcrF;yBAdqB,sBAAsB;;QAN5C,iDAAiD;;QAEhD,4CAA4C;;;;AAoB7C;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAkB7D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"yelp.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/yelp.tsx"],"names":[],"mappings":"AAIA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"yelp.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/yelp.tsx"],"names":[],"mappings":"AAIA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA8BnD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;AACvE,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,2CAqDjD;yBArDe,WAAW;;QAN3B,+BAA+B;;QAE9B,4BAA4B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ebay.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/shoppingcart/ebay.functions.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;
|
|
1
|
+
{"version":3,"file":"ebay.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/shoppingcart/ebay.functions.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAgE7D,MAAM,MAAM,WAAW,GAAG;IACtB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,YAAY,CAAC,EAAE,MAAM,CAAC;CACzB,CAAA;AAkBD,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,uBAAuB,gBA4BjE;yBA5Be,mBAAmB;;QARnC,2BAA2B;;QAE1B,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AAU,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACzF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wBAAwB;;;;;;;;;;;;;;;;;;;;;SAuDnE;yBAvDe,oBAAoB;;QARnC,uBAAuB;;QAEvB,0BAA0B;;QAE1B,kCAAkC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google-fonts.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/config/google-fonts.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"google-fonts.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/config/google-fonts.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAMH,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,UAAU,EAAE,CAAC;CACrB;AA+BD;;;GAGG;AACH,wBAAsB,gBAAgB,IAAI,OAAO,CAAC,UAAU,EAAE,CAAC,CA+B9D;AAED;;GAEG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAC,CAAC,CAAC,CAqBvG;AAED;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAmB9D;AAED;;GAEG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,MAAM,CAO/D"}
|
|
@@ -5,15 +5,15 @@ export type FormEngineType = InferProps<typeof FormEngine.propTypes>;
|
|
|
5
5
|
export declare function FormEngine(props: FormEngineType): import("react/jsx-runtime").JSX.Element;
|
|
6
6
|
export declare namespace FormEngine {
|
|
7
7
|
var propTypes: {
|
|
8
|
-
/** Form name attribute */
|
|
8
|
+
/** Form name attribute. Falls back to formData.properties.name */
|
|
9
9
|
name: PropTypes.Requireable<string>;
|
|
10
|
-
/** Form id attribute */
|
|
10
|
+
/** Form id attribute. Falls back to formData.properties.id */
|
|
11
11
|
id: PropTypes.Requireable<string>;
|
|
12
12
|
/** HTTP method (e.g., 'post') */
|
|
13
13
|
method: PropTypes.Requireable<string>;
|
|
14
|
-
/** Submit handler called when the form is valid and submitted */
|
|
14
|
+
/** Submit handler called when the form is valid and submitted. Falls back to FormSubmitWrapper context if available */
|
|
15
15
|
onSubmitHandler: PropTypes.Requireable<(...args: any[]) => any>;
|
|
16
|
-
/** JSON schema describing form fields */
|
|
16
|
+
/** JSON schema describing form fields and submission properties */
|
|
17
17
|
formData: PropTypes.Validator<object>;
|
|
18
18
|
};
|
|
19
19
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formengine.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/form/formengine.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"formengine.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/form/formengine.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAUnD,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,WAAW,CAIxD,CAAC;AAiCF,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;AACrE,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,2CAiB/C;yBAjBe,UAAU;;QAZ1B,kEAAkE;;QAEjE,8DAA8D;;QAE9D,iCAAiC;;QAEjC,uHAAuH;;QAEvH,mEAAmE"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formengineutilities.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/form/formengineutilities.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAczD;AAiKD;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,GAAG,CAwBvC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,CAgBpD"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import type { FormEvent } from 'react';
|
|
3
|
+
import PropTypes, { InferProps } from 'prop-types';
|
|
4
|
+
export type EmailFormDataResult = {
|
|
5
|
+
success: boolean;
|
|
6
|
+
response?: any;
|
|
7
|
+
error?: Error;
|
|
8
|
+
};
|
|
9
|
+
export declare function emailFormData(e: Event, callback?: (e: Event) => void): Promise<EmailFormDataResult>;
|
|
10
|
+
export declare function emailJSON(jsonData: any, callback?: () => void): Promise<void>;
|
|
11
|
+
export type UseFormSubmitOptions = {
|
|
12
|
+
toggleLoading?: boolean;
|
|
13
|
+
openModal?: boolean;
|
|
14
|
+
resetForm?: boolean;
|
|
15
|
+
modalContent?: React.ReactNode;
|
|
16
|
+
onStart?: () => void;
|
|
17
|
+
onSuccess?: (event: Event, response?: any) => void;
|
|
18
|
+
onError?: (event: Event, error: Error) => void;
|
|
19
|
+
onFinally?: (event: Event) => void;
|
|
20
|
+
};
|
|
21
|
+
export declare function useFormSubmit(options?: UseFormSubmitOptions): {
|
|
22
|
+
isSubmitting: boolean;
|
|
23
|
+
submitError: Error | null;
|
|
24
|
+
submitResponse: any;
|
|
25
|
+
handleSubmit: (event: FormEvent<HTMLFormElement>) => Promise<void>;
|
|
26
|
+
modalContent: NonNullable<React.ReactNode>;
|
|
27
|
+
};
|
|
28
|
+
type FormSubmitContextType = {
|
|
29
|
+
handleSubmit: (event: React.FormEvent<HTMLFormElement>) => Promise<void>;
|
|
30
|
+
isSubmitting: boolean;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* FormSubmitWrapper — Encapsulates form submission lifecycle (loading, modal, submit handling)
|
|
34
|
+
*
|
|
35
|
+
* Internally calls useFormSubmit() and manages Loading/Modal display.
|
|
36
|
+
* FormEngine components within should call useFormSubmitContext() to access handleSubmit.
|
|
37
|
+
*/
|
|
38
|
+
export type FormSubmitWrapperProps = UseFormSubmitOptions & {
|
|
39
|
+
children: React.ReactNode;
|
|
40
|
+
};
|
|
41
|
+
export type FormSubmitWrapperType = InferProps<typeof FormSubmitWrapper.propTypes>;
|
|
42
|
+
export declare function FormSubmitWrapper(props: FormSubmitWrapperType): import("react/jsx-runtime").JSX.Element;
|
|
43
|
+
export declare namespace FormSubmitWrapper {
|
|
44
|
+
var propTypes: {
|
|
45
|
+
/** Enable/disable loading spinner during submission (default: true) */
|
|
46
|
+
toggleLoading: PropTypes.Requireable<boolean>;
|
|
47
|
+
/** Enable/disable thank you modal after submission (default: true) */
|
|
48
|
+
openModal: PropTypes.Requireable<boolean>;
|
|
49
|
+
/** Enable/disable form reset after submission (default: true) */
|
|
50
|
+
resetForm: PropTypes.Requireable<boolean>;
|
|
51
|
+
/** Custom content to display in thank you modal */
|
|
52
|
+
modalContent: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
53
|
+
/** Callback invoked at start of submission */
|
|
54
|
+
onStart: PropTypes.Requireable<(...args: any[]) => any>;
|
|
55
|
+
/** Callback invoked on successful submission */
|
|
56
|
+
onSuccess: PropTypes.Requireable<(...args: any[]) => any>;
|
|
57
|
+
/** Callback invoked on submission error */
|
|
58
|
+
onError: PropTypes.Requireable<(...args: any[]) => any>;
|
|
59
|
+
/** Callback invoked at end of submission lifecycle */
|
|
60
|
+
onFinally: PropTypes.Requireable<(...args: any[]) => any>;
|
|
61
|
+
/** Form components to render within the wrapper */
|
|
62
|
+
children: PropTypes.Validator<NonNullable<PropTypes.ReactNodeLike>>;
|
|
63
|
+
};
|
|
64
|
+
}
|
|
65
|
+
/**
|
|
66
|
+
* Hook to access form submission context within FormSubmitWrapper
|
|
67
|
+
*/
|
|
68
|
+
export declare function useFormSubmitContext(): FormSubmitContextType;
|
|
69
|
+
export {};
|
|
70
|
+
//# sourceMappingURL=formsubmit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"formsubmit.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/form/formsubmit.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAgC,MAAM,OAAO,CAAC;AACrD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAEvC,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAenD,MAAM,MAAM,mBAAmB,GAAG;IACjC,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,CAAC,EAAE,GAAG,CAAC;IACf,KAAK,CAAC,EAAE,KAAK,CAAC;CACd,CAAC;AAEF,wBAAsB,aAAa,CAAC,CAAC,EAAE,KAAK,EAAE,QAAQ,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,KAAK,IAAI,GAAG,OAAO,CAAC,mBAAmB,CAAC,CA2DzG;AAID,wBAAsB,SAAS,CAAC,QAAQ,EAAE,GAAG,EAAE,QAAQ,CAAC,EAAE,MAAM,IAAI,iBAgCnE;AAWD,MAAM,MAAM,oBAAoB,GAAG;IAElC,aAAa,CAAC,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,0BAMnC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SaveLoadSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sitebuilder/page/components/SaveLoadSection.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"SaveLoadSection.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sitebuilder/page/components/SaveLoadSection.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAoBnD,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,CAAC;AAC/E,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAgC,EAAE,EAAE,mBAAmB,2CAiP1G;yBAjPe,eAAe;;QAR/B,uCAAuC;;QAEtC,mDAAmD;;QAEnD,mDAAmD"}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -34,7 +34,9 @@ export * from "./components/general/sidepanel";
|
|
|
34
34
|
export * from "./components/general/sitemap";
|
|
35
35
|
export * from "./components/general/skeleton";
|
|
36
36
|
export * from "./components/general/skeleton-loading";
|
|
37
|
+
export * from "./components/general/smartfetch";
|
|
37
38
|
export * from "./components/general/smartimage";
|
|
39
|
+
export * from "./components/general/urlbuilder";
|
|
38
40
|
export * from "./components/general/splitscroll";
|
|
39
41
|
export * from "./components/general/styleguide";
|
|
40
42
|
export * from "./components/general/global-error";
|
|
@@ -82,12 +84,12 @@ export * from "./components/sitebuilder/config/fonts";
|
|
|
82
84
|
export * from "./components/sitebuilder/config/google-fonts";
|
|
83
85
|
export * from "./components/sitebuilder/form/formbuilder";
|
|
84
86
|
export * from "./components/sitebuilder/form/formcomponents";
|
|
85
|
-
export * from "./components/sitebuilder/form/
|
|
87
|
+
export * from "./components/sitebuilder/form/formsubmit";
|
|
86
88
|
export * from "./components/sitebuilder/form/formengine";
|
|
87
89
|
export * from "./components/sitebuilder/form/formextractor";
|
|
88
90
|
export * from "./components/sitebuilder/form/formfieldvalidations";
|
|
89
91
|
export * from "./components/sitebuilder/form/formtypes";
|
|
90
|
-
export * from "./components/sitebuilder/form/
|
|
92
|
+
export * from "./components/sitebuilder/form/formengineutilities";
|
|
91
93
|
export * from "./components/sitebuilder/form/formvalidator";
|
|
92
94
|
export * from "./components/sitebuilder/page/components/ComponentPropertiesForm";
|
|
93
95
|
export * from "./components/sitebuilder/page/components/ComponentSelector";
|
|
@@ -11,6 +11,8 @@ export * from "./components/general/resume";
|
|
|
11
11
|
export * from "./components/general/schema.functions";
|
|
12
12
|
export * from "./components/general/sitemap";
|
|
13
13
|
export * from "./components/general/skeleton";
|
|
14
|
+
export * from "./components/general/smartfetch";
|
|
15
|
+
export * from "./components/general/urlbuilder";
|
|
14
16
|
export * from "./components/general/well-known";
|
|
15
17
|
export * from "./components/general/utilities";
|
|
16
18
|
export * from "./components/integrations/contentful.delivery";
|
|
@@ -30,7 +32,7 @@ export * from "./components/sitebuilder/config/ConfigEngine";
|
|
|
30
32
|
export * from "./components/sitebuilder/config/fonts";
|
|
31
33
|
export * from "./components/sitebuilder/config/google-fonts";
|
|
32
34
|
export * from "./components/sitebuilder/form/formtypes";
|
|
33
|
-
export * from "./components/sitebuilder/form/
|
|
35
|
+
export * from "./components/sitebuilder/form/formengineutilities";
|
|
34
36
|
export * from "./components/sitebuilder/page/lib/componentGeneration";
|
|
35
37
|
export * from "./components/sitebuilder/page/lib/componentMap";
|
|
36
38
|
export * from "./components/sitebuilder/page/lib/componentMetadata";
|
|
@@ -333,6 +333,26 @@ declare namespace _default {
|
|
|
333
333
|
ObjectExpression(node: any): void;
|
|
334
334
|
};
|
|
335
335
|
};
|
|
336
|
+
'no-direct-fetch': {
|
|
337
|
+
meta: {
|
|
338
|
+
type: string;
|
|
339
|
+
docs: {
|
|
340
|
+
description: string;
|
|
341
|
+
category: string;
|
|
342
|
+
recommended: boolean;
|
|
343
|
+
};
|
|
344
|
+
fixable: boolean;
|
|
345
|
+
schema: never[];
|
|
346
|
+
messages: {
|
|
347
|
+
useSmartFetch: string;
|
|
348
|
+
};
|
|
349
|
+
};
|
|
350
|
+
create(context: any): {
|
|
351
|
+
CallExpression?: undefined;
|
|
352
|
+
} | {
|
|
353
|
+
CallExpression(node: any): void;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
336
356
|
};
|
|
337
357
|
namespace configs {
|
|
338
358
|
namespace recommended {
|
|
@@ -355,6 +375,7 @@ declare namespace _default {
|
|
|
355
375
|
'pixelated/no-duplicate-export-names': string;
|
|
356
376
|
'pixelated/class-name-kebab-case': string;
|
|
357
377
|
'pixelated/no-hardcoded-config-keys': string;
|
|
378
|
+
'pixelated/no-direct-fetch': string;
|
|
358
379
|
};
|
|
359
380
|
export { rules_1 as rules };
|
|
360
381
|
}
|
|
@@ -1,3 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* INTEGRATION REFERENCE: URL Building with buildUrl
|
|
3
|
+
*
|
|
4
|
+
* The Contentful Management API integrations use the buildUrl utility to construct
|
|
5
|
+
* consistent, properly-formatted URLs with path segments and query parameters.
|
|
6
|
+
*
|
|
7
|
+
* EXAMPLE: Building URLs for Contentful Management API
|
|
8
|
+
*
|
|
9
|
+
* // List all entries in a space
|
|
10
|
+
* const listUrl = buildUrl({
|
|
11
|
+
* baseUrl: 'https://api.contentful.com',
|
|
12
|
+
* pathSegments: ['spaces', spaceId, 'environments', environment, 'entries'],
|
|
13
|
+
* params: { access_token }
|
|
14
|
+
* });
|
|
15
|
+
*
|
|
16
|
+
* // Get specific entry by ID
|
|
17
|
+
* const entryUrl = buildUrl({
|
|
18
|
+
* baseUrl: 'https://api.contentful.com',
|
|
19
|
+
* pathSegments: ['spaces', spaceId, 'environments', environment, 'entries', entryId],
|
|
20
|
+
* params: { access_token }
|
|
21
|
+
* });
|
|
22
|
+
*
|
|
23
|
+
* // Publish an entry
|
|
24
|
+
* const publishUrl = buildUrl({
|
|
25
|
+
* baseUrl: 'https://api.contentful.com',
|
|
26
|
+
* pathSegments: ['spaces', spaceId, 'environments', environment, 'entries', entryId, 'published']
|
|
27
|
+
* });
|
|
28
|
+
*
|
|
29
|
+
* // Get content types
|
|
30
|
+
* const ctUrl = buildUrl({
|
|
31
|
+
* baseUrl: 'https://api.contentful.com',
|
|
32
|
+
* pathSegments: ['spaces', spaceId, 'environments', env, 'content_types'],
|
|
33
|
+
* params: { access_token }
|
|
34
|
+
* });
|
|
35
|
+
*
|
|
36
|
+
* BENEFITS:
|
|
37
|
+
* - Consistent URL construction across all Contentful integrations
|
|
38
|
+
* - Automatic path segment joining with proper separators
|
|
39
|
+
* - Automatic query parameter encoding
|
|
40
|
+
* - Support for both direct API calls and proxy-routed requests
|
|
41
|
+
*
|
|
42
|
+
* See contentful.management.ts for implementation details
|
|
43
|
+
*/
|
|
1
44
|
declare const _default: {
|
|
2
45
|
title: string;
|
|
3
46
|
component: typeof ContentfulMigrationDemo;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentful-migration.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/admin/contentful-migration.stories.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"contentful-migration.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/admin/contentful-migration.stories.tsx"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,wBAuBE;AAuCF,iBAAS,uBAAuB,CAAC,EAAE,WAAmB,EAAE,SAAiB,EAAE;;;CAAA,2CAqT1E;AAED,eAAO,MAAM,OAAO,+CAAoC,CAAC;AAEzD,eAAO,MAAM,WAAW,+CAEvB,CAAC;AAEF,eAAO,MAAM,SAAS,+CAErB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAGxB,CAAC;AAEF,eAAO,MAAM,YAAY,+CAGxB,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
import { type LoremIpsumType } from '@/components/integrations/loremipsum';
|
|
2
|
+
import { type LipsumType } from '@/components/integrations/lipsum';
|
|
3
|
+
/**
|
|
4
|
+
* Text Generation & Placeholder Content Stories
|
|
5
|
+
*
|
|
6
|
+
* Unified page for text transformation and placeholder generation utilities.
|
|
7
|
+
* Useful for development, testing, and demo content.
|
|
8
|
+
*/
|
|
9
|
+
declare const meta: {
|
|
10
|
+
readonly title: "General/Text Generation";
|
|
11
|
+
readonly tags: readonly ["placeholder", "utilities"];
|
|
12
|
+
};
|
|
13
|
+
export default meta;
|
|
14
|
+
type LeetSpeakStoryProps = {
|
|
15
|
+
inputText: string;
|
|
16
|
+
showComparison: boolean;
|
|
17
|
+
};
|
|
18
|
+
export declare const Leetspeak: {
|
|
19
|
+
render: (args: LeetSpeakStoryProps) => import("react/jsx-runtime").JSX.Element;
|
|
20
|
+
args: {
|
|
21
|
+
inputText: string;
|
|
22
|
+
showComparison: boolean;
|
|
23
|
+
};
|
|
24
|
+
argTypes: {
|
|
25
|
+
inputText: {
|
|
26
|
+
control: string;
|
|
27
|
+
description: string;
|
|
28
|
+
};
|
|
29
|
+
showComparison: {
|
|
30
|
+
control: string;
|
|
31
|
+
description: string;
|
|
32
|
+
};
|
|
33
|
+
};
|
|
34
|
+
parameters: {
|
|
35
|
+
docs: {
|
|
36
|
+
description: {
|
|
37
|
+
story: string;
|
|
38
|
+
};
|
|
39
|
+
};
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export declare const LoremIpsumStory: {
|
|
43
|
+
render: (args: LoremIpsumType) => import("react/jsx-runtime").JSX.Element;
|
|
44
|
+
args: {
|
|
45
|
+
paragraphs: number;
|
|
46
|
+
seed: undefined;
|
|
47
|
+
proxyBase: undefined;
|
|
48
|
+
className: string;
|
|
49
|
+
};
|
|
50
|
+
argTypes: {
|
|
51
|
+
paragraphs: {
|
|
52
|
+
control: {
|
|
53
|
+
type: string;
|
|
54
|
+
min: number;
|
|
55
|
+
max: number;
|
|
56
|
+
};
|
|
57
|
+
description: string;
|
|
58
|
+
};
|
|
59
|
+
seed: {
|
|
60
|
+
control: string;
|
|
61
|
+
description: string;
|
|
62
|
+
};
|
|
63
|
+
proxyBase: {
|
|
64
|
+
control: string;
|
|
65
|
+
description: string;
|
|
66
|
+
};
|
|
67
|
+
className: {
|
|
68
|
+
control: string;
|
|
69
|
+
description: string;
|
|
70
|
+
};
|
|
71
|
+
};
|
|
72
|
+
parameters: {
|
|
73
|
+
docs: {
|
|
74
|
+
description: {
|
|
75
|
+
story: string;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
export declare const LipsumFunction: {
|
|
81
|
+
render: (args: LipsumType) => import("react/jsx-runtime").JSX.Element;
|
|
82
|
+
args: {
|
|
83
|
+
LipsumTypeId: "Paragraph";
|
|
84
|
+
Amount: number;
|
|
85
|
+
StartWithLoremIpsum: boolean;
|
|
86
|
+
};
|
|
87
|
+
argTypes: {
|
|
88
|
+
LipsumTypeId: {
|
|
89
|
+
control: {
|
|
90
|
+
type: string;
|
|
91
|
+
};
|
|
92
|
+
options: string[];
|
|
93
|
+
description: string;
|
|
94
|
+
};
|
|
95
|
+
Amount: {
|
|
96
|
+
control: {
|
|
97
|
+
type: string;
|
|
98
|
+
min: number;
|
|
99
|
+
max: number;
|
|
100
|
+
};
|
|
101
|
+
description: string;
|
|
102
|
+
};
|
|
103
|
+
StartWithLoremIpsum: {
|
|
104
|
+
control: string;
|
|
105
|
+
description: string;
|
|
106
|
+
};
|
|
107
|
+
};
|
|
108
|
+
parameters: {
|
|
109
|
+
docs: {
|
|
110
|
+
description: {
|
|
111
|
+
story: string;
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
};
|
|
115
|
+
};
|
|
116
|
+
//# sourceMappingURL=text-generation.stories.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-generation.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/text-generation.stories.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAC9G,OAAO,EAAa,KAAK,UAAU,EAAE,MAAM,kCAAkC,CAAC;AAE9E;;;;;GAKG;AACH,QAAA,MAAM,IAAI;;;CAGA,CAAC;AAEX,eAAe,IAAI,CAAC;AAMpB,KAAK,mBAAmB,GAAG;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,cAAc,EAAE,OAAO,CAAC;CACxB,CAAC;AAwEF,eAAO,MAAM,SAAS;mBACN,mBAAmB;;;;;;;;;;;;;;;;;;;;;;CAsBlC,CAAC;AAkBF,eAAO,MAAM,eAAe;mBACZ,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgC7B,CAAC;AAmFF,eAAO,MAAM,cAAc;mBACX,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4BzB,CAAC"}
|
|
@@ -1,4 +1,56 @@
|
|
|
1
1
|
import { GoogleReviewsCard } from '@/components/integrations/google.reviews.components';
|
|
2
|
+
/**
|
|
3
|
+
* INTEGRATION REFERENCE: Google APIs URL Building with buildUrl
|
|
4
|
+
*
|
|
5
|
+
* The Google API integrations use the buildUrl utility to construct consistent,
|
|
6
|
+
* properly-formatted URLs for multiple Google service endpoints.
|
|
7
|
+
*
|
|
8
|
+
* EXAMPLE 1: Google Places Autocomplete API
|
|
9
|
+
*
|
|
10
|
+
* const url = buildUrl({
|
|
11
|
+
* baseUrl: 'https://maps.googleapis.com',
|
|
12
|
+
* pathSegments: ['maps', 'api', 'place', 'autocomplete', 'json'],
|
|
13
|
+
* params: {
|
|
14
|
+
* input: 'address query',
|
|
15
|
+
* key: apiKey,
|
|
16
|
+
* sessiontoken: sessionToken,
|
|
17
|
+
* components: 'country:us'
|
|
18
|
+
* }
|
|
19
|
+
* });
|
|
20
|
+
*
|
|
21
|
+
* EXAMPLE 2: Google Places Details API (for reviews)
|
|
22
|
+
*
|
|
23
|
+
* const url = buildUrl({
|
|
24
|
+
* baseUrl: 'https://maps.googleapis.com',
|
|
25
|
+
* pathSegments: ['maps', 'api', 'place', 'details', 'json'],
|
|
26
|
+
* params: {
|
|
27
|
+
* place_id: placeId,
|
|
28
|
+
* fields: 'reviews,name,place_id,formatted_address',
|
|
29
|
+
* key: apiKey,
|
|
30
|
+
* language: 'en'
|
|
31
|
+
* }
|
|
32
|
+
* });
|
|
33
|
+
*
|
|
34
|
+
* EXAMPLE 3: Google Places v1 API (for text search)
|
|
35
|
+
*
|
|
36
|
+
* const url = buildUrl({
|
|
37
|
+
* baseUrl: 'https://places.googleapis.com',
|
|
38
|
+
* pathSegments: ['v1', 'places:searchText'],
|
|
39
|
+
* params: {
|
|
40
|
+
* key: apiKey,
|
|
41
|
+
* pageToken: pageToken // optional
|
|
42
|
+
* }
|
|
43
|
+
* });
|
|
44
|
+
* // Then POST with body: { textQuery: search, pageSize: 20 }
|
|
45
|
+
*
|
|
46
|
+
* BENEFITS:
|
|
47
|
+
* - Consistent URL formatting across Google services (Maps, Places v1)
|
|
48
|
+
* - Automatic parameter encoding (special characters, arrays)
|
|
49
|
+
* - Centralized query parameter handling
|
|
50
|
+
* - Support for pagination tokens and optional parameters
|
|
51
|
+
*
|
|
52
|
+
* See google.reviews.functions.ts and googleplaces.ts for implementation
|
|
53
|
+
*/
|
|
2
54
|
declare const _default: {
|
|
3
55
|
title: string;
|
|
4
56
|
component: typeof GoogleReviewsCard;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.reviews.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/integrations/google.reviews.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"google.reviews.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/integrations/google.reviews.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;AAExF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmDG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,wBAeE;AAIF,eAAO,MAAM,oBAAoB,EAAE,GAAuB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gravatar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/integrations/gravatar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAyB,MAAM,+CAA+C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"gravatar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/integrations/gravatar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAyB,MAAM,+CAA+C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoFpG,wBAmCE;AAEF,eAAO,MAAM,mBAAmB;WAAU,GAAG;;;;;;;;CAAuC,CAAC;AASrF,eAAO,MAAM,mBAAmB;WAAU,GAAG;;;;;;;;;;;;;;;;;CAAuC,CAAC"}
|
|
@@ -1,4 +1,42 @@
|
|
|
1
1
|
import { InstagramTiles } from '@/components/integrations/instagram.components';
|
|
2
|
+
/**
|
|
3
|
+
* Instagram Graph API Integration with buildUrl
|
|
4
|
+
*
|
|
5
|
+
* The Instagram integration now uses buildUrl() for consistent URL construction:
|
|
6
|
+
*
|
|
7
|
+
* **Media Endpoint URL Construction:**
|
|
8
|
+
* ```typescript
|
|
9
|
+
* buildUrl({
|
|
10
|
+
* baseUrl: 'https://graph.instagram.com',
|
|
11
|
+
* pathSegments: [userId, 'media'],
|
|
12
|
+
* params: {
|
|
13
|
+
* fields: 'id,media_type,media_url,thumbnail_url,permalink,caption,timestamp,username',
|
|
14
|
+
* limit: 25,
|
|
15
|
+
* access_token: token
|
|
16
|
+
* }
|
|
17
|
+
* })
|
|
18
|
+
* // Result: https://graph.instagram.com/{userId}/media?fields=...&limit=25&access_token=...
|
|
19
|
+
* ```
|
|
20
|
+
*
|
|
21
|
+
* **Features:**
|
|
22
|
+
* - Automatic URL encoding of comma-separated field values
|
|
23
|
+
* - Support for userId='me' (current authenticated user)
|
|
24
|
+
* - Configurable limit (1-100, defaults to 25)
|
|
25
|
+
* - Custom field selection for flexible response structure
|
|
26
|
+
* - Type-safe parameter handling for access tokens
|
|
27
|
+
*
|
|
28
|
+
* **Benefits:**
|
|
29
|
+
* - Consistent URL construction with automatic encoding
|
|
30
|
+
* - Transparent integration with smartFetch() for automatic retries
|
|
31
|
+
* - Type-safe Instagram graph API endpoint formatting
|
|
32
|
+
* - Easier pagination and field customization
|
|
33
|
+
* - Enhanced error handling
|
|
34
|
+
*
|
|
35
|
+
* **Implementation Files:**
|
|
36
|
+
* - URL building logic: `src/components/general/urlbuilder.ts`
|
|
37
|
+
* - Media fetching: `src/components/integrations/instagram.functions.ts`
|
|
38
|
+
* - UI Component: `src/components/integrations/instagram.components.tsx`
|
|
39
|
+
*/
|
|
2
40
|
declare const _default: {
|
|
3
41
|
title: string;
|
|
4
42
|
component: typeof InstagramTiles;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instagram.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/integrations/instagram.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"instagram.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/integrations/instagram.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;AAEhF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,wBAmBE;AAIF,eAAO,MAAM,gBAAgB,EAAE,GAAuB,CAAC;AAGvD,eAAO,MAAM,qBAAqB,EAAE,GAAuB,CAAC"}
|