@makeswift/runtime 0.23.5 → 0.24.0-canary.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/builtin/Carousel/Carousel.js +3 -4
- package/dist/cjs/components/builtin/Carousel/Carousel.js.map +1 -1
- package/dist/cjs/components/page/Page.js +4 -7
- package/dist/cjs/components/page/Page.js.map +1 -1
- package/dist/cjs/components/page/PageHead.js +8 -17
- package/dist/cjs/components/page/PageHead.js.map +1 -1
- package/dist/cjs/components/shared/Link/index.js +1 -3
- package/dist/cjs/components/shared/Link/index.js.map +1 -1
- package/dist/cjs/core/index.js +2 -10
- package/dist/cjs/core/index.js.map +1 -1
- package/dist/cjs/jest-setup.js +0 -3
- package/dist/cjs/jest-setup.js.map +1 -1
- package/dist/cjs/next/api-handler/handlers/manifest.js +1 -1
- package/dist/cjs/next/api-handler/handlers/proxy-draft-mode.js +1 -1
- package/dist/cjs/next/api-handler/handlers/proxy-draft-mode.js.map +1 -1
- package/dist/cjs/next/client.js +2 -2
- package/dist/cjs/next/client.js.map +1 -1
- package/dist/cjs/next/components/page.js +2 -3
- package/dist/cjs/next/components/page.js.map +1 -1
- package/dist/cjs/next/components/tests/controls/page-control-prop-rendering.js +35 -91
- package/dist/cjs/next/components/tests/controls/page-control-prop-rendering.js.map +1 -1
- package/dist/cjs/next/components/tests/prop-controllers/page-prop-controller.js +11 -20
- package/dist/cjs/next/components/tests/prop-controllers/page-prop-controller.js.map +1 -1
- package/dist/cjs/next/hooks/use-is-pages-router.js.map +1 -1
- package/dist/cjs/next/root-style-registry.js +19 -20
- package/dist/cjs/next/root-style-registry.js.map +1 -1
- package/dist/cjs/runtimes/react/components/ElementData.js +0 -1
- package/dist/cjs/runtimes/react/components/ElementData.js.map +1 -1
- package/dist/cjs/runtimes/react/hooks/use-cache-data.js +2 -2
- package/dist/cjs/runtimes/react/hooks/use-cache-data.js.map +1 -1
- package/dist/cjs/runtimes/react/hooks/use-resolved-props.js +2 -3
- package/dist/cjs/runtimes/react/hooks/use-resolved-props.js.map +1 -1
- package/dist/cjs/runtimes/react/use-style.js +2 -2
- package/dist/cjs/runtimes/react/use-style.js.map +1 -1
- package/dist/cjs/{runtimes/react/testing/breakpoints.js → utils/tests/breakpoint-test-util.js} +4 -4
- package/dist/cjs/utils/tests/breakpoint-test-util.js.map +1 -0
- package/dist/cjs/{runtimes/react/testing/element-data.js → utils/tests/element-data-test-test.js} +7 -33
- package/dist/cjs/utils/tests/element-data-test-test.js.map +1 -0
- package/dist/esm/components/builtin/Carousel/Carousel.js +3 -4
- package/dist/esm/components/builtin/Carousel/Carousel.js.map +1 -1
- package/dist/esm/components/page/Page.js +2 -5
- package/dist/esm/components/page/Page.js.map +1 -1
- package/dist/esm/components/page/PageHead.js +8 -17
- package/dist/esm/components/page/PageHead.js.map +1 -1
- package/dist/esm/components/shared/Link/index.js +1 -3
- package/dist/esm/components/shared/Link/index.js.map +1 -1
- package/dist/esm/core/index.js +2 -10
- package/dist/esm/core/index.js.map +1 -1
- package/dist/esm/jest-setup.js +1 -4
- package/dist/esm/jest-setup.js.map +1 -1
- package/dist/esm/next/api-handler/handlers/manifest.js +1 -1
- package/dist/esm/next/api-handler/handlers/proxy-draft-mode.js +1 -1
- package/dist/esm/next/api-handler/handlers/proxy-draft-mode.js.map +1 -1
- package/dist/esm/next/client.js +2 -2
- package/dist/esm/next/client.js.map +1 -1
- package/dist/esm/next/components/page.js +2 -3
- package/dist/esm/next/components/page.js.map +1 -1
- package/dist/esm/next/components/tests/controls/page-control-prop-rendering.js +39 -82
- package/dist/esm/next/components/tests/controls/page-control-prop-rendering.js.map +1 -1
- package/dist/esm/next/components/tests/prop-controllers/page-prop-controller.js +11 -7
- package/dist/esm/next/components/tests/prop-controllers/page-prop-controller.js.map +1 -1
- package/dist/esm/next/hooks/use-is-pages-router.js.map +1 -1
- package/dist/esm/next/root-style-registry.js +19 -20
- package/dist/esm/next/root-style-registry.js.map +1 -1
- package/dist/esm/runtimes/react/components/ElementData.js +0 -1
- package/dist/esm/runtimes/react/components/ElementData.js.map +1 -1
- package/dist/esm/runtimes/react/hooks/use-cache-data.js +2 -2
- package/dist/esm/runtimes/react/hooks/use-cache-data.js.map +1 -1
- package/dist/esm/runtimes/react/hooks/use-resolved-props.js +2 -3
- package/dist/esm/runtimes/react/hooks/use-resolved-props.js.map +1 -1
- package/dist/esm/runtimes/react/use-style.js +2 -2
- package/dist/esm/runtimes/react/use-style.js.map +1 -1
- package/dist/esm/{runtimes/react/testing/breakpoints.js → utils/tests/breakpoint-test-util.js} +1 -1
- package/dist/esm/utils/tests/breakpoint-test-util.js.map +1 -0
- package/dist/esm/{runtimes/react/testing/element-data.js → utils/tests/element-data-test-test.js} +4 -29
- package/dist/esm/utils/tests/element-data-test-test.js.map +1 -0
- package/dist/types/components/builtin/Carousel/Carousel.d.ts.map +1 -1
- package/dist/types/components/page/Page.d.ts +1 -3
- package/dist/types/components/page/Page.d.ts.map +1 -1
- package/dist/types/components/page/PageHead.d.ts +1 -3
- package/dist/types/components/page/PageHead.d.ts.map +1 -1
- package/dist/types/components/shared/Link/index.d.ts.map +1 -1
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/index.d.ts.map +1 -1
- package/dist/types/next/components/page.d.ts +1 -21
- package/dist/types/next/components/page.d.ts.map +1 -1
- package/dist/types/next/components/tests/controls/color-control.test.d.ts +3 -0
- package/dist/types/next/components/tests/controls/color-control.test.d.ts.map +1 -0
- package/dist/types/next/components/tests/controls/page-control-prop-rendering.d.ts +3 -2
- package/dist/types/next/components/tests/controls/page-control-prop-rendering.d.ts.map +1 -1
- package/dist/types/next/components/tests/controls/rich-text-v2-control.test.d.ts +2 -0
- package/dist/types/next/components/tests/controls/rich-text-v2-control.test.d.ts.map +1 -0
- package/dist/types/next/components/tests/controls/style-control.test.d.ts +2 -0
- package/dist/types/next/components/tests/controls/style-control.test.d.ts.map +1 -0
- package/dist/types/next/components/tests/prop-controllers/page-prop-controller.d.ts.map +1 -1
- package/dist/types/next/hooks/use-is-pages-router.d.ts.map +1 -1
- package/dist/types/next/root-style-registry.d.ts.map +1 -1
- package/dist/types/runtimes/react/components/ElementData.d.ts.map +1 -1
- package/dist/types/runtimes/react/hooks/use-cache-data.d.ts.map +1 -1
- package/dist/types/runtimes/react/hooks/use-resolved-props.d.ts.map +1 -1
- package/dist/types/{runtimes/react/testing/breakpoints.d.ts → utils/tests/breakpoint-test-util.d.ts} +1 -1
- package/dist/types/utils/tests/breakpoint-test-util.d.ts.map +1 -0
- package/dist/types/{runtimes/react/testing/element-data.d.ts → utils/tests/element-data-test-test.d.ts} +3 -7
- package/dist/types/utils/tests/element-data-test-test.d.ts.map +1 -0
- package/package.json +4 -6
- package/dist/cjs/components/page/page-seo-settings.js +0 -43
- package/dist/cjs/components/page/page-seo-settings.js.map +0 -1
- package/dist/cjs/next/components/tests/controls/color-control/fixtures.js +0 -51
- package/dist/cjs/next/components/tests/controls/color-control/fixtures.js.map +0 -1
- package/dist/cjs/next/components/tests/controls/rich-text-v2-control/fixtures.js +0 -91
- package/dist/cjs/next/components/tests/controls/rich-text-v2-control/fixtures.js.map +0 -1
- package/dist/cjs/next/components/tests/controls/style-control/fixtures.js +0 -60
- package/dist/cjs/next/components/tests/controls/style-control/fixtures.js.map +0 -1
- package/dist/cjs/runtimes/react/testing/breakpoints.js.map +0 -1
- package/dist/cjs/runtimes/react/testing/element-data.js.map +0 -1
- package/dist/cjs/runtimes/react/testing/index.js +0 -27
- package/dist/cjs/runtimes/react/testing/index.js.map +0 -1
- package/dist/cjs/runtimes/react/testing/react-provider.js +0 -38
- package/dist/cjs/runtimes/react/testing/react-provider.js.map +0 -1
- package/dist/esm/components/page/page-seo-settings.js +0 -19
- package/dist/esm/components/page/page-seo-settings.js.map +0 -1
- package/dist/esm/next/components/tests/controls/color-control/fixtures.js +0 -24
- package/dist/esm/next/components/tests/controls/color-control/fixtures.js.map +0 -1
- package/dist/esm/next/components/tests/controls/rich-text-v2-control/fixtures.js +0 -56
- package/dist/esm/next/components/tests/controls/rich-text-v2-control/fixtures.js.map +0 -1
- package/dist/esm/next/components/tests/controls/style-control/fixtures.js +0 -35
- package/dist/esm/next/components/tests/controls/style-control/fixtures.js.map +0 -1
- package/dist/esm/runtimes/react/testing/breakpoints.js.map +0 -1
- package/dist/esm/runtimes/react/testing/element-data.js.map +0 -1
- package/dist/esm/runtimes/react/testing/index.js +0 -4
- package/dist/esm/runtimes/react/testing/index.js.map +0 -1
- package/dist/esm/runtimes/react/testing/react-provider.js +0 -14
- package/dist/esm/runtimes/react/testing/react-provider.js.map +0 -1
- package/dist/types/components/page/page-seo-settings.d.ts +0 -11
- package/dist/types/components/page/page-seo-settings.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/color-control/client.test.d.ts +0 -3
- package/dist/types/next/components/tests/controls/color-control/client.test.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/color-control/fixtures.d.ts +0 -11
- package/dist/types/next/components/tests/controls/color-control/fixtures.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/color-control/server.test.d.ts +0 -2
- package/dist/types/next/components/tests/controls/color-control/server.test.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/rich-text-v2-control/client.test.d.ts +0 -2
- package/dist/types/next/components/tests/controls/rich-text-v2-control/client.test.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/rich-text-v2-control/fixtures.d.ts +0 -42
- package/dist/types/next/components/tests/controls/rich-text-v2-control/fixtures.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/rich-text-v2-control/server.test.d.ts +0 -2
- package/dist/types/next/components/tests/controls/rich-text-v2-control/server.test.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/style-control/client.test.d.ts +0 -2
- package/dist/types/next/components/tests/controls/style-control/client.test.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/style-control/fixtures.d.ts +0 -6
- package/dist/types/next/components/tests/controls/style-control/fixtures.d.ts.map +0 -1
- package/dist/types/next/components/tests/controls/style-control/server.test.d.ts +0 -2
- package/dist/types/next/components/tests/controls/style-control/server.test.d.ts.map +0 -1
- package/dist/types/next/components/tests/makeswift-page-metadata-rendering.test.d.ts +0 -3
- package/dist/types/next/components/tests/makeswift-page-metadata-rendering.test.d.ts.map +0 -1
- package/dist/types/runtimes/react/testing/breakpoints.d.ts.map +0 -1
- package/dist/types/runtimes/react/testing/element-data.d.ts.map +0 -1
- package/dist/types/runtimes/react/testing/index.d.ts +0 -4
- package/dist/types/runtimes/react/testing/index.d.ts.map +0 -1
- package/dist/types/runtimes/react/testing/react-provider.d.ts +0 -8
- package/dist/types/runtimes/react/testing/react-provider.d.ts.map +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeswift/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0-canary.0",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -144,7 +144,7 @@
|
|
|
144
144
|
"parse5": "^7.1.2",
|
|
145
145
|
"path-to-regexp": "^6.2.1",
|
|
146
146
|
"polished": "3.0.3",
|
|
147
|
-
"react-player": "^
|
|
147
|
+
"react-player": "^1.12.0",
|
|
148
148
|
"redux": "^4.0.5",
|
|
149
149
|
"redux-thunk": "^2.3.0",
|
|
150
150
|
"reselect": "^5.1.1",
|
|
@@ -157,8 +157,8 @@
|
|
|
157
157
|
"uuid": "^9.0.0",
|
|
158
158
|
"zod": "^3.21.4",
|
|
159
159
|
"@makeswift/controls": "0.1.7",
|
|
160
|
-
"@makeswift/
|
|
161
|
-
"@makeswift/
|
|
160
|
+
"@makeswift/next-plugin": "0.3.1",
|
|
161
|
+
"@makeswift/prop-controllers": "0.4.0"
|
|
162
162
|
},
|
|
163
163
|
"devDependencies": {
|
|
164
164
|
"@emotion/jest": "^11.11.0",
|
|
@@ -174,7 +174,6 @@
|
|
|
174
174
|
"@types/cors": "^2.8.12",
|
|
175
175
|
"@types/escape-html": "^1.0.2",
|
|
176
176
|
"@types/jest": "^29.5.12",
|
|
177
|
-
"@types/jsdom": "^21.1.7",
|
|
178
177
|
"@types/node": "^17.0.21",
|
|
179
178
|
"@types/react": "^18.2.14",
|
|
180
179
|
"@types/react-dom": "^18.2.6",
|
|
@@ -182,7 +181,6 @@
|
|
|
182
181
|
"expect-type": "^0.19.0",
|
|
183
182
|
"jest": "^29.7.0",
|
|
184
183
|
"jest-environment-jsdom": "^29.7.0",
|
|
185
|
-
"jsdom": "^26.0.0",
|
|
186
184
|
"madge": "^6.0.0",
|
|
187
185
|
"msw": "^2.3.1",
|
|
188
186
|
"next": "15.0.2",
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var page_seo_settings_exports = {};
|
|
20
|
-
__export(page_seo_settings_exports, {
|
|
21
|
-
flattenMetadataSettings: () => flattenMetadataSettings
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(page_seo_settings_exports);
|
|
24
|
-
function flattenMetadataSettings(settings) {
|
|
25
|
-
if (typeof settings === "boolean")
|
|
26
|
-
return {
|
|
27
|
-
title: settings,
|
|
28
|
-
description: settings,
|
|
29
|
-
keywords: settings,
|
|
30
|
-
socialImage: settings,
|
|
31
|
-
canonicalUrl: settings,
|
|
32
|
-
indexingBlocked: settings,
|
|
33
|
-
favicon: settings
|
|
34
|
-
};
|
|
35
|
-
if (settings == null)
|
|
36
|
-
return {};
|
|
37
|
-
return settings;
|
|
38
|
-
}
|
|
39
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
40
|
-
0 && (module.exports = {
|
|
41
|
-
flattenMetadataSettings
|
|
42
|
-
});
|
|
43
|
-
//# sourceMappingURL=page-seo-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/page/page-seo-settings.ts"],"sourcesContent":["export type PageMetadataSettings = {\n title?: boolean\n description?: boolean\n keywords?: boolean\n socialImage?: boolean\n canonicalUrl?: boolean\n indexingBlocked?: boolean\n favicon?: boolean\n}\n\nexport function flattenMetadataSettings(\n settings?: boolean | PageMetadataSettings,\n): PageMetadataSettings {\n if (typeof settings === 'boolean')\n return {\n title: settings,\n description: settings,\n keywords: settings,\n socialImage: settings,\n canonicalUrl: settings,\n indexingBlocked: settings,\n favicon: settings,\n }\n if (settings == null) return {}\n return settings\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAUO,SAAS,wBACd,UACsB;AACtB,MAAI,OAAO,aAAa;AACtB,WAAO;AAAA,MACL,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,MACV,aAAa;AAAA,MACb,cAAc;AAAA,MACd,iBAAiB;AAAA,MACjB,SAAS;AAAA,IACX;AACF,MAAI,YAAY;AAAM,WAAO,CAAC;AAC9B,SAAO;AACT;","names":[]}
|
|
@@ -1,51 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var fixtures_exports = {};
|
|
20
|
-
__export(fixtures_exports, {
|
|
21
|
-
cacheData: () => cacheData,
|
|
22
|
-
swatch: () => swatch,
|
|
23
|
-
swatchId: () => swatchId,
|
|
24
|
-
value: () => value
|
|
25
|
-
});
|
|
26
|
-
module.exports = __toCommonJS(fixtures_exports);
|
|
27
|
-
var import_api = require("../../../../../api");
|
|
28
|
-
const swatchId = "[swatch-test-id]";
|
|
29
|
-
const swatch = {
|
|
30
|
-
__typename: import_api.APIResourceType.Swatch,
|
|
31
|
-
hue: 238,
|
|
32
|
-
saturation: 87,
|
|
33
|
-
lightness: 49
|
|
34
|
-
};
|
|
35
|
-
const value = {
|
|
36
|
-
swatchId,
|
|
37
|
-
alpha: 0.5
|
|
38
|
-
};
|
|
39
|
-
const cacheData = (swatch2) => ({
|
|
40
|
-
apiResources: {
|
|
41
|
-
Swatch: [{ id: swatchId, value: swatch2 == null ? null : { id: swatchId, ...swatch2 } }]
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
45
|
-
0 && (module.exports = {
|
|
46
|
-
cacheData,
|
|
47
|
-
swatch,
|
|
48
|
-
swatchId,
|
|
49
|
-
value
|
|
50
|
-
});
|
|
51
|
-
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/next/components/tests/controls/color-control/fixtures.ts"],"sourcesContent":["import { type ValueType } from '@makeswift/controls'\nimport { ColorDefinition } from '@makeswift/controls'\n\nimport { APIResourceType, type Swatch } from '../../../../../api'\nimport { type CacheData } from '../../../../../api/react'\n\ntype SwatchData = Omit<Swatch, 'id'>\n\nexport const swatchId = '[swatch-test-id]'\nexport const swatch: SwatchData = {\n __typename: APIResourceType.Swatch,\n hue: 238,\n saturation: 87,\n lightness: 49,\n}\n\nexport const value: ValueType<ColorDefinition> = {\n swatchId,\n alpha: 0.5,\n}\n\nexport const cacheData = (swatch: SwatchData | null): Partial<CacheData> => ({\n apiResources: {\n Swatch: [{ id: swatchId, value: swatch == null ? null : { id: swatchId, ...swatch } }],\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAGA,iBAA6C;AAKtC,MAAM,WAAW;AACjB,MAAM,SAAqB;AAAA,EAChC,YAAY,2BAAgB;AAAA,EAC5B,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,WAAW;AACb;AAEO,MAAM,QAAoC;AAAA,EAC/C;AAAA,EACA,OAAO;AACT;AAEO,MAAM,YAAY,CAACA,aAAmD;AAAA,EAC3E,cAAc;AAAA,IACZ,QAAQ,CAAC,EAAE,IAAI,UAAU,OAAOA,WAAU,OAAO,OAAO,EAAE,IAAI,UAAU,GAAGA,QAAO,EAAE,CAAC;AAAA,EACvF;AACF;","names":["swatch"]}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var fixtures_exports = {};
|
|
30
|
-
__export(fixtures_exports, {
|
|
31
|
-
cacheData: () => cacheData,
|
|
32
|
-
value: () => value
|
|
33
|
-
});
|
|
34
|
-
module.exports = __toCommonJS(fixtures_exports);
|
|
35
|
-
var import_api = require("../../../../../api");
|
|
36
|
-
var Fixture = __toESM(require("../fixtures/rich-text-v2"));
|
|
37
|
-
const swatchId = "U3dhdGNoOmJkODYxMWM5LTNiZjItNDM3MS1iMmU4LTBmMmNlMDZjNDE1OA==";
|
|
38
|
-
const swatch = {
|
|
39
|
-
__typename: import_api.APIResourceType.Swatch,
|
|
40
|
-
id: swatchId,
|
|
41
|
-
hue: 238,
|
|
42
|
-
saturation: 87,
|
|
43
|
-
lightness: 49
|
|
44
|
-
};
|
|
45
|
-
const typographyId = "VHlwb2dyYXBoeTowNGI4OTZlMC0wZWEyLTRkMTMtYmU3ZS0xYmY1M2VmMjBiZjc=";
|
|
46
|
-
const typography = {
|
|
47
|
-
__typename: import_api.APIResourceType.Typography,
|
|
48
|
-
id: typographyId,
|
|
49
|
-
name: "Body",
|
|
50
|
-
style: [
|
|
51
|
-
{
|
|
52
|
-
deviceId: "desktop",
|
|
53
|
-
value: {
|
|
54
|
-
fontFamily: "Lato",
|
|
55
|
-
fontSize: { value: 16, unit: "px" },
|
|
56
|
-
color: null,
|
|
57
|
-
lineHeight: null,
|
|
58
|
-
letterSpacing: null,
|
|
59
|
-
fontWeight: null,
|
|
60
|
-
textAlign: null,
|
|
61
|
-
uppercase: null,
|
|
62
|
-
underline: null,
|
|
63
|
-
strikethrough: null,
|
|
64
|
-
italic: null
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
]
|
|
68
|
-
};
|
|
69
|
-
const value = Fixture.data;
|
|
70
|
-
const cacheData = () => ({
|
|
71
|
-
apiResources: {
|
|
72
|
-
Swatch: [
|
|
73
|
-
{
|
|
74
|
-
id: swatchId,
|
|
75
|
-
value: swatch
|
|
76
|
-
}
|
|
77
|
-
],
|
|
78
|
-
Typography: [
|
|
79
|
-
{
|
|
80
|
-
id: typographyId,
|
|
81
|
-
value: typography
|
|
82
|
-
}
|
|
83
|
-
]
|
|
84
|
-
}
|
|
85
|
-
});
|
|
86
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
87
|
-
0 && (module.exports = {
|
|
88
|
-
cacheData,
|
|
89
|
-
value
|
|
90
|
-
});
|
|
91
|
-
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/next/components/tests/controls/rich-text-v2-control/fixtures.tsx"],"sourcesContent":["import { APIResourceType, type Swatch, type Typography } from '../../../../../api'\n\nimport * as Fixture from '../fixtures/rich-text-v2'\nimport { type CacheData } from '../../../../../api/react'\n\nconst swatchId = 'U3dhdGNoOmJkODYxMWM5LTNiZjItNDM3MS1iMmU4LTBmMmNlMDZjNDE1OA=='\nconst swatch: Swatch = {\n __typename: APIResourceType.Swatch,\n id: swatchId,\n hue: 238,\n saturation: 87,\n lightness: 49,\n}\n\nconst typographyId = 'VHlwb2dyYXBoeTowNGI4OTZlMC0wZWEyLTRkMTMtYmU3ZS0xYmY1M2VmMjBiZjc='\nconst typography: Typography = {\n __typename: APIResourceType.Typography,\n id: typographyId,\n name: 'Body',\n style: [\n {\n deviceId: 'desktop',\n value: {\n fontFamily: 'Lato',\n fontSize: { value: 16, unit: 'px' },\n color: null,\n lineHeight: null,\n letterSpacing: null,\n fontWeight: null,\n textAlign: null,\n uppercase: null,\n underline: null,\n strikethrough: null,\n italic: null,\n },\n },\n ],\n}\n\nexport const value = Fixture.data\nexport const cacheData = (): Partial<CacheData> => ({\n apiResources: {\n Swatch: [\n {\n id: swatchId,\n value: swatch,\n },\n ],\n Typography: [\n {\n id: typographyId,\n value: typography,\n },\n ],\n },\n})\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAA8D;AAE9D,cAAyB;AAGzB,MAAM,WAAW;AACjB,MAAM,SAAiB;AAAA,EACrB,YAAY,2BAAgB;AAAA,EAC5B,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,WAAW;AACb;AAEA,MAAM,eAAe;AACrB,MAAM,aAAyB;AAAA,EAC7B,YAAY,2BAAgB;AAAA,EAC5B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO;AAAA,IACL;AAAA,MACE,UAAU;AAAA,MACV,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,UAAU,EAAE,OAAO,IAAI,MAAM,KAAK;AAAA,QAClC,OAAO;AAAA,QACP,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,WAAW;AAAA,QACX,WAAW;AAAA,QACX,WAAW;AAAA,QACX,eAAe;AAAA,QACf,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACF;AAEO,MAAM,QAAQ,QAAQ;AACtB,MAAM,YAAY,OAA2B;AAAA,EAClD,cAAc;AAAA,IACZ,QAAQ;AAAA,MACN;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var fixtures_exports = {};
|
|
20
|
-
__export(fixtures_exports, {
|
|
21
|
-
registerComponents: () => registerComponents,
|
|
22
|
-
value: () => value
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(fixtures_exports);
|
|
25
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
26
|
-
var import_controls2 = require("../../../../../controls");
|
|
27
|
-
var import_constants = require("../../../../../components/builtin/constants");
|
|
28
|
-
function Button({ className, title }) {
|
|
29
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)("button", { className, children: title });
|
|
30
|
-
}
|
|
31
|
-
const value = {
|
|
32
|
-
width: [{ deviceId: "desktop", value: { value: 80, unit: "%" } }],
|
|
33
|
-
margin: [
|
|
34
|
-
{
|
|
35
|
-
deviceId: "desktop",
|
|
36
|
-
value: {
|
|
37
|
-
marginTop: { value: 4, unit: "px" },
|
|
38
|
-
marginLeft: void 0,
|
|
39
|
-
marginRight: void 0,
|
|
40
|
-
marginBottom: void 0
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
]
|
|
44
|
-
};
|
|
45
|
-
const registerComponents = (runtime) => {
|
|
46
|
-
runtime.registerComponent(Button, {
|
|
47
|
-
type: import_constants.MakeswiftComponentType.Button,
|
|
48
|
-
label: "Button",
|
|
49
|
-
props: {
|
|
50
|
-
className: (0, import_controls2.Style)(),
|
|
51
|
-
title: (0, import_controls2.TextInput)({ defaultValue: "Button" })
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
};
|
|
55
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
56
|
-
0 && (module.exports = {
|
|
57
|
-
registerComponents,
|
|
58
|
-
value
|
|
59
|
-
});
|
|
60
|
-
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/next/components/tests/controls/style-control/fixtures.tsx"],"sourcesContent":["import { type ValueType } from '@makeswift/controls'\nimport { Style, StyleDefinition, TextInput } from '../../../../../controls'\nimport { MakeswiftComponentType } from '../../../../../components/builtin/constants'\nimport { ReactRuntime } from '../../../../../react'\n\nfunction Button({ className, title }: { className: string; title: string }) {\n return <button className={className}>{title}</button>\n}\n\nexport const value: ValueType<StyleDefinition> = {\n width: [{ deviceId: 'desktop', value: { value: 80, unit: '%' } }],\n margin: [\n {\n deviceId: 'desktop',\n value: {\n marginTop: { value: 4, unit: 'px' },\n marginLeft: undefined,\n marginRight: undefined,\n marginBottom: undefined,\n },\n },\n ],\n}\n\nexport const registerComponents = (runtime: ReactRuntime) => {\n runtime.registerComponent(Button, {\n type: MakeswiftComponentType.Button,\n label: 'Button',\n props: {\n className: Style(),\n title: TextInput({ defaultValue: 'Button' }),\n },\n })\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAMS;AALT,IAAAA,mBAAkD;AAClD,uBAAuC;AAGvC,SAAS,OAAO,EAAE,WAAW,MAAM,GAAyC;AAC1E,SAAO,4CAAC,YAAO,WAAuB,iBAAM;AAC9C;AAEO,MAAM,QAAoC;AAAA,EAC/C,OAAO,CAAC,EAAE,UAAU,WAAW,OAAO,EAAE,OAAO,IAAI,MAAM,IAAI,EAAE,CAAC;AAAA,EAChE,QAAQ;AAAA,IACN;AAAA,MACE,UAAU;AAAA,MACV,OAAO;AAAA,QACL,WAAW,EAAE,OAAO,GAAG,MAAM,KAAK;AAAA,QAClC,YAAY;AAAA,QACZ,aAAa;AAAA,QACb,cAAc;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AACF;AAEO,MAAM,qBAAqB,CAAC,YAA0B;AAC3D,UAAQ,kBAAkB,QAAQ;AAAA,IAChC,MAAM,wCAAuB;AAAA,IAC7B,OAAO;AAAA,IACP,OAAO;AAAA,MACL,eAAW,wBAAM;AAAA,MACjB,WAAO,4BAAU,EAAE,cAAc,SAAS,CAAC;AAAA,IAC7C;AAAA,EACF,CAAC;AACH;","names":["import_controls"]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/breakpoints.ts"],"sourcesContent":["export const DESKTOP_MEDIA_QUERY = 'only screen and (min-width: 769px)'\nexport const TABLET_MEDIA_QUERY = 'only screen and (min-width: 769px)'\nexport const MOBILE_MEDIA_QUERY = 'only screen and (min-width: 769px)'\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAO,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/element-data.ts"],"sourcesContent":["import { randomUUID } from 'crypto'\nimport { type MakeswiftPageSnapshot, type MakeswiftComponentSnapshot } from '../../../next/client'\nimport { type ElementData } from '../../../state/react-page'\nimport { CacheData } from '../../../api/react'\nimport { MakeswiftComponentType } from '../../../components'\n\nexport function createRootComponent(elements: ElementData[], rootId?: string) {\n return {\n key: rootId ?? randomUUID(),\n type: MakeswiftComponentType.Root,\n props: {\n children: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: elements?.map(() => [12]),\n },\n },\n ],\n elements,\n },\n },\n }\n}\n\nexport function createMakeswiftPageSnapshot(\n elementData: ElementData,\n {\n cacheData = {},\n locale = null,\n }: { cacheData?: Partial<MakeswiftPageSnapshot['cacheData']>; locale?: string | null } = {},\n): MakeswiftPageSnapshot {\n return {\n document: {\n id: 'test-page-id',\n site: { id: 'test-site-id' },\n data: elementData,\n snippets: [],\n fonts: [],\n meta: {},\n seo: {},\n localizedPages: [],\n locale,\n },\n cacheData: {\n ...CacheData.empty(),\n ...cacheData,\n },\n }\n}\n\nexport function createMakeswiftComponentSnapshot(\n elementData: ElementData,\n {\n cacheData = {},\n locale = null,\n }: { cacheData?: Partial<MakeswiftComponentSnapshot['cacheData']>; locale?: string | null } = {},\n): MakeswiftComponentSnapshot {\n return {\n key: randomUUID(),\n document: {\n id: 'test-component-id',\n name: 'Test Component Document',\n siteId: 'test-site-id',\n data: elementData,\n inheritsFromParent: false,\n locale,\n },\n meta: {\n allowLocaleFallback: false,\n requestedLocale: locale,\n },\n cacheData: {\n ...CacheData.empty(),\n ...cacheData,\n },\n }\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAA2B;AAG3B,mBAA0B;AAC1B,wBAAuC;AAEhC,SAAS,oBAAoB,UAAyB,QAAiB;AAC5E,SAAO;AAAA,IACL,KAAK,cAAU,0BAAW;AAAA,IAC1B,MAAM,yCAAuB;AAAA,IAC7B,OAAO;AAAA,MACL,UAAU;AAAA,QACR,SAAS;AAAA,UACP;AAAA,YACE,UAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO;AAAA,cACP,OAAO,UAAU,IAAI,MAAM,CAAC,EAAE,CAAC;AAAA,YACjC;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEO,SAAS,4BACd,aACA;AAAA,EACE,YAAY,CAAC;AAAA,EACb,SAAS;AACX,IAAyF,CAAC,GACnE;AACvB,SAAO;AAAA,IACL,UAAU;AAAA,MACR,IAAI;AAAA,MACJ,MAAM,EAAE,IAAI,eAAe;AAAA,MAC3B,MAAM;AAAA,MACN,UAAU,CAAC;AAAA,MACX,OAAO,CAAC;AAAA,MACR,MAAM,CAAC;AAAA,MACP,KAAK,CAAC;AAAA,MACN,gBAAgB,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,GAAG,uBAAU,MAAM;AAAA,MACnB,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAEO,SAAS,iCACd,aACA;AAAA,EACE,YAAY,CAAC;AAAA,EACb,SAAS;AACX,IAA8F,CAAC,GACnE;AAC5B,SAAO;AAAA,IACL,SAAK,0BAAW;AAAA,IAChB,UAAU;AAAA,MACR,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,oBAAoB;AAAA,MACpB;AAAA,IACF;AAAA,IACA,MAAM;AAAA,MACJ,qBAAqB;AAAA,MACrB,iBAAiB;AAAA,IACnB;AAAA,IACA,WAAW;AAAA,MACT,GAAG,uBAAU,MAAM;AAAA,MACnB,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var testing_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(testing_exports);
|
|
18
|
-
__reExport(testing_exports, require("./breakpoints"), module.exports);
|
|
19
|
-
__reExport(testing_exports, require("./element-data"), module.exports);
|
|
20
|
-
__reExport(testing_exports, require("./react-provider"), module.exports);
|
|
21
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
22
|
-
0 && (module.exports = {
|
|
23
|
-
...require("./breakpoints"),
|
|
24
|
-
...require("./element-data"),
|
|
25
|
-
...require("./react-provider")
|
|
26
|
-
});
|
|
27
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/index.ts"],"sourcesContent":["export * from './breakpoints'\nexport * from './element-data'\nexport * from './react-provider'\n"],"mappings":";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,4BAAc,0BAAd;AACA,4BAAc,2BADd;AAEA,4BAAc,6BAFd;","names":[]}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var react_provider_exports = {};
|
|
20
|
-
__export(react_provider_exports, {
|
|
21
|
-
ReactProvider: () => ReactProvider
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(react_provider_exports);
|
|
24
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
25
|
-
var import_next = require("../../../next");
|
|
26
|
-
var import_RuntimeProvider = require("../components/RuntimeProvider");
|
|
27
|
-
function ReactProvider({
|
|
28
|
-
children,
|
|
29
|
-
runtime,
|
|
30
|
-
previewMode = false
|
|
31
|
-
}) {
|
|
32
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_RuntimeProvider.ReactRuntimeProvider, { previewMode, runtime, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_next.RootStyleRegistry, { children }) });
|
|
33
|
-
}
|
|
34
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
35
|
-
0 && (module.exports = {
|
|
36
|
-
ReactProvider
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=react-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/react-provider.tsx"],"sourcesContent":["import { RootStyleRegistry } from '../../../next'\nimport { ReactRuntimeProvider } from '../components/RuntimeProvider'\nimport { ReactRuntime } from '../react-runtime'\n\nexport function ReactProvider({\n children,\n runtime,\n previewMode = false,\n}: {\n children: React.ReactNode\n runtime: ReactRuntime\n previewMode?: boolean\n}) {\n return (\n <ReactRuntimeProvider previewMode={previewMode} runtime={runtime}>\n <RootStyleRegistry>{children}</RootStyleRegistry>\n </ReactRuntimeProvider>\n )\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAeM;AAfN,kBAAkC;AAClC,6BAAqC;AAG9B,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA;AAAA,EACA,cAAc;AAChB,GAIG;AACD,SACE,4CAAC,+CAAqB,aAA0B,SAC9C,sDAAC,iCAAmB,UAAS,GAC/B;AAEJ;","names":[]}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
function flattenMetadataSettings(settings) {
|
|
2
|
-
if (typeof settings === "boolean")
|
|
3
|
-
return {
|
|
4
|
-
title: settings,
|
|
5
|
-
description: settings,
|
|
6
|
-
keywords: settings,
|
|
7
|
-
socialImage: settings,
|
|
8
|
-
canonicalUrl: settings,
|
|
9
|
-
indexingBlocked: settings,
|
|
10
|
-
favicon: settings
|
|
11
|
-
};
|
|
12
|
-
if (settings == null)
|
|
13
|
-
return {};
|
|
14
|
-
return settings;
|
|
15
|
-
}
|
|
16
|
-
export {
|
|
17
|
-
flattenMetadataSettings
|
|
18
|
-
};
|
|
19
|
-
//# sourceMappingURL=page-seo-settings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/components/page/page-seo-settings.ts"],"sourcesContent":["export type PageMetadataSettings = {\n title?: boolean\n description?: boolean\n keywords?: boolean\n socialImage?: boolean\n canonicalUrl?: boolean\n indexingBlocked?: boolean\n favicon?: boolean\n}\n\nexport function flattenMetadataSettings(\n settings?: boolean | PageMetadataSettings,\n): PageMetadataSettings {\n if (typeof settings === 'boolean')\n return {\n title: settings,\n description: settings,\n keywords: settings,\n socialImage: settings,\n canonicalUrl: settings,\n indexingBlocked: settings,\n favicon: settings,\n }\n if (settings == null) return {}\n return settings\n}\n"],"mappings":"AAUO,SAAS,wBACd,UACsB;AACtB,MAAI,OAAO,aAAa;AACtB,WAAO;AAAA,MACL,OAAO;AAAA,MACP,aAAa;AAAA,MACb,UAAU;AAAA,MACV,aAAa;AAAA,MACb,cAAc;AAAA,MACd,iBAAiB;AAAA,MACjB,SAAS;AAAA,IACX;AACF,MAAI,YAAY;AAAM,WAAO,CAAC;AAC9B,SAAO;AACT;","names":[]}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { APIResourceType } from "../../../../../api";
|
|
2
|
-
const swatchId = "[swatch-test-id]";
|
|
3
|
-
const swatch = {
|
|
4
|
-
__typename: APIResourceType.Swatch,
|
|
5
|
-
hue: 238,
|
|
6
|
-
saturation: 87,
|
|
7
|
-
lightness: 49
|
|
8
|
-
};
|
|
9
|
-
const value = {
|
|
10
|
-
swatchId,
|
|
11
|
-
alpha: 0.5
|
|
12
|
-
};
|
|
13
|
-
const cacheData = (swatch2) => ({
|
|
14
|
-
apiResources: {
|
|
15
|
-
Swatch: [{ id: swatchId, value: swatch2 == null ? null : { id: swatchId, ...swatch2 } }]
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
export {
|
|
19
|
-
cacheData,
|
|
20
|
-
swatch,
|
|
21
|
-
swatchId,
|
|
22
|
-
value
|
|
23
|
-
};
|
|
24
|
-
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/next/components/tests/controls/color-control/fixtures.ts"],"sourcesContent":["import { type ValueType } from '@makeswift/controls'\nimport { ColorDefinition } from '@makeswift/controls'\n\nimport { APIResourceType, type Swatch } from '../../../../../api'\nimport { type CacheData } from '../../../../../api/react'\n\ntype SwatchData = Omit<Swatch, 'id'>\n\nexport const swatchId = '[swatch-test-id]'\nexport const swatch: SwatchData = {\n __typename: APIResourceType.Swatch,\n hue: 238,\n saturation: 87,\n lightness: 49,\n}\n\nexport const value: ValueType<ColorDefinition> = {\n swatchId,\n alpha: 0.5,\n}\n\nexport const cacheData = (swatch: SwatchData | null): Partial<CacheData> => ({\n apiResources: {\n Swatch: [{ id: swatchId, value: swatch == null ? null : { id: swatchId, ...swatch } }],\n },\n})\n"],"mappings":"AAGA,SAAS,uBAAoC;AAKtC,MAAM,WAAW;AACjB,MAAM,SAAqB;AAAA,EAChC,YAAY,gBAAgB;AAAA,EAC5B,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,WAAW;AACb;AAEO,MAAM,QAAoC;AAAA,EAC/C;AAAA,EACA,OAAO;AACT;AAEO,MAAM,YAAY,CAACA,aAAmD;AAAA,EAC3E,cAAc;AAAA,IACZ,QAAQ,CAAC,EAAE,IAAI,UAAU,OAAOA,WAAU,OAAO,OAAO,EAAE,IAAI,UAAU,GAAGA,QAAO,EAAE,CAAC;AAAA,EACvF;AACF;","names":["swatch"]}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { APIResourceType } from "../../../../../api";
|
|
2
|
-
import * as Fixture from "../fixtures/rich-text-v2";
|
|
3
|
-
const swatchId = "U3dhdGNoOmJkODYxMWM5LTNiZjItNDM3MS1iMmU4LTBmMmNlMDZjNDE1OA==";
|
|
4
|
-
const swatch = {
|
|
5
|
-
__typename: APIResourceType.Swatch,
|
|
6
|
-
id: swatchId,
|
|
7
|
-
hue: 238,
|
|
8
|
-
saturation: 87,
|
|
9
|
-
lightness: 49
|
|
10
|
-
};
|
|
11
|
-
const typographyId = "VHlwb2dyYXBoeTowNGI4OTZlMC0wZWEyLTRkMTMtYmU3ZS0xYmY1M2VmMjBiZjc=";
|
|
12
|
-
const typography = {
|
|
13
|
-
__typename: APIResourceType.Typography,
|
|
14
|
-
id: typographyId,
|
|
15
|
-
name: "Body",
|
|
16
|
-
style: [
|
|
17
|
-
{
|
|
18
|
-
deviceId: "desktop",
|
|
19
|
-
value: {
|
|
20
|
-
fontFamily: "Lato",
|
|
21
|
-
fontSize: { value: 16, unit: "px" },
|
|
22
|
-
color: null,
|
|
23
|
-
lineHeight: null,
|
|
24
|
-
letterSpacing: null,
|
|
25
|
-
fontWeight: null,
|
|
26
|
-
textAlign: null,
|
|
27
|
-
uppercase: null,
|
|
28
|
-
underline: null,
|
|
29
|
-
strikethrough: null,
|
|
30
|
-
italic: null
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
]
|
|
34
|
-
};
|
|
35
|
-
const value = Fixture.data;
|
|
36
|
-
const cacheData = () => ({
|
|
37
|
-
apiResources: {
|
|
38
|
-
Swatch: [
|
|
39
|
-
{
|
|
40
|
-
id: swatchId,
|
|
41
|
-
value: swatch
|
|
42
|
-
}
|
|
43
|
-
],
|
|
44
|
-
Typography: [
|
|
45
|
-
{
|
|
46
|
-
id: typographyId,
|
|
47
|
-
value: typography
|
|
48
|
-
}
|
|
49
|
-
]
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
export {
|
|
53
|
-
cacheData,
|
|
54
|
-
value
|
|
55
|
-
};
|
|
56
|
-
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/next/components/tests/controls/rich-text-v2-control/fixtures.tsx"],"sourcesContent":["import { APIResourceType, type Swatch, type Typography } from '../../../../../api'\n\nimport * as Fixture from '../fixtures/rich-text-v2'\nimport { type CacheData } from '../../../../../api/react'\n\nconst swatchId = 'U3dhdGNoOmJkODYxMWM5LTNiZjItNDM3MS1iMmU4LTBmMmNlMDZjNDE1OA=='\nconst swatch: Swatch = {\n __typename: APIResourceType.Swatch,\n id: swatchId,\n hue: 238,\n saturation: 87,\n lightness: 49,\n}\n\nconst typographyId = 'VHlwb2dyYXBoeTowNGI4OTZlMC0wZWEyLTRkMTMtYmU3ZS0xYmY1M2VmMjBiZjc='\nconst typography: Typography = {\n __typename: APIResourceType.Typography,\n id: typographyId,\n name: 'Body',\n style: [\n {\n deviceId: 'desktop',\n value: {\n fontFamily: 'Lato',\n fontSize: { value: 16, unit: 'px' },\n color: null,\n lineHeight: null,\n letterSpacing: null,\n fontWeight: null,\n textAlign: null,\n uppercase: null,\n underline: null,\n strikethrough: null,\n italic: null,\n },\n },\n ],\n}\n\nexport const value = Fixture.data\nexport const cacheData = (): Partial<CacheData> => ({\n apiResources: {\n Swatch: [\n {\n id: swatchId,\n value: swatch,\n },\n ],\n Typography: [\n {\n id: typographyId,\n value: typography,\n },\n ],\n },\n})\n"],"mappings":"AAAA,SAAS,uBAAqD;AAE9D,YAAY,aAAa;AAGzB,MAAM,WAAW;AACjB,MAAM,SAAiB;AAAA,EACrB,YAAY,gBAAgB;AAAA,EAC5B,IAAI;AAAA,EACJ,KAAK;AAAA,EACL,YAAY;AAAA,EACZ,WAAW;AACb;AAEA,MAAM,eAAe;AACrB,MAAM,aAAyB;AAAA,EAC7B,YAAY,gBAAgB;AAAA,EAC5B,IAAI;AAAA,EACJ,MAAM;AAAA,EACN,OAAO;AAAA,IACL;AAAA,MACE,UAAU;AAAA,MACV,OAAO;AAAA,QACL,YAAY;AAAA,QACZ,UAAU,EAAE,OAAO,IAAI,MAAM,KAAK;AAAA,QAClC,OAAO;AAAA,QACP,YAAY;AAAA,QACZ,eAAe;AAAA,QACf,YAAY;AAAA,QACZ,WAAW;AAAA,QACX,WAAW;AAAA,QACX,WAAW;AAAA,QACX,eAAe;AAAA,QACf,QAAQ;AAAA,MACV;AAAA,IACF;AAAA,EACF;AACF;AAEO,MAAM,QAAQ,QAAQ;AACtB,MAAM,YAAY,OAA2B;AAAA,EAClD,cAAc;AAAA,IACZ,QAAQ;AAAA,MACN;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,MACT;AAAA,IACF;AAAA,IACA,YAAY;AAAA,MACV;AAAA,QACE,IAAI;AAAA,QACJ,OAAO;AAAA,MACT;AAAA,IACF;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { Style, TextInput } from "../../../../../controls";
|
|
3
|
-
import { MakeswiftComponentType } from "../../../../../components/builtin/constants";
|
|
4
|
-
function Button({ className, title }) {
|
|
5
|
-
return /* @__PURE__ */ jsx("button", { className, children: title });
|
|
6
|
-
}
|
|
7
|
-
const value = {
|
|
8
|
-
width: [{ deviceId: "desktop", value: { value: 80, unit: "%" } }],
|
|
9
|
-
margin: [
|
|
10
|
-
{
|
|
11
|
-
deviceId: "desktop",
|
|
12
|
-
value: {
|
|
13
|
-
marginTop: { value: 4, unit: "px" },
|
|
14
|
-
marginLeft: void 0,
|
|
15
|
-
marginRight: void 0,
|
|
16
|
-
marginBottom: void 0
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
]
|
|
20
|
-
};
|
|
21
|
-
const registerComponents = (runtime) => {
|
|
22
|
-
runtime.registerComponent(Button, {
|
|
23
|
-
type: MakeswiftComponentType.Button,
|
|
24
|
-
label: "Button",
|
|
25
|
-
props: {
|
|
26
|
-
className: Style(),
|
|
27
|
-
title: TextInput({ defaultValue: "Button" })
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
export {
|
|
32
|
-
registerComponents,
|
|
33
|
-
value
|
|
34
|
-
};
|
|
35
|
-
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../../src/next/components/tests/controls/style-control/fixtures.tsx"],"sourcesContent":["import { type ValueType } from '@makeswift/controls'\nimport { Style, StyleDefinition, TextInput } from '../../../../../controls'\nimport { MakeswiftComponentType } from '../../../../../components/builtin/constants'\nimport { ReactRuntime } from '../../../../../react'\n\nfunction Button({ className, title }: { className: string; title: string }) {\n return <button className={className}>{title}</button>\n}\n\nexport const value: ValueType<StyleDefinition> = {\n width: [{ deviceId: 'desktop', value: { value: 80, unit: '%' } }],\n margin: [\n {\n deviceId: 'desktop',\n value: {\n marginTop: { value: 4, unit: 'px' },\n marginLeft: undefined,\n marginRight: undefined,\n marginBottom: undefined,\n },\n },\n ],\n}\n\nexport const registerComponents = (runtime: ReactRuntime) => {\n runtime.registerComponent(Button, {\n type: MakeswiftComponentType.Button,\n label: 'Button',\n props: {\n className: Style(),\n title: TextInput({ defaultValue: 'Button' }),\n },\n })\n}\n"],"mappings":"AAMS;AALT,SAAS,OAAwB,iBAAiB;AAClD,SAAS,8BAA8B;AAGvC,SAAS,OAAO,EAAE,WAAW,MAAM,GAAyC;AAC1E,SAAO,oBAAC,YAAO,WAAuB,iBAAM;AAC9C;AAEO,MAAM,QAAoC;AAAA,EAC/C,OAAO,CAAC,EAAE,UAAU,WAAW,OAAO,EAAE,OAAO,IAAI,MAAM,IAAI,EAAE,CAAC;AAAA,EAChE,QAAQ;AAAA,IACN;AAAA,MACE,UAAU;AAAA,MACV,OAAO;AAAA,QACL,WAAW,EAAE,OAAO,GAAG,MAAM,KAAK;AAAA,QAClC,YAAY;AAAA,QACZ,aAAa;AAAA,QACb,cAAc;AAAA,MAChB;AAAA,IACF;AAAA,EACF;AACF;AAEO,MAAM,qBAAqB,CAAC,YAA0B;AAC3D,UAAQ,kBAAkB,QAAQ;AAAA,IAChC,MAAM,uBAAuB;AAAA,IAC7B,OAAO;AAAA,IACP,OAAO;AAAA,MACL,WAAW,MAAM;AAAA,MACjB,OAAO,UAAU,EAAE,cAAc,SAAS,CAAC;AAAA,IAC7C;AAAA,EACF,CAAC;AACH;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/breakpoints.ts"],"sourcesContent":["export const DESKTOP_MEDIA_QUERY = 'only screen and (min-width: 769px)'\nexport const TABLET_MEDIA_QUERY = 'only screen and (min-width: 769px)'\nexport const MOBILE_MEDIA_QUERY = 'only screen and (min-width: 769px)'\n"],"mappings":"AAAO,MAAM,sBAAsB;AAC5B,MAAM,qBAAqB;AAC3B,MAAM,qBAAqB;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/element-data.ts"],"sourcesContent":["import { randomUUID } from 'crypto'\nimport { type MakeswiftPageSnapshot, type MakeswiftComponentSnapshot } from '../../../next/client'\nimport { type ElementData } from '../../../state/react-page'\nimport { CacheData } from '../../../api/react'\nimport { MakeswiftComponentType } from '../../../components'\n\nexport function createRootComponent(elements: ElementData[], rootId?: string) {\n return {\n key: rootId ?? randomUUID(),\n type: MakeswiftComponentType.Root,\n props: {\n children: {\n columns: [\n {\n deviceId: 'desktop',\n value: {\n count: 12,\n spans: elements?.map(() => [12]),\n },\n },\n ],\n elements,\n },\n },\n }\n}\n\nexport function createMakeswiftPageSnapshot(\n elementData: ElementData,\n {\n cacheData = {},\n locale = null,\n }: { cacheData?: Partial<MakeswiftPageSnapshot['cacheData']>; locale?: string | null } = {},\n): MakeswiftPageSnapshot {\n return {\n document: {\n id: 'test-page-id',\n site: { id: 'test-site-id' },\n data: elementData,\n snippets: [],\n fonts: [],\n meta: {},\n seo: {},\n localizedPages: [],\n locale,\n },\n cacheData: {\n ...CacheData.empty(),\n ...cacheData,\n },\n }\n}\n\nexport function createMakeswiftComponentSnapshot(\n elementData: ElementData,\n {\n cacheData = {},\n locale = null,\n }: { cacheData?: Partial<MakeswiftComponentSnapshot['cacheData']>; locale?: string | null } = {},\n): MakeswiftComponentSnapshot {\n return {\n key: randomUUID(),\n document: {\n id: 'test-component-id',\n name: 'Test Component Document',\n siteId: 'test-site-id',\n data: elementData,\n inheritsFromParent: false,\n locale,\n },\n meta: {\n allowLocaleFallback: false,\n requestedLocale: locale,\n },\n cacheData: {\n ...CacheData.empty(),\n ...cacheData,\n },\n }\n}\n"],"mappings":"AAAA,SAAS,kBAAkB;AAG3B,SAAS,iBAAiB;AAC1B,SAAS,8BAA8B;AAEhC,SAAS,oBAAoB,UAAyB,QAAiB;AAC5E,SAAO;AAAA,IACL,KAAK,UAAU,WAAW;AAAA,IAC1B,MAAM,uBAAuB;AAAA,IAC7B,OAAO;AAAA,MACL,UAAU;AAAA,QACR,SAAS;AAAA,UACP;AAAA,YACE,UAAU;AAAA,YACV,OAAO;AAAA,cACL,OAAO;AAAA,cACP,OAAO,UAAU,IAAI,MAAM,CAAC,EAAE,CAAC;AAAA,YACjC;AAAA,UACF;AAAA,QACF;AAAA,QACA;AAAA,MACF;AAAA,IACF;AAAA,EACF;AACF;AAEO,SAAS,4BACd,aACA;AAAA,EACE,YAAY,CAAC;AAAA,EACb,SAAS;AACX,IAAyF,CAAC,GACnE;AACvB,SAAO;AAAA,IACL,UAAU;AAAA,MACR,IAAI;AAAA,MACJ,MAAM,EAAE,IAAI,eAAe;AAAA,MAC3B,MAAM;AAAA,MACN,UAAU,CAAC;AAAA,MACX,OAAO,CAAC;AAAA,MACR,MAAM,CAAC;AAAA,MACP,KAAK,CAAC;AAAA,MACN,gBAAgB,CAAC;AAAA,MACjB;AAAA,IACF;AAAA,IACA,WAAW;AAAA,MACT,GAAG,UAAU,MAAM;AAAA,MACnB,GAAG;AAAA,IACL;AAAA,EACF;AACF;AAEO,SAAS,iCACd,aACA;AAAA,EACE,YAAY,CAAC;AAAA,EACb,SAAS;AACX,IAA8F,CAAC,GACnE;AAC5B,SAAO;AAAA,IACL,KAAK,WAAW;AAAA,IAChB,UAAU;AAAA,MACR,IAAI;AAAA,MACJ,MAAM;AAAA,MACN,QAAQ;AAAA,MACR,MAAM;AAAA,MACN,oBAAoB;AAAA,MACpB;AAAA,IACF;AAAA,IACA,MAAM;AAAA,MACJ,qBAAqB;AAAA,MACrB,iBAAiB;AAAA,IACnB;AAAA,IACA,WAAW;AAAA,MACT,GAAG,UAAU,MAAM;AAAA,MACnB,GAAG;AAAA,IACL;AAAA,EACF;AACF;","names":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/index.ts"],"sourcesContent":["export * from './breakpoints'\nexport * from './element-data'\nexport * from './react-provider'\n"],"mappings":"AAAA,cAAc;AACd,cAAc;AACd,cAAc;","names":[]}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { jsx } from "react/jsx-runtime";
|
|
2
|
-
import { RootStyleRegistry } from "../../../next";
|
|
3
|
-
import { ReactRuntimeProvider } from "../components/RuntimeProvider";
|
|
4
|
-
function ReactProvider({
|
|
5
|
-
children,
|
|
6
|
-
runtime,
|
|
7
|
-
previewMode = false
|
|
8
|
-
}) {
|
|
9
|
-
return /* @__PURE__ */ jsx(ReactRuntimeProvider, { previewMode, runtime, children: /* @__PURE__ */ jsx(RootStyleRegistry, { children }) });
|
|
10
|
-
}
|
|
11
|
-
export {
|
|
12
|
-
ReactProvider
|
|
13
|
-
};
|
|
14
|
-
//# sourceMappingURL=react-provider.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/runtimes/react/testing/react-provider.tsx"],"sourcesContent":["import { RootStyleRegistry } from '../../../next'\nimport { ReactRuntimeProvider } from '../components/RuntimeProvider'\nimport { ReactRuntime } from '../react-runtime'\n\nexport function ReactProvider({\n children,\n runtime,\n previewMode = false,\n}: {\n children: React.ReactNode\n runtime: ReactRuntime\n previewMode?: boolean\n}) {\n return (\n <ReactRuntimeProvider previewMode={previewMode} runtime={runtime}>\n <RootStyleRegistry>{children}</RootStyleRegistry>\n </ReactRuntimeProvider>\n )\n}\n"],"mappings":"AAeM;AAfN,SAAS,yBAAyB;AAClC,SAAS,4BAA4B;AAG9B,SAAS,cAAc;AAAA,EAC5B;AAAA,EACA;AAAA,EACA,cAAc;AAChB,GAIG;AACD,SACE,oBAAC,wBAAqB,aAA0B,SAC9C,8BAAC,qBAAmB,UAAS,GAC/B;AAEJ;","names":[]}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
export type PageMetadataSettings = {
|
|
2
|
-
title?: boolean;
|
|
3
|
-
description?: boolean;
|
|
4
|
-
keywords?: boolean;
|
|
5
|
-
socialImage?: boolean;
|
|
6
|
-
canonicalUrl?: boolean;
|
|
7
|
-
indexingBlocked?: boolean;
|
|
8
|
-
favicon?: boolean;
|
|
9
|
-
};
|
|
10
|
-
export declare function flattenMetadataSettings(settings?: boolean | PageMetadataSettings): PageMetadataSettings;
|
|
11
|
-
//# sourceMappingURL=page-seo-settings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"page-seo-settings.d.ts","sourceRoot":"","sources":["../../../../src/components/page/page-seo-settings.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,oBAAoB,GAAG;IACjC,KAAK,CAAC,EAAE,OAAO,CAAA;IACf,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,eAAe,CAAC,EAAE,OAAO,CAAA;IACzB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,CAAA;AAED,wBAAgB,uBAAuB,CACrC,QAAQ,CAAC,EAAE,OAAO,GAAG,oBAAoB,GACxC,oBAAoB,CAatB"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/next/components/tests/controls/color-control/client.test.tsx"],"names":[],"mappings":"AAAA,8BAA8B"}
|