@orderingstack/front-components-product-configurator 1.4.2-beta.9 → 1.5.1-beta.2
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/MenuOptions/useMenuOptions.d.ts.map +1 -1
- package/dist/components/MenuProduct/useMenuProduct.d.ts +2 -2
- package/dist/components/MenuProduct/useMenuProduct.d.ts.map +1 -1
- package/dist/components/MenuProductRoot/MenuProductRoot.d.ts.map +1 -1
- package/dist/components/ProductConfigurator/ProductConfigurator.d.ts.map +1 -1
- package/dist/components/ProductConfigurator/useProductConfigurator.d.ts +1 -1
- package/dist/components/ProductConfigurator/useProductConfigurator.d.ts.map +1 -1
- package/dist/context/GroupsValidation.d.ts +15 -0
- package/dist/context/GroupsValidation.d.ts.map +1 -0
- package/dist/hooks/useEmitFilter.d.ts.map +1 -1
- package/dist/index.cjs.js +6 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +356 -207
- package/dist/index.es.js.map +1 -1
- package/dist/state/validate.d.ts.map +1 -1
- package/dist/utils/filter.d.ts +1 -1
- package/dist/utils/filter.d.ts.map +1 -1
- package/dist/utils/groupsValidation.d.ts +4 -0
- package/dist/utils/groupsValidation.d.ts.map +1 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/utils/index.d.ts.map +1 -1
- package/dist/utils/setSelected.d.ts +2 -0
- package/dist/utils/setSelected.d.ts.map +1 -1
- package/package.json +3 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["validate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAA;AAChC,OAAO,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAC5C,OAAO,EAAE,UAAU,EAAE,MAAM,GAAG,CAAA;AAM9B,UAAU,oBAAoB;IAC5B,aAAa,EAAE,MAAM,CAAA;IACrB,KAAK,EAAE,KAAK,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AAA;IAChB,aAAa,EAAE,GAAG,CAAA;IAClB,aAAa,EAAE,OAAO,CAAA;IACtB,QAAQ,EAAE,MAAM,CAAA;IAChB,aAAa,EAAE,MAAM,CAAA;IACrB,gBAAgB,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAA;IACxD,kBAAkB,EAAE,MAAM,IAAI,CAAA;IAC9B,sBAAsB,EAAE,MAAM,IAAI,CAAA;IAClC,WAAW,EAAE,MAAM,IAAI,CAAA;CACxB;AAED,QAAA,MAAM,qBAAqB,QACpB,SAAS,UAAU,CAAC,OACpB,SAAS,UAAU,CAAC,KACxB,gBAiGD,CAAA;AAEF,eAAe,qBAAqB,CAAA"}
|
package/dist/utils/filter.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export declare const getProductToChangeInForm: (product: IProduct, isFilterValid
|
|
|
5
5
|
productsToUnselect: IProduct[];
|
|
6
6
|
};
|
|
7
7
|
export declare const unselectProductsInForm: (productsToUnselect: IProduct[], setValueInForm: any) => void;
|
|
8
|
-
export declare const selectProductsInForm: (
|
|
8
|
+
export declare const selectProductsInForm: (productToSelect: IProduct[], setValueInForm: any, initialSelectedState: any) => void;
|
|
9
9
|
//# sourceMappingURL=filter.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAG7E,eAAO,MAAM,qBAAqB,YACvB,QAAQ,eACJ,mBAAmB,YAkBjC,CAAA;AAED,eAAO,MAAM,wBAAwB,YAC1B,QAAQ,qBACE,OAAO;;;CAuB3B,CAAA;AAED,eAAO,MAAM,sBAAsB,uBACb,QAAQ,EAAE,kBACd,GAAG,
|
|
1
|
+
{"version":3,"file":"filter.d.ts","sourceRoot":"","sources":["filter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,+BAA+B,CAAA;AAG7E,eAAO,MAAM,qBAAqB,YACvB,QAAQ,eACJ,mBAAmB,YAkBjC,CAAA;AAED,eAAO,MAAM,wBAAwB,YAC1B,QAAQ,qBACE,OAAO;;;CAuB3B,CAAA;AAED,eAAO,MAAM,sBAAsB,uBACb,QAAQ,EAAE,kBACd,GAAG,SAMpB,CAAA;AAED,eAAO,MAAM,oBAAoB,oBACd,QAAQ,EAAE,kBACX,GAAG,wBACG,GAAG,SAY1B,CAAA"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { IProduct, IProductStateFilter, IProductStateSelected } from '@orderingstack/ordering-types';
|
|
2
|
+
import { IValidationSelCtxMap } from 'types';
|
|
3
|
+
export declare const getValidationMap2: (product: IProduct, selected: IProductStateSelected | undefined, filter: IProductStateFilter, map?: IValidationSelCtxMap, nestedLvl?: number) => IValidationSelCtxMap;
|
|
4
|
+
//# sourceMappingURL=groupsValidation.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupsValidation.d.ts","sourceRoot":"","sources":["groupsValidation.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,QAAQ,EACR,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,+BAA+B,CAAA;AACtC,OAAO,EAAE,oBAAoB,EAAE,MAAM,OAAO,CAAA;AAK5C,eAAO,MAAM,iBAAiB,YACnB,QAAQ,uDAET,mBAAmB,QACrB,oBAAoB,6CAoD3B,CAAA"}
|
package/dist/utils/index.d.ts
CHANGED
|
@@ -7,4 +7,5 @@ export declare const scrollToId: (id: string) => void;
|
|
|
7
7
|
export declare const getOptionsKindId: (contextName: string) => string;
|
|
8
8
|
export declare const getItemImage: (item: IProduct) => string;
|
|
9
9
|
export declare const isVisible: (item: IProduct) => boolean;
|
|
10
|
+
export declare function findGroupInProductItemsBySelCtx(selCtx: string, parent: IProduct): IProduct | null;
|
|
10
11
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EAAgB,QAAQ,EAAE,MAAM,+BAA+B,CAAA;AAEtE,wBAAgB,UAAU,CAAC,GAAG,OAAO,EAAE,OAAO,EAAE,GAAG,MAAM,CAExD;AAED,eAAO,MAAM,YAAY,UAAW,MAAM,KAAG,OAK5C,CAAA;AAED,eAAO,MAAM,gBAAgB,WAAY,OAAO,GAAG,MAAM,KAAG,OAK3D,CAAA;AAED,eAAO,MAAM,YAAY,WACf,MAAM,GAAG,SAAS,UAClB,MAAM,GAAG,SAAS,iBACX,OAAO,GAAG,SAAS,KACjC,MAOF,CAAA;AAED,eAAO,MAAM,UAAU,OAAQ,MAAM,SAOpC,CAAA;AAED,eAAO,MAAM,gBAAgB,gBAAiB,MAAM,KAAG,MAEtD,CAAA;AAED,eAAO,MAAM,YAAY,SAAU,QAAQ,WAI1C,CAAA;AAED,eAAO,MAAM,SAAS,SAAU,QAAQ,YAOvC,CAAA;AAED,wBAAgB,+BAA+B,CAC7C,MAAM,EAAE,MAAM,EACd,MAAM,EAAE,QAAQ,GACf,QAAQ,GAAG,IAAI,CAiBjB"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { IProduct } from '@orderingstack/ordering-types';
|
|
1
2
|
export declare const removeProductFromState: (selCtx: string, getValues: any, setValue: any) => void;
|
|
2
3
|
export declare const selectUnselectProduct: (setValue: any, getValues: any, product: any, isChecked: boolean, unregister: any, nestedLvl?: number) => void;
|
|
4
|
+
export declare const findProductInParentProductBySelCtx: (parent: IProduct, selCtx: string) => IProduct | null;
|
|
3
5
|
//# sourceMappingURL=setSelected.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setSelected.d.ts","sourceRoot":"","sources":["setSelected.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setSelected.d.ts","sourceRoot":"","sources":["setSelected.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgB,QAAQ,EAAkB,MAAM,+BAA+B,CAAA;AAStF,eAAO,MAAM,sBAAsB,WACzB,MAAM,aACH,GAAG,YACJ,GAAG,SAYd,CAAA;AAED,eAAO,MAAM,qBAAqB,aACtB,GAAG,aACF,GAAG,WACL,GAAG,aACD,OAAO,cACN,GAAG,cACH,MAAM,SAgFnB,CAAA;AAED,eAAO,MAAM,kCAAkC,WAAY,QAAQ,UAAU,MAAM,KAAG,QAAQ,GAAG,IA0BhG,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@orderingstack/front-components-product-configurator",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.1-beta.2",
|
|
4
4
|
"license": "MIT",
|
|
5
5
|
"main": "dist/index.cjs.js",
|
|
6
6
|
"module": "dist/index.es.js",
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"dist"
|
|
10
10
|
],
|
|
11
11
|
"scripts": {
|
|
12
|
-
"dev": "vite",
|
|
12
|
+
"dev": "vite --port 3002",
|
|
13
13
|
"build": "vite build",
|
|
14
14
|
"prepublishOnly": "npm run build",
|
|
15
15
|
"build:watch": "vite build --watch",
|
|
@@ -51,6 +51,7 @@
|
|
|
51
51
|
"@storybook/react": "^6.4.12",
|
|
52
52
|
"@testing-library/jest-dom": "^5.16.1",
|
|
53
53
|
"@testing-library/react": "^12.1.2",
|
|
54
|
+
"@testing-library/react-hooks": "8.0.1",
|
|
54
55
|
"@types/dinero.js": "^1.9.0",
|
|
55
56
|
"@types/jest": "^27.4.0",
|
|
56
57
|
"@types/lodash-es": "^4.17.6",
|