@pixelated-tech/components 3.13.16 → 3.14.1
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/google.api.integration.js +5 -4
- package/dist/components/admin/site-health/site-health-cloudwatch.integration.js +3 -2
- package/dist/components/admin/site-health/site-health-dependency-vulnerabilities.js +1 -3
- package/dist/components/config/crypto.js +17 -1
- package/dist/components/general/404.js +1 -1
- package/dist/components/general/cache-manager.js +19 -2
- package/dist/components/general/callout.js +1 -1
- package/dist/components/general/carousel.drag.js +21 -24
- package/dist/components/general/carousel.js +3 -3
- package/dist/components/general/countup.js +1 -1
- package/dist/components/general/intersection-observer.js +4 -0
- package/dist/components/general/metadata.functions.js +2 -2
- package/dist/components/general/proxy-handler.js +2 -2
- package/dist/components/general/semantic.js +3 -6
- package/dist/components/general/sitemap.js +2 -1
- package/dist/components/general/smartimage.js +2 -4
- package/dist/components/general/styleguide.js +1 -1
- package/dist/components/general/tiles.js +2 -2
- package/dist/components/general/timeline.js +1 -1
- package/dist/components/general/utilities.js +68 -0
- package/dist/components/integrations/contentful.delivery.js +16 -16
- package/dist/components/integrations/contentful.items.components.js +2 -11
- package/dist/components/integrations/flickr.js +7 -4
- package/dist/components/integrations/google.reviews.components.js +3 -0
- package/dist/components/integrations/googleplaces.js +144 -0
- package/dist/components/integrations/socialcard.js +5 -2
- package/dist/components/integrations/wordpress.components.js +2 -1
- package/dist/components/shoppingcart/ebay.components.js +5 -5
- package/dist/components/shoppingcart/ebay.functions.js +5 -3
- package/dist/components/shoppingcart/paypal.js +1 -1
- package/dist/components/shoppingcart/shipping.to.json +3 -4
- package/dist/components/shoppingcart/shoppingcart.components.js +7 -5
- package/dist/components/shoppingcart/shoppingcart.css +1 -1
- package/dist/components/shoppingcart/shoppingcart.functions.js +5 -14
- package/dist/components/sitebuilder/config/ConfigEngine.js +2 -2
- package/dist/components/sitebuilder/config/google-fonts.js +3 -3
- package/dist/components/sitebuilder/form/formcomponents.js +151 -0
- package/dist/components/sitebuilder/form/formutils.js +3 -0
- package/dist/components/sitebuilder/page/lib/pageStorageContentful.js +2 -2
- package/dist/config/pixelated.config.json.enc +1 -1
- package/dist/data/form.json +18 -0
- package/dist/index.adminserver.js +1 -3
- package/dist/index.js +1 -1
- package/dist/index.server.js +1 -0
- package/dist/scripts/create-pixelated-app.js +187 -79
- package/dist/scripts/create-pixelated-app.json +56 -1
- package/dist/scripts/pixelated-eslint-plugin.js +142 -0
- package/dist/scripts/release.sh +14 -1
- package/dist/scripts/update.sh +2 -0
- package/dist/types/components/admin/deploy/deployment.integration.d.ts +1 -0
- package/dist/types/components/admin/deploy/deployment.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/google.api.integration.d.ts.map +1 -1
- package/dist/types/components/admin/site-health/site-health-cloudwatch.integration.d.ts.map +1 -1
- package/dist/types/components/config/config.types.d.ts +24 -0
- package/dist/types/components/config/config.types.d.ts.map +1 -1
- package/dist/types/components/config/crypto.d.ts +1 -0
- package/dist/types/components/config/crypto.d.ts.map +1 -1
- package/dist/types/components/general/404.d.ts.map +1 -1
- package/dist/types/components/general/cache-manager.d.ts +16 -2
- package/dist/types/components/general/cache-manager.d.ts.map +1 -1
- package/dist/types/components/general/callout.d.ts.map +1 -1
- package/dist/types/components/general/carousel.drag.d.ts.map +1 -1
- package/dist/types/components/general/intersection-observer.d.ts.map +1 -1
- package/dist/types/components/general/sitemap.d.ts.map +1 -1
- package/dist/types/components/general/smartimage.d.ts.map +1 -1
- package/dist/types/components/general/utilities.d.ts +37 -0
- package/dist/types/components/general/utilities.d.ts.map +1 -1
- package/dist/types/components/integrations/contentful.delivery.d.ts +16 -16
- package/dist/types/components/integrations/contentful.items.components.d.ts.map +1 -1
- package/dist/types/components/integrations/flickr.d.ts.map +1 -1
- package/dist/types/components/integrations/google.reviews.components.d.ts.map +1 -1
- package/dist/types/components/integrations/googleplaces.d.ts +61 -0
- package/dist/types/components/integrations/googleplaces.d.ts.map +1 -0
- package/dist/types/components/integrations/socialcard.d.ts.map +1 -1
- package/dist/types/components/integrations/wordpress.components.d.ts.map +1 -1
- package/dist/types/components/shoppingcart/ebay.functions.d.ts.map +1 -1
- package/dist/types/components/shoppingcart/shoppingcart.components.d.ts.map +1 -1
- package/dist/types/components/shoppingcart/shoppingcart.functions.d.ts +2 -2
- package/dist/types/components/shoppingcart/shoppingcart.functions.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/form/formcomponents.d.ts +22 -0
- package/dist/types/components/sitebuilder/form/formcomponents.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/form/formutils.d.ts.map +1 -1
- package/dist/types/index.adminserver.d.ts +1 -3
- package/dist/types/index.d.ts +1 -1
- package/dist/types/index.server.d.ts +1 -0
- package/dist/types/scripts/create-pixelated-app.d.ts +3 -0
- package/dist/types/scripts/create-pixelated-app.d.ts.map +1 -1
- package/dist/types/scripts/pixelated-eslint-plugin.d.ts +20 -0
- package/dist/types/stories/integrations/contentful.items.stories.d.ts.map +1 -0
- package/dist/types/stories/integrations/contentful.stories.d.ts.map +1 -0
- package/dist/types/stories/integrations/google.reviews.stories.d.ts.map +1 -0
- package/dist/types/stories/integrations/googlesearch.stories.d.ts.map +1 -0
- package/dist/types/stories/integrations/gravatar.stories.d.ts.map +1 -0
- package/dist/types/stories/integrations/instagram.stories.d.ts.map +1 -0
- package/dist/types/stories/integrations/wordpress.stories.d.ts.map +1 -0
- 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/404.test.d.ts +2 -0
- package/dist/types/tests/404.test.d.ts.map +1 -0
- package/dist/types/tests/carousel.drag.test.d.ts +2 -0
- package/dist/types/tests/carousel.drag.test.d.ts.map +1 -0
- package/dist/types/tests/carouselDrag.test.d.ts +2 -0
- package/dist/types/tests/carouselDrag.test.d.ts.map +1 -0
- package/dist/types/tests/componentAnalysis.test.d.ts +2 -0
- package/dist/types/tests/componentAnalysis.test.d.ts.map +1 -0
- package/dist/types/tests/componentDiscovery.test.d.ts +2 -0
- package/dist/types/tests/componentDiscovery.test.d.ts.map +1 -0
- package/dist/types/tests/componentMap.test.d.ts +2 -0
- package/dist/types/tests/componentMap.test.d.ts.map +1 -0
- package/dist/types/tests/contentful.items.components.test.d.ts +2 -0
- package/dist/types/tests/contentful.items.components.test.d.ts.map +1 -0
- package/dist/types/tests/contentful.management.test.d.ts +2 -0
- package/dist/types/tests/contentful.management.test.d.ts.map +1 -0
- package/dist/types/tests/contentfulManagement.test.d.ts +2 -0
- package/dist/types/tests/contentfulManagement.test.d.ts.map +1 -0
- package/dist/types/tests/countup.test.d.ts +2 -0
- package/dist/types/tests/countup.test.d.ts.map +1 -0
- package/dist/types/tests/crypto.test.d.ts +2 -0
- package/dist/types/tests/crypto.test.d.ts.map +1 -0
- package/dist/types/tests/deployment.integration.test.d.ts +2 -0
- package/dist/types/tests/deployment.integration.test.d.ts.map +1 -0
- package/dist/types/tests/ebay.components.test.d.ts +2 -0
- package/dist/types/tests/ebay.components.test.d.ts.map +1 -0
- package/dist/types/tests/ebayComponents.test.d.ts +2 -0
- package/dist/types/tests/ebayComponents.test.d.ts.map +1 -0
- package/dist/types/tests/flickr.test.d.ts +2 -0
- package/dist/types/tests/flickr.test.d.ts.map +1 -0
- package/dist/types/tests/formgoogleplacesinput.test.d.ts +2 -0
- package/dist/types/tests/formgoogleplacesinput.test.d.ts.map +1 -0
- package/dist/types/tests/formutils.test.d.ts +2 -0
- package/dist/types/tests/formutils.test.d.ts.map +1 -0
- package/dist/types/tests/formvalidator.test.d.ts +2 -0
- package/dist/types/tests/formvalidator.test.d.ts.map +1 -0
- package/dist/types/tests/gemini-api.client.test.d.ts +2 -0
- package/dist/types/tests/gemini-api.client.test.d.ts.map +1 -0
- package/dist/types/tests/gemini-api.server.test.d.ts +2 -0
- package/dist/types/tests/gemini-api.server.test.d.ts.map +1 -0
- package/dist/types/tests/geminiApi.test.d.ts +2 -0
- package/dist/types/tests/geminiApi.test.d.ts.map +1 -0
- package/dist/types/tests/google.reviews.components.test.d.ts +2 -0
- package/dist/types/tests/google.reviews.components.test.d.ts.map +1 -0
- package/dist/types/tests/googleanalytics.test.d.ts +2 -0
- package/dist/types/tests/googleanalytics.test.d.ts.map +1 -0
- package/dist/types/tests/googlemap.test.d.ts +2 -0
- package/dist/types/tests/googlemap.test.d.ts.map +1 -0
- package/dist/types/tests/gravatar.functions.test.d.ts +2 -0
- package/dist/types/tests/gravatar.functions.test.d.ts.map +1 -0
- package/dist/types/tests/hubspot.components.test.d.ts +2 -0
- package/dist/types/tests/hubspot.components.test.d.ts.map +1 -0
- package/dist/types/tests/image-utils.test.d.ts +2 -0
- package/dist/types/tests/image-utils.test.d.ts.map +1 -0
- package/dist/types/tests/instagram.components.test.d.ts +2 -0
- package/dist/types/tests/instagram.components.test.d.ts.map +1 -0
- package/dist/types/tests/instagram.functions.test.d.ts +2 -0
- package/dist/types/tests/instagram.functions.test.d.ts.map +1 -0
- package/dist/types/tests/intersection-observer.test.d.ts +2 -0
- package/dist/types/tests/intersection-observer.test.d.ts.map +1 -0
- package/dist/types/tests/metadata.functions.test.d.ts +2 -0
- package/dist/types/tests/metadata.functions.test.d.ts.map +1 -0
- package/dist/types/tests/metadataComponents.test.d.ts +2 -0
- package/dist/types/tests/metadataComponents.test.d.ts.map +1 -0
- package/dist/types/tests/page-storage.test.d.ts +2 -0
- package/dist/types/tests/page-storage.test.d.ts.map +1 -0
- package/dist/types/tests/pageStorageContentful.test.d.ts +2 -0
- package/dist/types/tests/pageStorageContentful.test.d.ts.map +1 -0
- package/dist/types/tests/pageStorageLocal.test.d.ts +2 -0
- package/dist/types/tests/pageStorageLocal.test.d.ts.map +1 -0
- package/dist/types/tests/pixelated.test.d.ts +2 -0
- package/dist/types/tests/pixelated.test.d.ts.map +1 -0
- package/dist/types/tests/propTypeIntrospection.test.d.ts +2 -0
- package/dist/types/tests/propTypeIntrospection.test.d.ts.map +1 -0
- package/dist/types/tests/save-route-example.test.d.ts +2 -0
- package/dist/types/tests/save-route-example.test.d.ts.map +1 -0
- package/dist/types/tests/saveRouteExample.test.d.ts +2 -0
- package/dist/types/tests/saveRouteExample.test.d.ts.map +1 -0
- package/dist/types/tests/seoConstants.test.d.ts +2 -0
- package/dist/types/tests/seoConstants.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-accessibility.test.d.ts +2 -0
- package/dist/types/tests/site-health-accessibility.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-cloudwatch.integration.test.d.ts +2 -0
- package/dist/types/tests/site-health-cloudwatch.integration.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-dependency-vulnerabilities.test.d.ts +2 -0
- package/dist/types/tests/site-health-dependency-vulnerabilities.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-github.test.d.ts +2 -0
- package/dist/types/tests/site-health-github.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-google-analytics.integration.test.d.ts +2 -0
- package/dist/types/tests/site-health-google-analytics.integration.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-google-analytics.test.d.ts +2 -0
- package/dist/types/tests/site-health-google-analytics.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-google-search-console.integration.test.d.ts +2 -0
- package/dist/types/tests/site-health-google-search-console.integration.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-google-search-console.test.d.ts +2 -0
- package/dist/types/tests/site-health-google-search-console.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-mock-context.test.d.ts +2 -0
- package/dist/types/tests/site-health-mock-context.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-on-site-seo.test.d.ts +2 -0
- package/dist/types/tests/site-health-on-site-seo.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-performance.test.d.ts +2 -0
- package/dist/types/tests/site-health-performance.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-security.integration.test.d.ts +2 -0
- package/dist/types/tests/site-health-security.integration.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-security.test.d.ts +2 -0
- package/dist/types/tests/site-health-security.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-seo.test.d.ts +2 -0
- package/dist/types/tests/site-health-seo.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-uptime.integration.test.d.ts +2 -0
- package/dist/types/tests/site-health-uptime.integration.test.d.ts.map +1 -0
- package/dist/types/tests/site-health-uptime.test.d.ts +2 -0
- package/dist/types/tests/site-health-uptime.test.d.ts.map +1 -0
- package/dist/types/tests/siteHealthGaIntegration.test.d.ts +2 -0
- package/dist/types/tests/siteHealthGaIntegration.test.d.ts.map +1 -0
- package/dist/types/tests/siteHealthGscIntegration.test.d.ts +2 -0
- package/dist/types/tests/siteHealthGscIntegration.test.d.ts.map +1 -0
- package/dist/types/tests/spotify.components.test.d.ts +2 -0
- package/dist/types/tests/spotify.components.test.d.ts.map +1 -0
- package/dist/types/tests/spotify.functions.test.d.ts +2 -0
- package/dist/types/tests/spotify.functions.test.d.ts.map +1 -0
- package/dist/types/tests/test-utils.d.ts +7 -0
- package/dist/types/tests/test-utils.d.ts.map +1 -0
- package/dist/types/tests/usePageBuilder.test.d.ts +2 -0
- package/dist/types/tests/usePageBuilder.test.d.ts.map +1 -0
- package/package.json +34 -30
- package/dist/components/admin/site-health/site-health-google-analytics.integration.js +0 -6
- package/dist/components/admin/site-health/site-health-google-search-console.integration.js +0 -6
- package/dist/components/general/proxy-csp-listener.js +0 -20
- package/dist/scripts/create-pixelated-app-template-mapper.js +0 -80
- package/dist/types/components/admin/site-health/site-health-google-analytics.integration.d.ts +0 -6
- package/dist/types/components/admin/site-health/site-health-google-analytics.integration.d.ts.map +0 -1
- package/dist/types/components/admin/site-health/site-health-google-search-console.integration.d.ts +0 -6
- package/dist/types/components/admin/site-health/site-health-google-search-console.integration.d.ts.map +0 -1
- package/dist/types/components/general/proxy-csp-listener.d.ts +0 -15
- package/dist/types/components/general/proxy-csp-listener.d.ts.map +0 -1
- package/dist/types/scripts/create-pixelated-app-template-mapper.d.ts +0 -5
- package/dist/types/scripts/create-pixelated-app-template-mapper.d.ts.map +0 -1
- package/dist/types/stories/general/callout.many.stories.d.ts +0 -7
- package/dist/types/stories/general/callout.many.stories.d.ts.map +0 -1
- package/dist/types/stories/general/contentful.item.stories.d.ts +0 -12
- package/dist/types/stories/general/contentful.item.stories.d.ts.map +0 -1
- package/dist/types/stories/general/contentful.items.stories.d.ts.map +0 -1
- package/dist/types/stories/general/contentful.stories.d.ts.map +0 -1
- package/dist/types/stories/general/global-error.stories.d.ts +0 -26
- package/dist/types/stories/general/global-error.stories.d.ts.map +0 -1
- package/dist/types/stories/general/google.reviews.stories.d.ts.map +0 -1
- package/dist/types/stories/general/googleanalytics.stories.d.ts +0 -14
- package/dist/types/stories/general/googleanalytics.stories.d.ts.map +0 -1
- package/dist/types/stories/general/googlesearch.stories.d.ts.map +0 -1
- package/dist/types/stories/general/gravatar.stories.d.ts.map +0 -1
- package/dist/types/stories/general/instagram.stories.d.ts.map +0 -1
- package/dist/types/stories/general/loading.stories.d.ts +0 -11
- package/dist/types/stories/general/loading.stories.d.ts.map +0 -1
- package/dist/types/stories/general/metadata.stories.d.ts +0 -25
- package/dist/types/stories/general/metadata.stories.d.ts.map +0 -1
- package/dist/types/stories/general/schema.stories.d.ts +0 -62
- package/dist/types/stories/general/schema.stories.d.ts.map +0 -1
- package/dist/types/stories/general/sitemap.stories.d.ts +0 -8
- package/dist/types/stories/general/sitemap.stories.d.ts.map +0 -1
- package/dist/types/stories/general/wordpress.stories.d.ts.map +0 -1
- package/dist/types/stories/integrations/schema-podcast.stories.d.ts +0 -45
- package/dist/types/stories/integrations/schema-podcast.stories.d.ts.map +0 -1
- /package/dist/types/stories/{general → integrations}/contentful.items.stories.d.ts +0 -0
- /package/dist/types/stories/{general → integrations}/contentful.stories.d.ts +0 -0
- /package/dist/types/stories/{general → integrations}/google.reviews.stories.d.ts +0 -0
- /package/dist/types/stories/{general → integrations}/googlesearch.stories.d.ts +0 -0
- /package/dist/types/stories/{general → integrations}/gravatar.stories.d.ts +0 -0
- /package/dist/types/stories/{general → integrations}/instagram.stories.d.ts +0 -0
- /package/dist/types/stories/{general → integrations}/wordpress.stories.d.ts +0 -0
|
@@ -1152,6 +1152,146 @@ const noDuplicateExportNamesRule = {
|
|
|
1152
1152
|
}
|
|
1153
1153
|
};
|
|
1154
1154
|
|
|
1155
|
+
/**
|
|
1156
|
+
* no-hardcoded-config-keys Rule
|
|
1157
|
+
*
|
|
1158
|
+
* Prevents hardcoding of Pixelated-specific configuration keys that should come from:
|
|
1159
|
+
* - Config provider (usePixelatedConfig)
|
|
1160
|
+
* - Environment variables
|
|
1161
|
+
* - Function parameters/props
|
|
1162
|
+
*
|
|
1163
|
+
* Only flags keys that are Pixelated-specific to avoid false positives.
|
|
1164
|
+
* Severity: ERROR for secrets, WARNING for other Pixelated config keys.
|
|
1165
|
+
*/
|
|
1166
|
+
const noHardcodedConfigKeysRule = {
|
|
1167
|
+
meta: {
|
|
1168
|
+
type: 'problem',
|
|
1169
|
+
docs: {
|
|
1170
|
+
description: 'Prevent hardcoded Pixelated configuration keys that should come from config provider',
|
|
1171
|
+
category: 'Security',
|
|
1172
|
+
recommended: true,
|
|
1173
|
+
},
|
|
1174
|
+
fixable: false,
|
|
1175
|
+
schema: [],
|
|
1176
|
+
messages: {
|
|
1177
|
+
secretConfigKey: 'Hardcoded SECRET configuration key "{{keyName}}" ({{serviceName}}) detected. Must use config provider (usePixelatedConfig) or environment variables.',
|
|
1178
|
+
publicConfigKey: 'Hardcoded Pixelated config key "{{keyName}}" ({{serviceName}}) detected. Should use config provider (usePixelatedConfig) or pass as parameter instead.',
|
|
1179
|
+
},
|
|
1180
|
+
},
|
|
1181
|
+
create(context) {
|
|
1182
|
+
// Pixelated-SPECIFIC configuration keys (keys that are unlikely to be false positives)
|
|
1183
|
+
// Keys that are unique/distinctive to Pixelated integrations, excluding generic names
|
|
1184
|
+
const pixelatedConfigKeys = {
|
|
1185
|
+
// Contentful (very Pixelated-specific)
|
|
1186
|
+
contentful: ['space_id', 'delivery_access_token', 'management_access_token', 'preview_access_token', 'proxyURL', 'base_url', 'environment'],
|
|
1187
|
+
// eBay (very distinctive)
|
|
1188
|
+
ebay: ['appId', 'appDevId', 'appCertId', 'sbxAppId', 'sbxAppDevId', 'sbxAppCertId', 'globalId', 'baseTokenURL', 'baseSearchURL', 'baseAnalyticsURL', 'qsSearchURL', 'baseItemURL', 'qsItemURL'],
|
|
1189
|
+
// AWS (distinctive with service prefix or secretive names)
|
|
1190
|
+
aws: ['access_key_id', 'secret_access_key', 'session_token'],
|
|
1191
|
+
// Cloudinary
|
|
1192
|
+
cloudinary: ['product_env', 'api_key', 'api_secret'],
|
|
1193
|
+
// Flickr
|
|
1194
|
+
flickr: ['user_id'],
|
|
1195
|
+
// GitHub
|
|
1196
|
+
github: ['token', 'apiBaseUrl', 'defaultOwner'],
|
|
1197
|
+
// Google services
|
|
1198
|
+
google: ['client_id', 'client_secret', 'api_key', 'refresh_token'],
|
|
1199
|
+
// Google Analytics
|
|
1200
|
+
googleAnalytics: [], // Skip 'id' and 'adId' as too generic
|
|
1201
|
+
// Google Maps
|
|
1202
|
+
googleMaps: ['apiKey'],
|
|
1203
|
+
// HubSpot (keep only distinctive ones)
|
|
1204
|
+
hubspot: ['portalId', 'formId', 'trackingCode'],
|
|
1205
|
+
// Instagram
|
|
1206
|
+
instagram: ['accessToken', 'userId'],
|
|
1207
|
+
// NextAuth
|
|
1208
|
+
nextAuth: ['secret'],
|
|
1209
|
+
// PayPal
|
|
1210
|
+
paypal: ['sandboxPayPalApiKey', 'sandboxPayPalSecret', 'payPalApiKey', 'payPalSecret'],
|
|
1211
|
+
// WordPress
|
|
1212
|
+
wordpress: ['baseURL', 'site'],
|
|
1213
|
+
// Puppeteer
|
|
1214
|
+
puppeteer: ['executable_path', 'cache_dir'],
|
|
1215
|
+
// Global
|
|
1216
|
+
global: ['PIXELATED_CONFIG_KEY']
|
|
1217
|
+
};
|
|
1218
|
+
|
|
1219
|
+
// Secret keys that should NEVER be hardcoded (ERROR severity)
|
|
1220
|
+
const secretKeys = new Set([
|
|
1221
|
+
// AWS
|
|
1222
|
+
'access_key_id', 'secret_access_key', 'session_token',
|
|
1223
|
+
// Cloudinary
|
|
1224
|
+
'api_key', 'api_secret',
|
|
1225
|
+
// Contentful
|
|
1226
|
+
'management_access_token', 'preview_access_token',
|
|
1227
|
+
// eBay
|
|
1228
|
+
'sbxAppId',
|
|
1229
|
+
// GitHub
|
|
1230
|
+
'token',
|
|
1231
|
+
// Instagram
|
|
1232
|
+
'accessToken',
|
|
1233
|
+
// PayPal
|
|
1234
|
+
'sandboxPayPalApiKey', 'sandboxPayPalSecret', 'payPalApiKey', 'payPalSecret',
|
|
1235
|
+
// NextAuth
|
|
1236
|
+
'secret',
|
|
1237
|
+
// Global
|
|
1238
|
+
'PIXELATED_CONFIG_KEY'
|
|
1239
|
+
]);
|
|
1240
|
+
|
|
1241
|
+
// Build set of all known Pixelated config keys
|
|
1242
|
+
const allConfigKeys = new Set();
|
|
1243
|
+
Object.values(pixelatedConfigKeys).forEach(keys => {
|
|
1244
|
+
keys.forEach(key => allConfigKeys.add(key));
|
|
1245
|
+
});
|
|
1246
|
+
|
|
1247
|
+
function findServiceForKey(keyName) {
|
|
1248
|
+
for (const [serviceName, keys] of Object.entries(pixelatedConfigKeys)) {
|
|
1249
|
+
if (keys.includes(keyName)) {
|
|
1250
|
+
return serviceName;
|
|
1251
|
+
}
|
|
1252
|
+
}
|
|
1253
|
+
return 'unknown';
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
function isConfigKey(keyName) {
|
|
1257
|
+
return allConfigKeys.has(keyName);
|
|
1258
|
+
}
|
|
1259
|
+
|
|
1260
|
+
function isSecretKey(keyName) {
|
|
1261
|
+
return secretKeys.has(keyName);
|
|
1262
|
+
}
|
|
1263
|
+
|
|
1264
|
+
return {
|
|
1265
|
+
ObjectExpression(node) {
|
|
1266
|
+
node.properties.forEach(prop => {
|
|
1267
|
+
// Check properties that look like { space_id: "value" } or { api_key: "..." }
|
|
1268
|
+
if (prop.type === 'Property' && prop.key) {
|
|
1269
|
+
const keyName = prop.key.name || prop.key.value;
|
|
1270
|
+
|
|
1271
|
+
// Check if this is a known Pixelated config key
|
|
1272
|
+
if (isConfigKey(keyName)) {
|
|
1273
|
+
// Check if value is a string literal (hardcoded)
|
|
1274
|
+
if (prop.value.type === 'Literal' && typeof prop.value.value === 'string') {
|
|
1275
|
+
const stringValue = prop.value.value;
|
|
1276
|
+
if (stringValue && stringValue.length > 0) {
|
|
1277
|
+
const serviceName = findServiceForKey(keyName);
|
|
1278
|
+
const messageId = isSecretKey(keyName) ? 'secretConfigKey' : 'publicConfigKey';
|
|
1279
|
+
|
|
1280
|
+
context.report({
|
|
1281
|
+
node: prop,
|
|
1282
|
+
messageId,
|
|
1283
|
+
data: { keyName, serviceName },
|
|
1284
|
+
});
|
|
1285
|
+
}
|
|
1286
|
+
}
|
|
1287
|
+
}
|
|
1288
|
+
}
|
|
1289
|
+
});
|
|
1290
|
+
}
|
|
1291
|
+
};
|
|
1292
|
+
}
|
|
1293
|
+
};
|
|
1294
|
+
|
|
1155
1295
|
export default {
|
|
1156
1296
|
rules: {
|
|
1157
1297
|
'prop-types-inferprops': propTypesInferPropsRule,
|
|
@@ -1169,6 +1309,7 @@ export default {
|
|
|
1169
1309
|
'file-name-kebab-case': fileNameKebabCaseRule,
|
|
1170
1310
|
'no-duplicate-export-names': noDuplicateExportNamesRule,
|
|
1171
1311
|
'class-name-kebab-case': classNameKebabCaseRule,
|
|
1312
|
+
'no-hardcoded-config-keys': noHardcodedConfigKeysRule,
|
|
1172
1313
|
},
|
|
1173
1314
|
configs: {
|
|
1174
1315
|
recommended: {
|
|
@@ -1188,6 +1329,7 @@ export default {
|
|
|
1188
1329
|
'pixelated/required-proptypes-jsdoc': 'error',
|
|
1189
1330
|
'pixelated/no-duplicate-export-names': 'error',
|
|
1190
1331
|
'pixelated/class-name-kebab-case': 'error',
|
|
1332
|
+
'pixelated/no-hardcoded-config-keys': 'error',
|
|
1191
1333
|
},
|
|
1192
1334
|
},
|
|
1193
1335
|
},
|
package/dist/scripts/release.sh
CHANGED
|
@@ -192,7 +192,20 @@ npm run lint
|
|
|
192
192
|
|
|
193
193
|
|
|
194
194
|
echo ""
|
|
195
|
-
echo "
|
|
195
|
+
echo "� Step $((STEP_COUNT++)): Running code coverage check..."
|
|
196
|
+
echo "================================================="
|
|
197
|
+
# Check if test directory exists before running coverage
|
|
198
|
+
if [ -d "src/tests" ] || [ -d "src/test" ]; then
|
|
199
|
+
npm run test:coverage || exit 1
|
|
200
|
+
echo "✅ Coverage check passed."
|
|
201
|
+
else
|
|
202
|
+
echo "⚠️ No test directory found; skipping coverage check"
|
|
203
|
+
fi
|
|
204
|
+
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
echo ""
|
|
208
|
+
echo "�🔨 Step $((STEP_COUNT++)): Encrypting configuration..."
|
|
196
209
|
echo "================================================="
|
|
197
210
|
if grep -q "\"config:encrypt\":" package.json; then
|
|
198
211
|
echo "🔒 Encrypting configuration..."
|
package/dist/scripts/update.sh
CHANGED
|
@@ -39,6 +39,7 @@ done
|
|
|
39
39
|
# Handle peer dependencies
|
|
40
40
|
echo ""
|
|
41
41
|
echo "Checking peer dependencies for updates..."
|
|
42
|
+
{
|
|
42
43
|
if command -v jq &> /dev/null; then
|
|
43
44
|
peers=$(jq -r '.peerDependencies // {} | to_entries[] | "\(.key)=\(.value)"' package.json 2>/dev/null)
|
|
44
45
|
if [ -n "$peers" ]; then
|
|
@@ -66,5 +67,6 @@ else
|
|
|
66
67
|
echo "⚠️ jq not found - skipping peer dependency updates"
|
|
67
68
|
echo " Run 'npm ls --peer' to check peer dependencies manually"
|
|
68
69
|
fi
|
|
70
|
+
} || true
|
|
69
71
|
|
|
70
72
|
npm audit fix 2>/dev/null || true
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"deployment.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/deploy/deployment.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"deployment.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/deploy/deployment.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AAE7D,YAAY,EAAE,UAAU,EAAE,CAAC;AAI3B,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,WAAW,EAAE,MAAM,CAAC;IACpB,aAAa,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;CACzC;AAED;;GAEG;AACH,wBAAsB,iBAAiB,CACtC,OAAO,EAAE,iBAAiB,EAC1B,UAAU,EAAE,UAAU,EACtB,gBAAgB,GAAE,OAAe,GAC/B,OAAO,CAAC,gBAAgB,CAAC,CAU3B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.api.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/google.api.integration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;
|
|
1
|
+
{"version":3,"file":"google.api.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/google.api.integration.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAYH,MAAM,WAAW,gBAAgB;IAC/B,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,iBAA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ChB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,uBAAuB,CAAC,CAsGlC;AAED,MAAM,WAAW,mBAAmB;IAClC,OAAO,EAAE,MAAM,CAAC;IAChB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,2BAA2B;IAC3C,IAAI,EAAE,MAAM,CAAC;IACb,kBAAkB,EAAE,MAAM,CAAC;IAC3B,aAAa,EAAE,MAAM,CAAC;IACtB,mBAAmB,EAAE,MAAM,CAAC;IAC5B,cAAc,EAAE,MAAM,CAAC;CACvB;AAED,MAAM,WAAW,qBAAqB;IACpC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,2BAA2B,EAAE,CAAC;IACrC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAKD;;GAEG;AACH,wBAAsB,oBAAoB,CACzC,MAAM,EAAE,mBAAmB,EAC3B,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,qBAAqB,CAAC,CAqHhC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"site-health-cloudwatch.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-cloudwatch.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"site-health-cloudwatch.integration.d.ts","sourceRoot":"","sources":["../../../../../src/components/admin/site-health/site-health-cloudwatch.integration.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAWH,MAAM,WAAW,2BAA2B;IAC1C,aAAa,EAAE,MAAM,CAAC;IACtB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,oBAAoB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,6BAA6B;IAC7C,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,oBAAoB,EAAE,CAAC;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAKD;;GAEG;AACH,wBAAsB,4BAA4B,CACjD,MAAM,EAAE,2BAA2B,EACnC,QAAQ,EAAE,MAAM,EAChB,SAAS,CAAC,EAAE,MAAM,EAClB,OAAO,CAAC,EAAE,MAAM,GACd,OAAO,CAAC,6BAA6B,CAAC,CAsJxC"}
|
|
@@ -84,6 +84,14 @@ export interface GoogleAnalyticsConfig {
|
|
|
84
84
|
export interface GoogleMapsConfig {
|
|
85
85
|
apiKey: string;
|
|
86
86
|
}
|
|
87
|
+
export interface GooglePlacesConfig {
|
|
88
|
+
apiKey?: string;
|
|
89
|
+
language?: string;
|
|
90
|
+
countryRestrictions?: string[];
|
|
91
|
+
debounceDelay?: number;
|
|
92
|
+
cacheTTL?: number;
|
|
93
|
+
placeId: string;
|
|
94
|
+
}
|
|
87
95
|
export interface GoogleSearchConsoleConfig {
|
|
88
96
|
id: string;
|
|
89
97
|
}
|
|
@@ -111,6 +119,20 @@ export interface PaypalConfig {
|
|
|
111
119
|
payPalApiKey: string;
|
|
112
120
|
payPalSecret: string;
|
|
113
121
|
}
|
|
122
|
+
export interface ShoppingCartConfig {
|
|
123
|
+
/** Email address for order notifications */
|
|
124
|
+
orderTo: string;
|
|
125
|
+
/** Sender email address for transactional emails */
|
|
126
|
+
orderFrom: string;
|
|
127
|
+
/** Subject line for order confirmation emails */
|
|
128
|
+
orderSubject: string;
|
|
129
|
+
/** Store/company name displayed in communications */
|
|
130
|
+
storeName: string;
|
|
131
|
+
/** Currency code (e.g., 'USD', 'EUR') */
|
|
132
|
+
currency?: string;
|
|
133
|
+
/** Tax rate as a decimal (e.g., 0.07 for 7%) */
|
|
134
|
+
taxRate?: number;
|
|
135
|
+
}
|
|
114
136
|
export interface WordpressConfig {
|
|
115
137
|
baseURL: string;
|
|
116
138
|
site: string;
|
|
@@ -185,11 +207,13 @@ export interface PixelatedConfig {
|
|
|
185
207
|
google?: Google;
|
|
186
208
|
googleAnalytics?: GoogleAnalyticsConfig;
|
|
187
209
|
googleMaps?: GoogleMapsConfig;
|
|
210
|
+
googlePlaces?: GooglePlacesConfig;
|
|
188
211
|
googleSearchConsole?: GoogleSearchConsoleConfig;
|
|
189
212
|
hubspot?: HubspotConfig;
|
|
190
213
|
instagram?: InstagramConfig;
|
|
191
214
|
nextAuth?: NextAuth;
|
|
192
215
|
paypal?: PaypalConfig;
|
|
216
|
+
shoppingcart?: ShoppingCartConfig;
|
|
193
217
|
wordpress?: WordpressConfig;
|
|
194
218
|
puppeteer?: PuppeteerConfig;
|
|
195
219
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../../src/components/config/config.types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACzB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CA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,YAAY,CAAC;IACtB,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B"}
|
|
1
|
+
{"version":3,"file":"config.types.d.ts","sourceRoot":"","sources":["../../../../src/components/config/config.types.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,SAAS;IACzB,qGAAqG;IACrG,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,gBAAgB;IAChC,WAAW,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,UAAU,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,gBAAgB;IAChC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,qBAAqB,CAAC,EAAE,MAAM,CAAC;IAC/B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;IAC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AAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,SAAS,CAAC,EAAE,eAAe,CAAC;CAC5B"}
|
|
@@ -10,6 +10,7 @@ export declare function encrypt(text: string, keyHex: string): string;
|
|
|
10
10
|
export declare function decrypt(payload: string, keyHex: string): string;
|
|
11
11
|
/**
|
|
12
12
|
* Checks if a string is encrypted using our format.
|
|
13
|
+
* Validates that the string has the proper structure: pxl:v1:iv:authTag:encryptedContent
|
|
13
14
|
*/
|
|
14
15
|
export declare function isEncrypted(text: string): boolean;
|
|
15
16
|
//# sourceMappingURL=crypto.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../../src/components/config/crypto.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAgB5D;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CA6B/D;AAED
|
|
1
|
+
{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../../../../src/components/config/crypto.ts"],"names":[],"mappings":"AAYA;;;GAGG;AACH,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAgB5D;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CA6B/D;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAuBjD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"404.d.ts","sourceRoot":"","sources":["../../../../src/components/general/404.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,WAAW,CAAC;AAWnB,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;AACrE,wBAAgB,UAAU,CAAE,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"404.d.ts","sourceRoot":"","sources":["../../../../src/components/general/404.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,WAAW,CAAC;AAWnB,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,CAAC;AACrE,wBAAgB,UAAU,CAAE,KAAK,EAAE,cAAc,2CA6ChD;yBA7Ce,UAAU;;QAJzB,kFAAkF"}
|
|
@@ -3,11 +3,25 @@
|
|
|
3
3
|
*
|
|
4
4
|
* A unified caching utility that supports Memory, LocalStorage, and SessionStorage.
|
|
5
5
|
* Includes TTL (Time-To-Live) support and automatic SSR fallback.
|
|
6
|
+
*
|
|
7
|
+
* ARCHITECTURE NOTE: The `domain` parameter is required to enforce clear namespace separation and
|
|
8
|
+
* provide future-proofing. While the library is currently deployed **per-domain** (each site gets
|
|
9
|
+
* its own isolated copy of this library), the domain parameter serves important purposes:
|
|
10
|
+
* 1. **Code Clarity**: Makes the multi-tenant intent explicit in code
|
|
11
|
+
* 2. **Future-Proofing**: If architecture changes to shared backends (Redis), isolation is built-in
|
|
12
|
+
* 3. **Safety**: Prevents accidental empty prefixes that could cause collisions
|
|
13
|
+
*
|
|
14
|
+
* Each domain runs in isolation:
|
|
15
|
+
* - Client-side: Uses window.location to determine domain (e.g., pixelvivid.com → "pixelvivid")
|
|
16
|
+
* - Server-side: Defaults to 'pixelated' (safe because server caches are in-memory per process)
|
|
17
|
+
* - Memory caches: Naturally isolated to their process, so multi-tenancy doesn't apply
|
|
18
|
+
* - Local/Session storage: Browser-based, inherently isolated by domain
|
|
6
19
|
*/
|
|
7
20
|
export type CacheMode = 'memory' | 'local' | 'session' | 'none';
|
|
8
21
|
export interface CacheOptions {
|
|
22
|
+
domain: string;
|
|
23
|
+
namespace?: string;
|
|
9
24
|
ttl?: number;
|
|
10
|
-
prefix?: string;
|
|
11
25
|
mode?: CacheMode;
|
|
12
26
|
}
|
|
13
27
|
export declare class CacheManager {
|
|
@@ -16,7 +30,7 @@ export declare class CacheManager {
|
|
|
16
30
|
private mode;
|
|
17
31
|
private prefix;
|
|
18
32
|
private ttl;
|
|
19
|
-
constructor(options
|
|
33
|
+
constructor(options: CacheOptions);
|
|
20
34
|
/**
|
|
21
35
|
* Returns the storage engine based on the mode
|
|
22
36
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cache-manager.d.ts","sourceRoot":"","sources":["../../../../src/components/general/cache-manager.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cache-manager.d.ts","sourceRoot":"","sources":["../../../../src/components/general/cache-manager.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,OAAO,GAAG,SAAS,GAAG,MAAM,CAAC;AAEhE,MAAM,WAAW,YAAY;IAC5B,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,SAAS,CAAC;CACjB;AAOD,qBAAa,YAAY;IACxB,OAAO,CAAC,WAAW,CAAwC;IAC3D,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAkB;IAC7C,OAAO,CAAC,IAAI,CAAY;IACxB,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,GAAG,CAAS;gBAER,OAAO,EAAE,YAAY;IAgBjC;;OAEG;IACH,OAAO,CAAC,UAAU;IAOlB;;OAEG;IACH,OAAO,CAAC,UAAU;IAIlB;;OAEG;IACH,GAAG,CAAC,C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;QAEzF,sDAAsD;;QAGtD,kEAAkE;;;;AAkHnE,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAE,EAAC,KAAK,EAAE,GAAG,EAAE,MAAM,EAAC,EAAE,iBAAiB,2CASrE;yBATe,aAAa;;QAR7B,qCAAqC;;QAEpC,yCAAyC;;QAEzC,sCAAsC;;;;AAiCvC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAE,EAAE,KAAK,EAAE,GAAG,EAAE,MAAM,EAAE,EAAG,iBAAiB,2CAgBxE;yBAhBe,aAAa;;QAR7B,yBAAyB;;QAExB,6DAA6D;;QAE7D,mDAAmD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"carousel.drag.d.ts","sourceRoot":"","sources":["../../../../src/components/general/carousel.drag.tsx"],"names":[],"mappings":"AAEA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA6BnD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;AACvE,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,
|
|
1
|
+
{"version":3,"file":"carousel.drag.d.ts","sourceRoot":"","sources":["../../../../src/components/general/carousel.drag.tsx"],"names":[],"mappings":"AAEA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA6BnD,MAAM,MAAM,eAAe,GAAG,UAAU,CAAC,OAAO,WAAW,CAAC,SAAS,CAAC,CAAC;AACvE,wBAAgB,WAAW,CAAC,KAAK,EAAE,eAAe,QA6KjD;yBA7Ke,WAAW;;QAV1B,kCAAkC;;QAElC,+FAA+F;;QAE/F,6CAA6C;;QAE7C,iDAAiD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"intersection-observer.d.ts","sourceRoot":"","sources":["../../../../src/components/general/intersection-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC9C,iGAAiG;IACjG,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wKAAwK;IACxK,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,sEAAsE;IACtE,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,yBAAyB,EAAE,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;AAE9G;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,EACxD,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,GAAE,8BAAmC,GAC1C,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAoCrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAClC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,GAAE,8BAAmC,GAC1C,MAAM,IAAI,CAmCZ;AAED;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,
|
|
1
|
+
{"version":3,"file":"intersection-observer.d.ts","sourceRoot":"","sources":["../../../../src/components/general/intersection-observer.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,SAAS,EAAE,MAAM,OAAO,CAAC;AAErD;;GAEG;AACH,MAAM,WAAW,8BAA8B;IAC9C,iGAAiG;IACjG,IAAI,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;IACtB,6EAA6E;IAC7E,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,wKAAwK;IACxK,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,EAAE,CAAC;IAC9B,sEAAsE;IACtE,2BAA2B,CAAC,EAAE,OAAO,CAAC;CACtC;AAED;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,KAAK,EAAE,yBAAyB,EAAE,QAAQ,EAAE,oBAAoB,KAAK,IAAI,CAAC;AAE9G;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,OAAO,EACxD,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,GAAE,8BAAmC,GAC1C,SAAS,CAAC,CAAC,GAAG,IAAI,CAAC,CAoCrB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,mBAAmB,CAClC,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,oBAAoB,EAC9B,OAAO,GAAE,8BAAmC,GAC1C,MAAM,IAAI,CAmCZ;AAED;;;GAGG;AAEH;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAS7D;AAED;;GAEG;AACH,wBAAgB,4BAA4B,CAAC,OAAO,EAAE,OAAO,GAAG,OAAO,CAStE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../../../src/components/general/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"sitemap.d.ts","sourceRoot":"","sources":["../../../../src/components/general/sitemap.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,MAAM,CAAC;AAW1C,MAAM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BAAyB,CAAC,SAAS,CAAC,CAAC;AACnG,wBAAsB,yBAAyB,CAAC,KAAK,EAAE,6BAA6B,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CA0E7G;yBA1EqB,yBAAyB;;QAjB/C,gCAAgC;;YAE9B,yBAAyB;;YAEzB,0BAA0B;;YAE1B,0BAA0B;;YAE1B,6BAA6B;;YAE7B,kCAAkC;;;QAGnC,uDAAuD;;;;AAkFxD,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,MAAM;;;;;;iBA8C7B,CAAC;;;;KAd1B;AAgCD,wBAAgB,qBAAqB,SAEpC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"smartimage.d.ts","sourceRoot":"","sources":["../../../../src/components/general/smartimage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA0HnD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AACjH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"smartimage.d.ts","sourceRoot":"","sources":["../../../../src/components/general/smartimage.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAmB,MAAM,OAAO,CAAC;AACxC,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA0HnD,MAAM,MAAM,cAAc,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,SAAS,CAAC,GAAG,KAAK,CAAC,iBAAiB,CAAC,gBAAgB,CAAC,CAAC;AACjH,wBAAgB,UAAU,CAAC,KAAK,EAAE,cAAc,2CA+I/C;yBA/Ie,UAAU;;QA/C1B,2EAA2E;;QAE1E,kCAAkC;;QAElC,6CAA6C;;QAG7C,gCAAgC;;QAEhC,yCAAyC;;QAEzC,uEAAuE;;QAEvE,kCAAkC;;QAElC,mFAAmF;;QAEnF,uCAAuC;;QAEvC,wDAAwD;;QAExD,qCAAqC;;QAErC,+CAA+C;;QAE/C,sDAAsD;;QAEtD,sDAAsD;;QAEtD,wDAAwD;;QAExD,iDAAiD;;QAEjD,4BAA4B;;QAE5B,yDAAyD;;QAEzD,8CAA8C;;QAE9C,+DAA+D;;QAE/D,+EAA+E;;QAE/E,yDAAyD"}
|
|
@@ -8,6 +8,43 @@ export declare function generateUUID(): string;
|
|
|
8
8
|
export declare function capitalize(str: string): string;
|
|
9
9
|
/** Capitalize the first letter of each word in `input`. */
|
|
10
10
|
export declare function capitalizeWords(input: string): string;
|
|
11
|
+
/**
|
|
12
|
+
* Get the domain name to use as a key component for CacheManager.
|
|
13
|
+
* Safe to call in browser contexts. For server-side, use getDomainFromHeaders() instead.
|
|
14
|
+
*
|
|
15
|
+
* Extracts the domain name from the current hostname to use as a cache/storage prefix.
|
|
16
|
+
* This ensures multi-tenant applications don't have key collisions across different domain instances.
|
|
17
|
+
*
|
|
18
|
+
* @returns Domain name suitable for multi-tenant cache isolation (lowercase, no special characters)
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* const domain = getDomain();
|
|
22
|
+
* const cache = new CacheManager({
|
|
23
|
+
* mode: 'local',
|
|
24
|
+
* domain,
|
|
25
|
+
* namespace: 'checkout'
|
|
26
|
+
* });
|
|
27
|
+
*
|
|
28
|
+
* @example
|
|
29
|
+
* // In different environments:
|
|
30
|
+
* // www.pixelvivid.com → "pixelvivid"
|
|
31
|
+
* // manningmetalworks.com → "manningmetalworks"
|
|
32
|
+
* // localhost → "pixelated" (development)
|
|
33
|
+
*/
|
|
34
|
+
export declare function getDomain(): string;
|
|
35
|
+
/**
|
|
36
|
+
* Extract the domain name from a hostname string.
|
|
37
|
+
* Handles www prefixes and multi-level TLDs.
|
|
38
|
+
*
|
|
39
|
+
* @param hostname - The hostname (e.g., "www.example.com" or "example.com")
|
|
40
|
+
* @returns The domain name without www or TLD (lowercase)
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* extractDomainName('www.pixelvivid.com') // → "pixelvivid"
|
|
44
|
+
* extractDomainName('manningmetalworks.com') // → "manningmetalworks"
|
|
45
|
+
* extractDomainName('localhost') // → "pixelated"
|
|
46
|
+
*/
|
|
47
|
+
export declare function extractDomainName(hostname: string): string;
|
|
11
48
|
export declare function attributeMap(oldAttribute: string): string;
|
|
12
49
|
/**
|
|
13
50
|
* Adds a single 'change' event listener to the document and uses event delegation
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../../src/components/general/utilities.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAE,GAAG,EAAE,MAAM,oBASpC;AAID,wBAAgB,SAAS,CAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG;;EAmBxC;AAID,wBAAgB,aAAa,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAOtD;AAID,wBAAgB,WAAW,WAc1B;AAID,wBAAgB,YAAY,WAK3B;AAID,wBAAgB,UAAU,CAAE,GAAG,EAAE,MAAM,UAEtC;AAID,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrD;
|
|
1
|
+
{"version":3,"file":"utilities.d.ts","sourceRoot":"","sources":["../../../../src/components/general/utilities.ts"],"names":[],"mappings":"AAKA,wBAAgB,QAAQ,CAAE,GAAG,EAAE,MAAM,oBASpC;AAID,wBAAgB,SAAS,CAAE,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG;;EAmBxC;AAID,wBAAgB,aAAa,CAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,UAOtD;AAID,wBAAgB,WAAW,WAc1B;AAID,wBAAgB,YAAY,WAK3B;AAID,wBAAgB,UAAU,CAAE,GAAG,EAAE,MAAM,UAEtC;AAID,2DAA2D;AAC3D,wBAAgB,eAAe,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAKrD;AAWD;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,SAAS,IAAI,MAAM,CASlC;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAiB1D;AAID,wBAAgB,YAAY,CAAE,YAAY,EAAE,MAAM,UAgCjD;AAID;;;;OAII;AACJ,wBAAgB,YAAY,SAoB3B;AAOD;;;GAGG;AACH,eAAO,MAAM,oBAAoB,UA0BhC,CAAC;AAKF;;GAEG;AACH,eAAO,MAAM,uBAAuB,UAQnC,CAAC;AAIF,eAAO,MAAM,wBAAwB,UAOpC,CAAC;AAKF;;GAEG;AACH,eAAO,MAAM,oBAAoB,UAoBhC,CAAC;AAIF,wBAAgB,eAAe,CAAE,GAAG,EAAE,MAAM,UAa3C;AAID,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAsBhD"}
|
|
@@ -58,10 +58,10 @@ export declare namespace getContentfulContentType {
|
|
|
58
58
|
/** Contentful API configuration */
|
|
59
59
|
apiProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
60
60
|
proxyURL: PropTypes.Requireable<string>;
|
|
61
|
-
base_url: PropTypes.
|
|
62
|
-
space_id: PropTypes.
|
|
63
|
-
environment: PropTypes.
|
|
64
|
-
access_token: PropTypes.
|
|
61
|
+
base_url: PropTypes.Requireable<string>;
|
|
62
|
+
space_id: PropTypes.Requireable<string>;
|
|
63
|
+
environment: PropTypes.Requireable<string>;
|
|
64
|
+
access_token: PropTypes.Requireable<string>;
|
|
65
65
|
}>>>;
|
|
66
66
|
/** Content type ID to retrieve */
|
|
67
67
|
contentType: PropTypes.Validator<string>;
|
|
@@ -74,10 +74,10 @@ export declare namespace getContentfulEntryByEntryID {
|
|
|
74
74
|
/** Contentful API configuration */
|
|
75
75
|
apiProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
76
76
|
proxyURL: PropTypes.Requireable<string>;
|
|
77
|
-
base_url: PropTypes.
|
|
78
|
-
space_id: PropTypes.
|
|
79
|
-
environment: PropTypes.
|
|
80
|
-
delivery_access_token: PropTypes.
|
|
77
|
+
base_url: PropTypes.Requireable<string>;
|
|
78
|
+
space_id: PropTypes.Requireable<string>;
|
|
79
|
+
environment: PropTypes.Requireable<string>;
|
|
80
|
+
delivery_access_token: PropTypes.Requireable<string>;
|
|
81
81
|
}>>>;
|
|
82
82
|
/** Target entry ID */
|
|
83
83
|
entry_id: PropTypes.Validator<string>;
|
|
@@ -127,10 +127,10 @@ export declare namespace getContentfulAssets {
|
|
|
127
127
|
/** Contentful API configuration */
|
|
128
128
|
apiProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
129
129
|
proxyURL: PropTypes.Requireable<string>;
|
|
130
|
-
base_url: PropTypes.
|
|
131
|
-
space_id: PropTypes.
|
|
132
|
-
environment: PropTypes.
|
|
133
|
-
access_token: PropTypes.
|
|
130
|
+
base_url: PropTypes.Requireable<string>;
|
|
131
|
+
space_id: PropTypes.Requireable<string>;
|
|
132
|
+
environment: PropTypes.Requireable<string>;
|
|
133
|
+
access_token: PropTypes.Requireable<string>;
|
|
134
134
|
}>>>;
|
|
135
135
|
};
|
|
136
136
|
}
|
|
@@ -144,10 +144,10 @@ export declare namespace getContentfulAssetURLs {
|
|
|
144
144
|
/** Contentful API configuration */
|
|
145
145
|
apiProps: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
146
146
|
proxyURL: PropTypes.Requireable<string>;
|
|
147
|
-
base_url: PropTypes.
|
|
148
|
-
space_id: PropTypes.
|
|
149
|
-
environment: PropTypes.
|
|
150
|
-
access_token: PropTypes.
|
|
147
|
+
base_url: PropTypes.Requireable<string>;
|
|
148
|
+
space_id: PropTypes.Requireable<string>;
|
|
149
|
+
environment: PropTypes.Requireable<string>;
|
|
150
|
+
access_token: PropTypes.Requireable<string>;
|
|
151
151
|
}>>>;
|
|
152
152
|
};
|
|
153
153
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentful.items.components.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/contentful.items.components.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAWnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"contentful.items.components.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/contentful.items.components.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAWnD,OAAO,+BAA+B,CAAC;AACvC,OAAO,wBAAwB,CAAC;AAoBhC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,CAAC;AAC/E,wBAAgB,eAAe,CAAC,KAAK,EAAE,mBAAmB,2CA2GzD;yBA3Ge,eAAe;;QAN/B,0CAA0C;;QAEzC,gFAAgF;;;;AAmIjF,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACrF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,2CA6D/D;yBA7De,kBAAkB;;QANlC,mCAAmC;;QAElC,8CAA8C;;;;AAwF/C,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACzF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wBAAwB,2CASnE;yBATe,oBAAoB;;QARpC,sBAAsB;;QAErB,sCAAsC;;QAEtC,6CAA6C;;;;AAoC9C,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACzF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wBAAwB,2CAwInE;yBAxIe,oBAAoB;;QARpC,0CAA0C;;QAEzC,oCAAoC;;QAEpC,wEAAwE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flickr.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/flickr.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"flickr.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/flickr.ts"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAEnD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAkF5D,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAE,KAAK,EAAE,iBAAiB,gBA2DtD;yBA3De,aAAa;;QAN7B,sCAAsC;;QAErC,0DAA0D;;;;AA+E3D,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,uBAAuB;;;;;;;gBAejE;yBAfe,mBAAmB;;QANnC,yBAAyB;;QAExB,+BAA+B;;;;AAoDhC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAE,KAAK,EAAE,iBAAiB,2CA0CtD;yBA1Ce,aAAa;;QAjB7B,wBAAwB;;QAEvB,qBAAqB;;QAErB,qBAAqB;;QAErB,wBAAwB;;QAExB,wBAAwB;;QAExB,yDAAyD;;QAEzD,6EAA6E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.reviews.components.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/google.reviews.components.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,sBAAsB,CAAC;
|
|
1
|
+
{"version":3,"file":"google.reviews.components.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/google.reviews.components.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,sBAAsB,CAAC;AA6B9B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,qBAAqB,2CAqG7D;yBArGe,iBAAiB;;QAZjC,iCAAiC;;QAEhC,gDAAgD;;QAEhD,uCAAuC;;QAEvC,mDAAmD;;QAEnD,8BAA8B"}
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Google Places API Integration
|
|
3
|
+
* Handles autocomplete predictions and place details for address validation
|
|
4
|
+
*/
|
|
5
|
+
interface PlacePrediction {
|
|
6
|
+
placeId: string;
|
|
7
|
+
mainText: string;
|
|
8
|
+
secondaryText?: string;
|
|
9
|
+
fullText: string;
|
|
10
|
+
}
|
|
11
|
+
interface AddressComponent {
|
|
12
|
+
long_name: string;
|
|
13
|
+
short_name: string;
|
|
14
|
+
types: string[];
|
|
15
|
+
}
|
|
16
|
+
interface PlaceDetails {
|
|
17
|
+
street1?: string;
|
|
18
|
+
city?: string;
|
|
19
|
+
state?: string;
|
|
20
|
+
zip?: string;
|
|
21
|
+
country?: string;
|
|
22
|
+
formattedAddress: string;
|
|
23
|
+
addressComponents: AddressComponent[];
|
|
24
|
+
}
|
|
25
|
+
/**
|
|
26
|
+
* GooglePlacesService — Thin service for Google Places API interactions using googleapis
|
|
27
|
+
*/
|
|
28
|
+
export declare class GooglePlacesService {
|
|
29
|
+
private apiKey;
|
|
30
|
+
private sessionToken;
|
|
31
|
+
private requestCache;
|
|
32
|
+
private cacheTTL;
|
|
33
|
+
constructor(config?: any);
|
|
34
|
+
/**
|
|
35
|
+
* Generate or return cached session token for Places requests
|
|
36
|
+
*/
|
|
37
|
+
private generateSessionToken;
|
|
38
|
+
/**
|
|
39
|
+
* Get autocomplete predictions for a search input
|
|
40
|
+
* Uses Google Places Autocomplete API (web service version via googleapis)
|
|
41
|
+
*/
|
|
42
|
+
getPlacePredictions(input: string, config?: any): Promise<PlacePrediction[]>;
|
|
43
|
+
/**
|
|
44
|
+
* Get detailed place information including address components
|
|
45
|
+
*/
|
|
46
|
+
getPlaceDetails(placeId: string, config?: any): Promise<PlaceDetails | null>;
|
|
47
|
+
/**
|
|
48
|
+
* Validate that address is in allowed country
|
|
49
|
+
*/
|
|
50
|
+
isValidCountry(placeDetails: PlaceDetails, allowedCountries?: string[]): boolean;
|
|
51
|
+
/**
|
|
52
|
+
* Clear cached predictions
|
|
53
|
+
*/
|
|
54
|
+
clearCache(): void;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Factory function to get configured GooglePlacesService instance
|
|
58
|
+
*/
|
|
59
|
+
export declare function getGooglePlacesService(config?: any): GooglePlacesService;
|
|
60
|
+
export {};
|
|
61
|
+
//# sourceMappingURL=googleplaces.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"googleplaces.d.ts","sourceRoot":"","sources":["../../../../src/components/integrations/googleplaces.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,UAAU,eAAe;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,QAAQ,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,gBAAgB;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE,MAAM,CAAC;IACnB,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