@licklist/design 0.66.12-dev.1 → 0.66.12-dev.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/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map +1 -1
- package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js +8 -5
- package/dist/product-set/form/ProductCategoriesControl.d.ts.map +1 -1
- package/dist/product-set/form/ProductCategoriesControl.js +48 -2
- package/dist/product-set/form/SelectCategoryModal.d.ts +12 -0
- package/dist/product-set/form/SelectCategoryModal.d.ts.map +1 -1
- package/dist/product-set/form/SelectCategoryModal.js +1 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts +2 -1
- package/dist/sortable-tree/SortableTreeItem.d.ts.map +1 -1
- package/dist/sortable-tree/SortableTreeItem.js +10 -4
- package/dist/styles/product-set/ProductSetForm.scss +25 -2
- package/package.json +1 -1
- package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx +16 -12
- package/src/product-set/form/ProductCategoriesControl.tsx +38 -2
- package/src/product-set/form/SelectCategoryModal.tsx +2 -2
- package/src/sortable-tree/SortableTreeItem.tsx +13 -1
- package/src/styles/product-set/ProductSetForm.scss +25 -2
- package/yarn.lock +36 -25
package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,qBAAqB,8HAO/B,0BAA0B,
|
|
1
|
+
{"version":3,"file":"SelectEventProductSet.d.ts","sourceRoot":"","sources":["../../../../../src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx"],"names":[],"mappings":"AAKA,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAC;AACvF,OAAO,EAAE,UAAU,EAAE,MAAM,6DAA6D,CAAC;AAEzF,OAAO,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAC;AAGrE,UAAU,0BAA2B,SAAQ,iBAAiB;IAC5D,WAAW,CAAC,EAAE,UAAU,EAAE,CAAC;IAC3B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,qBAAqB,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IAChD,gBAAgB,EAAE,CAAC,KAAK,EAAE,mBAAmB,KAAK,IAAI,CAAC;IACvD,mBAAmB,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7C,qBAAqB,EAAE,MAAM,CAAC;CAC/B;AAED,eAAO,MAAM,qBAAqB,8HAO/B,0BAA0B,4CAsM5B,CAAC"}
|
package/dist/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.js
CHANGED
|
@@ -133,7 +133,7 @@ function _ts_generator(thisArg, body) {
|
|
|
133
133
|
}
|
|
134
134
|
var SelectEventProductSet = function(param) {
|
|
135
135
|
var productSets = param.productSets, createProductSet = param.createProductSet, setEditProductSetId = param.setEditProductSetId, showEditProductSet = param.showEditProductSet, setShowEditProductSet = param.setShowEditProductSet, occurrenceStartAtDate = param.occurrenceStartAtDate;
|
|
136
|
-
var _productSets_find;
|
|
136
|
+
var _productSets_find, _productSets_find1;
|
|
137
137
|
var t = useTranslation([
|
|
138
138
|
"Design"
|
|
139
139
|
]).t;
|
|
@@ -142,7 +142,7 @@ var SelectEventProductSet = function(param) {
|
|
|
142
142
|
var productSetsId = useId();
|
|
143
143
|
var productSetId = watch("productSetId");
|
|
144
144
|
var editedProductSet = watch("editedProductSet");
|
|
145
|
-
|
|
145
|
+
(_productSets_find = productSets.find(function(productSet) {
|
|
146
146
|
return productSet.id === productSetId;
|
|
147
147
|
})) === null || _productSets_find === void 0 ? void 0 : _productSets_find.parentMenuId;
|
|
148
148
|
var onEditProductSet = useCallback(function() {
|
|
@@ -206,7 +206,10 @@ var SelectEventProductSet = function(param) {
|
|
|
206
206
|
}
|
|
207
207
|
setValue("productSetId", value);
|
|
208
208
|
};
|
|
209
|
-
var showOverrideProductSet = !showEditProductSet && productSetId
|
|
209
|
+
var showOverrideProductSet = !showEditProductSet && productSetId;
|
|
210
|
+
var isOverrideProductSet = (_productSets_find1 = productSets.find(function(productSet) {
|
|
211
|
+
return productSet.id === productSetId;
|
|
212
|
+
})) === null || _productSets_find1 === void 0 ? void 0 : _productSets_find1.isOverride;
|
|
210
213
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
211
214
|
var onSubmit = function(value) {
|
|
212
215
|
setShowEditProductSet(false);
|
|
@@ -270,11 +273,11 @@ var SelectEventProductSet = function(param) {
|
|
|
270
273
|
onClick: handleCreateProductSet,
|
|
271
274
|
children: t("addNewProductSet")
|
|
272
275
|
}),
|
|
273
|
-
/*#__PURE__*/ jsx(Button, {
|
|
276
|
+
showOverrideProductSet && /*#__PURE__*/ jsx(Button, {
|
|
274
277
|
variant: "",
|
|
275
278
|
className: "btn product-set-button ",
|
|
276
279
|
onClick: onEditProductSet,
|
|
277
|
-
children:
|
|
280
|
+
children: isOverrideProductSet ? t("editOverrides") : t("editProductSet")
|
|
278
281
|
}),
|
|
279
282
|
showEditProductSet && /*#__PURE__*/ jsx(Button, {
|
|
280
283
|
variant: "",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ProductCategoriesControl.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/ProductCategoriesControl.tsx"],"names":[],"mappings":"AAaA,OAAO,EAKL,YAAY,EACb,MAAM,kEAAkE,CAAC;AAQ1E,OAAO,EAAwB,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAoCvE,UAAU,6BAA8B,SAAQ,aAAa;IAC3D,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,oBAAoB,CAAC,EAAE,OAAO,CAAC;CAChC;AA0BD,wBAAgB,wBAAwB,CAAC,EACvC,SAAS,EACT,SAAS,EACT,WAAW,EACX,qBAAqB,EACrB,oBAAoB,GACrB,EAAE,6BAA6B,2CA4T/B;AAED,eAAO,MAAM,cAAc,iBACX,YAAY,SACnB,MAAM,KACZ;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,GAAG,IAczC,CAAC"}
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { jsxs, Fragment
|
|
1
|
+
import { jsx, jsxs, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useContext, useState, useEffect } from 'react';
|
|
3
3
|
import HookFormService from '@licklist/plugins/dist/services/Form/HookFormService';
|
|
4
4
|
import { uniqueId } from 'lodash';
|
|
5
5
|
import { Badge } from 'react-bootstrap';
|
|
6
6
|
import { useFormContext, useFieldArray, useWatch, Controller } from 'react-hook-form';
|
|
7
|
+
import { FaTicketAlt, FaCalendar, FaBars, FaBowlingBall } from 'react-icons/fa';
|
|
7
8
|
import { useTranslation } from 'react-i18next';
|
|
8
9
|
import { useSensor, MouseSensor } from '@dnd-kit/core';
|
|
9
10
|
import { CATEGORY_TYPE_GAME, CATEGORY_TYPE_FIXED_DURATION, QUANTITY_TYPE_STANDARD, CATEGORY_TYPE_TICKETS } from '@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper';
|
|
@@ -13,7 +14,7 @@ import { ProductSetModalClasses } from '../../sortable-tree/SortableTreeItem.js'
|
|
|
13
14
|
import { CreateProductSetItem } from '../item/CreateProductSetItem.js';
|
|
14
15
|
import { ProductCategoryControl } from '../product-category/ProductCategoryControl.js';
|
|
15
16
|
import { ProductsControl } from './ProductsControl.js';
|
|
16
|
-
import { SelectCategoryModal } from './SelectCategoryModal.js';
|
|
17
|
+
import { CATEGORY_TYPES_NAMES, SelectCategoryModal } from './SelectCategoryModal.js';
|
|
17
18
|
import { ProductSetLoadingContext } from './context.js';
|
|
18
19
|
import { VenueMapSetModal } from './VenueMapSetModal.js';
|
|
19
20
|
import { sortArrayByIndex, moveArrayElements } from '../utils/index.js';
|
|
@@ -117,6 +118,40 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
117
118
|
if (n === "Map" || n === "Set") return Array.from(n);
|
|
118
119
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
119
120
|
}
|
|
121
|
+
var _obj;
|
|
122
|
+
// @TODO not for first release
|
|
123
|
+
// import Popover from "./ProductSetFormPopover";
|
|
124
|
+
var CATEGORIES_TYPE = (_obj = {}, _define_property(_obj, CATEGORY_TYPES_NAMES.tickets, {
|
|
125
|
+
label: "tickets",
|
|
126
|
+
icon: /*#__PURE__*/ jsx(FaTicketAlt, {
|
|
127
|
+
color: "#0e8ce2",
|
|
128
|
+
size: 10
|
|
129
|
+
})
|
|
130
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.bookings, {
|
|
131
|
+
label: "bookings",
|
|
132
|
+
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
133
|
+
color: "#0e8ce2",
|
|
134
|
+
size: 10
|
|
135
|
+
})
|
|
136
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.menuItems, {
|
|
137
|
+
label: "menuItems",
|
|
138
|
+
icon: /*#__PURE__*/ jsx(FaBars, {
|
|
139
|
+
color: "#0e8ce2",
|
|
140
|
+
size: 10
|
|
141
|
+
})
|
|
142
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.game, {
|
|
143
|
+
label: "game",
|
|
144
|
+
icon: /*#__PURE__*/ jsx(FaBowlingBall, {
|
|
145
|
+
color: "#0e8ce2",
|
|
146
|
+
size: 10
|
|
147
|
+
})
|
|
148
|
+
}), _define_property(_obj, CATEGORY_TYPES_NAMES.fixedDuration, {
|
|
149
|
+
label: "fixedDuration",
|
|
150
|
+
icon: /*#__PURE__*/ jsx(FaCalendar, {
|
|
151
|
+
color: "#0e8ce2",
|
|
152
|
+
size: 10
|
|
153
|
+
})
|
|
154
|
+
}), _obj);
|
|
120
155
|
var getCategoryDefaultValue = function(categoryType, sort) {
|
|
121
156
|
return {
|
|
122
157
|
id: null,
|
|
@@ -250,6 +285,7 @@ function ProductCategoriesControl(param) {
|
|
|
250
285
|
var onSetIsExpanded = function() {
|
|
251
286
|
setIsExpanded(productCategoryId);
|
|
252
287
|
};
|
|
288
|
+
var categoryType = CATEGORIES_TYPE[productCategory.type];
|
|
253
289
|
return /*#__PURE__*/ jsx(Controller, {
|
|
254
290
|
name: "".concat(productCategoriesFieldName, ".").concat(index, ".name"),
|
|
255
291
|
control: control,
|
|
@@ -299,6 +335,16 @@ function ProductCategoriesControl(param) {
|
|
|
299
335
|
secondaryBadge: getBadgeConfig(productCategory.type, t(productCategory.type)),
|
|
300
336
|
modalClass: ProductSetModalClasses.category,
|
|
301
337
|
isNewAdded: showCategoryModal,
|
|
338
|
+
itemButton: /*#__PURE__*/ jsxs("div", {
|
|
339
|
+
className: "btn-outline-primary item-icon sm border border-primary rounded-sm",
|
|
340
|
+
children: [
|
|
341
|
+
categoryType.icon,
|
|
342
|
+
/*#__PURE__*/ jsx("span", {
|
|
343
|
+
className: "ml-2",
|
|
344
|
+
children: t(categoryType.label)
|
|
345
|
+
})
|
|
346
|
+
]
|
|
347
|
+
}),
|
|
302
348
|
body: /*#__PURE__*/ jsx(ProductCategoryControl, {
|
|
303
349
|
isLoading: isLoading,
|
|
304
350
|
onCategoryNameChange: onChange,
|
|
@@ -1,4 +1,16 @@
|
|
|
1
|
+
import { ReactElement } from "react";
|
|
1
2
|
import { CategoryType } from "@licklist/core/dist/DataMapper/Product/ProductCategoryDataMapper";
|
|
3
|
+
export declare const CATEGORY_TYPES_NAMES: {
|
|
4
|
+
readonly menuItems: "menuItems";
|
|
5
|
+
readonly tickets: "tickets";
|
|
6
|
+
readonly bookings: "bookings";
|
|
7
|
+
readonly game: "game";
|
|
8
|
+
readonly fixedDuration: "fixedDuration";
|
|
9
|
+
};
|
|
10
|
+
export type CategoryConfig = {
|
|
11
|
+
label: string;
|
|
12
|
+
icon: ReactElement;
|
|
13
|
+
};
|
|
2
14
|
export interface SelectCategoryModalProps {
|
|
3
15
|
isVisible: boolean;
|
|
4
16
|
onHide: () => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SelectCategoryModal.d.ts","sourceRoot":"","sources":["../../../src/product-set/form/SelectCategoryModal.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAwB,MAAM,OAAO,CAAC;AAG3D,OAAO,EAML,YAAY,EACb,MAAM,kEAAkE,CAAC;AAgB1E,eAAO,MAAM,oBAAoB;;;;;;CAMvB,CAAC;AAEX,MAAM,MAAM,cAAc,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,YAAY,CAAA;CAAE,CAAC;AA4BnE,MAAM,WAAW,wBAAwB;IACvC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,MAAM,IAAI,CAAC;IACnB,gBAAgB,EAAE,CAAC,QAAQ,EAAE,YAAY,KAAK,IAAI,CAAC;CACpD;AAED,wBAAgB,mBAAmB,CAAC,EAClC,SAAS,EACT,MAAM,EACN,gBAAgB,GACjB,EAAE,wBAAwB,2CAyH1B"}
|
|
@@ -14,6 +14,7 @@ export interface SortableTreeItemProps {
|
|
|
14
14
|
body: ReactNode;
|
|
15
15
|
children?: ReactNode;
|
|
16
16
|
preItem?: ReactNode;
|
|
17
|
+
itemButton?: ReactNode;
|
|
17
18
|
postItem?: ReactNode;
|
|
18
19
|
sortableItems?: string[];
|
|
19
20
|
isExpanded?: boolean;
|
|
@@ -36,5 +37,5 @@ export interface SortableTreeItemProps {
|
|
|
36
37
|
setIsExpanded?: () => void;
|
|
37
38
|
isOverride?: boolean;
|
|
38
39
|
}
|
|
39
|
-
export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
|
+
export declare function SortableTreeItem({ id, title, badge, subTitle, body, children, preItem, postItem, sortableItems, isExpanded, shouldExpand, isInvalid, isIconInHeader, treeLineIconColor, modalLabel, modalClass, isNewAdded, onDelete, validate, cancelChanges, saveValidField, edit, secondaryBadge, setIsExpanded, isOverride, itemButton, }: SortableTreeItemProps): import("react/jsx-runtime").JSX.Element;
|
|
40
41
|
//# sourceMappingURL=SortableTreeItem.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"SortableTreeItem.d.ts","sourceRoot":"","sources":["../../src/sortable-tree/SortableTreeItem.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEL,SAAS,EAIV,MAAM,OAAO,CAAC;AAiBf,eAAO,MAAM,sBAAsB;;;;;CAKzB,CAAC;AAEX,MAAM,MAAM,0BAA0B,GACpC,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,OAAO,sBAAsB,CAAC,CAAC;AAEvE,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,SAAS,CAAC;IAClB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,IAAI,EAAE,SAAS,CAAC;IAChB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,OAAO,CAAC,EAAE,SAAS,CAAC;IACpB,UAAU,CAAC,EAAE,SAAS,CAAC;IACvB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,IAAI,CAAC;IAClB,cAAc,CAAC,EAAE,MAAM,IAAI,CAAC;IAC5B,UAAU,CAAC,EAAE,0BAA0B,CAAC;IACxC,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,OAAO,CAAC,OAAO,CAAC,CAAC;IAClC,cAAc,CAAC,EAAE;QACf,KAAK,EAAE,MAAM,CAAC;QACd,SAAS,EAAE,MAAM,CAAC;KACnB,CAAC;IACF,aAAa,CAAC,EAAE,MAAM,IAAI,CAAC;IAC3B,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAED,wBAAgB,gBAAgB,CAAC,EAC/B,EAAE,EACF,KAAK,EACL,KAAK,EACL,QAAQ,EACR,IAAI,EACJ,QAAQ,EACR,OAAO,EACP,QAAQ,EACR,aAAa,EACb,UAAkB,EAClB,YAAmB,EACnB,SAAiB,EACjB,cAAqB,EACrB,iBAAsB,EACtB,UAAe,EACf,UAAU,EACV,UAAkB,EAClB,QAAQ,EACR,QAAQ,EACR,aAAa,EACb,cAAc,EACd,IAAI,EACJ,cAAc,EACd,aAAa,EACb,UAAU,EACV,UAAU,GACX,EAAE,qBAAqB,2CA+TvB"}
|
|
@@ -240,7 +240,7 @@ var ProductSetModalClasses = {
|
|
|
240
240
|
productZones: "edit-product-zone"
|
|
241
241
|
};
|
|
242
242
|
function SortableTreeItem(param) {
|
|
243
|
-
var id = param.id, title = param.title, badge = param.badge, subTitle = param.subTitle, body = param.body, children = param.children, preItem = param.preItem, postItem = param.postItem, sortableItems = param.sortableItems, _param_isExpanded = param.isExpanded, isExpanded = _param_isExpanded === void 0 ? false : _param_isExpanded, _param_shouldExpand = param.shouldExpand, shouldExpand = _param_shouldExpand === void 0 ? true : _param_shouldExpand, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isIconInHeader = param.isIconInHeader, isIconInHeader = _param_isIconInHeader === void 0 ? true : _param_isIconInHeader, _param_treeLineIconColor = param.treeLineIconColor, treeLineIconColor = _param_treeLineIconColor === void 0 ? "" : _param_treeLineIconColor, _param_modalLabel = param.modalLabel, modalLabel = _param_modalLabel === void 0 ? "" : _param_modalLabel, modalClass = param.modalClass, _param_isNewAdded = param.isNewAdded, isNewAdded = _param_isNewAdded === void 0 ? false : _param_isNewAdded, onDelete = param.onDelete, validate = param.validate, cancelChanges = param.cancelChanges, saveValidField = param.saveValidField, edit = param.edit, secondaryBadge = param.secondaryBadge, setIsExpanded = param.setIsExpanded, isOverride = param.isOverride;
|
|
243
|
+
var id = param.id, title = param.title, badge = param.badge, subTitle = param.subTitle, body = param.body, children = param.children, preItem = param.preItem, postItem = param.postItem, sortableItems = param.sortableItems, _param_isExpanded = param.isExpanded, isExpanded = _param_isExpanded === void 0 ? false : _param_isExpanded, _param_shouldExpand = param.shouldExpand, shouldExpand = _param_shouldExpand === void 0 ? true : _param_shouldExpand, _param_isInvalid = param.isInvalid, isInvalid = _param_isInvalid === void 0 ? false : _param_isInvalid, _param_isIconInHeader = param.isIconInHeader, isIconInHeader = _param_isIconInHeader === void 0 ? true : _param_isIconInHeader, _param_treeLineIconColor = param.treeLineIconColor, treeLineIconColor = _param_treeLineIconColor === void 0 ? "" : _param_treeLineIconColor, _param_modalLabel = param.modalLabel, modalLabel = _param_modalLabel === void 0 ? "" : _param_modalLabel, modalClass = param.modalClass, _param_isNewAdded = param.isNewAdded, isNewAdded = _param_isNewAdded === void 0 ? false : _param_isNewAdded, onDelete = param.onDelete, validate = param.validate, cancelChanges = param.cancelChanges, saveValidField = param.saveValidField, edit = param.edit, secondaryBadge = param.secondaryBadge, setIsExpanded = param.setIsExpanded, isOverride = param.isOverride, itemButton = param.itemButton;
|
|
244
244
|
var _useState = _sliced_to_array(useState(isExpanded), 2), expanded = _useState[0], setExpanded = _useState[1];
|
|
245
245
|
var _useState1 = _sliced_to_array(useState(isNewAdded), 2), isModalVisible = _useState1[0], setIsModalVisible = _useState1[1];
|
|
246
246
|
var t = useTranslation("Design").t;
|
|
@@ -433,9 +433,15 @@ function SortableTreeItem(param) {
|
|
|
433
433
|
/*#__PURE__*/ jsxs("div", {
|
|
434
434
|
className: clsx(modalLabel ? "sortable-tree-product-set-title-container" : "sortable-tree-title-container"),
|
|
435
435
|
children: [
|
|
436
|
-
/*#__PURE__*/
|
|
437
|
-
className: clsx("sortable-tree-item-title", modalLabel && "sortable-tree-product-set-element-title"),
|
|
438
|
-
children:
|
|
436
|
+
/*#__PURE__*/ jsxs("span", {
|
|
437
|
+
className: clsx("sortable-tree-item-title", modalLabel && "sortable-tree-product-set-element-title", "d-flex justify-content-between"),
|
|
438
|
+
children: [
|
|
439
|
+
title,
|
|
440
|
+
/*#__PURE__*/ jsx("div", {
|
|
441
|
+
className: "sortable-tree-item-subtitle",
|
|
442
|
+
children: itemButton
|
|
443
|
+
})
|
|
444
|
+
]
|
|
439
445
|
}),
|
|
440
446
|
!expanded && /*#__PURE__*/ jsx("span", {
|
|
441
447
|
className: "sortable-tree-item-subtitle",
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.product-set-form {
|
|
2
|
+
|
|
2
3
|
input,
|
|
3
4
|
textarea,
|
|
4
5
|
select,
|
|
@@ -15,10 +16,12 @@
|
|
|
15
16
|
height: 2.5rem;
|
|
16
17
|
border-width: 2px;
|
|
17
18
|
padding: 2px;
|
|
19
|
+
|
|
18
20
|
label,
|
|
19
21
|
.btn-switch-indicator {
|
|
20
22
|
border-radius: 0.375rem !important;
|
|
21
23
|
}
|
|
24
|
+
|
|
22
25
|
label {
|
|
23
26
|
height: 2rem;
|
|
24
27
|
}
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
margin-top: 1.5rem;
|
|
35
38
|
margin-bottom: 1.5rem;
|
|
36
39
|
}
|
|
40
|
+
|
|
37
41
|
@include media-breakpoint-down(sm) {
|
|
38
42
|
padding: 1.5rem 1rem;
|
|
39
43
|
margin-top: 0.5rem;
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
|
|
51
55
|
.step-badge,
|
|
52
56
|
.category-badge,
|
|
53
|
-
.product-badge
|
|
57
|
+
.product-badge {
|
|
54
58
|
font-size: 0.875rem;
|
|
55
59
|
font-weight: 600;
|
|
56
60
|
}
|
|
@@ -59,10 +63,21 @@
|
|
|
59
63
|
background-color: #ffdbdb;
|
|
60
64
|
color: #d52902;
|
|
61
65
|
}
|
|
66
|
+
|
|
62
67
|
.category-badge {
|
|
63
68
|
background-color: #e8f4f6;
|
|
64
69
|
color: #1a93aa;
|
|
65
70
|
}
|
|
71
|
+
|
|
72
|
+
.item-icon {
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-items: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
font-size: 0.65rem;
|
|
77
|
+
padding: 0.2rem;
|
|
78
|
+
margin-right: 1rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
.product-badge {
|
|
67
82
|
background-color: #e9f5ea;
|
|
68
83
|
color: #269b36;
|
|
@@ -77,10 +92,12 @@
|
|
|
77
92
|
|
|
78
93
|
.product-set-mobile-modal {
|
|
79
94
|
margin: 0;
|
|
95
|
+
|
|
80
96
|
.modal-content {
|
|
81
97
|
border-radius: 1rem 1rem 0 0;
|
|
82
98
|
border-width: 0;
|
|
83
99
|
margin: 0;
|
|
100
|
+
|
|
84
101
|
.modal-body {
|
|
85
102
|
padding: 1rem 0;
|
|
86
103
|
}
|
|
@@ -102,18 +119,22 @@
|
|
|
102
119
|
font-weight: 600;
|
|
103
120
|
font-size: 0.625rem;
|
|
104
121
|
}
|
|
122
|
+
|
|
105
123
|
.product-set-subtitle-dot {
|
|
106
124
|
margin-right: 0.375rem;
|
|
107
125
|
width: 0.375rem;
|
|
108
126
|
height: 0.375rem;
|
|
109
127
|
border-radius: 3px;
|
|
110
128
|
}
|
|
129
|
+
|
|
111
130
|
.product-set-subtitle-category-dot {
|
|
112
131
|
background-color: #269b36;
|
|
113
132
|
}
|
|
133
|
+
|
|
114
134
|
.product-set-subtitle-step-dot {
|
|
115
135
|
background-color: #1a93aa;
|
|
116
136
|
}
|
|
137
|
+
|
|
117
138
|
.product-set-subtitle-product-dot {
|
|
118
139
|
background-color: #269b36;
|
|
119
140
|
}
|
|
@@ -158,6 +179,7 @@
|
|
|
158
179
|
justify-self: flex-end;
|
|
159
180
|
align-items: flex-end;
|
|
160
181
|
}
|
|
182
|
+
|
|
161
183
|
.small-badge {
|
|
162
184
|
font-size: 0.5rem;
|
|
163
185
|
height: 1rem;
|
|
@@ -165,6 +187,7 @@
|
|
|
165
187
|
padding: 0 0.2rem;
|
|
166
188
|
margin-bottom: 0.2rem;
|
|
167
189
|
}
|
|
190
|
+
|
|
168
191
|
.product-set-save-btn-wrapper {
|
|
169
192
|
padding-left: 0 !important;
|
|
170
193
|
display: flex;
|
|
@@ -182,7 +205,7 @@
|
|
|
182
205
|
|
|
183
206
|
.product-zone-badge {
|
|
184
207
|
background-color: #EFE9F5;
|
|
185
|
-
color
|
|
208
|
+
color: #84269B;
|
|
186
209
|
font-size: 0.875rem;
|
|
187
210
|
font-weight: 600;
|
|
188
211
|
}
|
package/package.json
CHANGED
package/src/events/edit-event-modal/component/SelectEventProductSet/SelectEventProductSet.tsx
CHANGED
|
@@ -90,8 +90,11 @@ export const SelectEventProductSet = ({
|
|
|
90
90
|
setValue("productSetId", value);
|
|
91
91
|
};
|
|
92
92
|
|
|
93
|
-
const showOverrideProductSet =
|
|
94
|
-
|
|
93
|
+
const showOverrideProductSet = !showEditProductSet && productSetId;
|
|
94
|
+
|
|
95
|
+
const isOverrideProductSet = productSets.find(
|
|
96
|
+
(productSet) => productSet.id === productSetId,
|
|
97
|
+
)?.isOverride;
|
|
95
98
|
|
|
96
99
|
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
97
100
|
const onSubmit = (value: EditEventFormValues["editedProductSet"]) => {
|
|
@@ -168,16 +171,17 @@ export const SelectEventProductSet = ({
|
|
|
168
171
|
{t("addNewProductSet")}
|
|
169
172
|
</Button>
|
|
170
173
|
)}
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
174
|
+
{showOverrideProductSet && (
|
|
175
|
+
<Button
|
|
176
|
+
variant=""
|
|
177
|
+
className="btn product-set-button "
|
|
178
|
+
onClick={onEditProductSet}
|
|
179
|
+
>
|
|
180
|
+
{isOverrideProductSet
|
|
181
|
+
? t("editOverrides")
|
|
182
|
+
: t("editProductSet")}
|
|
183
|
+
</Button>
|
|
184
|
+
)}
|
|
181
185
|
{showEditProductSet && (
|
|
182
186
|
<Button
|
|
183
187
|
variant=""
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import { useEffect, useState, useContext } from "react";
|
|
2
2
|
import HookFormService from "@licklist/plugins/dist/services/Form/HookFormService";
|
|
3
3
|
import { uniqueId } from "lodash";
|
|
4
|
-
import { Badge } from "react-bootstrap";
|
|
4
|
+
import { Badge, Button } from "react-bootstrap";
|
|
5
5
|
import {
|
|
6
6
|
Controller,
|
|
7
7
|
useFieldArray,
|
|
8
8
|
useFormContext,
|
|
9
9
|
useWatch,
|
|
10
10
|
} from "react-hook-form";
|
|
11
|
+
import { FaBars, FaBowlingBall, FaCalendar, FaTicketAlt } from "react-icons/fa";
|
|
11
12
|
import { useTranslation } from "react-i18next";
|
|
12
13
|
import { useSensor, MouseSensor } from "@dnd-kit/core";
|
|
13
14
|
import {
|
|
@@ -25,7 +26,11 @@ import { ProductCategoryControl } from "../product-category";
|
|
|
25
26
|
import { ProductCategory } from "../types";
|
|
26
27
|
import { ProductsControl } from "./ProductsControl";
|
|
27
28
|
import { ProductSetFormValues, WithIsLoading } from "./ProductSetForm";
|
|
28
|
-
import {
|
|
29
|
+
import {
|
|
30
|
+
SelectCategoryModal,
|
|
31
|
+
CATEGORY_TYPES_NAMES,
|
|
32
|
+
CategoryConfig,
|
|
33
|
+
} from "./SelectCategoryModal";
|
|
29
34
|
import { ProductSetLoadingContext } from "./context";
|
|
30
35
|
import { VenueMapSetModal } from "./VenueMapSetModal";
|
|
31
36
|
import { moveArrayElements, sortArrayByIndex } from "../utils";
|
|
@@ -33,6 +38,29 @@ import { useSortableTreeFunctions } from "../hooks/useSortableTreeFunctions";
|
|
|
33
38
|
// @TODO not for first release
|
|
34
39
|
// import Popover from "./ProductSetFormPopover";
|
|
35
40
|
|
|
41
|
+
const CATEGORIES_TYPE: Partial<Record<CategoryType, CategoryConfig>> = {
|
|
42
|
+
[CATEGORY_TYPES_NAMES.tickets]: {
|
|
43
|
+
label: "tickets",
|
|
44
|
+
icon: <FaTicketAlt color="#0e8ce2" size={10} />,
|
|
45
|
+
},
|
|
46
|
+
[CATEGORY_TYPES_NAMES.bookings]: {
|
|
47
|
+
label: "bookings",
|
|
48
|
+
icon: <FaCalendar color="#0e8ce2" size={10} />,
|
|
49
|
+
},
|
|
50
|
+
[CATEGORY_TYPES_NAMES.menuItems]: {
|
|
51
|
+
label: "menuItems",
|
|
52
|
+
icon: <FaBars color="#0e8ce2" size={10} />,
|
|
53
|
+
},
|
|
54
|
+
[CATEGORY_TYPES_NAMES.game]: {
|
|
55
|
+
label: "game",
|
|
56
|
+
icon: <FaBowlingBall color="#0e8ce2" size={10} />,
|
|
57
|
+
},
|
|
58
|
+
[CATEGORY_TYPES_NAMES.fixedDuration]: {
|
|
59
|
+
label: "fixedDuration",
|
|
60
|
+
icon: <FaCalendar color="#0e8ce2" size={10} />,
|
|
61
|
+
},
|
|
62
|
+
};
|
|
63
|
+
|
|
36
64
|
interface ProductCategoriesControlProps extends WithIsLoading {
|
|
37
65
|
stepIndex: number;
|
|
38
66
|
isOverrides?: boolean;
|
|
@@ -228,6 +256,8 @@ export function ProductCategoriesControl({
|
|
|
228
256
|
setIsExpanded(productCategoryId);
|
|
229
257
|
};
|
|
230
258
|
|
|
259
|
+
const categoryType = CATEGORIES_TYPE[productCategory.type];
|
|
260
|
+
|
|
231
261
|
return (
|
|
232
262
|
<Controller
|
|
233
263
|
key={`product-category-${productCategory._id}`}
|
|
@@ -272,6 +302,12 @@ export function ProductCategoriesControl({
|
|
|
272
302
|
)}
|
|
273
303
|
modalClass={ProductSetModalClasses.category}
|
|
274
304
|
isNewAdded={showCategoryModal}
|
|
305
|
+
itemButton={
|
|
306
|
+
<div className="btn-outline-primary item-icon sm border border-primary rounded-sm">
|
|
307
|
+
{categoryType.icon}
|
|
308
|
+
<span className="ml-2">{t(categoryType.label)}</span>
|
|
309
|
+
</div>
|
|
310
|
+
}
|
|
275
311
|
body={
|
|
276
312
|
<ProductCategoryControl
|
|
277
313
|
isLoading={isLoading}
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
} from "react-icons/fa";
|
|
26
26
|
import { ProductSetLoadingContext } from "./context";
|
|
27
27
|
|
|
28
|
-
const CATEGORY_TYPES_NAMES = {
|
|
28
|
+
export const CATEGORY_TYPES_NAMES = {
|
|
29
29
|
menuItems: CATEGORY_TYPE_MENU_ITEMS,
|
|
30
30
|
tickets: CATEGORY_TYPE_TICKETS,
|
|
31
31
|
bookings: CATEGORY_TYPE_BOOKINGS,
|
|
@@ -33,7 +33,7 @@ const CATEGORY_TYPES_NAMES = {
|
|
|
33
33
|
fixedDuration: CATEGORY_TYPE_FIXED_DURATION,
|
|
34
34
|
} as const;
|
|
35
35
|
|
|
36
|
-
type CategoryConfig = { label: string; icon: ReactElement };
|
|
36
|
+
export type CategoryConfig = { label: string; icon: ReactElement };
|
|
37
37
|
|
|
38
38
|
const MAIN_CATEGORIES: Partial<Record<CategoryType, CategoryConfig>> = {
|
|
39
39
|
[CATEGORY_TYPES_NAMES.tickets]: {
|
|
@@ -1,4 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
ReactElement,
|
|
3
|
+
ReactNode,
|
|
4
|
+
useCallback,
|
|
5
|
+
useEffect,
|
|
6
|
+
useState,
|
|
7
|
+
} from "react";
|
|
2
8
|
import { DndContext, useDraggable } from "@dnd-kit/core";
|
|
3
9
|
import {
|
|
4
10
|
SortableContext,
|
|
@@ -33,6 +39,7 @@ export interface SortableTreeItemProps {
|
|
|
33
39
|
body: ReactNode;
|
|
34
40
|
children?: ReactNode;
|
|
35
41
|
preItem?: ReactNode;
|
|
42
|
+
itemButton?: ReactNode;
|
|
36
43
|
postItem?: ReactNode;
|
|
37
44
|
sortableItems?: string[];
|
|
38
45
|
isExpanded?: boolean;
|
|
@@ -82,6 +89,7 @@ export function SortableTreeItem({
|
|
|
82
89
|
secondaryBadge,
|
|
83
90
|
setIsExpanded,
|
|
84
91
|
isOverride,
|
|
92
|
+
itemButton,
|
|
85
93
|
}: SortableTreeItemProps) {
|
|
86
94
|
const [expanded, setExpanded] = useState(isExpanded);
|
|
87
95
|
const [isModalVisible, setIsModalVisible] = useState(isNewAdded);
|
|
@@ -287,9 +295,13 @@ export function SortableTreeItem({
|
|
|
287
295
|
className={clsx(
|
|
288
296
|
"sortable-tree-item-title",
|
|
289
297
|
modalLabel && "sortable-tree-product-set-element-title",
|
|
298
|
+
"d-flex justify-content-between",
|
|
290
299
|
)}
|
|
291
300
|
>
|
|
292
301
|
{title}
|
|
302
|
+
<div className="sortable-tree-item-subtitle">
|
|
303
|
+
{itemButton}
|
|
304
|
+
</div>
|
|
293
305
|
</span>
|
|
294
306
|
{!expanded && (
|
|
295
307
|
<span className="sortable-tree-item-subtitle">
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
.product-set-form {
|
|
2
|
+
|
|
2
3
|
input,
|
|
3
4
|
textarea,
|
|
4
5
|
select,
|
|
@@ -15,10 +16,12 @@
|
|
|
15
16
|
height: 2.5rem;
|
|
16
17
|
border-width: 2px;
|
|
17
18
|
padding: 2px;
|
|
19
|
+
|
|
18
20
|
label,
|
|
19
21
|
.btn-switch-indicator {
|
|
20
22
|
border-radius: 0.375rem !important;
|
|
21
23
|
}
|
|
24
|
+
|
|
22
25
|
label {
|
|
23
26
|
height: 2rem;
|
|
24
27
|
}
|
|
@@ -34,6 +37,7 @@
|
|
|
34
37
|
margin-top: 1.5rem;
|
|
35
38
|
margin-bottom: 1.5rem;
|
|
36
39
|
}
|
|
40
|
+
|
|
37
41
|
@include media-breakpoint-down(sm) {
|
|
38
42
|
padding: 1.5rem 1rem;
|
|
39
43
|
margin-top: 0.5rem;
|
|
@@ -50,7 +54,7 @@
|
|
|
50
54
|
|
|
51
55
|
.step-badge,
|
|
52
56
|
.category-badge,
|
|
53
|
-
.product-badge
|
|
57
|
+
.product-badge {
|
|
54
58
|
font-size: 0.875rem;
|
|
55
59
|
font-weight: 600;
|
|
56
60
|
}
|
|
@@ -59,10 +63,21 @@
|
|
|
59
63
|
background-color: #ffdbdb;
|
|
60
64
|
color: #d52902;
|
|
61
65
|
}
|
|
66
|
+
|
|
62
67
|
.category-badge {
|
|
63
68
|
background-color: #e8f4f6;
|
|
64
69
|
color: #1a93aa;
|
|
65
70
|
}
|
|
71
|
+
|
|
72
|
+
.item-icon {
|
|
73
|
+
display: flex;
|
|
74
|
+
justify-items: center;
|
|
75
|
+
align-items: center;
|
|
76
|
+
font-size: 0.65rem;
|
|
77
|
+
padding: 0.2rem;
|
|
78
|
+
margin-right: 1rem;
|
|
79
|
+
}
|
|
80
|
+
|
|
66
81
|
.product-badge {
|
|
67
82
|
background-color: #e9f5ea;
|
|
68
83
|
color: #269b36;
|
|
@@ -77,10 +92,12 @@
|
|
|
77
92
|
|
|
78
93
|
.product-set-mobile-modal {
|
|
79
94
|
margin: 0;
|
|
95
|
+
|
|
80
96
|
.modal-content {
|
|
81
97
|
border-radius: 1rem 1rem 0 0;
|
|
82
98
|
border-width: 0;
|
|
83
99
|
margin: 0;
|
|
100
|
+
|
|
84
101
|
.modal-body {
|
|
85
102
|
padding: 1rem 0;
|
|
86
103
|
}
|
|
@@ -102,18 +119,22 @@
|
|
|
102
119
|
font-weight: 600;
|
|
103
120
|
font-size: 0.625rem;
|
|
104
121
|
}
|
|
122
|
+
|
|
105
123
|
.product-set-subtitle-dot {
|
|
106
124
|
margin-right: 0.375rem;
|
|
107
125
|
width: 0.375rem;
|
|
108
126
|
height: 0.375rem;
|
|
109
127
|
border-radius: 3px;
|
|
110
128
|
}
|
|
129
|
+
|
|
111
130
|
.product-set-subtitle-category-dot {
|
|
112
131
|
background-color: #269b36;
|
|
113
132
|
}
|
|
133
|
+
|
|
114
134
|
.product-set-subtitle-step-dot {
|
|
115
135
|
background-color: #1a93aa;
|
|
116
136
|
}
|
|
137
|
+
|
|
117
138
|
.product-set-subtitle-product-dot {
|
|
118
139
|
background-color: #269b36;
|
|
119
140
|
}
|
|
@@ -158,6 +179,7 @@
|
|
|
158
179
|
justify-self: flex-end;
|
|
159
180
|
align-items: flex-end;
|
|
160
181
|
}
|
|
182
|
+
|
|
161
183
|
.small-badge {
|
|
162
184
|
font-size: 0.5rem;
|
|
163
185
|
height: 1rem;
|
|
@@ -165,6 +187,7 @@
|
|
|
165
187
|
padding: 0 0.2rem;
|
|
166
188
|
margin-bottom: 0.2rem;
|
|
167
189
|
}
|
|
190
|
+
|
|
168
191
|
.product-set-save-btn-wrapper {
|
|
169
192
|
padding-left: 0 !important;
|
|
170
193
|
display: flex;
|
|
@@ -182,7 +205,7 @@
|
|
|
182
205
|
|
|
183
206
|
.product-zone-badge {
|
|
184
207
|
background-color: #EFE9F5;
|
|
185
|
-
color
|
|
208
|
+
color: #84269B;
|
|
186
209
|
font-size: 0.875rem;
|
|
187
210
|
font-weight: 600;
|
|
188
211
|
}
|
package/yarn.lock
CHANGED
|
@@ -5077,14 +5077,14 @@ __metadata:
|
|
|
5077
5077
|
linkType: hard
|
|
5078
5078
|
|
|
5079
5079
|
"@tiptap/extension-bubble-menu@npm:^2.0.0-beta.56":
|
|
5080
|
-
version: 2.
|
|
5081
|
-
resolution: "@tiptap/extension-bubble-menu@npm:2.
|
|
5080
|
+
version: 2.7.0
|
|
5081
|
+
resolution: "@tiptap/extension-bubble-menu@npm:2.7.0"
|
|
5082
5082
|
dependencies:
|
|
5083
5083
|
tippy.js: "npm:^6.3.7"
|
|
5084
5084
|
peerDependencies:
|
|
5085
|
-
"@tiptap/core": ^2.
|
|
5086
|
-
"@tiptap/pm": ^2.
|
|
5087
|
-
checksum: 10c0/
|
|
5085
|
+
"@tiptap/core": ^2.7.0-pre.0
|
|
5086
|
+
"@tiptap/pm": ^2.7.0-pre.0
|
|
5087
|
+
checksum: 10c0/817de16ccb9837dc01080e6d1f7c77ae3ee69ae7e5d4b804dcc5f090e53e4a3e95a33aee978c65db7917742038cc5894f96a44696d00f409f9cf45c92672a2b9
|
|
5088
5088
|
languageName: node
|
|
5089
5089
|
linkType: hard
|
|
5090
5090
|
|
|
@@ -5107,14 +5107,14 @@ __metadata:
|
|
|
5107
5107
|
linkType: hard
|
|
5108
5108
|
|
|
5109
5109
|
"@tiptap/extension-floating-menu@npm:^2.0.0-beta.51":
|
|
5110
|
-
version: 2.
|
|
5111
|
-
resolution: "@tiptap/extension-floating-menu@npm:2.
|
|
5110
|
+
version: 2.7.0
|
|
5111
|
+
resolution: "@tiptap/extension-floating-menu@npm:2.7.0"
|
|
5112
5112
|
dependencies:
|
|
5113
5113
|
tippy.js: "npm:^6.3.7"
|
|
5114
5114
|
peerDependencies:
|
|
5115
|
-
"@tiptap/core": ^2.
|
|
5116
|
-
"@tiptap/pm": ^2.
|
|
5117
|
-
checksum: 10c0/
|
|
5115
|
+
"@tiptap/core": ^2.7.0-pre.0
|
|
5116
|
+
"@tiptap/pm": ^2.7.0-pre.0
|
|
5117
|
+
checksum: 10c0/41e74d119bf2a006f7251e5a8703dfd57edb58766aa2a431443ef8463e9f4da699d970f50ea5bfd4ca7c0322a76ff170c0418d72bbdb5a61d54756253fdacb1e
|
|
5118
5118
|
languageName: node
|
|
5119
5119
|
linkType: hard
|
|
5120
5120
|
|
|
@@ -5646,9 +5646,9 @@ __metadata:
|
|
|
5646
5646
|
linkType: hard
|
|
5647
5647
|
|
|
5648
5648
|
"@types/prop-types@npm:*, @types/prop-types@npm:^15.7.3":
|
|
5649
|
-
version: 15.7.
|
|
5650
|
-
resolution: "@types/prop-types@npm:15.7.
|
|
5651
|
-
checksum: 10c0/
|
|
5649
|
+
version: 15.7.13
|
|
5650
|
+
resolution: "@types/prop-types@npm:15.7.13"
|
|
5651
|
+
checksum: 10c0/1b20fc67281902c6743379960247bc161f3f0406ffc0df8e7058745a85ea1538612109db0406290512947f9632fe9e10e7337bf0ce6338a91d6c948df16a7c61
|
|
5652
5652
|
languageName: node
|
|
5653
5653
|
linkType: hard
|
|
5654
5654
|
|
|
@@ -5842,16 +5842,16 @@ __metadata:
|
|
|
5842
5842
|
linkType: hard
|
|
5843
5843
|
|
|
5844
5844
|
"@types/react@npm:*, @types/react@npm:16 || 17 || 18, @types/react@npm:>=16.14.8, @types/react@npm:>=16.9.11":
|
|
5845
|
-
version: 18.3.
|
|
5846
|
-
resolution: "@types/react@npm:18.3.
|
|
5845
|
+
version: 18.3.7
|
|
5846
|
+
resolution: "@types/react@npm:18.3.7"
|
|
5847
5847
|
dependencies:
|
|
5848
5848
|
"@types/prop-types": "npm:*"
|
|
5849
5849
|
csstype: "npm:^3.0.2"
|
|
5850
|
-
checksum: 10c0/
|
|
5850
|
+
checksum: 10c0/460f40eadf1fd035344b2ff9061d5c2314db9403f76d05fff7724c78543737c95829e1628567c63d27b542647867eca5b6f284dfd38f1d3b70754f32c4cbecb7
|
|
5851
5851
|
languageName: node
|
|
5852
5852
|
linkType: hard
|
|
5853
5853
|
|
|
5854
|
-
"@types/react@npm:17.0.80
|
|
5854
|
+
"@types/react@npm:17.0.80":
|
|
5855
5855
|
version: 17.0.80
|
|
5856
5856
|
resolution: "@types/react@npm:17.0.80"
|
|
5857
5857
|
dependencies:
|
|
@@ -5862,6 +5862,17 @@ __metadata:
|
|
|
5862
5862
|
languageName: node
|
|
5863
5863
|
linkType: hard
|
|
5864
5864
|
|
|
5865
|
+
"@types/react@npm:^17":
|
|
5866
|
+
version: 17.0.82
|
|
5867
|
+
resolution: "@types/react@npm:17.0.82"
|
|
5868
|
+
dependencies:
|
|
5869
|
+
"@types/prop-types": "npm:*"
|
|
5870
|
+
"@types/scheduler": "npm:^0.16"
|
|
5871
|
+
csstype: "npm:^3.0.2"
|
|
5872
|
+
checksum: 10c0/86a6797988cea1b63083eb1742be7bccce77bd0e240bce490b89f3e420c1fa24cd45454d8c0bb6f1b4465ca8e9f35a7bbe60beada8b5bd05a2cf62d3f0c2460e
|
|
5873
|
+
languageName: node
|
|
5874
|
+
linkType: hard
|
|
5875
|
+
|
|
5865
5876
|
"@types/resize-observer-browser@npm:0.1.7":
|
|
5866
5877
|
version: 0.1.7
|
|
5867
5878
|
resolution: "@types/resize-observer-browser@npm:0.1.7"
|
|
@@ -7135,17 +7146,17 @@ __metadata:
|
|
|
7135
7146
|
linkType: hard
|
|
7136
7147
|
|
|
7137
7148
|
"babel-loader@npm:^8.2.2":
|
|
7138
|
-
version: 8.
|
|
7139
|
-
resolution: "babel-loader@npm:8.
|
|
7149
|
+
version: 8.4.1
|
|
7150
|
+
resolution: "babel-loader@npm:8.4.1"
|
|
7140
7151
|
dependencies:
|
|
7141
7152
|
find-cache-dir: "npm:^3.3.1"
|
|
7142
|
-
loader-utils: "npm:^2.0.
|
|
7153
|
+
loader-utils: "npm:^2.0.4"
|
|
7143
7154
|
make-dir: "npm:^3.1.0"
|
|
7144
7155
|
schema-utils: "npm:^2.6.5"
|
|
7145
7156
|
peerDependencies:
|
|
7146
7157
|
"@babel/core": ^7.0.0
|
|
7147
7158
|
webpack: ">=2"
|
|
7148
|
-
checksum: 10c0/
|
|
7159
|
+
checksum: 10c0/efdca9c3ef502af58b923a32123d660c54fd0be125b7b64562c8a43bda0a3a55dac0db32331674104e7e5184061b75c3a0e395b2c5ccdc7cb2125dd9ec7108d2
|
|
7149
7160
|
languageName: node
|
|
7150
7161
|
linkType: hard
|
|
7151
7162
|
|
|
@@ -9548,9 +9559,9 @@ __metadata:
|
|
|
9548
9559
|
linkType: hard
|
|
9549
9560
|
|
|
9550
9561
|
"electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.4":
|
|
9551
|
-
version: 1.5.
|
|
9552
|
-
resolution: "electron-to-chromium@npm:1.5.
|
|
9553
|
-
checksum: 10c0/
|
|
9562
|
+
version: 1.5.24
|
|
9563
|
+
resolution: "electron-to-chromium@npm:1.5.24"
|
|
9564
|
+
checksum: 10c0/c20a6fc69145c0b470778ee0a952226d3480d611949bea00c9f8ed3bac0a205e5cd8ba76cfa99034d9ee717482741cf1c7e41eb151ccffc933e1eefe501d3bc7
|
|
9554
9565
|
languageName: node
|
|
9555
9566
|
linkType: hard
|
|
9556
9567
|
|
|
@@ -13548,7 +13559,7 @@ __metadata:
|
|
|
13548
13559
|
languageName: node
|
|
13549
13560
|
linkType: hard
|
|
13550
13561
|
|
|
13551
|
-
"loader-utils@npm:^2.0.0":
|
|
13562
|
+
"loader-utils@npm:^2.0.0, loader-utils@npm:^2.0.4":
|
|
13552
13563
|
version: 2.0.4
|
|
13553
13564
|
resolution: "loader-utils@npm:2.0.4"
|
|
13554
13565
|
dependencies:
|