@numueg/theme-sdk 0.10.1 → 0.12.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 +86 -0
- package/dist/{chunk-O4GLTNLE.cjs → chunk-7RZISLP2.cjs} +3 -3
- package/dist/{chunk-O4GLTNLE.cjs.map → chunk-7RZISLP2.cjs.map} +1 -1
- package/dist/{chunk-QFFTHIFZ.mjs → chunk-ZECKSIDL.mjs} +3 -3
- package/dist/{chunk-QFFTHIFZ.mjs.map → chunk-ZECKSIDL.mjs.map} +1 -1
- package/dist/{entities-B8378GKp.d.mts → entities-1XRRUTlO.d.mts} +45 -1
- package/dist/{entities-B8378GKp.d.ts → entities-1XRRUTlO.d.ts} +45 -1
- package/dist/index.cjs +212 -29
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +282 -8
- package/dist/index.d.ts +282 -8
- package/dist/index.mjs +187 -20
- package/dist/index.mjs.map +1 -1
- package/dist/{mount-BDo4a42I.d.mts → mount-DDFMacmj.d.mts} +1 -1
- package/dist/{mount-DQZu8aBB.d.ts → mount-qofjiBxw.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-1XRRUTlO.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-1XRRUTlO.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-1XRRUTlO.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-1XRRUTlO.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 chunk7RZISLP2_cjs = require('./chunk-7RZISLP2.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 chunk7RZISLP2_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 chunk7RZISLP2_cjs.KNOWN_TEMPLATES; }
|
|
14
14
|
});
|
|
15
15
|
Object.defineProperty(exports, "REQUIRED_TEMPLATES", {
|
|
16
16
|
enumerable: true,
|
|
17
|
-
get: function () { return
|
|
17
|
+
get: function () { return chunk7RZISLP2_cjs.REQUIRED_TEMPLATES; }
|
|
18
18
|
});
|
|
19
19
|
Object.defineProperty(exports, "SDK_VERSION", {
|
|
20
20
|
enumerable: true,
|
|
21
|
-
get: function () { return
|
|
21
|
+
get: function () { return chunk7RZISLP2_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 chunk7RZISLP2_cjs.THEME_CONTRACT_VERSION; }
|
|
26
26
|
});
|
|
27
27
|
Object.defineProperty(exports, "mergeResults", {
|
|
28
28
|
enumerable: true,
|
|
29
|
-
get: function () { return
|
|
29
|
+
get: function () { return chunk7RZISLP2_cjs.mergeResults; }
|
|
30
30
|
});
|
|
31
31
|
Object.defineProperty(exports, "validateBuiltManifest", {
|
|
32
32
|
enumerable: true,
|
|
33
|
-
get: function () { return
|
|
33
|
+
get: function () { return chunk7RZISLP2_cjs.validateBuiltManifest; }
|
|
34
34
|
});
|
|
35
35
|
Object.defineProperty(exports, "validateManifest", {
|
|
36
36
|
enumerable: true,
|
|
37
|
-
get: function () { return
|
|
37
|
+
get: function () { return chunk7RZISLP2_cjs.validateManifest; }
|
|
38
38
|
});
|
|
39
39
|
Object.defineProperty(exports, "validateSectionSchema", {
|
|
40
40
|
enumerable: true,
|
|
41
|
-
get: function () { return
|
|
41
|
+
get: function () { return chunk7RZISLP2_cjs.validateSectionSchema; }
|
|
42
42
|
});
|
|
43
43
|
Object.defineProperty(exports, "validateSettingsAgainstSchema", {
|
|
44
44
|
enumerable: true,
|
|
45
|
-
get: function () { return
|
|
45
|
+
get: function () { return chunk7RZISLP2_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-ZECKSIDL.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 chunk7RZISLP2_cjs = require('./chunk-7RZISLP2.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 ?? chunk7RZISLP2_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 chunk7RZISLP2_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-1XRRUTlO.mjs';
|
|
3
|
+
import { T as ThemeMountContext } from './mount-DDFMacmj.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-1XRRUTlO.js';
|
|
3
|
+
import { T as ThemeMountContext } from './mount-qofjiBxw.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-ZECKSIDL.mjs';
|
|
2
|
+
export { REQUIRED_TEMPLATES } from './chunk-ZECKSIDL.mjs';
|
|
3
3
|
|
|
4
4
|
// src/verify/index.ts
|
|
5
5
|
function makeFixtureStore(overrides = {}) {
|