@weaverse/hydrogen 2.8.1 → 2.8.3
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/index.d.mts +12 -7
- package/dist/index.d.ts +12 -7
- package/dist/index.js +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementData, ElementSchema, BasicInput as BasicInput$1, WeaverseElement, WeaverseCoreParams, WeaverseProjectDataType, WeaverseResourcePickerData, Weaverse, PlatformTypeEnum, WeaverseItemStore } from '@weaverse/react';
|
|
2
2
|
export { InputType, PositionInputValue, WeaverseImage, useChildInstances, useItemInstance, useParentInstance, useWeaverse } from '@weaverse/react';
|
|
3
3
|
import { NavigateFunction } from '@remix-run/react';
|
|
4
|
-
import { createWithCache, Storefront } from '@shopify/hydrogen';
|
|
4
|
+
import { createWithCache, I18nBase, Storefront } from '@shopify/hydrogen';
|
|
5
5
|
import { LanguageCode, CountryCode, CurrencyCode } from '@shopify/hydrogen/storefront-api-types';
|
|
6
6
|
import { LoaderFunctionArgs, AppLoadContext } from '@shopify/remix-oxygen';
|
|
7
7
|
import React, { ForwardRefExoticComponent } from 'react';
|
|
@@ -136,7 +136,7 @@ type WeaverseLoaderRequestInfo = {
|
|
|
136
136
|
queries: {
|
|
137
137
|
[key: string]: string | boolean;
|
|
138
138
|
};
|
|
139
|
-
i18n:
|
|
139
|
+
i18n: I18nBase;
|
|
140
140
|
};
|
|
141
141
|
type WeaverseStorefrontData = {
|
|
142
142
|
id?: string;
|
|
@@ -264,7 +264,7 @@ type LoadPageParams = PageAssignmentParams & {
|
|
|
264
264
|
type FetchProjectRequestBody = {
|
|
265
265
|
projectId: string;
|
|
266
266
|
url: string;
|
|
267
|
-
i18n?:
|
|
267
|
+
i18n?: I18nBase;
|
|
268
268
|
params?: PageAssignmentParams;
|
|
269
269
|
isDesignMode?: boolean;
|
|
270
270
|
};
|
|
@@ -277,16 +277,21 @@ type FetchProjectPayload = {
|
|
|
277
277
|
type HydrogenThemeEnv = {
|
|
278
278
|
WEAVERSE_PROJECT_ID: string;
|
|
279
279
|
WEAVERSE_API_KEY: string;
|
|
280
|
-
WEAVERSE_HOST
|
|
281
|
-
PUBLIC_STORE_DOMAIN
|
|
282
|
-
PUBLIC_STOREFRONT_API_TOKEN
|
|
280
|
+
WEAVERSE_HOST?: string;
|
|
281
|
+
PUBLIC_STORE_DOMAIN?: string;
|
|
282
|
+
PUBLIC_STOREFRONT_API_TOKEN?: string;
|
|
283
|
+
SESSION_SECRET?: string;
|
|
284
|
+
PRIVATE_STOREFRONT_API_TOKEN: string;
|
|
285
|
+
PUBLIC_STOREFRONT_ID: string;
|
|
286
|
+
PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID: string;
|
|
287
|
+
PUBLIC_CUSTOMER_ACCOUNT_API_URL: string;
|
|
283
288
|
};
|
|
284
289
|
type WeaverseClientArgs = {
|
|
285
290
|
request: Request;
|
|
286
291
|
cache: Cache;
|
|
287
292
|
waitUntil: ExecutionContext['waitUntil'];
|
|
288
293
|
env: HydrogenThemeEnv;
|
|
289
|
-
storefront: Storefront<
|
|
294
|
+
storefront: Storefront<I18nBase>;
|
|
290
295
|
components: HydrogenComponent[];
|
|
291
296
|
countries?: Localizations;
|
|
292
297
|
themeSchema: HydrogenThemeSchema;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ElementData, ElementSchema, BasicInput as BasicInput$1, WeaverseElement, WeaverseCoreParams, WeaverseProjectDataType, WeaverseResourcePickerData, Weaverse, PlatformTypeEnum, WeaverseItemStore } from '@weaverse/react';
|
|
2
2
|
export { InputType, PositionInputValue, WeaverseImage, useChildInstances, useItemInstance, useParentInstance, useWeaverse } from '@weaverse/react';
|
|
3
3
|
import { NavigateFunction } from '@remix-run/react';
|
|
4
|
-
import { createWithCache, Storefront } from '@shopify/hydrogen';
|
|
4
|
+
import { createWithCache, I18nBase, Storefront } from '@shopify/hydrogen';
|
|
5
5
|
import { LanguageCode, CountryCode, CurrencyCode } from '@shopify/hydrogen/storefront-api-types';
|
|
6
6
|
import { LoaderFunctionArgs, AppLoadContext } from '@shopify/remix-oxygen';
|
|
7
7
|
import React, { ForwardRefExoticComponent } from 'react';
|
|
@@ -136,7 +136,7 @@ type WeaverseLoaderRequestInfo = {
|
|
|
136
136
|
queries: {
|
|
137
137
|
[key: string]: string | boolean;
|
|
138
138
|
};
|
|
139
|
-
i18n:
|
|
139
|
+
i18n: I18nBase;
|
|
140
140
|
};
|
|
141
141
|
type WeaverseStorefrontData = {
|
|
142
142
|
id?: string;
|
|
@@ -264,7 +264,7 @@ type LoadPageParams = PageAssignmentParams & {
|
|
|
264
264
|
type FetchProjectRequestBody = {
|
|
265
265
|
projectId: string;
|
|
266
266
|
url: string;
|
|
267
|
-
i18n?:
|
|
267
|
+
i18n?: I18nBase;
|
|
268
268
|
params?: PageAssignmentParams;
|
|
269
269
|
isDesignMode?: boolean;
|
|
270
270
|
};
|
|
@@ -277,16 +277,21 @@ type FetchProjectPayload = {
|
|
|
277
277
|
type HydrogenThemeEnv = {
|
|
278
278
|
WEAVERSE_PROJECT_ID: string;
|
|
279
279
|
WEAVERSE_API_KEY: string;
|
|
280
|
-
WEAVERSE_HOST
|
|
281
|
-
PUBLIC_STORE_DOMAIN
|
|
282
|
-
PUBLIC_STOREFRONT_API_TOKEN
|
|
280
|
+
WEAVERSE_HOST?: string;
|
|
281
|
+
PUBLIC_STORE_DOMAIN?: string;
|
|
282
|
+
PUBLIC_STOREFRONT_API_TOKEN?: string;
|
|
283
|
+
SESSION_SECRET?: string;
|
|
284
|
+
PRIVATE_STOREFRONT_API_TOKEN: string;
|
|
285
|
+
PUBLIC_STOREFRONT_ID: string;
|
|
286
|
+
PUBLIC_CUSTOMER_ACCOUNT_API_CLIENT_ID: string;
|
|
287
|
+
PUBLIC_CUSTOMER_ACCOUNT_API_URL: string;
|
|
283
288
|
};
|
|
284
289
|
type WeaverseClientArgs = {
|
|
285
290
|
request: Request;
|
|
286
291
|
cache: Cache;
|
|
287
292
|
waitUntil: ExecutionContext['waitUntil'];
|
|
288
293
|
env: HydrogenThemeEnv;
|
|
289
|
-
storefront: Storefront<
|
|
294
|
+
storefront: Storefront<I18nBase>;
|
|
290
295
|
components: HydrogenComponent[];
|
|
291
296
|
countries?: Localizations;
|
|
292
297
|
themeSchema: HydrogenThemeSchema;
|
package/dist/index.js
CHANGED
|
@@ -281,7 +281,7 @@ var package_default = {
|
|
|
281
281
|
name: "@weaverse/hydrogen",
|
|
282
282
|
author: "Weaverse Team",
|
|
283
283
|
description: "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
|
|
284
|
-
version: "2.8.
|
|
284
|
+
version: "2.8.3",
|
|
285
285
|
license: "MIT",
|
|
286
286
|
main: "dist/index.js",
|
|
287
287
|
typings: "dist/index.d.ts",
|
|
@@ -319,7 +319,7 @@ var package_default = {
|
|
|
319
319
|
singleQuote: true
|
|
320
320
|
},
|
|
321
321
|
dependencies: {
|
|
322
|
-
"@weaverse/react": "2.8.
|
|
322
|
+
"@weaverse/react": "2.8.3",
|
|
323
323
|
"react-error-boundary": "^4.0.11"
|
|
324
324
|
},
|
|
325
325
|
devDependencies: {
|
|
@@ -362,8 +362,8 @@ function getWeaverseConfigs(request, env) {
|
|
|
362
362
|
weaverseVersion: weaverseVersion || "",
|
|
363
363
|
isDesignMode: isDesignMode || false,
|
|
364
364
|
publicEnv: {
|
|
365
|
-
PUBLIC_STORE_DOMAIN,
|
|
366
|
-
PUBLIC_STOREFRONT_API_TOKEN
|
|
365
|
+
PUBLIC_STORE_DOMAIN: PUBLIC_STORE_DOMAIN || "",
|
|
366
|
+
PUBLIC_STOREFRONT_API_TOKEN: PUBLIC_STOREFRONT_API_TOKEN || ""
|
|
367
367
|
}
|
|
368
368
|
};
|
|
369
369
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -247,7 +247,7 @@ var package_default = {
|
|
|
247
247
|
name: "@weaverse/hydrogen",
|
|
248
248
|
author: "Weaverse Team",
|
|
249
249
|
description: "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
|
|
250
|
-
version: "2.8.
|
|
250
|
+
version: "2.8.3",
|
|
251
251
|
license: "MIT",
|
|
252
252
|
main: "dist/index.js",
|
|
253
253
|
typings: "dist/index.d.ts",
|
|
@@ -285,7 +285,7 @@ var package_default = {
|
|
|
285
285
|
singleQuote: true
|
|
286
286
|
},
|
|
287
287
|
dependencies: {
|
|
288
|
-
"@weaverse/react": "2.8.
|
|
288
|
+
"@weaverse/react": "2.8.3",
|
|
289
289
|
"react-error-boundary": "^4.0.11"
|
|
290
290
|
},
|
|
291
291
|
devDependencies: {
|
|
@@ -328,8 +328,8 @@ function getWeaverseConfigs(request, env) {
|
|
|
328
328
|
weaverseVersion: weaverseVersion || "",
|
|
329
329
|
isDesignMode: isDesignMode || false,
|
|
330
330
|
publicEnv: {
|
|
331
|
-
PUBLIC_STORE_DOMAIN,
|
|
332
|
-
PUBLIC_STOREFRONT_API_TOKEN
|
|
331
|
+
PUBLIC_STORE_DOMAIN: PUBLIC_STORE_DOMAIN || "",
|
|
332
|
+
PUBLIC_STOREFRONT_API_TOKEN: PUBLIC_STOREFRONT_API_TOKEN || ""
|
|
333
333
|
}
|
|
334
334
|
};
|
|
335
335
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@weaverse/hydrogen",
|
|
3
3
|
"author": "Weaverse Team",
|
|
4
4
|
"description": "Components, hooks, and utilities for building Shopify Hydrogen websites with Weaverse",
|
|
5
|
-
"version": "2.8.
|
|
5
|
+
"version": "2.8.3",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/index.js",
|
|
8
8
|
"typings": "dist/index.d.ts",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"singleQuote": true
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@weaverse/react": "2.8.
|
|
43
|
+
"@weaverse/react": "2.8.3",
|
|
44
44
|
"react-error-boundary": "^4.0.11"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|