@licklist/design 0.72.72-dev.3 → 0.72.72-dev.4
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/product-set/form/ProductsControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductsControl.js +2 -0
- package/dist/product-set/product/ProductControl.d.ts +2 -0
- package/dist/product-set/product/ProductControl.d.ts.map +1 -1
- package/dist/product-set/product/ProductControl.js +7 -0
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts +12 -0
- package/dist/product-set/product/scanRange/ProductScanRangeControl.d.ts.map +1 -0
- package/dist/product-set/product/scanRange/ProductScanRangeControl.js +153 -0
- package/dist/product-set/product/scanRange/index.d.ts +2 -0
- package/dist/product-set/product/scanRange/index.d.ts.map +1 -0
- package/dist/product-set/utils/index.d.ts +2 -0
- package/dist/product-set/utils/index.d.ts.map +1 -1
- package/package.json +2 -2
- package/src/product-set/form/ProductsControl.tsx +2 -0
- package/src/product-set/product/ProductControl.tsx +18 -12
- package/src/product-set/product/scanRange/ProductScanRangeControl.stories.ts +45 -0
- package/src/product-set/product/scanRange/ProductScanRangeControl.tsx +163 -0
- package/src/product-set/product/scanRange/index.ts +1 -0
- package/yarn.lock +45 -45
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductsControl.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAA;AAC/F,OAAO,EAAkB,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAI9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAQhD,UAAU,oBAAqB,SAAQ,aAAa;IAClD,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,YAAY,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;
|
|
1
|
+
{"version":3,"file":"ProductsControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductsControl.tsx"],"names":[],"mappings":"AAeA,OAAO,EAAE,YAAY,EAAE,MAAM,kEAAkE,CAAA;AAC/F,OAAO,EAAkB,mBAAmB,EAAE,oBAAoB,EAAE,MAAM,IAAI,CAAA;AAI9E,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAA;AAQhD,UAAU,oBAAqB,SAAQ,aAAa;IAClD,YAAY,EAAE,mBAAmB,CAAC,oBAAoB,CAAC,CAAC,cAAc,CAAC,CAAA;IACvE,SAAS,EAAE,MAAM,CAAA;IACjB,oBAAoB,EAAE,MAAM,CAAA;IAC5B,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,YAAY,EAAE,YAAY,CAAA;IAC1B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,qBAAqB,CAAC,EAAE,OAAO,CAAA;IAC/B,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAiCD,wBAAgB,eAAe,CAAC,EAC9B,SAAS,EACT,YAAY,EACZ,SAAS,EACT,oBAAoB,EACpB,SAAS,EACT,YAAY,EACZ,WAAW,EACX,qBAAqB,EACrB,oBAAoB,GACrB,EAAE,oBAAoB,2CAkPtB"}
|
|
@@ -22,6 +22,8 @@ export interface ProductControlValues extends FormValues, ProductDepositControlV
|
|
|
22
22
|
deposit: number;
|
|
23
23
|
minQuantity: number;
|
|
24
24
|
maxQuantity: number;
|
|
25
|
+
scanRangeStart?: number;
|
|
26
|
+
scanRangeEnd?: number;
|
|
25
27
|
totalQuantity: number;
|
|
26
28
|
isAvailable: boolean;
|
|
27
29
|
isSoldOut: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/product/ProductControl.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,YAAY,EACZ,YAAY,EAIb,MAAM,kEAAkE,CAAA;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,0DAA0D,CAAA;AAGtF,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAErE,OAAO,EACL,WAAW,EAKZ,MAAM,OAAO,CAAA;AAed,OAAO,EACL,KAAK,EAEN,MAAM,sDAAsD,CAAA;AAQ7D,OAAO,EAEL,oCAAoC,EACrC,MAAM,sDAAsD,CAAA;AAC7D,OAAO,EAEL,2BAA2B,EAC5B,MAAM,iCAAiC,CAAA;AAMxC,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;AAG3C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAA;AAK1D,MAAM,WAAW,YAAY;IAC3B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAID,MAAM,WAAW,oBACf,SAAQ,UAAU,EAChB,2BAA2B;IAC7B,IAAI,EAAE,MAAM,CAAA;IACZ,cAAc,EAAE,MAAM,CAAA;IACtB,WAAW,EAAE,MAAM,CAAA;IACnB,kBAAkB,EAAE,MAAM,CAAA;IAC1B,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,EAAE,MAAM,CAAA;IACf,WAAW,EAAE,MAAM,CAAA;IACnB,WAAW,EAAE,MAAM,CAAA;IACnB,aAAa,EAAE,MAAM,CAAA;IACrB,WAAW,EAAE,OAAO,CAAA;IACpB,SAAS,EAAE,OAAO,CAAA;IAClB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAA;IAChC,WAAW,EAAE,OAAO,CAA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28,7 @@ import { ProductPriceControl } from './price/ProductPriceControl.js';
|
|
|
28
28
|
import { MAX_PRODUCT_DESCRIPTION_CHARACTERS_LENGTH } from './constants.js';
|
|
29
29
|
import { AdvancedOptions } from './advanced-options/AdvancedOptions.js';
|
|
30
30
|
import { ProductZonesControl } from '../form/ProductZonesControl.js';
|
|
31
|
+
import { ProductScanRangeControl } from './scanRange/ProductScanRangeControl.js';
|
|
31
32
|
import { BooleanSwitch } from '../../static/switch/BooleanSwitch.js';
|
|
32
33
|
|
|
33
34
|
function _array_like_to_array(arr, len) {
|
|
@@ -282,6 +283,12 @@ function ProductControl(param) {
|
|
|
282
283
|
onFocus: onFocus,
|
|
283
284
|
disabled: isUnlimited
|
|
284
285
|
}),
|
|
286
|
+
/*#__PURE__*/ jsx(ProductScanRangeControl, {
|
|
287
|
+
isLoading: isLoading,
|
|
288
|
+
fieldNamePrefix: fieldNamePrefix,
|
|
289
|
+
isOverrides: isOverrides,
|
|
290
|
+
onFocus: onFocus
|
|
291
|
+
}),
|
|
285
292
|
/*#__PURE__*/ jsxs(Form.Group, {
|
|
286
293
|
controlId: unlimitedQuantityId,
|
|
287
294
|
className: "custom-checkbox",
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { FieldNamePrefixPath, FormValues } from '@licklist/plugins/dist/types/services/Form/hook-form-service';
|
|
2
|
+
export interface ProductScanRangeControlValues extends FormValues {
|
|
3
|
+
scanRangeStart: number;
|
|
4
|
+
scanRangeEnd: number;
|
|
5
|
+
}
|
|
6
|
+
export interface ProductScanRangeControlProps<T> extends FieldNamePrefixPath<T> {
|
|
7
|
+
isLoading: boolean;
|
|
8
|
+
onFocus?: (e: React.SyntheticEvent) => void;
|
|
9
|
+
isOverrides?: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function ProductScanRangeControl<T extends FormValues>(props: ProductScanRangeControlProps<T>): import("react/jsx-runtime").JSX.Element;
|
|
12
|
+
//# sourceMappingURL=ProductScanRangeControl.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ProductScanRangeControl.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/scanRange/ProductScanRangeControl.tsx"],"names":[],"mappings":"AACA,OAAO,EACL,mBAAmB,EACnB,UAAU,EACX,MAAM,8DAA8D,CAAA;AAWrE,MAAM,WAAW,6BAA8B,SAAQ,UAAU;IAC/D,cAAc,EAAE,MAAM,CAAA;IACtB,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,MAAM,WAAW,4BAA4B,CAAC,CAAC,CAAE,SAAQ,mBAAmB,CAAC,CAAC,CAAC;IAC7E,SAAS,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,CAAC,CAAC,EAAE,KAAK,CAAC,cAAc,KAAK,IAAI,CAAA;IAC3C,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,UAAU,EAC1D,KAAK,EAAE,4BAA4B,CAAC,CAAC,CAAC,2CAuIvC"}
|
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
import { jsxs, Fragment, jsx } from 'react/jsx-runtime';
|
|
2
|
+
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
3
|
+
import { useId } from '@react-aria/utils';
|
|
4
|
+
import { Form } from 'react-bootstrap';
|
|
5
|
+
import Col from 'react-bootstrap/Col';
|
|
6
|
+
import InputGroup from 'react-bootstrap/InputGroup';
|
|
7
|
+
import Row from 'react-bootstrap/Row';
|
|
8
|
+
import { useFormContext, Controller } from 'react-hook-form';
|
|
9
|
+
import { useTranslation } from 'react-i18next';
|
|
10
|
+
import { ReactComponent as SvgIncrement } from '../../../assets/dashboard/increment.svg.js';
|
|
11
|
+
|
|
12
|
+
function ProductScanRangeControl(props) {
|
|
13
|
+
var _props_isLoading = props.isLoading, isLoading = _props_isLoading === void 0 ? false : _props_isLoading, fieldNamePrefix = props.fieldNamePrefix, onFocus = props.onFocus, isOverrides = props.isOverrides;
|
|
14
|
+
var _useFormContext = useFormContext(), control = _useFormContext.control, errors = _useFormContext.formState.errors, setValue = _useFormContext.setValue, watch = _useFormContext.watch;
|
|
15
|
+
var t = useTranslation('Design').t;
|
|
16
|
+
var scanRangeStartId = useId();
|
|
17
|
+
var scanRangeEndId = useId();
|
|
18
|
+
var scanRangeStartValue = watch("".concat(fieldNamePrefix, ".scanRangeStart"));
|
|
19
|
+
var scanRangeEndValue = watch("".concat(fieldNamePrefix, ".scanRangeEnd"));
|
|
20
|
+
return /*#__PURE__*/ jsxs(Fragment, {
|
|
21
|
+
children: [
|
|
22
|
+
/*#__PURE__*/ jsx(Form.Label, {
|
|
23
|
+
children: t('scanningRange')
|
|
24
|
+
}),
|
|
25
|
+
/*#__PURE__*/ jsxs(Row, {
|
|
26
|
+
children: [
|
|
27
|
+
/*#__PURE__*/ jsx(Col, {
|
|
28
|
+
xs: 12,
|
|
29
|
+
sm: 6,
|
|
30
|
+
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
31
|
+
controlId: scanRangeStartId,
|
|
32
|
+
children: [
|
|
33
|
+
/*#__PURE__*/ jsx(Form.Label, {
|
|
34
|
+
children: t('beforeEventStart')
|
|
35
|
+
}),
|
|
36
|
+
/*#__PURE__*/ jsxs(InputGroup, {
|
|
37
|
+
hasValidation: true,
|
|
38
|
+
children: [
|
|
39
|
+
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
40
|
+
className: "arrow-up-btn",
|
|
41
|
+
onClick: function() {
|
|
42
|
+
setValue("".concat(fieldNamePrefix, ".scanRangeStart"), Number(scanRangeStartValue) + 1);
|
|
43
|
+
},
|
|
44
|
+
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
45
|
+
className: "py-0 px-3",
|
|
46
|
+
children: /*#__PURE__*/ jsx(SvgIncrement, {})
|
|
47
|
+
})
|
|
48
|
+
}),
|
|
49
|
+
/*#__PURE__*/ jsx(Controller, {
|
|
50
|
+
render: function(param) {
|
|
51
|
+
var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange, ref = _param_field.ref;
|
|
52
|
+
return /*#__PURE__*/ jsx(Form.Control, {
|
|
53
|
+
ref: ref,
|
|
54
|
+
type: "number",
|
|
55
|
+
min: 0,
|
|
56
|
+
step: 1,
|
|
57
|
+
onWheel: function(event) {
|
|
58
|
+
return event.currentTarget.blur();
|
|
59
|
+
},
|
|
60
|
+
value: value,
|
|
61
|
+
onChange: onChange,
|
|
62
|
+
onFocus: onFocus,
|
|
63
|
+
disabled: isLoading || isOverrides
|
|
64
|
+
});
|
|
65
|
+
},
|
|
66
|
+
control: control,
|
|
67
|
+
name: "".concat(fieldNamePrefix, ".scanRangeStart"),
|
|
68
|
+
rules: {
|
|
69
|
+
min: {
|
|
70
|
+
value: 0,
|
|
71
|
+
message: t('Validation:fieldMinNumber', {
|
|
72
|
+
attribute: t('scanRangeStart'),
|
|
73
|
+
min: 0
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}),
|
|
78
|
+
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
79
|
+
type: "invalid",
|
|
80
|
+
children: HookFormService.getErrors("".concat(fieldNamePrefix, ".scanRangeStart"), errors)
|
|
81
|
+
})
|
|
82
|
+
]
|
|
83
|
+
})
|
|
84
|
+
]
|
|
85
|
+
})
|
|
86
|
+
}),
|
|
87
|
+
/*#__PURE__*/ jsx(Col, {
|
|
88
|
+
xs: 12,
|
|
89
|
+
sm: 6,
|
|
90
|
+
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
91
|
+
controlId: scanRangeEndId,
|
|
92
|
+
children: [
|
|
93
|
+
/*#__PURE__*/ jsx(Form.Label, {
|
|
94
|
+
children: t('AfterEventStart')
|
|
95
|
+
}),
|
|
96
|
+
/*#__PURE__*/ jsxs(InputGroup, {
|
|
97
|
+
hasValidation: true,
|
|
98
|
+
children: [
|
|
99
|
+
/*#__PURE__*/ jsx(InputGroup.Prepend, {
|
|
100
|
+
className: "arrow-up-btn",
|
|
101
|
+
onClick: function() {
|
|
102
|
+
setValue("".concat(fieldNamePrefix, ".scanRangeEnd"), Number(scanRangeEndValue) + 1);
|
|
103
|
+
},
|
|
104
|
+
children: /*#__PURE__*/ jsx(InputGroup.Text, {
|
|
105
|
+
className: "py-0 px-3",
|
|
106
|
+
children: /*#__PURE__*/ jsx(SvgIncrement, {})
|
|
107
|
+
})
|
|
108
|
+
}),
|
|
109
|
+
/*#__PURE__*/ jsx(Controller, {
|
|
110
|
+
render: function(param) {
|
|
111
|
+
var _param_field = param.field, value = _param_field.value, onChange = _param_field.onChange, ref = _param_field.ref;
|
|
112
|
+
return /*#__PURE__*/ jsx(Form.Control, {
|
|
113
|
+
ref: ref,
|
|
114
|
+
type: "number",
|
|
115
|
+
min: 0,
|
|
116
|
+
step: 1,
|
|
117
|
+
onWheel: function(event) {
|
|
118
|
+
return event.currentTarget.blur();
|
|
119
|
+
},
|
|
120
|
+
value: value && value,
|
|
121
|
+
onFocus: onFocus,
|
|
122
|
+
onChange: onChange,
|
|
123
|
+
disabled: isLoading || isOverrides
|
|
124
|
+
});
|
|
125
|
+
},
|
|
126
|
+
control: control,
|
|
127
|
+
name: "".concat(fieldNamePrefix, ".scanRangeEnd"),
|
|
128
|
+
rules: {
|
|
129
|
+
min: {
|
|
130
|
+
value: 0,
|
|
131
|
+
message: t('Validation:fieldMinNumber', {
|
|
132
|
+
attribute: t('scanRangeEnd'),
|
|
133
|
+
min: 0
|
|
134
|
+
})
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
}),
|
|
138
|
+
/*#__PURE__*/ jsx(Form.Control.Feedback, {
|
|
139
|
+
type: "invalid",
|
|
140
|
+
children: HookFormService.getErrors("".concat(fieldNamePrefix, ".scanRangeEnd"), errors)
|
|
141
|
+
})
|
|
142
|
+
]
|
|
143
|
+
})
|
|
144
|
+
]
|
|
145
|
+
})
|
|
146
|
+
})
|
|
147
|
+
]
|
|
148
|
+
})
|
|
149
|
+
]
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export { ProductScanRangeControl };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/product-set/product/scanRange/index.ts"],"names":[],"mappings":"AAAA,cAAc,2BAA2B,CAAA"}
|
|
@@ -38,6 +38,8 @@ export declare const updateModifiersSetAtProductSetForm: (data: ProductSetFormVa
|
|
|
38
38
|
deposit: number;
|
|
39
39
|
minQuantity: number;
|
|
40
40
|
maxQuantity: number;
|
|
41
|
+
scanRangeStart?: number;
|
|
42
|
+
scanRangeEnd?: number;
|
|
41
43
|
totalQuantity: number;
|
|
42
44
|
isAvailable: boolean;
|
|
43
45
|
isSoldOut: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/product-set/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,qEAAqE,CAAA;AACnG,OAAO,EAAE,WAAW,EAAE,MAAM,mEAAmE,CAAA;AAG/F,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAA;AACxF,OAAO,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAG7D,UAAU,yBAAyB;IACjC,MAAM,EAAE,oBAAoB,CAAA;IAC5B,QAAQ,EAAE,eAAe,CAAC,oBAAoB,CAAC,CAAA;IAC/C,CAAC,EAAE,SAAS,CAAA;CACb;AAED,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;CACd;AACD,eAAO,MAAM,iBAAiB,GAAI,CA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EAAE,KAC7B,YAAY,EAAE,GAAG,SAmBnB,CAAA;AAED,eAAQ,MAAM,kCAAkC,SAAU,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAc5E,CAAC;AAEH,eAAO,MAAM,yBAAyB,6BAInC,yBAAyB,YA0B3B,CAAA;AAED,eAAO,MAAM,yBAAyB,WAC5B,CAAC,UAAU,GAAG,oBAAoB,CAAC,EAAE,KAC5C,gBAAgB,EACwD,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.72.72-dev.
|
|
3
|
+
"version": "0.72.72-dev.4",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+ssh://git@bitbucket.org/artelogicsoft/licklist_design.git"
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
]
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@licklist/core": "0.
|
|
45
|
+
"@licklist/core": "0.32.15-dev.2",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
47
|
"@licklist/plugins": "0.35.1-dev.9",
|
|
48
48
|
"lodash": "4.17.21",
|
|
@@ -64,7 +64,7 @@ import { MAX_PRODUCT_DESCRIPTION_CHARACTERS_LENGTH } from './constants'
|
|
|
64
64
|
import { ProductZoneControlValues } from '../product-zone'
|
|
65
65
|
import { AdvancedOptions } from './advanced-options'
|
|
66
66
|
import { ProductZonesControl } from '../form/ProductZonesControl'
|
|
67
|
-
|
|
67
|
+
import { ProductScanRangeControl } from './scanRange'
|
|
68
68
|
|
|
69
69
|
export interface ModifiersSet {
|
|
70
70
|
id: number
|
|
@@ -86,6 +86,8 @@ export interface ProductControlValues
|
|
|
86
86
|
deposit: number
|
|
87
87
|
minQuantity: number
|
|
88
88
|
maxQuantity: number
|
|
89
|
+
scanRangeStart?: number
|
|
90
|
+
scanRangeEnd?: number
|
|
89
91
|
totalQuantity: number
|
|
90
92
|
isAvailable: boolean
|
|
91
93
|
isSoldOut: boolean
|
|
@@ -121,7 +123,6 @@ export interface ProductControlProps<T>
|
|
|
121
123
|
hasTicket?: boolean
|
|
122
124
|
categoryType?: CategoryType
|
|
123
125
|
isOverrides?: boolean
|
|
124
|
-
|
|
125
126
|
}
|
|
126
127
|
|
|
127
128
|
export function ProductControl<T extends FormValues>({
|
|
@@ -136,7 +137,6 @@ export function ProductControl<T extends FormValues>({
|
|
|
136
137
|
categoryType,
|
|
137
138
|
isOverrides = false,
|
|
138
139
|
}: ProductControlProps<T>) {
|
|
139
|
-
|
|
140
140
|
const {
|
|
141
141
|
register,
|
|
142
142
|
control,
|
|
@@ -202,7 +202,6 @@ export function ProductControl<T extends FormValues>({
|
|
|
202
202
|
setInitialImages(formImages as Image[])
|
|
203
203
|
}, [getValues, setInitialImages, fieldNamePrefix])
|
|
204
204
|
|
|
205
|
-
|
|
206
205
|
useEffect(() => {
|
|
207
206
|
if (Array.isArray(images)) {
|
|
208
207
|
setValue(
|
|
@@ -298,14 +297,21 @@ export function ProductControl<T extends FormValues>({
|
|
|
298
297
|
isOverrides={isOverrides}
|
|
299
298
|
onFocus={onFocus}
|
|
300
299
|
/>
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
300
|
+
|
|
301
|
+
<ProductQuantityRechargingControl<T>
|
|
302
|
+
isLoading={isLoading}
|
|
303
|
+
fieldNamePrefix={fieldNamePrefix}
|
|
304
|
+
onFocus={onFocus}
|
|
305
|
+
disabled={isUnlimited}
|
|
306
|
+
/>
|
|
307
|
+
|
|
308
|
+
<ProductScanRangeControl<T>
|
|
309
|
+
isLoading={isLoading}
|
|
310
|
+
fieldNamePrefix={fieldNamePrefix}
|
|
311
|
+
isOverrides={isOverrides}
|
|
312
|
+
onFocus={onFocus}
|
|
313
|
+
/>
|
|
314
|
+
|
|
309
315
|
<Form.Group
|
|
310
316
|
controlId={unlimitedQuantityId}
|
|
311
317
|
className='custom-checkbox'
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
// ProductScanRangeControl.stories.tsx
|
|
2
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
|
+
import { FormProvider, useForm } from 'react-hook-form';
|
|
4
|
+
import Form from 'react-bootstrap/Form';
|
|
5
|
+
|
|
6
|
+
import {
|
|
7
|
+
ProductScanRangeControl,
|
|
8
|
+
ProductScanRangeControlProps,
|
|
9
|
+
ProductScanRangeControlValues,
|
|
10
|
+
} from './ProductScanRangeControl';
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
const meta: Meta<typeof ProductScanRangeControl> = {
|
|
14
|
+
title: 'Product Set/Product/Scan Range',
|
|
15
|
+
component: ProductScanRangeControl,
|
|
16
|
+
};
|
|
17
|
+
export default meta;
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
type Story = StoryObj<typeof ProductScanRangeControl>;
|
|
21
|
+
|
|
22
|
+
export const Default: Story = {
|
|
23
|
+
args: {
|
|
24
|
+
isLoading: false,
|
|
25
|
+
},
|
|
26
|
+
|
|
27
|
+
render: (args: ProductScanRangeControlProps<{}>) => {
|
|
28
|
+
const methods = useForm<ProductScanRangeControlValues>({ mode: 'onChange' });
|
|
29
|
+
const onSubmit = (data: ProductScanRangeControlValues) =>
|
|
30
|
+
console.log('onSubmit', data);
|
|
31
|
+
|
|
32
|
+
return (
|
|
33
|
+
<FormProvider {...methods}>
|
|
34
|
+
<Form
|
|
35
|
+
className="d-flex flex-column"
|
|
36
|
+
noValidate
|
|
37
|
+
onSubmit={methods.handleSubmit(onSubmit)}
|
|
38
|
+
>
|
|
39
|
+
<ProductScanRangeControl {...args} />
|
|
40
|
+
</Form>
|
|
41
|
+
</FormProvider>
|
|
42
|
+
);
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService'
|
|
2
|
+
import {
|
|
3
|
+
FieldNamePrefixPath,
|
|
4
|
+
FormValues,
|
|
5
|
+
} from '@licklist/plugins/dist/types/services/Form/hook-form-service'
|
|
6
|
+
import { useId } from '@react-aria/utils'
|
|
7
|
+
import { Form } from 'react-bootstrap'
|
|
8
|
+
import Col from 'react-bootstrap/Col'
|
|
9
|
+
import InputGroup from 'react-bootstrap/InputGroup'
|
|
10
|
+
import Row from 'react-bootstrap/Row'
|
|
11
|
+
import { Controller, Path, useFormContext } from 'react-hook-form'
|
|
12
|
+
import { useTranslation } from 'react-i18next'
|
|
13
|
+
|
|
14
|
+
import { ReactComponent as IncrementIcon } from '../../../assets/dashboard/increment.svg'
|
|
15
|
+
|
|
16
|
+
export interface ProductScanRangeControlValues extends FormValues {
|
|
17
|
+
scanRangeStart: number
|
|
18
|
+
scanRangeEnd: number
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export interface ProductScanRangeControlProps<T> extends FieldNamePrefixPath<T> {
|
|
22
|
+
isLoading: boolean
|
|
23
|
+
onFocus?: (e: React.SyntheticEvent) => void
|
|
24
|
+
isOverrides?: boolean
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export function ProductScanRangeControl<T extends FormValues>(
|
|
28
|
+
props: ProductScanRangeControlProps<T>,
|
|
29
|
+
) {
|
|
30
|
+
const { isLoading = false, fieldNamePrefix, onFocus, isOverrides } = props
|
|
31
|
+
const {
|
|
32
|
+
control,
|
|
33
|
+
formState: { errors },
|
|
34
|
+
setValue,
|
|
35
|
+
watch
|
|
36
|
+
} = useFormContext<T>()
|
|
37
|
+
const { t } = useTranslation('Design')
|
|
38
|
+
|
|
39
|
+
const scanRangeStartId = useId()
|
|
40
|
+
const scanRangeEndId = useId()
|
|
41
|
+
|
|
42
|
+
const scanRangeStartValue = watch(`${fieldNamePrefix}.scanRangeStart` as Path<T>)
|
|
43
|
+
const scanRangeEndValue = watch(`${fieldNamePrefix}.scanRangeEnd` as Path<T>)
|
|
44
|
+
|
|
45
|
+
return (
|
|
46
|
+
<>
|
|
47
|
+
<Form.Label>{t('scanningRange')}</Form.Label>
|
|
48
|
+
<Row>
|
|
49
|
+
<Col xs={12} sm={6}>
|
|
50
|
+
<Form.Group controlId={scanRangeStartId}>
|
|
51
|
+
<Form.Label>{t('beforeEventStart')}</Form.Label>
|
|
52
|
+
|
|
53
|
+
<InputGroup hasValidation>
|
|
54
|
+
<InputGroup.Prepend
|
|
55
|
+
className='arrow-up-btn'
|
|
56
|
+
onClick={() => {
|
|
57
|
+
setValue(
|
|
58
|
+
`${fieldNamePrefix}.scanRangeStart` as Path<T>,
|
|
59
|
+
(Number(scanRangeStartValue) + 1) as any,
|
|
60
|
+
)
|
|
61
|
+
}}
|
|
62
|
+
>
|
|
63
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
64
|
+
<IncrementIcon />
|
|
65
|
+
</InputGroup.Text>
|
|
66
|
+
</InputGroup.Prepend>
|
|
67
|
+
|
|
68
|
+
<Controller
|
|
69
|
+
render={({ field: { value, onChange, ref } }) => (
|
|
70
|
+
<Form.Control
|
|
71
|
+
ref={ref}
|
|
72
|
+
type='number'
|
|
73
|
+
min={0}
|
|
74
|
+
step={1}
|
|
75
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
76
|
+
value={value as string}
|
|
77
|
+
onChange={onChange}
|
|
78
|
+
onFocus={onFocus}
|
|
79
|
+
disabled={isLoading || isOverrides}
|
|
80
|
+
/>
|
|
81
|
+
)}
|
|
82
|
+
control={control}
|
|
83
|
+
name={`${fieldNamePrefix}.scanRangeStart` as Path<T>}
|
|
84
|
+
rules={{
|
|
85
|
+
min: {
|
|
86
|
+
value: 0,
|
|
87
|
+
message: t('Validation:fieldMinNumber', {
|
|
88
|
+
attribute: t('scanRangeStart'),
|
|
89
|
+
min: 0,
|
|
90
|
+
}) as string,
|
|
91
|
+
},
|
|
92
|
+
}}
|
|
93
|
+
/>
|
|
94
|
+
|
|
95
|
+
<Form.Control.Feedback type='invalid'>
|
|
96
|
+
{HookFormService.getErrors<T>(
|
|
97
|
+
`${fieldNamePrefix}.scanRangeStart` as Path<T>,
|
|
98
|
+
errors,
|
|
99
|
+
)}
|
|
100
|
+
</Form.Control.Feedback>
|
|
101
|
+
</InputGroup>
|
|
102
|
+
</Form.Group>
|
|
103
|
+
</Col>
|
|
104
|
+
|
|
105
|
+
<Col xs={12} sm={6}>
|
|
106
|
+
<Form.Group controlId={scanRangeEndId}>
|
|
107
|
+
<Form.Label>{t('AfterEventStart')}</Form.Label>
|
|
108
|
+
|
|
109
|
+
<InputGroup hasValidation>
|
|
110
|
+
<InputGroup.Prepend
|
|
111
|
+
className='arrow-up-btn'
|
|
112
|
+
onClick={() => {
|
|
113
|
+
setValue(
|
|
114
|
+
`${fieldNamePrefix}.scanRangeEnd` as Path<T>,
|
|
115
|
+
(Number(scanRangeEndValue) + 1) as any,
|
|
116
|
+
)
|
|
117
|
+
}}
|
|
118
|
+
>
|
|
119
|
+
<InputGroup.Text className='py-0 px-3'>
|
|
120
|
+
<IncrementIcon />
|
|
121
|
+
</InputGroup.Text>
|
|
122
|
+
</InputGroup.Prepend>
|
|
123
|
+
|
|
124
|
+
<Controller
|
|
125
|
+
render={({ field: { value, onChange, ref } }) => (
|
|
126
|
+
<Form.Control
|
|
127
|
+
ref={ref}
|
|
128
|
+
type='number'
|
|
129
|
+
min={0}
|
|
130
|
+
step={1}
|
|
131
|
+
onWheel={(event) => event.currentTarget.blur()}
|
|
132
|
+
value={value && (value as string)}
|
|
133
|
+
onFocus={onFocus}
|
|
134
|
+
onChange={onChange}
|
|
135
|
+
disabled={isLoading || isOverrides}
|
|
136
|
+
/>
|
|
137
|
+
)}
|
|
138
|
+
control={control}
|
|
139
|
+
name={`${fieldNamePrefix}.scanRangeEnd` as Path<T>}
|
|
140
|
+
rules={{
|
|
141
|
+
min: {
|
|
142
|
+
value: 0,
|
|
143
|
+
message: t('Validation:fieldMinNumber', {
|
|
144
|
+
attribute: t('scanRangeEnd'),
|
|
145
|
+
min: 0,
|
|
146
|
+
}) as string,
|
|
147
|
+
},
|
|
148
|
+
}}
|
|
149
|
+
/>
|
|
150
|
+
|
|
151
|
+
<Form.Control.Feedback type='invalid'>
|
|
152
|
+
{HookFormService.getErrors<T>(
|
|
153
|
+
`${fieldNamePrefix}.scanRangeEnd` as Path<T>,
|
|
154
|
+
errors,
|
|
155
|
+
)}
|
|
156
|
+
</Form.Control.Feedback>
|
|
157
|
+
</InputGroup>
|
|
158
|
+
</Form.Group>
|
|
159
|
+
</Col>
|
|
160
|
+
</Row>
|
|
161
|
+
</>
|
|
162
|
+
)
|
|
163
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './ProductScanRangeControl'
|
package/yarn.lock
CHANGED
|
@@ -2651,7 +2651,7 @@ __metadata:
|
|
|
2651
2651
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2652
2652
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2653
2653
|
peerDependencies:
|
|
2654
|
-
"@licklist/core": 0.
|
|
2654
|
+
"@licklist/core": 0.32.15-dev.2
|
|
2655
2655
|
"@licklist/eslint-config": 0.5.6
|
|
2656
2656
|
"@licklist/plugins": 0.35.1-dev.9
|
|
2657
2657
|
lodash: 4.17.21
|
|
@@ -5699,11 +5699,11 @@ __metadata:
|
|
|
5699
5699
|
linkType: hard
|
|
5700
5700
|
|
|
5701
5701
|
"@types/node@npm:*":
|
|
5702
|
-
version: 22.
|
|
5703
|
-
resolution: "@types/node@npm:22.
|
|
5702
|
+
version: 22.15.2
|
|
5703
|
+
resolution: "@types/node@npm:22.15.2"
|
|
5704
5704
|
dependencies:
|
|
5705
5705
|
undici-types: "npm:~6.21.0"
|
|
5706
|
-
checksum: 10c0/
|
|
5706
|
+
checksum: 10c0/39da31d5fc63b14fabd217bb8a921c4a7fc3d99f233440209f9fc2d5d736e8773f7efc65223e2fd0e8db8390b0baab9c0cd2e951c2ece8b237f07313ab3cf295
|
|
5707
5707
|
languageName: node
|
|
5708
5708
|
linkType: hard
|
|
5709
5709
|
|
|
@@ -8078,9 +8078,9 @@ __metadata:
|
|
|
8078
8078
|
linkType: hard
|
|
8079
8079
|
|
|
8080
8080
|
"caniuse-lite@npm:^1.0.0, caniuse-lite@npm:^1.0.30001109, caniuse-lite@npm:^1.0.30001125, caniuse-lite@npm:^1.0.30001646, caniuse-lite@npm:^1.0.30001688":
|
|
8081
|
-
version: 1.0.
|
|
8082
|
-
resolution: "caniuse-lite@npm:1.0.
|
|
8083
|
-
checksum: 10c0/
|
|
8081
|
+
version: 1.0.30001715
|
|
8082
|
+
resolution: "caniuse-lite@npm:1.0.30001715"
|
|
8083
|
+
checksum: 10c0/0109a7da797ffbe1aa197baa5242b205011098eecec1087ef3d0c58ceea19be325ab6679b2751a78660adc3051a9f77e99d5789938fd1eb1235e6fdf6a1dbf8e
|
|
8084
8084
|
languageName: node
|
|
8085
8085
|
linkType: hard
|
|
8086
8086
|
|
|
@@ -8223,8 +8223,8 @@ __metadata:
|
|
|
8223
8223
|
linkType: hard
|
|
8224
8224
|
|
|
8225
8225
|
"chromatic@npm:^11.4.0":
|
|
8226
|
-
version: 11.28.
|
|
8227
|
-
resolution: "chromatic@npm:11.28.
|
|
8226
|
+
version: 11.28.2
|
|
8227
|
+
resolution: "chromatic@npm:11.28.2"
|
|
8228
8228
|
peerDependencies:
|
|
8229
8229
|
"@chromatic-com/cypress": ^0.*.* || ^1.0.0
|
|
8230
8230
|
"@chromatic-com/playwright": ^0.*.* || ^1.0.0
|
|
@@ -8237,7 +8237,7 @@ __metadata:
|
|
|
8237
8237
|
chroma: dist/bin.js
|
|
8238
8238
|
chromatic: dist/bin.js
|
|
8239
8239
|
chromatic-cli: dist/bin.js
|
|
8240
|
-
checksum: 10c0/
|
|
8240
|
+
checksum: 10c0/0e30c01adae08708b871c5e27462af14a8426e0fe443d0c42afb2477326703504b02fa96a02e64c858072f535d149b96f207c43b147ba1492de83bb5f505e59e
|
|
8241
8241
|
languageName: node
|
|
8242
8242
|
linkType: hard
|
|
8243
8243
|
|
|
@@ -9867,9 +9867,9 @@ __metadata:
|
|
|
9867
9867
|
linkType: hard
|
|
9868
9868
|
|
|
9869
9869
|
"electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.73":
|
|
9870
|
-
version: 1.5.
|
|
9871
|
-
resolution: "electron-to-chromium@npm:1.5.
|
|
9872
|
-
checksum: 10c0/
|
|
9870
|
+
version: 1.5.142
|
|
9871
|
+
resolution: "electron-to-chromium@npm:1.5.142"
|
|
9872
|
+
checksum: 10c0/05bc0c695a4b7c6fac499700199bfd90d767eea352e67171f005920a225e42fa08dc62ba0d31523fcd2e9b49e25aab133f82270e784888fb5c3c032f6607cdeb
|
|
9873
9873
|
languageName: node
|
|
9874
9874
|
linkType: hard
|
|
9875
9875
|
|
|
@@ -11007,15 +11007,15 @@ __metadata:
|
|
|
11007
11007
|
languageName: node
|
|
11008
11008
|
linkType: hard
|
|
11009
11009
|
|
|
11010
|
-
"fdir@npm:^6.4.
|
|
11011
|
-
version: 6.4.
|
|
11012
|
-
resolution: "fdir@npm:6.4.
|
|
11010
|
+
"fdir@npm:^6.4.4":
|
|
11011
|
+
version: 6.4.4
|
|
11012
|
+
resolution: "fdir@npm:6.4.4"
|
|
11013
11013
|
peerDependencies:
|
|
11014
11014
|
picomatch: ^3 || ^4
|
|
11015
11015
|
peerDependenciesMeta:
|
|
11016
11016
|
picomatch:
|
|
11017
11017
|
optional: true
|
|
11018
|
-
checksum: 10c0/
|
|
11018
|
+
checksum: 10c0/6ccc33be16945ee7bc841e1b4178c0b4cf18d3804894cb482aa514651c962a162f96da7ffc6ebfaf0df311689fb70091b04dd6caffe28d56b9ebdc0e7ccadfdd
|
|
11019
11019
|
languageName: node
|
|
11020
11020
|
linkType: hard
|
|
11021
11021
|
|
|
@@ -13794,9 +13794,9 @@ __metadata:
|
|
|
13794
13794
|
linkType: hard
|
|
13795
13795
|
|
|
13796
13796
|
"libphonenumber-js@npm:^1.9.11":
|
|
13797
|
-
version: 1.12.
|
|
13798
|
-
resolution: "libphonenumber-js@npm:1.12.
|
|
13799
|
-
checksum: 10c0/
|
|
13797
|
+
version: 1.12.7
|
|
13798
|
+
resolution: "libphonenumber-js@npm:1.12.7"
|
|
13799
|
+
checksum: 10c0/ac732b5e8bfe093b4c2aa470a69f52304ebe7cfefebe3ef902ba0cbbf2c159da00993cae0425c7e497961ca015d46082925f37a6c8626b07e98e1bb9e45414cb
|
|
13800
13800
|
languageName: node
|
|
13801
13801
|
linkType: hard
|
|
13802
13802
|
|
|
@@ -14263,11 +14263,11 @@ __metadata:
|
|
|
14263
14263
|
linkType: hard
|
|
14264
14264
|
|
|
14265
14265
|
"markdown-to-jsx@npm:^7.1.3":
|
|
14266
|
-
version: 7.7.
|
|
14267
|
-
resolution: "markdown-to-jsx@npm:7.7.
|
|
14266
|
+
version: 7.7.6
|
|
14267
|
+
resolution: "markdown-to-jsx@npm:7.7.6"
|
|
14268
14268
|
peerDependencies:
|
|
14269
14269
|
react: ">= 0.14.0"
|
|
14270
|
-
checksum: 10c0/
|
|
14270
|
+
checksum: 10c0/be645e0e07cc54e52f2f934c879b10459e33a83f2592d8d7c03eb9ef2c91cdbd777f667040b3d15a5f6fb3b3d77fb7b3428d49e90573581eb85a21011533ee67
|
|
14271
14271
|
languageName: node
|
|
14272
14272
|
linkType: hard
|
|
14273
14273
|
|
|
@@ -16908,13 +16908,13 @@ __metadata:
|
|
|
16908
16908
|
linkType: hard
|
|
16909
16909
|
|
|
16910
16910
|
"prosemirror-dropcursor@npm:^1.5.0":
|
|
16911
|
-
version: 1.8.
|
|
16912
|
-
resolution: "prosemirror-dropcursor@npm:1.8.
|
|
16911
|
+
version: 1.8.2
|
|
16912
|
+
resolution: "prosemirror-dropcursor@npm:1.8.2"
|
|
16913
16913
|
dependencies:
|
|
16914
16914
|
prosemirror-state: "npm:^1.0.0"
|
|
16915
16915
|
prosemirror-transform: "npm:^1.1.0"
|
|
16916
16916
|
prosemirror-view: "npm:^1.1.0"
|
|
16917
|
-
checksum: 10c0/
|
|
16917
|
+
checksum: 10c0/c3d9e456a64fecc77a6e6a0350116598550dee8cb55f74e8b66fdb26150c48340ddd1f43184134b24d0f2e710b6879ff6ec72c215dc618a6a673320a91c90478
|
|
16918
16918
|
languageName: node
|
|
16919
16919
|
linkType: hard
|
|
16920
16920
|
|
|
@@ -16974,23 +16974,23 @@ __metadata:
|
|
|
16974
16974
|
linkType: hard
|
|
16975
16975
|
|
|
16976
16976
|
"prosemirror-menu@npm:^1.2.1":
|
|
16977
|
-
version: 1.2.
|
|
16978
|
-
resolution: "prosemirror-menu@npm:1.2.
|
|
16977
|
+
version: 1.2.5
|
|
16978
|
+
resolution: "prosemirror-menu@npm:1.2.5"
|
|
16979
16979
|
dependencies:
|
|
16980
16980
|
crelt: "npm:^1.0.0"
|
|
16981
16981
|
prosemirror-commands: "npm:^1.0.0"
|
|
16982
16982
|
prosemirror-history: "npm:^1.0.0"
|
|
16983
16983
|
prosemirror-state: "npm:^1.0.0"
|
|
16984
|
-
checksum: 10c0/
|
|
16984
|
+
checksum: 10c0/a4da649aa3c7bfb74128da203984009b44fd48638ff76ec7b209635fafd23b05d7d5bed9520282cdcf886f73eafcfbda4e77f55d81a92db333f8807d84ded2f9
|
|
16985
16985
|
languageName: node
|
|
16986
16986
|
linkType: hard
|
|
16987
16987
|
|
|
16988
16988
|
"prosemirror-model@npm:^1.0.0, prosemirror-model@npm:^1.16.1, prosemirror-model@npm:^1.18.1, prosemirror-model@npm:^1.20.0, prosemirror-model@npm:^1.21.0, prosemirror-model@npm:^1.25.0":
|
|
16989
|
-
version: 1.25.
|
|
16990
|
-
resolution: "prosemirror-model@npm:1.25.
|
|
16989
|
+
version: 1.25.1
|
|
16990
|
+
resolution: "prosemirror-model@npm:1.25.1"
|
|
16991
16991
|
dependencies:
|
|
16992
16992
|
orderedmap: "npm:^2.0.0"
|
|
16993
|
-
checksum: 10c0/
|
|
16993
|
+
checksum: 10c0/0974fec71f1d0fcfaa5c0350864dcdbfd95092a026460bbc96208c7b8d84f86444504cb746fd558009102a7debbde32c35d9d98da97382ad729ccaeaef729131
|
|
16994
16994
|
languageName: node
|
|
16995
16995
|
linkType: hard
|
|
16996
16996
|
|
|
@@ -17026,15 +17026,15 @@ __metadata:
|
|
|
17026
17026
|
linkType: hard
|
|
17027
17027
|
|
|
17028
17028
|
"prosemirror-tables@npm:^1.3.0":
|
|
17029
|
-
version: 1.7.
|
|
17030
|
-
resolution: "prosemirror-tables@npm:1.7.
|
|
17029
|
+
version: 1.7.1
|
|
17030
|
+
resolution: "prosemirror-tables@npm:1.7.1"
|
|
17031
17031
|
dependencies:
|
|
17032
17032
|
prosemirror-keymap: "npm:^1.2.2"
|
|
17033
17033
|
prosemirror-model: "npm:^1.25.0"
|
|
17034
17034
|
prosemirror-state: "npm:^1.4.3"
|
|
17035
17035
|
prosemirror-transform: "npm:^1.10.3"
|
|
17036
17036
|
prosemirror-view: "npm:^1.39.1"
|
|
17037
|
-
checksum: 10c0/
|
|
17037
|
+
checksum: 10c0/4e7f3993fe4f81582afa7845030d372acfc332c48bb04e952ed78204b3e8ee86e4f0ea7a146cbf1574c2e873b4643619ca4d88aa92f60793315c3c1e181d6812
|
|
17038
17038
|
languageName: node
|
|
17039
17039
|
linkType: hard
|
|
17040
17040
|
|
|
@@ -17053,22 +17053,22 @@ __metadata:
|
|
|
17053
17053
|
linkType: hard
|
|
17054
17054
|
|
|
17055
17055
|
"prosemirror-transform@npm:^1.0.0, prosemirror-transform@npm:^1.1.0, prosemirror-transform@npm:^1.10.2, prosemirror-transform@npm:^1.10.3, prosemirror-transform@npm:^1.3.3, prosemirror-transform@npm:^1.7.0, prosemirror-transform@npm:^1.7.3":
|
|
17056
|
-
version: 1.10.
|
|
17057
|
-
resolution: "prosemirror-transform@npm:1.10.
|
|
17056
|
+
version: 1.10.4
|
|
17057
|
+
resolution: "prosemirror-transform@npm:1.10.4"
|
|
17058
17058
|
dependencies:
|
|
17059
17059
|
prosemirror-model: "npm:^1.21.0"
|
|
17060
|
-
checksum: 10c0/
|
|
17060
|
+
checksum: 10c0/01a7b79d8e2bf61b3414f60f8790a19f2cebb85a2050f64594cbff54f62d5c5f56160a66bbfa089462239189b4667952ede738e68b9e154a3505845720230a1c
|
|
17061
17061
|
languageName: node
|
|
17062
17062
|
linkType: hard
|
|
17063
17063
|
|
|
17064
17064
|
"prosemirror-view@npm:^1.0.0, prosemirror-view@npm:^1.1.0, prosemirror-view@npm:^1.23.6, prosemirror-view@npm:^1.27.0, prosemirror-view@npm:^1.28.2, prosemirror-view@npm:^1.31.0, prosemirror-view@npm:^1.39.1":
|
|
17065
|
-
version: 1.39.
|
|
17066
|
-
resolution: "prosemirror-view@npm:1.39.
|
|
17065
|
+
version: 1.39.2
|
|
17066
|
+
resolution: "prosemirror-view@npm:1.39.2"
|
|
17067
17067
|
dependencies:
|
|
17068
17068
|
prosemirror-model: "npm:^1.20.0"
|
|
17069
17069
|
prosemirror-state: "npm:^1.0.0"
|
|
17070
17070
|
prosemirror-transform: "npm:^1.1.0"
|
|
17071
|
-
checksum: 10c0/
|
|
17071
|
+
checksum: 10c0/b175284082a3ab1be223ba1860931d094f996c0eabf046a78271fc8136c4e9b63de2c9a51c09a1fe73a9618d269402e30a611d260f153fba595fe465f0a94cee
|
|
17072
17072
|
languageName: node
|
|
17073
17073
|
linkType: hard
|
|
17074
17074
|
|
|
@@ -20661,12 +20661,12 @@ __metadata:
|
|
|
20661
20661
|
linkType: hard
|
|
20662
20662
|
|
|
20663
20663
|
"tinyglobby@npm:^0.2.12":
|
|
20664
|
-
version: 0.2.
|
|
20665
|
-
resolution: "tinyglobby@npm:0.2.
|
|
20664
|
+
version: 0.2.13
|
|
20665
|
+
resolution: "tinyglobby@npm:0.2.13"
|
|
20666
20666
|
dependencies:
|
|
20667
|
-
fdir: "npm:^6.4.
|
|
20667
|
+
fdir: "npm:^6.4.4"
|
|
20668
20668
|
picomatch: "npm:^4.0.2"
|
|
20669
|
-
checksum: 10c0/
|
|
20669
|
+
checksum: 10c0/ef07dfaa7b26936601d3f6d999f7928a4d1c6234c5eb36896bb88681947c0d459b7ebe797022400e555fe4b894db06e922b95d0ce60cb05fd827a0a66326b18c
|
|
20670
20670
|
languageName: node
|
|
20671
20671
|
linkType: hard
|
|
20672
20672
|
|