@makeswift/runtime 0.23.5 → 0.24.0-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/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 +1 -4
- package/dist/cjs/next/components/tests/controls/page-control-prop-rendering.js.map +1 -1
- package/dist/cjs/next/hooks/use-is-pages-router.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/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 +1 -4
- package/dist/esm/next/components/tests/controls/page-control-prop-rendering.js.map +1 -1
- package/dist/esm/next/hooks/use-is-pages-router.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/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.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/hooks/use-is-pages-router.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/package.json +4 -4
- 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/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/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/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
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type Document } from '../../state/react-page';
|
|
3
3
|
import { MakeswiftPageDocument } from '../../next';
|
|
4
|
-
import { type PageMetadataSettings } from './page-seo-settings';
|
|
5
4
|
type Props = {
|
|
6
5
|
page: MakeswiftPageDocument;
|
|
7
6
|
rootDocument: Document;
|
|
8
|
-
metadata?: boolean | PageMetadataSettings;
|
|
9
7
|
};
|
|
10
|
-
export declare function Page({ page, rootDocument
|
|
8
|
+
export declare function Page({ page, rootDocument }: Props): JSX.Element;
|
|
11
9
|
export {};
|
|
12
10
|
//# sourceMappingURL=Page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/components/page/Page.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"Page.d.ts","sourceRoot":"","sources":["../../../../src/components/page/Page.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,wBAAwB,CAAA;AACtD,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAKlD,KAAK,KAAK,GAAG;IACX,IAAI,EAAE,qBAAqB,CAAA;IAC3B,YAAY,EAAE,QAAQ,CAAA;CACvB,CAAA;AAED,wBAAgB,IAAI,CAAC,EAAE,IAAI,EAAE,YAAY,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAgB/D"}
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { MakeswiftPageDocument } from '../../next';
|
|
3
|
-
import { type PageMetadataSettings } from './page-seo-settings';
|
|
4
3
|
type Props = {
|
|
5
4
|
document: MakeswiftPageDocument;
|
|
6
|
-
metadata?: PageMetadataSettings;
|
|
7
5
|
};
|
|
8
|
-
export declare function PageHead({ document: page
|
|
6
|
+
export declare function PageHead({ document: page }: Props): JSX.Element;
|
|
9
7
|
export {};
|
|
10
8
|
//# sourceMappingURL=PageHead.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PageHead.d.ts","sourceRoot":"","sources":["../../../../src/components/page/PageHead.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"PageHead.d.ts","sourceRoot":"","sources":["../../../../src/components/page/PageHead.tsx"],"names":[],"mappings":";AAGA,OAAO,EAAE,qBAAqB,EAAE,MAAM,YAAY,CAAA;AAgBlD,KAAK,KAAK,GAAG;IACX,QAAQ,EAAE,qBAAqB,CAAA;CAChC,CAAA;AAED,wBAAgB,QAAQ,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,KAAK,GAAG,GAAG,CAAC,OAAO,CAoF/D"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Link/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwC,UAAU,EAAE,MAAM,OAAO,CAAA;AAGxE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/shared/Link/index.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAwC,UAAU,EAAE,MAAM,OAAO,CAAA;AAGxE,OAAO,EAAE,QAAQ,EAAE,MAAM,6BAA6B,CAAA;AAKtD,KAAK,SAAS,GAAG;IACf,IAAI,CAAC,EAAE,QAAQ,CAAA;IACf,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,CAAC,iBAAiB,CAAC,KAAK,OAAO,CAAA;CAC5D,CAAA;AAmBD,eAAO,MAAM,IAAI,6PAiDf,CAAA"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { type
|
|
1
|
+
export { type ConfigType, type Data, type DataType, type ValueType, type ResolvedValueType, type ControlMessage, type ReplacementContext, type SendMessageType, ControlDefinition, ControlInstance, DefaultControlInstance, ShapeV2Control, } from '@makeswift/controls';
|
|
2
2
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,UAAU,EACf,KAAK,IAAI,EACT,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,iBAAiB,EACtB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,eAAe,EACpB,iBAAiB,EACjB,eAAe,EACf,sBAAsB,EACtB,cAAc,GACf,MAAM,qBAAqB,CAAA"}
|
|
@@ -1,27 +1,7 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
2
|
import { type MakeswiftPageSnapshot } from '../client';
|
|
3
|
-
import { type PageMetadataSettings } from '../../components/page/page-seo-settings';
|
|
4
3
|
export type PageProps = {
|
|
5
4
|
snapshot: MakeswiftPageSnapshot;
|
|
6
|
-
metadata?: boolean | PageMetadataSettings;
|
|
7
5
|
};
|
|
8
|
-
|
|
9
|
-
* @param snapshot - The snapshot of the page to render, from
|
|
10
|
-
* `client.getPageSnapshot()`.
|
|
11
|
-
* @param metadata - Allows control over whether to use data from Makeswift for
|
|
12
|
-
* rendering metadata tags in the `<head>` of the page. Pass `true` (default if
|
|
13
|
-
* not provided) to render all metadata tags, or `false` to not render any. For
|
|
14
|
-
* more granular control, pass an object with boolean values for specific
|
|
15
|
-
* metadata fields. Valid fields include:
|
|
16
|
-
* - `title`
|
|
17
|
-
* - `description`
|
|
18
|
-
* - `keywords`
|
|
19
|
-
* - `socialImage`
|
|
20
|
-
* - `canonicalUrl`
|
|
21
|
-
* - `indexingBlocked`
|
|
22
|
-
* - `favicon`
|
|
23
|
-
*
|
|
24
|
-
* If a field is not provided, it will default to `false`.
|
|
25
|
-
*/
|
|
26
|
-
export declare const Page: import("react").MemoExoticComponent<({ snapshot, metadata, ...props }: PageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
6
|
+
export declare const Page: import("react").MemoExoticComponent<({ snapshot, ...props }: PageProps) => import("react/jsx-runtime").JSX.Element>;
|
|
27
7
|
//# sourceMappingURL=page.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/next/components/page.tsx"],"names":[],"mappings":";AASA,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"page.d.ts","sourceRoot":"","sources":["../../../../src/next/components/page.tsx"],"names":[],"mappings":";AASA,OAAO,EACL,KAAK,qBAAqB,EAG3B,MAAM,WAAW,CAAA;AAIlB,MAAM,MAAM,SAAS,GAAG;IACtB,QAAQ,EAAE,qBAAqB,CAAA;CAChC,CAAA;AAcD,eAAO,MAAM,IAAI,+DAAiC,SAAS,6CAsBzD,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"color-control.test.d.ts","sourceRoot":"","sources":["../../../../../../src/next/components/tests/controls/color-control.test.tsx"],"names":[],"mappings":"AAAA,8BAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"page-control-prop-rendering.d.ts","sourceRoot":"","sources":["../../../../../../src/next/components/tests/controls/page-control-prop-rendering.tsx"],"names":[],"mappings":"AAKA,OAAO,2BAA2B,CAAA;AAGlC,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEjG,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;
|
|
1
|
+
{"version":3,"file":"page-control-prop-rendering.d.ts","sourceRoot":"","sources":["../../../../../../src/next/components/tests/controls/page-control-prop-rendering.tsx"],"names":[],"mappings":"AAKA,OAAO,2BAA2B,CAAA;AAGlC,OAAO,EAAa,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAEjG,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,uBAAuB,CAAA;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAA;AAC1D,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AA8DhD,wBAAsB,4BAA4B,CAAC,CAAC,SAAS,iBAAiB,EAC5E,iBAAiB,EAAE,CAAC,EACpB,EACE,MAAM,EACN,KAAK,EACL,MAAM,EACN,SAAS,EACT,eAAe,EACf,kBAAkB,EAClB,MAAM,EACN,YAAiB,GAClB,EAAE;IACD,MAAM,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,CAAA;IAC7C,KAAK,EAAE,SAAS,CAAC,CAAC,CAAC,GAAG,SAAS,CAAA;IAC/B,MAAM,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,CAAA;IAC9B,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,kBAAkB,CAAC,EAAE,CAAC,OAAO,EAAE,YAAY,KAAK,IAAI,CAAA;IACpD,MAAM,CAAC,EAAE,CAAC,OAAO,EAAE,WAAW,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;IAChD,YAAY,CAAC,EAAE,WAAW,EAAE,CAAA;CAC7B,iBA4FF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rich-text-v2-control.test.d.ts","sourceRoot":"","sources":["../../../../../../src/next/components/tests/controls/rich-text-v2-control.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-is-pages-router.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/use-is-pages-router.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,
|
|
1
|
+
{"version":3,"file":"use-is-pages-router.d.ts","sourceRoot":"","sources":["../../../../src/next/hooks/use-is-pages-router.ts"],"names":[],"mappings":"AAEA,wBAAgB,gBAAgB,YAO/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ElementData.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/components/ElementData.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAM/E,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,oBAAoB,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,WAAW,
|
|
1
|
+
{"version":3,"file":"ElementData.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/components/ElementData.tsx"],"names":[],"mappings":";AACA,OAAO,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAM/E,KAAK,gBAAgB,GAAG;IACtB,WAAW,EAAE,oBAAoB,CAAA;CAClC,CAAA;AAED,eAAO,MAAM,WAAW,2IA2BvB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-cache-data.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-cache-data.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"use-cache-data.d.ts","sourceRoot":"","sources":["../../../../../src/runtimes/react/hooks/use-cache-data.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,oBAAoB,CAAA;AAMnD,wBAAgB,YAAY,CAAC,SAAS,EAAE,SAAS,QAGhD"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@makeswift/runtime",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.24.0-canary.1",
|
|
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",
|
|
@@ -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,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,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"}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { type ValueType } from '@makeswift/controls';
|
|
2
|
-
import { ColorDefinition } from '@makeswift/controls';
|
|
3
|
-
import { type Swatch } from '../../../../../api';
|
|
4
|
-
import { type CacheData } from '../../../../../api/react';
|
|
5
|
-
type SwatchData = Omit<Swatch, 'id'>;
|
|
6
|
-
export declare const swatchId = "[swatch-test-id]";
|
|
7
|
-
export declare const swatch: SwatchData;
|
|
8
|
-
export declare const value: ValueType<ColorDefinition>;
|
|
9
|
-
export declare const cacheData: (swatch: SwatchData | null) => Partial<CacheData>;
|
|
10
|
-
export {};
|
|
11
|
-
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../../../../src/next/components/tests/controls/color-control/fixtures.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,qBAAqB,CAAA;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAErD,OAAO,EAAmB,KAAK,MAAM,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAEzD,KAAK,UAAU,GAAG,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,CAAA;AAEpC,eAAO,MAAM,QAAQ,qBAAqB,CAAA;AAC1C,eAAO,MAAM,MAAM,EAAE,UAKpB,CAAA;AAED,eAAO,MAAM,KAAK,EAAE,SAAS,CAAC,eAAe,CAG5C,CAAA;AAED,eAAO,MAAM,SAAS,WAAY,UAAU,GAAG,IAAI,KAAG,QAAQ,SAAS,CAIrE,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/next/components/tests/controls/color-control/server.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"client.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/next/components/tests/controls/rich-text-v2-control/client.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { type CacheData } from '../../../../../api/react';
|
|
2
|
-
export declare const value: {
|
|
3
|
-
type: "makeswift::controls::rich-text-v2";
|
|
4
|
-
version: 2;
|
|
5
|
-
descendants: {
|
|
6
|
-
children: ({
|
|
7
|
-
text: string;
|
|
8
|
-
children?: undefined;
|
|
9
|
-
link?: undefined;
|
|
10
|
-
type?: undefined;
|
|
11
|
-
} | {
|
|
12
|
-
children: {
|
|
13
|
-
text: string;
|
|
14
|
-
typography: {
|
|
15
|
-
id: string;
|
|
16
|
-
style: {
|
|
17
|
-
deviceId: string;
|
|
18
|
-
value: {
|
|
19
|
-
color: {
|
|
20
|
-
alpha: number;
|
|
21
|
-
swatchId: string;
|
|
22
|
-
};
|
|
23
|
-
};
|
|
24
|
-
}[];
|
|
25
|
-
};
|
|
26
|
-
}[];
|
|
27
|
-
link: {
|
|
28
|
-
payload: {
|
|
29
|
-
openInNewTab: true;
|
|
30
|
-
url: string;
|
|
31
|
-
};
|
|
32
|
-
type: "OPEN_URL";
|
|
33
|
-
};
|
|
34
|
-
type: "link";
|
|
35
|
-
text?: undefined;
|
|
36
|
-
})[];
|
|
37
|
-
type: "paragraph";
|
|
38
|
-
}[];
|
|
39
|
-
key: string;
|
|
40
|
-
};
|
|
41
|
-
export declare const cacheData: () => Partial<CacheData>;
|
|
42
|
-
//# sourceMappingURL=fixtures.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"fixtures.d.ts","sourceRoot":"","sources":["../../../../../../../src/next/components/tests/controls/rich-text-v2-control/fixtures.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAA;AAoCzD,eAAO,MAAM,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAe,CAAA;AACjC,eAAO,MAAM,SAAS,QAAO,QAAQ,SAAS,CAe5C,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"server.test.d.ts","sourceRoot":"","sources":["../../../../../../../src/next/components/tests/controls/rich-text-v2-control/server.test.tsx"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"makeswift-page-metadata-rendering.test.d.ts","sourceRoot":"","sources":["../../../../../src/next/components/tests/makeswift-page-metadata-rendering.test.tsx"],"names":[],"mappings":"AAAA,8BAA8B;AAE9B,OAAO,2BAA2B,CAAA"}
|