@numueg/theme-sdk 0.12.0 → 0.13.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/CHANGELOG.md +53 -0
- package/dist/{chunk-7RZISLP2.cjs → chunk-H7RGDWSU.cjs} +3 -3
- package/dist/{chunk-7RZISLP2.cjs.map → chunk-H7RGDWSU.cjs.map} +1 -1
- package/dist/{chunk-ZECKSIDL.mjs → chunk-QPXMBK5U.mjs} +3 -3
- package/dist/{chunk-ZECKSIDL.mjs.map → chunk-QPXMBK5U.mjs.map} +1 -1
- package/dist/{entities-1XRRUTlO.d.mts → entities-DRKn04q0.d.mts} +32 -0
- package/dist/{entities-1XRRUTlO.d.ts → entities-DRKn04q0.d.ts} +32 -0
- package/dist/index.cjs +161 -38
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +215 -5
- package/dist/index.d.ts +215 -5
- package/dist/index.mjs +146 -29
- package/dist/index.mjs.map +1 -1
- package/dist/{mount-DDFMacmj.d.mts → mount-BTaDtz8k.d.mts} +1 -1
- package/dist/{mount-qofjiBxw.d.ts → mount-CLQniVfc.d.ts} +1 -1
- package/dist/types.d.mts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/v2-compat.d.mts +1 -1
- package/dist/v2-compat.d.ts +1 -1
- package/dist/validation.cjs +11 -11
- package/dist/validation.mjs +1 -1
- package/dist/verify.cjs +3 -3
- package/dist/verify.d.mts +2 -2
- package/dist/verify.d.ts +2 -2
- package/dist/verify.mjs +2 -2
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { C as Cart, b as Collection, c as Customer, P as Page, e as Product, i as Store } from './entities-
|
|
3
|
+
import { C as Cart, b as Collection, c as Customer, P as Page, e as Product, i as Store } from './entities-DRKn04q0.mjs';
|
|
4
4
|
import { T as ThemeSettingsV3, M as MountResult } from './theme-CNTB4KnU.mjs';
|
|
5
5
|
|
|
6
6
|
interface LocalizationState {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as react from 'react';
|
|
2
2
|
import { ReactNode, ReactElement } from 'react';
|
|
3
|
-
import { C as Cart, b as Collection, c as Customer, P as Page, e as Product, i as Store } from './entities-
|
|
3
|
+
import { C as Cart, b as Collection, c as Customer, P as Page, e as Product, i as Store } from './entities-DRKn04q0.js';
|
|
4
4
|
import { T as ThemeSettingsV3, M as MountResult } from './theme-CNTB4KnU.js';
|
|
5
5
|
|
|
6
6
|
interface LocalizationState {
|
package/dist/types.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as Address, C as Cart, a as CartItem, b as Collection, c as Customer, O as Order, d as OrderItem, P as Page, e as Product, f as ProductImage, g as ProductVariant, S as SizeChart, h as SizeChartMode, i as Store } from './entities-
|
|
1
|
+
export { A as Address, C as Cart, a as CartItem, b as Collection, c as Customer, O as Order, d as OrderItem, P as Page, e as Product, f as ProductImage, g as ProductVariant, S as SizeChart, h as SizeChartMode, i as Store } from './entities-DRKn04q0.mjs';
|
|
2
2
|
export { B as BlockInstance, a as BlockProps, b as BlockSchema, E as ExternalThemeMetadata, P as PageTemplate, S as SectionGroup, c as SectionInstance, d as SectionPreset, e as SectionProps, f as SectionSchema, g as SettingDefinition, T as ThemeSettingsV3 } from './theme-CNTB4KnU.mjs';
|
package/dist/types.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { A as Address, C as Cart, a as CartItem, b as Collection, c as Customer, O as Order, d as OrderItem, P as Page, e as Product, f as ProductImage, g as ProductVariant, S as SizeChart, h as SizeChartMode, i as Store } from './entities-
|
|
1
|
+
export { A as Address, C as Cart, a as CartItem, b as Collection, c as Customer, O as Order, d as OrderItem, P as Page, e as Product, f as ProductImage, g as ProductVariant, S as SizeChart, h as SizeChartMode, i as Store } from './entities-DRKn04q0.js';
|
|
2
2
|
export { B as BlockInstance, a as BlockProps, b as BlockSchema, E as ExternalThemeMetadata, P as PageTemplate, S as SectionGroup, c as SectionInstance, d as SectionPreset, e as SectionProps, f as SectionSchema, g as SettingDefinition, T as ThemeSettingsV3 } from './theme-CNTB4KnU.js';
|
package/dist/v2-compat.d.mts
CHANGED
package/dist/v2-compat.d.ts
CHANGED
package/dist/validation.cjs
CHANGED
|
@@ -1,48 +1,48 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkH7RGDWSU_cjs = require('./chunk-H7RGDWSU.cjs');
|
|
4
4
|
|
|
5
5
|
|
|
6
6
|
|
|
7
7
|
Object.defineProperty(exports, "KNOWN_SETTING_TYPES", {
|
|
8
8
|
enumerable: true,
|
|
9
|
-
get: function () { return
|
|
9
|
+
get: function () { return chunkH7RGDWSU_cjs.KNOWN_SETTING_TYPES; }
|
|
10
10
|
});
|
|
11
11
|
Object.defineProperty(exports, "KNOWN_TEMPLATES", {
|
|
12
12
|
enumerable: true,
|
|
13
|
-
get: function () { return
|
|
13
|
+
get: function () { return chunkH7RGDWSU_cjs.KNOWN_TEMPLATES; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "REQUIRED_TEMPLATES", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunkH7RGDWSU_cjs.REQUIRED_TEMPLATES; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunkH7RGDWSU_cjs.SDK_VERSION; }
|
|
22
22
|
});
|
|
23
23
|
Object.defineProperty(exports, "THEME_CONTRACT_VERSION", {
|
|
24
24
|
enumerable: true,
|
|
25
|
-
get: function () { return
|
|
25
|
+
get: function () { return chunkH7RGDWSU_cjs.THEME_CONTRACT_VERSION; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "mergeResults", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunkH7RGDWSU_cjs.mergeResults; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "validateBuiltManifest", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunkH7RGDWSU_cjs.validateBuiltManifest; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "validateManifest", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunkH7RGDWSU_cjs.validateManifest; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "validateSectionSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunkH7RGDWSU_cjs.validateSectionSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "validateSettingsAgainstSchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunkH7RGDWSU_cjs.validateSettingsAgainstSchema; }
|
|
46
46
|
});
|
|
47
47
|
//# sourceMappingURL=validation.cjs.map
|
|
48
48
|
//# sourceMappingURL=validation.cjs.map
|
package/dist/validation.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { KNOWN_SETTING_TYPES, KNOWN_TEMPLATES, REQUIRED_TEMPLATES, SDK_VERSION, THEME_CONTRACT_VERSION, mergeResults, validateBuiltManifest, validateManifest, validateSectionSchema, validateSettingsAgainstSchema } from './chunk-
|
|
1
|
+
export { KNOWN_SETTING_TYPES, KNOWN_TEMPLATES, REQUIRED_TEMPLATES, SDK_VERSION, THEME_CONTRACT_VERSION, mergeResults, validateBuiltManifest, validateManifest, validateSectionSchema, validateSettingsAgainstSchema } from './chunk-QPXMBK5U.mjs';
|
|
2
2
|
//# sourceMappingURL=validation.mjs.map
|
|
3
3
|
//# sourceMappingURL=validation.mjs.map
|
package/dist/verify.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkH7RGDWSU_cjs = require('./chunk-H7RGDWSU.cjs');
|
|
4
4
|
|
|
5
5
|
// src/verify/index.ts
|
|
6
6
|
function makeFixtureStore(overrides = {}) {
|
|
@@ -127,7 +127,7 @@ function makeFixtureContext(template, overrides = {}) {
|
|
|
127
127
|
};
|
|
128
128
|
}
|
|
129
129
|
async function verifyThemeRender(serverModule, options = {}) {
|
|
130
|
-
const templates = options.templates ??
|
|
130
|
+
const templates = options.templates ?? chunkH7RGDWSU_cjs.REQUIRED_TEMPLATES;
|
|
131
131
|
if (!serverModule || typeof serverModule.createApp !== "function") {
|
|
132
132
|
return {
|
|
133
133
|
ok: false,
|
|
@@ -172,7 +172,7 @@ async function verifyThemeRender(serverModule, options = {}) {
|
|
|
172
172
|
|
|
173
173
|
Object.defineProperty(exports, "REQUIRED_TEMPLATES", {
|
|
174
174
|
enumerable: true,
|
|
175
|
-
get: function () { return
|
|
175
|
+
get: function () { return chunkH7RGDWSU_cjs.REQUIRED_TEMPLATES; }
|
|
176
176
|
});
|
|
177
177
|
exports.makeFixtureCart = makeFixtureCart;
|
|
178
178
|
exports.makeFixtureCollection = makeFixtureCollection;
|
package/dist/verify.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { C as Cart, b as Collection, c as Customer, e as Product, i as Store } from './entities-
|
|
3
|
-
import { T as ThemeMountContext } from './mount-
|
|
2
|
+
import { C as Cart, b as Collection, c as Customer, e as Product, i as Store } from './entities-DRKn04q0.mjs';
|
|
3
|
+
import { T as ThemeMountContext } from './mount-BTaDtz8k.mjs';
|
|
4
4
|
export { REQUIRED_TEMPLATES } from './validation.mjs';
|
|
5
5
|
import './theme-CNTB4KnU.mjs';
|
|
6
6
|
|
package/dist/verify.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { C as Cart, b as Collection, c as Customer, e as Product, i as Store } from './entities-
|
|
3
|
-
import { T as ThemeMountContext } from './mount-
|
|
2
|
+
import { C as Cart, b as Collection, c as Customer, e as Product, i as Store } from './entities-DRKn04q0.js';
|
|
3
|
+
import { T as ThemeMountContext } from './mount-CLQniVfc.js';
|
|
4
4
|
export { REQUIRED_TEMPLATES } from './validation.js';
|
|
5
5
|
import './theme-CNTB4KnU.js';
|
|
6
6
|
|
package/dist/verify.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { REQUIRED_TEMPLATES } from './chunk-
|
|
2
|
-
export { REQUIRED_TEMPLATES } from './chunk-
|
|
1
|
+
import { REQUIRED_TEMPLATES } from './chunk-QPXMBK5U.mjs';
|
|
2
|
+
export { REQUIRED_TEMPLATES } from './chunk-QPXMBK5U.mjs';
|
|
3
3
|
|
|
4
4
|
// src/verify/index.ts
|
|
5
5
|
function makeFixtureStore(overrides = {}) {
|