@orderingstack/front-components-product-configurator 1.2.3 → 1.3.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/dist/components/ProductConfigurator/ProductConfigurator.d.ts.map +1 -1
- package/dist/context/Components.d.ts +3 -11
- package/dist/context/Components.d.ts.map +1 -1
- package/dist/context/ProductData.d.ts +11 -0
- package/dist/context/ProductData.d.ts.map +1 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +45 -24
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductConfigurator.d.ts","sourceRoot":"","sources":["ProductConfigurator.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAEzE,OAAO,aAAa,CAAA;
|
|
1
|
+
{"version":3,"file":"ProductConfigurator.d.ts","sourceRoot":"","sources":["ProductConfigurator.tsx"],"names":[],"mappings":";AASA,OAAO,EAAE,yBAAyB,EAAE,MAAM,+BAA+B,CAAA;AAEzE,OAAO,aAAa,CAAA;AAKpB,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,yBAAyB,eAiHnE"}
|
|
@@ -1,13 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
export interface ComponentsContext {
|
|
6
|
-
MenuProductRootUI?: React.FC<IMenuProductRootUIProps>;
|
|
7
|
-
MenuItemsUI?: React.FC<MenuItemsUIProps>;
|
|
8
|
-
MenuOptionsUI?: React.FC<IMenuOptionsUIProps>;
|
|
9
|
-
MenuProductUI?: React.FC<MenuProductUIProps>;
|
|
10
|
-
}
|
|
11
|
-
export declare const ComponentsContext: React.Context<ComponentsContext | null>;
|
|
12
|
-
export declare function useComponents(): ComponentsContext;
|
|
2
|
+
import { IProductConfiguratorComponents } from '@orderingstack/ordering-types';
|
|
3
|
+
export declare const ComponentsContext: React.Context<IProductConfiguratorComponents | null>;
|
|
4
|
+
export declare function useComponents(): IProductConfiguratorComponents;
|
|
13
5
|
//# sourceMappingURL=Components.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Components.d.ts","sourceRoot":"","sources":["Components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"Components.d.ts","sourceRoot":"","sources":["Components.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,8BAA8B,EAAE,MAAM,+BAA+B,CAAA;AAE9E,eAAO,MAAM,iBAAiB,sDACoC,CAAA;AAElE,wBAAgB,aAAa,mCAO5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
3
|
+
export interface IProductContext {
|
|
4
|
+
rootProduct: IProduct;
|
|
5
|
+
}
|
|
6
|
+
export declare function ProductDataProvider({ rootProduct, children }: {
|
|
7
|
+
children: React.ReactNode;
|
|
8
|
+
rootProduct: IProduct;
|
|
9
|
+
}): JSX.Element;
|
|
10
|
+
export declare function useProductData(): IProductContext;
|
|
11
|
+
//# sourceMappingURL=ProductData.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductData.d.ts","sourceRoot":"","sources":["ProductData.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAqB,MAAM,OAAO,CAAA;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAExD,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,QAAQ,CAAA;CACtB;AAID,wBAAgB,mBAAmB,CAAC,EAClC,WAAW,EACX,QAAQ,EACT,EAAE;IACD,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAA;IACzB,WAAW,EAAE,QAAQ,CAAA;CACtB,eAMA;AAED,wBAAgB,cAAc,oBAO7B"}
|