@deenruv/react-ui-devkit 1.0.17-dev.14 → 1.0.17-dev.15
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/DeenruvAdminPanelSettingsTypes.d.ts +21 -2
- package/dist/components/templates/DetailView/useDetailView.d.ts +13 -9
- package/dist/selectors/details/CollectionDetailSelector.d.ts +4 -0
- package/dist/selectors/details/CollectionDetailSelector.js +1 -0
- package/dist/selectors/details/CollectionDetailSelector.js.map +1 -1
- package/dist/types/types.d.ts +4 -0
- package/dist/version.js +1 -1
- package/package.json +5 -5
|
@@ -1,6 +1,24 @@
|
|
|
1
|
-
import { LanguageCode } from "@deenruv/admin-types";
|
|
2
|
-
import React from "react";
|
|
1
|
+
import type { LanguageCode } from "@deenruv/admin-types";
|
|
2
|
+
import type React from "react";
|
|
3
3
|
type Logo = string | React.JSX.Element;
|
|
4
|
+
export type StorefrontEntityUrlContext = {
|
|
5
|
+
entityType: "product";
|
|
6
|
+
entityId: string;
|
|
7
|
+
slug: string;
|
|
8
|
+
channelCode: string;
|
|
9
|
+
languageCode: LanguageCode;
|
|
10
|
+
} | {
|
|
11
|
+
entityType: "collection";
|
|
12
|
+
entityId: string;
|
|
13
|
+
slug: string;
|
|
14
|
+
channelCode: string;
|
|
15
|
+
languageCode: LanguageCode;
|
|
16
|
+
breadcrumbs: ReadonlyArray<{
|
|
17
|
+
id: string;
|
|
18
|
+
slug: string;
|
|
19
|
+
}>;
|
|
20
|
+
};
|
|
21
|
+
export type StorefrontEntityUrlResolver = (context: StorefrontEntityUrlContext) => string | null | undefined;
|
|
4
22
|
export type DeenruvAdminPanelSettings = {
|
|
5
23
|
api: {
|
|
6
24
|
uri: string;
|
|
@@ -11,6 +29,7 @@ export type DeenruvAdminPanelSettings = {
|
|
|
11
29
|
defaultChannelCode?: string;
|
|
12
30
|
defaultLanguageCode?: LanguageCode;
|
|
13
31
|
defaultTranslationLanguageCode?: LanguageCode;
|
|
32
|
+
resolveStorefrontEntityUrl?: StorefrontEntityUrlResolver;
|
|
14
33
|
extras?: {
|
|
15
34
|
orderObservableStates?: string[];
|
|
16
35
|
};
|
|
@@ -246,6 +246,10 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
246
246
|
updatedAt: string;
|
|
247
247
|
name: string;
|
|
248
248
|
slug: string;
|
|
249
|
+
breadcrumbs: {
|
|
250
|
+
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
251
|
+
slug: string;
|
|
252
|
+
}[];
|
|
249
253
|
description: string;
|
|
250
254
|
featuredAsset?: {
|
|
251
255
|
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
@@ -445,6 +449,15 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
445
449
|
lines: {
|
|
446
450
|
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
447
451
|
productVariant: {
|
|
452
|
+
product: {
|
|
453
|
+
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
454
|
+
name: string;
|
|
455
|
+
slug: string;
|
|
456
|
+
featuredAsset?: {
|
|
457
|
+
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
458
|
+
preview: string;
|
|
459
|
+
} | undefined;
|
|
460
|
+
};
|
|
448
461
|
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
449
462
|
name: string;
|
|
450
463
|
featuredAsset?: {
|
|
@@ -455,15 +468,6 @@ export declare const DetailViewStoreContext: React.Context<StoreContextType<"ord
|
|
|
455
468
|
stockLevels: {
|
|
456
469
|
stockOnHand: number;
|
|
457
470
|
}[];
|
|
458
|
-
product: {
|
|
459
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
460
|
-
name: string;
|
|
461
|
-
slug: string;
|
|
462
|
-
featuredAsset?: {
|
|
463
|
-
id: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
464
|
-
preview: string;
|
|
465
|
-
} | undefined;
|
|
466
|
-
};
|
|
467
471
|
productId: import("@deenruv/admin-types").GraphQLTypes["ID"];
|
|
468
472
|
sku: string;
|
|
469
473
|
price: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CollectionDetailSelector.js","sourceRoot":"","sources":["../../../src/selectors/details/CollectionDetailSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEzE,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC9D,EAAE,EAAE,IAAI;IACR,YAAY,EAAE;QACZ,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,EAAE,EAAE,IAAI;QACR,YAAY,EAAE,IAAI;KACnB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,IAAI;KACT;IACD,OAAO,EAAE;QACP,IAAI,EAAE,IAAI;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;SACZ;KACF;IACD,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,IAAI;IACjB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE;QACb,EAAE,EAAE,IAAI;QACR,OAAO,EAAE,IAAI;KACd;IACD,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IAClC,QAAQ,EAAE;QACR,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KACjC;CACF,CAAC,CAAC"}
|
|
1
|
+
{"version":3,"file":"CollectionDetailSelector.js","sourceRoot":"","sources":["../../../src/selectors/details/CollectionDetailSelector.ts"],"names":[],"mappings":"AAAA,OAAO,EAA2B,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAEzE,MAAM,CAAC,MAAM,yBAAyB,GAAG,QAAQ,CAAC,YAAY,CAAC,CAAC;IAC9D,EAAE,EAAE,IAAI;IACR,WAAW,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IACrC,YAAY,EAAE;QACZ,WAAW,EAAE,IAAI;QACjB,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,EAAE,EAAE,IAAI;QACR,YAAY,EAAE,IAAI;KACnB;IACD,MAAM,EAAE;QACN,EAAE,EAAE,IAAI;KACT;IACD,OAAO,EAAE;QACP,IAAI,EAAE,IAAI;QACV,IAAI,EAAE;YACJ,IAAI,EAAE,IAAI;YACV,KAAK,EAAE,IAAI;SACZ;KACF;IACD,SAAS,EAAE,IAAI;IACf,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,IAAI;IACV,SAAS,EAAE,IAAI;IACf,IAAI,EAAE,IAAI;IACV,WAAW,EAAE,IAAI;IACjB,cAAc,EAAE,IAAI;IACpB,aAAa,EAAE;QACb,EAAE,EAAE,IAAI;QACR,OAAO,EAAE,IAAI;KACd;IACD,MAAM,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE;IAClC,QAAQ,EAAE;QACR,EAAE,EAAE,IAAI;QACR,IAAI,EAAE,IAAI;QACV,IAAI,EAAE,IAAI;QACV,aAAa,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE;KACjC;CACF,CAAC,CAAC"}
|
package/dist/types/types.d.ts
CHANGED
package/dist/version.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@deenruv/react-ui-devkit",
|
|
3
|
-
"version": "1.0.17-dev.
|
|
3
|
+
"version": "1.0.17-dev.15",
|
|
4
4
|
"homepage": "https://deenruv.com/",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"publishConfig": {
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
"vaul": "^1.1.2",
|
|
83
83
|
"zod": "^4.4.3",
|
|
84
84
|
"zustand": "^5.0.14",
|
|
85
|
-
"@deenruv/
|
|
86
|
-
"@deenruv/admin-
|
|
87
|
-
"@deenruv/
|
|
85
|
+
"@deenruv/admin-types": "1.0.17-dev.15",
|
|
86
|
+
"@deenruv/admin-ui": "1.0.17-dev.15",
|
|
87
|
+
"@deenruv/common": "1.0.17-dev.15"
|
|
88
88
|
},
|
|
89
89
|
"devDependencies": {
|
|
90
90
|
"@types/react": "^19.2.17",
|
|
@@ -97,7 +97,7 @@
|
|
|
97
97
|
"tslib": "^2.8.1",
|
|
98
98
|
"typescript": "~6.0.3",
|
|
99
99
|
"vite": "^8.0.16",
|
|
100
|
-
"@deenruv/core": "1.0.17-dev.
|
|
100
|
+
"@deenruv/core": "1.0.17-dev.15"
|
|
101
101
|
},
|
|
102
102
|
"peerDependencies": {
|
|
103
103
|
"@deenruv/core": "^1.0.0 || ^1.0.17-dev.0"
|