@pixelated-tech/components 3.9.7 → 3.9.10
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/README.md +2 -0
- package/dist/components/admin/site-health/site-health-axe-core.js +2 -1
- package/dist/components/admin/site-health/site-health-uptime.integration.js +21 -2
- package/dist/components/config/config.js +3 -0
- package/dist/components/general/sitemap.js +2 -2
- package/dist/components/general/smartimage.js +1 -1
- package/dist/components/{utilities/functions.js → general/utilities.js} +3 -8
- package/dist/components/{general → integrations}/contentful.items.components.js +1 -1
- package/dist/components/{general → integrations}/flickr.js +1 -1
- package/dist/components/{general → integrations}/google.reviews.components.js +1 -1
- package/dist/components/{general → integrations}/instagram.components.js +2 -2
- package/dist/components/{general → integrations}/socialcard.js +2 -2
- package/dist/components/{general → integrations}/wordpress.components.js +3 -3
- package/dist/components/shoppingcart/ebay.components.js +1 -1
- package/dist/components/shoppingcart/ebay.functions.js +1 -1
- package/dist/components/shoppingcart/shoppingcart.functions.js +1 -1
- package/dist/components/sitebuilder/config/ConfigBuilder.js +1 -1
- package/dist/components/sitebuilder/form/formutils.js +1 -1
- package/dist/components/sitebuilder/page/components/PageEngine.js +1 -1
- package/dist/components/sitebuilder/page/lib/pageStorageContentful.js +2 -2
- package/dist/config/pixelated.config.json.enc +1 -0
- package/dist/index.adminserver.js +1 -1
- package/dist/index.js +21 -22
- package/dist/index.server.js +10 -18
- package/dist/scripts/build.sh +86 -0
- package/dist/scripts/config-vault.js +24 -9
- package/dist/scripts/config-vault.ts +24 -9
- package/dist/scripts/release.sh +232 -85
- package/dist/scripts/validate-exports.cjs +1 -1
- package/dist/scripts/validate-exports.js +1 -1
- package/dist/types/components/admin/site-health/site-health-uptime.integration.d.ts.map +1 -1
- package/dist/types/components/config/config.d.ts.map +1 -1
- package/dist/types/components/general/schema-blogposting.functions.d.ts +1 -1
- package/dist/types/components/general/schema-blogposting.functions.d.ts.map +1 -1
- package/dist/types/components/general/sitemap.d.ts.map +1 -1
- package/dist/types/components/{utilities/functions.d.ts → general/utilities.d.ts} +1 -2
- package/dist/types/components/general/utilities.d.ts.map +1 -0
- package/dist/types/components/integrations/calendly.d.ts.map +1 -0
- package/dist/types/components/integrations/cloudinary.d.ts.map +1 -0
- package/dist/types/components/integrations/contentful.delivery.d.ts.map +1 -0
- package/dist/types/components/integrations/contentful.items.components.d.ts.map +1 -0
- package/dist/types/components/integrations/contentful.management.d.ts.map +1 -0
- package/dist/types/components/{general → integrations}/flickr.d.ts +1 -1
- package/dist/types/components/integrations/flickr.d.ts.map +1 -0
- package/dist/types/components/integrations/gemini-api.client.d.ts.map +1 -0
- package/dist/types/components/integrations/gemini-api.server.d.ts.map +1 -0
- package/dist/types/components/integrations/google.reviews.components.d.ts.map +1 -0
- package/dist/types/components/integrations/google.reviews.functions.d.ts.map +1 -0
- package/dist/types/components/integrations/googleanalytics.d.ts.map +1 -0
- package/dist/types/components/integrations/googlemap.d.ts.map +1 -0
- package/dist/types/components/integrations/googlesearch.d.ts.map +1 -0
- package/dist/types/components/integrations/gravatar.components.d.ts.map +1 -0
- package/dist/types/components/integrations/gravatar.functions.d.ts.map +1 -0
- package/dist/types/components/integrations/hubspot.components.d.ts.map +1 -0
- package/dist/types/components/integrations/instagram.components.d.ts.map +1 -0
- package/dist/types/components/{general → integrations}/instagram.functions.d.ts +1 -1
- package/dist/types/components/integrations/instagram.functions.d.ts.map +1 -0
- package/dist/types/components/integrations/socialcard.d.ts.map +1 -0
- package/dist/types/components/integrations/wordpress.components.d.ts.map +1 -0
- package/dist/types/components/integrations/wordpress.functions.d.ts.map +1 -0
- package/dist/types/components/integrations/yelp.d.ts.map +1 -0
- package/dist/types/components/sitebuilder/form/formutils.d.ts +1 -1
- package/dist/types/components/sitebuilder/form/formutils.d.ts.map +1 -1
- package/dist/types/components/sitebuilder/page/lib/pageStorageContentful.d.ts +1 -1
- package/dist/types/components/sitebuilder/page/lib/pageStorageContentful.d.ts.map +1 -1
- package/dist/types/index.adminserver.d.ts +1 -1
- package/dist/types/index.d.ts +21 -22
- package/dist/types/index.server.d.ts +10 -10
- package/dist/types/stories/general/contentful.item.stories.d.ts +1 -1
- package/dist/types/stories/general/contentful.item.stories.d.ts.map +1 -1
- package/dist/types/stories/general/contentful.items.stories.d.ts +1 -1
- package/dist/types/stories/general/contentful.items.stories.d.ts.map +1 -1
- package/dist/types/stories/general/google.reviews.stories.d.ts +1 -1
- package/dist/types/stories/general/google.reviews.stories.d.ts.map +1 -1
- package/dist/types/stories/general/googleanalytics.stories.d.ts +1 -1
- package/dist/types/stories/general/googleanalytics.stories.d.ts.map +1 -1
- package/dist/types/stories/general/googlesearch.stories.d.ts +1 -1
- package/dist/types/stories/general/googlesearch.stories.d.ts.map +1 -1
- package/dist/types/stories/general/gravatar.stories.d.ts +1 -1
- package/dist/types/stories/general/gravatar.stories.d.ts.map +1 -1
- package/dist/types/stories/general/instagram.stories.d.ts +1 -1
- package/dist/types/stories/general/instagram.stories.d.ts.map +1 -1
- package/dist/types/stories/general/socialcard.stories.d.ts +1 -1
- package/dist/types/stories/general/socialcard.stories.d.ts.map +1 -1
- package/dist/types/stories/general/wordpress.stories.d.ts +1 -1
- package/dist/types/stories/general/wordpress.stories.d.ts.map +1 -1
- package/dist/types/tests/utilities.test.d.ts +2 -0
- package/dist/types/tests/utilities.test.d.ts.map +1 -0
- package/package.json +14 -11
- package/dist/config/pixelated.config.json +0 -85
- package/dist/test/config.mock.js +0 -13
- package/dist/test/run-analyzeGitHealth.js +0 -50
- package/dist/test/setup.js +0 -46
- package/dist/test/test-utils.js +0 -23
- package/dist/types/components/general/calendly.d.ts.map +0 -1
- package/dist/types/components/general/cloudinary.d.ts.map +0 -1
- package/dist/types/components/general/contentful.delivery.d.ts.map +0 -1
- package/dist/types/components/general/contentful.items.components.d.ts.map +0 -1
- package/dist/types/components/general/contentful.management.d.ts.map +0 -1
- package/dist/types/components/general/flickr.d.ts.map +0 -1
- package/dist/types/components/general/google.reviews.components.d.ts.map +0 -1
- package/dist/types/components/general/google.reviews.functions.d.ts.map +0 -1
- package/dist/types/components/general/googleanalytics.d.ts.map +0 -1
- package/dist/types/components/general/googlemap.d.ts.map +0 -1
- package/dist/types/components/general/googlesearch.d.ts.map +0 -1
- package/dist/types/components/general/gravatar.components.d.ts.map +0 -1
- package/dist/types/components/general/gravatar.functions.d.ts.map +0 -1
- package/dist/types/components/general/hubspot.components.d.ts.map +0 -1
- package/dist/types/components/general/instagram.components.d.ts.map +0 -1
- package/dist/types/components/general/instagram.functions.d.ts.map +0 -1
- package/dist/types/components/general/socialcard.d.ts.map +0 -1
- package/dist/types/components/general/wordpress.components.d.ts.map +0 -1
- package/dist/types/components/general/wordpress.functions.d.ts.map +0 -1
- package/dist/types/components/general/yelp.d.ts.map +0 -1
- package/dist/types/components/utilities/functions.d.ts.map +0 -1
- package/dist/types/components/utilities/gemini-api.client.d.ts.map +0 -1
- package/dist/types/components/utilities/gemini-api.server.d.ts.map +0 -1
- package/dist/types/tests/functions.test.d.ts +0 -2
- package/dist/types/tests/functions.test.d.ts.map +0 -1
- /package/dist/components/{general → integrations}/calendly.js +0 -0
- /package/dist/components/{general → integrations}/cloudinary.js +0 -0
- /package/dist/components/{general → integrations}/contentful.delivery.js +0 -0
- /package/dist/components/{general → integrations}/contentful.items.css +0 -0
- /package/dist/components/{general → integrations}/contentful.management.js +0 -0
- /package/dist/components/{utilities → integrations}/gemini-api.client.js +0 -0
- /package/dist/components/{utilities → integrations}/gemini-api.server.js +0 -0
- /package/dist/components/{general → integrations}/google.reviews.css +0 -0
- /package/dist/components/{general → integrations}/google.reviews.functions.js +0 -0
- /package/dist/components/{general → integrations}/googleanalytics.js +0 -0
- /package/dist/components/{general → integrations}/googlemap.js +0 -0
- /package/dist/components/{general → integrations}/googlesearch.css +0 -0
- /package/dist/components/{general → integrations}/googlesearch.js +0 -0
- /package/dist/components/{general → integrations}/gravatar.components.js +0 -0
- /package/dist/components/{general → integrations}/gravatar.css +0 -0
- /package/dist/components/{general → integrations}/gravatar.functions.js +0 -0
- /package/dist/components/{general → integrations}/hubspot.components.js +0 -0
- /package/dist/components/{general → integrations}/instagram.functions.js +0 -0
- /package/dist/components/{general → integrations}/socialcard.css +0 -0
- /package/dist/components/{general → integrations}/wordpress.css +0 -0
- /package/dist/components/{general → integrations}/wordpress.functions.js +0 -0
- /package/dist/components/{general → integrations}/yelp.js +0 -0
- /package/dist/types/components/{general → integrations}/calendly.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/cloudinary.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/contentful.delivery.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/contentful.items.components.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/contentful.management.d.ts +0 -0
- /package/dist/types/components/{utilities → integrations}/gemini-api.client.d.ts +0 -0
- /package/dist/types/components/{utilities → integrations}/gemini-api.server.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/google.reviews.components.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/google.reviews.functions.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/googleanalytics.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/googlemap.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/googlesearch.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/gravatar.components.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/gravatar.functions.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/hubspot.components.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/instagram.components.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/socialcard.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/wordpress.components.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/wordpress.functions.d.ts +0 -0
- /package/dist/types/components/{general → integrations}/yelp.d.ts +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"formutils.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/form/formutils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"formutils.d.ts","sourceRoot":"","sources":["../../../../../src/components/sitebuilder/form/formutils.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAEhF,eAAO,MAAM,KAAK,QAAQ,CAAC;AAE3B;;GAEG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAWzD;AAED;;GAEG;AACH,wBAAgB,iBAAiB,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CA+ItE;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,GAAG,CAwBvC;AAED;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,GAAG,GAAG,IAAI,CAgBpD;AAGD,OAAO,EAAE,WAAW,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*
|
|
4
4
|
* Uses generic Contentful management functions with PageBuilder-specific logic
|
|
5
5
|
*/
|
|
6
|
-
import type { ContentfulConfig } from '../../../
|
|
6
|
+
import type { ContentfulConfig } from '../../../integrations/contentful.management';
|
|
7
7
|
import type { PageData } from './types';
|
|
8
8
|
import type { ListPagesResponse, LoadPageResponse, SavePageResponse, DeletePageResponse } from './pageStorageTypes';
|
|
9
9
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pageStorageContentful.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sitebuilder/page/lib/pageStorageContentful.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"pageStorageContentful.d.ts","sourceRoot":"","sources":["../../../../../../src/components/sitebuilder/page/lib/pageStorageContentful.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAGpF,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACxC,OAAO,KAAK,EACX,iBAAiB,EACjB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,oBAAoB,CAAC;AAW5B;;GAEG;AACH,wBAAsB,mBAAmB,CACxC,MAAM,EAAE,gBAAgB,GACtB,OAAO,CAAC,iBAAiB,CAAC,CAoB5B;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACvC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,gBAAgB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CAgC3B;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CACvC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,QAAQ,EACd,MAAM,EAAE,gBAAgB,GACtB,OAAO,CAAC,gBAAgB,CAAC,CA6C3B;AAED;;GAEG;AACH,wBAAsB,oBAAoB,CACzC,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,gBAAgB,GACtB,OAAO,CAAC,kBAAkB,CAAC,CAgC7B"}
|
|
@@ -18,5 +18,5 @@ export * from "./components/admin/site-health/site-health-types";
|
|
|
18
18
|
export * from "./components/admin/site-health/site-health-uptime.integration";
|
|
19
19
|
export * from "./components/admin/site-health/site-health-utils";
|
|
20
20
|
export * from "./components/admin/sites/sites.integration";
|
|
21
|
-
export * from "./components/
|
|
21
|
+
export * from "./components/integrations/contentful.management";
|
|
22
22
|
//# sourceMappingURL=index.adminserver.d.ts.map
|
package/dist/types/index.d.ts
CHANGED
|
@@ -6,28 +6,12 @@ export * from "./components/general/404";
|
|
|
6
6
|
export * from "./components/general/accordion";
|
|
7
7
|
export * from "./components/general/buzzwordbingo";
|
|
8
8
|
export * from "./components/general/cache-manager";
|
|
9
|
-
export * from "./components/general/calendly";
|
|
10
9
|
export * from "./components/general/callout";
|
|
11
10
|
export * from "./components/general/carousel";
|
|
12
11
|
export * from "./components/general/carousel.drag";
|
|
13
|
-
export * from "./components/general/cloudinary";
|
|
14
|
-
export * from "./components/general/contentful.delivery";
|
|
15
|
-
export * from "./components/general/contentful.items.components";
|
|
16
|
-
export * from "./components/general/contentful.management";
|
|
17
12
|
export * from "./components/general/css";
|
|
18
13
|
export * from "./components/general/faq-accordion";
|
|
19
|
-
export * from "./components/general/flickr";
|
|
20
|
-
export * from "./components/general/google.reviews.components";
|
|
21
|
-
export * from "./components/general/google.reviews.functions";
|
|
22
|
-
export * from "./components/general/googleanalytics";
|
|
23
|
-
export * from "./components/general/googlemap";
|
|
24
|
-
export * from "./components/general/googlesearch";
|
|
25
|
-
export * from "./components/general/gravatar.components";
|
|
26
|
-
export * from "./components/general/gravatar.functions";
|
|
27
|
-
export * from "./components/general/hubspot.components";
|
|
28
14
|
export * from "./components/general/image";
|
|
29
|
-
export * from "./components/general/instagram.components";
|
|
30
|
-
export * from "./components/general/instagram.functions";
|
|
31
15
|
export * from "./components/general/intersection-observer";
|
|
32
16
|
export * from "./components/general/loading";
|
|
33
17
|
export * from "./components/general/splitscroll";
|
|
@@ -55,14 +39,31 @@ export * from "./components/general/semantic";
|
|
|
55
39
|
export * from "./components/general/sidepanel";
|
|
56
40
|
export * from "./components/general/sitemap";
|
|
57
41
|
export * from "./components/general/smartimage";
|
|
58
|
-
export * from "./components/general/socialcard";
|
|
59
42
|
export * from "./components/general/tab";
|
|
60
43
|
export * from "./components/general/table";
|
|
61
44
|
export * from "./components/general/tiles";
|
|
62
45
|
export * from "./components/general/timeline";
|
|
63
|
-
export * from "./components/
|
|
64
|
-
export * from "./components/
|
|
65
|
-
export * from "./components/
|
|
46
|
+
export * from "./components/integrations/calendly";
|
|
47
|
+
export * from "./components/integrations/cloudinary";
|
|
48
|
+
export * from "./components/integrations/contentful.delivery";
|
|
49
|
+
export * from "./components/integrations/contentful.items.components";
|
|
50
|
+
export * from "./components/integrations/contentful.management";
|
|
51
|
+
export * from "./components/integrations/flickr";
|
|
52
|
+
export * from "./components/integrations/google.reviews.components";
|
|
53
|
+
export * from "./components/integrations/google.reviews.functions";
|
|
54
|
+
export * from "./components/integrations/googleanalytics";
|
|
55
|
+
export * from "./components/integrations/googlemap";
|
|
56
|
+
export * from "./components/integrations/googlesearch";
|
|
57
|
+
export * from "./components/integrations/gravatar.components";
|
|
58
|
+
export * from "./components/integrations/gravatar.functions";
|
|
59
|
+
export * from "./components/integrations/hubspot.components";
|
|
60
|
+
export * from "./components/integrations/instagram.components";
|
|
61
|
+
export * from "./components/integrations/instagram.functions";
|
|
62
|
+
export * from "./components/integrations/socialcard";
|
|
63
|
+
export * from "./components/integrations/gemini-api.client";
|
|
64
|
+
export * from "./components/integrations/wordpress.components";
|
|
65
|
+
export * from "./components/integrations/wordpress.functions";
|
|
66
|
+
export * from "./components/integrations/yelp";
|
|
66
67
|
export * from "./components/shoppingcart/ebay.components";
|
|
67
68
|
export * from "./components/shoppingcart/ebay.functions";
|
|
68
69
|
export * from "./components/shoppingcart/paypal";
|
|
@@ -97,6 +98,4 @@ export * from "./components/sitebuilder/page/lib/pageStorageTypes";
|
|
|
97
98
|
export * from "./components/sitebuilder/page/lib/propTypeIntrospection";
|
|
98
99
|
export * from "./components/sitebuilder/page/lib/types";
|
|
99
100
|
export * from "./components/sitebuilder/page/lib/usePageBuilder";
|
|
100
|
-
export * from "./components/utilities/functions";
|
|
101
|
-
export * from "./components/utilities/gemini-api.client";
|
|
102
101
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -5,13 +5,6 @@ export * from "./components/config/config.types";
|
|
|
5
5
|
export * from "./components/config/config.utils";
|
|
6
6
|
export * from "./components/config/config.validators";
|
|
7
7
|
export * from "./components/config/crypto";
|
|
8
|
-
export * from "./components/general/contentful.delivery";
|
|
9
|
-
export * from "./components/general/contentful.management";
|
|
10
|
-
export * from "./components/general/flickr";
|
|
11
|
-
export * from "./components/general/googlemap";
|
|
12
|
-
export * from "./components/general/google.reviews.functions";
|
|
13
|
-
export * from "./components/general/gravatar.functions";
|
|
14
|
-
export * from "./components/general/instagram.functions";
|
|
15
8
|
export * from "./components/general/manifest";
|
|
16
9
|
export * from "./components/general/metadata.functions";
|
|
17
10
|
export * from "./components/general/proxy-handler";
|
|
@@ -24,7 +17,16 @@ export * from "./components/general/schema-recipe";
|
|
|
24
17
|
export * from "./components/general/schema-services";
|
|
25
18
|
export * from "./components/general/schema-website";
|
|
26
19
|
export * from "./components/general/sitemap";
|
|
27
|
-
export * from "./components/general/
|
|
20
|
+
export * from "./components/general/utilities";
|
|
21
|
+
export * from "./components/integrations/contentful.delivery";
|
|
22
|
+
export * from "./components/integrations/contentful.management";
|
|
23
|
+
export * from "./components/integrations/flickr";
|
|
24
|
+
export * from "./components/integrations/gemini-api.server";
|
|
25
|
+
export * from "./components/integrations/googlemap";
|
|
26
|
+
export * from "./components/integrations/google.reviews.functions";
|
|
27
|
+
export * from "./components/integrations/gravatar.functions";
|
|
28
|
+
export * from "./components/integrations/instagram.functions";
|
|
29
|
+
export * from "./components/integrations/wordpress.functions";
|
|
28
30
|
export * from "./components/shoppingcart/ebay.functions";
|
|
29
31
|
export * from "./components/sitebuilder/config/ConfigEngine";
|
|
30
32
|
export * from "./components/sitebuilder/config/fonts";
|
|
@@ -39,6 +41,4 @@ export * from "./components/sitebuilder/page/lib/pageStorageLocal";
|
|
|
39
41
|
export * from "./components/sitebuilder/page/lib/pageStorageTypes";
|
|
40
42
|
export * from "./components/sitebuilder/page/lib/propTypeIntrospection";
|
|
41
43
|
export * from "./components/sitebuilder/page/lib/types";
|
|
42
|
-
export * from "./components/utilities/functions";
|
|
43
|
-
export * from "./components/utilities/gemini-api.server";
|
|
44
44
|
//# sourceMappingURL=index.server.d.ts.map
|
|
@@ -8,5 +8,5 @@ export namespace ContentfulItemDetailPage {
|
|
|
8
8
|
let entry_id: string;
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
import { ContentfulItemDetail } from '@/components/
|
|
11
|
+
import { ContentfulItemDetail } from '@/components/integrations/contentful.items.components';
|
|
12
12
|
//# sourceMappingURL=contentful.item.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentful.item.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/contentful.item.stories.js"],"names":[],"mappings":";;;;;;;;;;qCACqC,
|
|
1
|
+
{"version":3,"file":"contentful.item.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/contentful.item.stories.js"],"names":[],"mappings":";;;;;;;;;;qCACqC,uDAAuD"}
|
|
@@ -6,5 +6,5 @@ export default _default;
|
|
|
6
6
|
export namespace ContentfulItemsGrid {
|
|
7
7
|
let args: {};
|
|
8
8
|
}
|
|
9
|
-
import { ContentfulItems } from '@/components/
|
|
9
|
+
import { ContentfulItems } from '@/components/integrations/contentful.items.components';
|
|
10
10
|
//# sourceMappingURL=contentful.items.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"contentful.items.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/contentful.items.stories.js"],"names":[],"mappings":";;;;;;;;gCACgC,
|
|
1
|
+
{"version":3,"file":"contentful.items.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/contentful.items.stories.js"],"names":[],"mappings":";;;;;;;;gCACgC,uDAAuD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"google.reviews.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/google.reviews.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"google.reviews.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/google.reviews.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,iBAAiB,EAAE,MAAM,qDAAqD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExF,wBAeE;AAIF,eAAO,MAAM,oBAAoB,EAAE,GAAuB,CAAC"}
|
|
@@ -10,5 +10,5 @@ export namespace Google_Analytics_Props {
|
|
|
10
10
|
let args_1: {};
|
|
11
11
|
export { args_1 as args };
|
|
12
12
|
}
|
|
13
|
-
import { GoogleAnalytics } from '@/components/
|
|
13
|
+
import { GoogleAnalytics } from '@/components/integrations/googleanalytics';
|
|
14
14
|
//# sourceMappingURL=googleanalytics.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"googleanalytics.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/googleanalytics.stories.js"],"names":[],"mappings":";;;;;;;;;;;;gCACgC,
|
|
1
|
+
{"version":3,"file":"googleanalytics.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/googleanalytics.stories.js"],"names":[],"mappings":";;;;;;;;;;;;gCACgC,2CAA2C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"googlesearch.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/googlesearch.stories.js"],"names":[],"mappings":";;;;;;;;;;6BAA6B,
|
|
1
|
+
{"version":3,"file":"googlesearch.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/googlesearch.stories.js"],"names":[],"mappings":";;;;;;;;;;6BAA6B,wCAAwC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gravatar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/gravatar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAyB,MAAM,
|
|
1
|
+
{"version":3,"file":"gravatar.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/gravatar.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAyB,MAAM,+CAA+C,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BpG,wBAmCE;AAEF,eAAO,MAAM,mBAAmB;WAAU,GAAG;;;;;;;;CAAuC,CAAC;AASrF,eAAO,MAAM,mBAAmB;WAAU,GAAG;;;;;;;;;;;;;;;;;CAAuC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"instagram.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/instagram.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"instagram.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/instagram.stories.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,gDAAgD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEhF,wBAmBE;AAIF,eAAO,MAAM,gBAAgB,EAAE,GAAuB,CAAC;AAGvD,eAAO,MAAM,qBAAqB,EAAE,GAAuB,CAAC"}
|
|
@@ -8,7 +8,7 @@ export namespace SocialCardStory {
|
|
|
8
8
|
export { mySources as sources };
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
|
-
import { SocialCards } from '@/components/
|
|
11
|
+
import { SocialCards } from '@/components/integrations/socialcard';
|
|
12
12
|
declare namespace mySources {
|
|
13
13
|
namespace SOOpx {
|
|
14
14
|
let url: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"socialcard.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/socialcard.stories.js"],"names":[],"mappings":";;;;;;;;;;4BAC4B,
|
|
1
|
+
{"version":3,"file":"socialcard.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/socialcard.stories.js"],"names":[],"mappings":";;;;;;;;;;4BAC4B,sCAAsC"}
|
|
@@ -39,5 +39,5 @@ export namespace WordPressBlogList {
|
|
|
39
39
|
}
|
|
40
40
|
export { args_1 as args };
|
|
41
41
|
}
|
|
42
|
-
import { BlogPostList } from '@/components/
|
|
42
|
+
import { BlogPostList } from '@/components/integrations/wordpress.components';
|
|
43
43
|
//# sourceMappingURL=wordpress.stories.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wordpress.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/wordpress.stories.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,sFAAqD;;;;;;;;;6BAzBxB,
|
|
1
|
+
{"version":3,"file":"wordpress.stories.d.ts","sourceRoot":"","sources":["../../../../src/stories/general/wordpress.stories.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,sFAAqD;;;;;;;;;6BAzBxB,gDAAgD"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"utilities.test.d.ts","sourceRoot":"","sources":["../../../src/tests/utilities.test.ts"],"names":[],"mappings":""}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pixelated-tech/components",
|
|
3
|
-
"version": "3.9.
|
|
3
|
+
"version": "3.9.10",
|
|
4
4
|
"private": false,
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Pixelated Technologies",
|
|
@@ -59,14 +59,7 @@
|
|
|
59
59
|
"path": false
|
|
60
60
|
},
|
|
61
61
|
"scripts": {
|
|
62
|
-
"build": "
|
|
63
|
-
"build-webpack": "webpack --config webpack.config.cjs && tsc --emitDeclarationOnly --outDir dist/types",
|
|
64
|
-
"buildClean": "rm -rf dist",
|
|
65
|
-
"tsc": "npx tsc --project tsconfig.json",
|
|
66
|
-
"tscClean": "rm -rf dist/{images,stories,tests}",
|
|
67
|
-
"rsync": "(cd src && tar -cf - $(find . -name \"*.css\" -o -name \"*.scss\" -o -name \"*.json\") scripts/) | tar -C dist -xf -",
|
|
68
|
-
"rsync1": "find src -type f \\( -name \"*.css\" -o -name \"*.scss\" -o -name \"*.json\" \\) -exec sh -c 'mkdir -p dist/$(dirname \"${1#src/}\") && cp \"$1\" dist/\"${1#src/}\"' _ {} \\; ; find src/scripts -type f -exec sh -c 'mkdir -p dist/$(dirname \"${1#src/}\") && cp \"$1\" dist/\"${1#src/}\"' _ {} \\;",
|
|
69
|
-
"rsync2": "rsync -a --include='*.css' --include='*.scss' --include='*.json' --include='scripts/**' --include='*/' --exclude='*' src/ dist",
|
|
62
|
+
"build": "bash src/scripts/build.sh",
|
|
70
63
|
"validate-exports": "npx tsx src/scripts/validate-exports.js",
|
|
71
64
|
"copy2brianwhaley": "rm -rf ../brianwhaley/node_modules/@pixelated-tech/components/dist && cp -r dist ../brianwhaley/node_modules/@pixelated-tech/components/",
|
|
72
65
|
"copy2informationfocus": "rm -rf ../informationfocus/node_modules/@pixelated-tech/components/dist && cp -r dist ../informationfocus/node_modules/@pixelated-tech/components/",
|
|
@@ -91,6 +84,16 @@
|
|
|
91
84
|
"config:encrypt": "npm run config:vault -- encrypt src/config/pixelated.config.json",
|
|
92
85
|
"config:decrypt": "npm run config:vault -- decrypt src/config/pixelated.config.json"
|
|
93
86
|
},
|
|
87
|
+
"scripts-20260113": {
|
|
88
|
+
"build": "npm run validate-exports && npm run buildClean && npm run tsc && npm run rsync && npm run tscClean ",
|
|
89
|
+
"build-webpack": "webpack --config webpack.config.cjs && tsc --emitDeclarationOnly --outDir dist/types",
|
|
90
|
+
"buildClean": "rm -rf dist",
|
|
91
|
+
"tsc": "npx tsc --project tsconfig.json",
|
|
92
|
+
"tscClean": "rm -rf dist/{images,stories,tests}",
|
|
93
|
+
"rsync": "(cd src && tar -cf - $(find . -name \"*.css\" -o -name \"*.scss\" -o -name \"*.json\") scripts/) | tar -C dist -xf -",
|
|
94
|
+
"rsync1": "find src -type f \\( -name \"*.css\" -o -name \"*.scss\" -o -name \"*.json\" \\) -exec sh -c 'mkdir -p dist/$(dirname \"${1#src/}\") && cp \"$1\" dist/\"${1#src/}\"' _ {} \\; ; find src/scripts -type f -exec sh -c 'mkdir -p dist/$(dirname \"${1#src/}\") && cp \"$1\" dist/\"${1#src/}\"' _ {} \\;",
|
|
95
|
+
"rsync2": "rsync -a --include='*.css' --include='*.scss' --include='*.json' --include='scripts/**' --include='*/' --exclude='*' src/ dist"
|
|
96
|
+
},
|
|
94
97
|
"scripts-old": {
|
|
95
98
|
"buildBabel": "npm run buildClean && NODE_ENV=production babel src --out-dir dist --copy-files",
|
|
96
99
|
"build-webpack": "rm -rf dist && npx tsc --project tsconfig.json && webpack --config webpack.config.js && npm run build-webpack-rsync",
|
|
@@ -118,7 +121,7 @@
|
|
|
118
121
|
"@testing-library/react": "^16.3.1",
|
|
119
122
|
"@testing-library/user-event": "^14.6.1",
|
|
120
123
|
"@types/md5": "^2.3.6",
|
|
121
|
-
"@types/node": "^25.0.
|
|
124
|
+
"@types/node": "^25.0.8",
|
|
122
125
|
"@types/prop-types": "^15.7.15",
|
|
123
126
|
"@types/react": "^19.2.8",
|
|
124
127
|
"@types/react-dom": "^19.2.3",
|
|
@@ -137,7 +140,7 @@
|
|
|
137
140
|
"eslint-config-standard": "^17.0.0",
|
|
138
141
|
"eslint-plugin-import": "^2.32.0",
|
|
139
142
|
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
140
|
-
"eslint-plugin-n": "^17.23.
|
|
143
|
+
"eslint-plugin-n": "^17.23.2",
|
|
141
144
|
"eslint-plugin-promise": "^7.2.1",
|
|
142
145
|
"eslint-plugin-react": "^7.37.4",
|
|
143
146
|
"eslint-plugin-storybook": "^10.1.11",
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"global": {
|
|
3
|
-
"proxyUrl": "https://proxy.pixelated.tech/prod/proxy?url="
|
|
4
|
-
},
|
|
5
|
-
"cloudinary": {
|
|
6
|
-
"product_env": "dlbon7tpq",
|
|
7
|
-
"baseUrl": "https://res.cloudinary.com",
|
|
8
|
-
"secure": true,
|
|
9
|
-
"transforms": "f_auto,c_limit,q_auto,dpr_auto"
|
|
10
|
-
},
|
|
11
|
-
"contentful": {
|
|
12
|
-
"proxyURL": "https://proxy.pixelated.tech/prod/proxy?url=",
|
|
13
|
-
"base_url": "https://cdn.contentful.com",
|
|
14
|
-
"space_id": "ank9sh265hdu",
|
|
15
|
-
"environment": "master",
|
|
16
|
-
"delivery_access_token": "gcbxpeK2rfX4esUvaA9Hn_ngVuez03YfnGp5DHyVh5A",
|
|
17
|
-
"management_access_token": "CFPAT-CZmIOPsdKL7IU9UV6oVSTvM91MW9Se4g52gmBn-WlA4",
|
|
18
|
-
"preview_access_token": "W1Dw8BN_YzvqRoymEYDjBABQB3ulxTR421m2VfiLCyw"
|
|
19
|
-
},
|
|
20
|
-
"ebay": {
|
|
21
|
-
"proxyURL": "https://proxy.pixelated.tech/prod/proxy?url=",
|
|
22
|
-
"appId": "BrianWha-Pixelate-PRD-1fb4458de-1a8431fe",
|
|
23
|
-
"appDevId": "fa7b86b5-3a10-43ae-bf6f-497aa4e55ddd",
|
|
24
|
-
"appCertId": "PRD-fb4458deef01-0d54-496a-b572-a04b",
|
|
25
|
-
"sbxAppId": "BrianWha-Pixelate-SBX-ad482b6ae-8cb8fead",
|
|
26
|
-
"sbxAppDevId": "fa7b86b5-3a10-43ae-bf6f-497aa4e55ddd",
|
|
27
|
-
"sbxAppCertId": "SBX-d482b6ae0d62-f57c-4d3c-88b7-22ec",
|
|
28
|
-
"globalId": "EBAY_US",
|
|
29
|
-
"environment": "production",
|
|
30
|
-
"tokenScope": "https://api.ebay.com/oauth/api_scope",
|
|
31
|
-
"baseTokenURL": "https://api.ebay.com/identity/v1/oauth2/token",
|
|
32
|
-
"baseSearchURL": "https://api.ebay.com/buy/browse/v1/item_summary/search",
|
|
33
|
-
"baseAnalyticsURL": "https://api.ebay.com/developer/analytics/v1_beta",
|
|
34
|
-
"qsSearchURL": "?q=sunglasses&fieldgroups=full&category_ids=79720&aspect_filter=categoryId:79720&filter=sellers:{pixelatedtech}&sort=newlyListed&limit=200",
|
|
35
|
-
"baseItemURL": "https://api.ebay.com/buy/browse/v1/item",
|
|
36
|
-
"qsItemURL": "/v1|295959752403|0?fieldgroups=PRODUCT,ADDITIONAL_SELLER_DETAILS",
|
|
37
|
-
"itemCategory": "79720",
|
|
38
|
-
"cacheTTL": 86400000
|
|
39
|
-
},
|
|
40
|
-
"flickr": {
|
|
41
|
-
"baseURL": "https://api.flickr.com/services/rest/?",
|
|
42
|
-
"urlProps": {
|
|
43
|
-
"method": "flickr.photos.search",
|
|
44
|
-
"api_key": "882cab5548d53c9e6b5fb24d59cc321d",
|
|
45
|
-
"user_id": "15473210@N04",
|
|
46
|
-
"tags": "pixelatedviewsgallery",
|
|
47
|
-
"extras": "date_taken,description,owner_name",
|
|
48
|
-
"sort": "date-taken-desc",
|
|
49
|
-
"per_page": 500,
|
|
50
|
-
"format": "json",
|
|
51
|
-
"photoSize": "Medium",
|
|
52
|
-
"nojsoncallback": "true"
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"google": {
|
|
56
|
-
"client_id": "80165502504-j9d4l6qpfmvjkfetn261dsobivluj75c.apps.googleusercontent.com",
|
|
57
|
-
"client_secret": "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",
|
|
58
|
-
"api_key": "AIzaSyBJVi0O9Ir9imRgINLZbojTifatX-Z4aUs",
|
|
59
|
-
"refresh_token": "1//05NlarHOjB4fOCgYIARAAGAUSNgF-L9IrszHlwYnNU2fz5YtMHEyjVTYZ_SmOEQdw_qA64M1fJB7tHCQmMakQxpfFK-8A80sc0g"
|
|
60
|
-
},
|
|
61
|
-
"googleAnalytics": {
|
|
62
|
-
"id": "G-1J1W90VBE1",
|
|
63
|
-
"adId": "AW-17721931789"
|
|
64
|
-
},
|
|
65
|
-
"googleSearchConsole": {
|
|
66
|
-
"id": "009500278966481927899:bcssp73qony"
|
|
67
|
-
},
|
|
68
|
-
"googleMaps": {
|
|
69
|
-
"apiKey": "AIzaSyBJVi0O9Ir9imRgINLZbojTifatX-Z4aUs"
|
|
70
|
-
},
|
|
71
|
-
"nextAuth": {
|
|
72
|
-
"secret": "RZJ0yls+FdikOyfQ8UX0MB4bJFS9e73Wfaai1EVsUi8=",
|
|
73
|
-
"url": "https://localhost:3006"
|
|
74
|
-
},
|
|
75
|
-
"paypal": {
|
|
76
|
-
"sandboxPayPalApiKey": "AT10GG2ZHoApTtEw7dJoU6XRDYkf3wEvK2k_-eZ9GOvOK-REphG8yKCyZCqFi95OrxKgrdctlfWxayHG",
|
|
77
|
-
"sandboxPayPalSecret": "EDUrdPonwcNYZwO5j7hNmFSmF-13zptaCndUnO0-Vr_j0GYEW4m-Tfar9IaukHwm0ixL5fUojOOFtZVk",
|
|
78
|
-
"payPalApiKey": "AeWRwYpsrfslATCndF6xjL4GLcqA1UxQZLC5vxQE-FTvPezXfLbCJO_uAFk5zoXUKRFnP-zJ_73yEkBE",
|
|
79
|
-
"payPalSecret": "EBvYvynRXZCI6RbK4rg2NiENNG4N8tbgl8qAmpxB6f9nUkZjXMODxXJZ91JycP439kPrQcnB7uRKp0-F"
|
|
80
|
-
},
|
|
81
|
-
"wordpress": {
|
|
82
|
-
"baseURL": "https://public-api.wordpress.com/rest/v1/sites/",
|
|
83
|
-
"site": "blog.pixelated.tech"
|
|
84
|
-
}
|
|
85
|
-
}
|
package/dist/test/config.mock.js
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import configJson from '@/config/pixelated.config.json';
|
|
2
|
-
/**
|
|
3
|
-
* Standard mock configuration derived from the main pixelated.config.json.
|
|
4
|
-
* Used as the default configuration for renderWithProviders in tests.
|
|
5
|
-
*/
|
|
6
|
-
export const mockConfig = configJson;
|
|
7
|
-
/**
|
|
8
|
-
* Helper to create a partial configuration override for specific test cases.
|
|
9
|
-
*/
|
|
10
|
-
export const createMockConfig = (overrides) => ({
|
|
11
|
-
...mockConfig,
|
|
12
|
-
...overrides,
|
|
13
|
-
});
|
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
import fs from 'fs';
|
|
2
|
-
import path from 'path';
|
|
3
|
-
import { getFullPixelatedConfig } from '../components/config/config';
|
|
4
|
-
import { analyzeGitHealth } from '../components/admin/site-health/site-health-github.integration';
|
|
5
|
-
// Usage:
|
|
6
|
-
// 1) With a siteName: `tsx src/tests/harness/run-analyzeGitHealth.ts <siteName> [startDate] [endDate]`
|
|
7
|
-
// - Uses sites.json to find site and performs real GitHub fetches (requires token in pixelated.config.json)
|
|
8
|
-
// 2) Without args: runs a quick stubbed run that can reproduce pagination behavior locally
|
|
9
|
-
async function runWithSite(siteName, startDate, endDate) {
|
|
10
|
-
const cfg = getFullPixelatedConfig();
|
|
11
|
-
const token = cfg?.github?.token;
|
|
12
|
-
if (!token) {
|
|
13
|
-
console.error('No github token available in config. Add github.token to pixelated.config.json or run without args to do a stub run.');
|
|
14
|
-
process.exit(1);
|
|
15
|
-
}
|
|
16
|
-
const sitesPath = path.join(process.cwd(), 'src', 'app', 'data', 'sites.json');
|
|
17
|
-
const sitesData = fs.readFileSync(sitesPath, 'utf8');
|
|
18
|
-
const sites = JSON.parse(sitesData);
|
|
19
|
-
const site = sites.find((s) => s.name === siteName);
|
|
20
|
-
if (!site) {
|
|
21
|
-
console.error('Site not found in sites.json');
|
|
22
|
-
process.exit(1);
|
|
23
|
-
}
|
|
24
|
-
// Use real fetch for this run
|
|
25
|
-
const res = await analyzeGitHealth(site, startDate, endDate);
|
|
26
|
-
// console.log('Result:', JSON.stringify(res, null, 2));
|
|
27
|
-
}
|
|
28
|
-
async function runStubbed() {
|
|
29
|
-
// Provide a global fetch that simulates commits only (no tag pagination)
|
|
30
|
-
globalThis.fetch = async (input, init) => {
|
|
31
|
-
const url = typeof input === 'string' ? input : input.url;
|
|
32
|
-
if (url.includes('/commits'))
|
|
33
|
-
return { ok: true, json: async () => [] };
|
|
34
|
-
return { ok: false, status: 404, statusText: 'Not Found', text: async () => 'not found' };
|
|
35
|
-
};
|
|
36
|
-
const res = await analyzeGitHealth({ name: 'foo', remote: 'owner/repo' });
|
|
37
|
-
// console.log('Result (stubbed):', JSON.stringify(res, null, 2));
|
|
38
|
-
}
|
|
39
|
-
(async () => {
|
|
40
|
-
const [, , siteName, startDate, endDate] = process.argv;
|
|
41
|
-
if (siteName) {
|
|
42
|
-
await runWithSite(siteName, startDate, endDate);
|
|
43
|
-
}
|
|
44
|
-
else {
|
|
45
|
-
await runStubbed();
|
|
46
|
-
}
|
|
47
|
-
})().catch(err => {
|
|
48
|
-
console.error('Error running analyze:', err);
|
|
49
|
-
process.exit(1);
|
|
50
|
-
});
|
package/dist/test/setup.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { afterEach, vi, beforeAll, afterAll } from 'vitest';
|
|
2
|
-
import { cleanup } from '@testing-library/react';
|
|
3
|
-
import '@testing-library/jest-dom';
|
|
4
|
-
// Cleanup after each test
|
|
5
|
-
afterEach(() => {
|
|
6
|
-
cleanup();
|
|
7
|
-
});
|
|
8
|
-
// Mock window.matchMedia
|
|
9
|
-
Object.defineProperty(window, 'matchMedia', {
|
|
10
|
-
writable: true,
|
|
11
|
-
value: vi.fn().mockImplementation(query => ({
|
|
12
|
-
matches: false,
|
|
13
|
-
media: query,
|
|
14
|
-
onchange: null,
|
|
15
|
-
addListener: vi.fn(),
|
|
16
|
-
removeListener: vi.fn(),
|
|
17
|
-
addEventListener: vi.fn(),
|
|
18
|
-
removeEventListener: vi.fn(),
|
|
19
|
-
dispatchEvent: vi.fn(),
|
|
20
|
-
})),
|
|
21
|
-
});
|
|
22
|
-
// Mock IntersectionObserver
|
|
23
|
-
global.IntersectionObserver = class IntersectionObserver {
|
|
24
|
-
constructor() { }
|
|
25
|
-
disconnect() { }
|
|
26
|
-
observe() { }
|
|
27
|
-
takeRecords() {
|
|
28
|
-
return [];
|
|
29
|
-
}
|
|
30
|
-
unobserve() { }
|
|
31
|
-
};
|
|
32
|
-
// Suppress console errors in tests (optional)
|
|
33
|
-
const originalError = console.error;
|
|
34
|
-
beforeAll(() => {
|
|
35
|
-
console.error = (...args) => {
|
|
36
|
-
if (typeof args[0] === 'string' &&
|
|
37
|
-
(args[0].includes('Warning: ReactDOM.render') ||
|
|
38
|
-
args[0].includes('Not implemented: HTMLFormElement.prototype.submit'))) {
|
|
39
|
-
return;
|
|
40
|
-
}
|
|
41
|
-
originalError.call(console, ...args);
|
|
42
|
-
};
|
|
43
|
-
});
|
|
44
|
-
afterAll(() => {
|
|
45
|
-
console.error = originalError;
|
|
46
|
-
});
|
package/dist/test/test-utils.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { render } from '@testing-library/react';
|
|
3
|
-
import { PixelatedClientConfigProvider } from '@/components/config/config.client';
|
|
4
|
-
import { mockConfig } from './config.mock';
|
|
5
|
-
/**
|
|
6
|
-
* Custom render function that wraps components in the necessary providers.
|
|
7
|
-
* Defaults to using the mock version of the global pixelated.config.json.
|
|
8
|
-
*/
|
|
9
|
-
function renderWithProviders(ui, { config = {}, ...renderOptions } = {}) {
|
|
10
|
-
const mergedConfig = { ...mockConfig, ...config };
|
|
11
|
-
function Wrapper({ children }) {
|
|
12
|
-
return (_jsx(PixelatedClientConfigProvider, { config: mergedConfig, children: children }));
|
|
13
|
-
}
|
|
14
|
-
return {
|
|
15
|
-
...render(ui, { wrapper: Wrapper, ...renderOptions }),
|
|
16
|
-
config: mergedConfig,
|
|
17
|
-
};
|
|
18
|
-
}
|
|
19
|
-
// Re-export everything from RTL
|
|
20
|
-
export * from '@testing-library/react';
|
|
21
|
-
// Override the default render with our custom one
|
|
22
|
-
export { renderWithProviders as render };
|
|
23
|
-
export { renderWithProviders };
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"calendly.d.ts","sourceRoot":"","sources":["../../../../src/components/general/calendly.tsx"],"names":[],"mappings":"AACA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAOnD,MAAM,MAAM,YAAY,GAAG,UAAU,CAAC,OAAO,QAAQ,CAAC,SAAS,CAAC,CAAC;AACjE,wBAAgB,QAAQ,CAAC,EAAE,GAAG,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,YAAY,2CAmB5D;yBAnBe,QAAQ"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cloudinary.d.ts","sourceRoot":"","sources":["../../../../src/components/general/cloudinary.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAiBnD,wBAAgB,kBAAkB,CAAC,MAAM,EAAE;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAAC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAAE,UA0CxM;AAQD,MAAM,MAAM,+BAA+B,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,SAAS,CAAC,CAAC;AACvG,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,+BAA+B,UAKjF;yBALe,2BAA2B;;;;;;AAQ3C,wBAAgB,YAAY,YAO3B;AAOD,MAAM,MAAM,+BAA+B,GAAG,UAAU,CAAC,OAAO,2BAA2B,CAAC,SAAS,CAAC,CAAC;AACvG,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,+BAA+B,QAqBjF;yBArBe,2BAA2B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentful.delivery.d.ts","sourceRoot":"","sources":["../../../../src/components/general/contentful.delivery.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAMnD,MAAM,MAAM,iBAAiB,GAAG;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE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GAAG,UAAU,CAAC,OAAO,wBAAwB,CAAC,SAAS,CAAC,CAAC;AACjG,wBAAsB,wBAAwB,CAAC,KAAK,EAAE,4BAA4B,qBASjF;yBATqB,wBAAwB;;;;;;;;;;;;;AAkB9C,MAAM,MAAM,kCAAkC,GAAG,UAAU,CAAC,OAAO,8BAA8B,CAAC,SAAS,CAAC,CAAC;AAC7G,wBAAsB,8BAA8B,CAAC,KAAK,EAAE,kCAAkC;;;KAa7F;yBAbqB,8BAA8B;;;;;;AA4BpD,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,uBAAuB,gBAOvE;yBAPqB,mBAAmB;;;;;;;;;;;AAuBzC,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,SAAS,CAAC,CAAC;AAC7F,wBAAsB,sBAAsB,CAAC,KAAK,EAAE,0BAA0B;;;KAW7E;yBAXqB,sBAAsB;;;;;;;;;;;AA0B5C,MAAM,MAAM,8BAA8B,GAAG,UAAU,CAAC,OAAO,0BAA0B,CAAC,SAAS,CAAC,CAAC;AACrG,wBAAsB,0BAA0B,CAAC,KAAK,EAAE,8BAA8B,gBA4BrF;yBA5BqB,0BAA0B"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentful.items.components.d.ts","sourceRoot":"","sources":["../../../../src/components/general/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;AAsBhC,MAAM,MAAM,mBAAmB,GAAG,UAAU,CAAC,OAAO,eAAe,CAAC,SAAS,CAAC,CAAC;AAC/E,wBAAgB,eAAe,CAAC,KAAK,EAAE,mBAAmB,2CAiGzD;yBAjGe,eAAe;;;;;;AA6G/B,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,OAAO,kBAAkB,CAAC,SAAS,CAAC,CAAC;AACrF,wBAAgB,kBAAkB,CAAC,KAAK,EAAE,sBAAsB,2CA8D/D;yBA9De,kBAAkB;;;;;;AA2ElC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACzF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wBAAwB,2CASnE;yBATe,oBAAoB;;;;;;;AAsBpC,MAAM,MAAM,wBAAwB,GAAG,UAAU,CAAC,OAAO,oBAAoB,CAAC,SAAS,CAAC,CAAC;AACzF,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,wBAAwB,2CAwInE;yBAxIe,oBAAoB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"contentful.management.d.ts","sourceRoot":"","sources":["../../../../src/components/general/contentful.management.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,MAAM,CAAC;IAChB,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,eAAe;IAC/B,GAAG,EAAE;QACJ,EAAE,EAAE,MAAM,CAAC;QACX,OAAO,EAAE,MAAM,CAAC;QAChB,SAAS,EAAE,MAAM,CAAC;QAClB,SAAS,EAAE,MAAM,CAAC;KAClB,CAAC;IACF,MAAM,EAAE;QACP,CAAC,GAAG,EAAE,MAAM,GAAG;YACd,OAAO,EAAE,GAAG,CAAC;SACb,CAAC;KACF,CAAC;CACF;AAED,MAAM,WAAW,mBAAmB;IACnC,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,GAAG,EAAE,CAAC;IACf,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB;IAChC,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,CAAC,EAAE,GA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MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAE,KAAK,EAAE,iBAAiB,gBA2DtD;yBA3De,aAAa;;;;;;AAmE7B,MAAM,MAAM,uBAAuB,GAAG,UAAU,CAAC,OAAO,mBAAmB,CAAC,SAAS,CAAC,CAAC;AACvF,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,uBAAuB;;;;;;;gBAejE;yBAfe,mBAAmB;;;;;;AA8BnC,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,aAAa,CAAC,SAAS,CAAC,CAAC;AAC3E,wBAAgB,aAAa,CAAE,KAAK,EAAE,iBAAiB,2CA0CtD;yBA1Ce,aAAa"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"google.reviews.components.d.ts","sourceRoot":"","sources":["../../../../src/components/general/google.reviews.components.tsx"],"names":[],"mappings":"AAGA,OAAO,SAAS,EAAE,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAInD,OAAO,sBAAsB,CAAC;AAU9B,MAAM,MAAM,qBAAqB,GAAG,UAAU,CAAC,OAAO,iBAAiB,CAAC,SAAS,CAAC,CAAC;AACnF,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,qBAAqB,2CAqG7D;yBArGe,iBAAiB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"google.reviews.functions.d.ts","sourceRoot":"","sources":["../../../../src/components/general/google.reviews.functions.ts"],"names":[],"mappings":"AAIA,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,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