@licklist/design 0.78.5-stage.4 → 0.78.5-stage.5
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/notification/email-template/control/EmailTemplateControl.d.ts +1 -0
- package/dist/notification/email-template/control/EmailTemplateControl.d.ts.map +1 -1
- package/dist/notification/email-template/control/EmailTemplateControl.js +4 -4
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts +2 -1
- package/dist/notification/email-template/form/EmailTemplateForm.d.ts.map +1 -1
- package/dist/notification/email-template/form/EmailTemplateForm.js +2 -1
- package/package.json +3 -3
- package/src/notification/email-template/control/EmailTemplateControl.tsx +7 -5
- package/src/notification/email-template/form/EmailTemplateForm.tsx +3 -0
- package/yarn.lock +49 -20
|
@@ -7,6 +7,7 @@ export interface EmailTemplateControlProps {
|
|
|
7
7
|
meta: string;
|
|
8
8
|
defaultAttachments?: Attachment[];
|
|
9
9
|
notificationTypes?: NotificationType[];
|
|
10
|
+
waiverType?: boolean;
|
|
10
11
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
|
|
11
12
|
}
|
|
12
13
|
export declare const EmailTemplateControl: import("react").ForwardRefExoticComponent<EmailTemplateControlProps & import("react").RefAttributes<unknown>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+
|
|
1
|
+
{"version":3,"file":"EmailTemplateControl.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/control/EmailTemplateControl.tsx"],"names":[],"mappings":"AAKA,OAAO,EACL,cAAc,EAEf,MAAM,sEAAsE,CAAA;AAG7E,OAAO,EAAE,UAAU,EAAE,MAAM,kEAAkE,CAAA;AAM7F,OAAO,EAAE,gBAAgB,EAAE,MAAM,wEAAwE,CAAA;AAMzG,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,cAAc,EAAE,CAAA;IACzB,YAAY,EAAE,CAAC,SAAS,EAAE,OAAO,KAAK,IAAI,CAAA;IAC1C,IAAI,EAAE,MAAM,CAAA;IACZ,kBAAkB,CAAC,EAAE,UAAU,EAAE,CAAA;IACjC,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;CAC1E;AAED,eAAO,MAAM,oBAAoB,+GAsahC,CAAA"}
|
|
@@ -234,7 +234,7 @@ function _ts_generator(thisArg, body) {
|
|
|
234
234
|
}
|
|
235
235
|
var EDITOR_DESIGN_UPDATED = 'design:updated';
|
|
236
236
|
var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
237
|
-
var setIsLoading = param.setIsLoading, meta = param.meta, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_defaultAttachments = param.defaultAttachments, defaultAttachments = _param_defaultAttachments === void 0 ? [] : _param_defaultAttachments, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType;
|
|
237
|
+
var setIsLoading = param.setIsLoading, meta = param.meta, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, _param_defaultAttachments = param.defaultAttachments, defaultAttachments = _param_defaultAttachments === void 0 ? [] : _param_defaultAttachments, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, _param_waiverType = param.waiverType, waiverType = _param_waiverType === void 0 ? false : _param_waiverType, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType;
|
|
238
238
|
var _errors_type, _errors_name, _errors_subject, _errors_body;
|
|
239
239
|
var t = useTranslation([
|
|
240
240
|
'Design'
|
|
@@ -476,7 +476,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
476
476
|
]
|
|
477
477
|
})
|
|
478
478
|
}),
|
|
479
|
-
/*#__PURE__*/ jsx(Row, {
|
|
479
|
+
!waiverType && /*#__PURE__*/ jsx(Row, {
|
|
480
480
|
children: /*#__PURE__*/ jsxs(Form.Group, {
|
|
481
481
|
as: Col,
|
|
482
482
|
children: [
|
|
@@ -578,7 +578,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
578
578
|
}
|
|
579
579
|
// should show dropdown only if user want to include PDF file
|
|
580
580
|
if (option.type === OPTION_TYPE.files_selector) {
|
|
581
|
-
var fileSelectors = JSON.parse(option.defaultValue);
|
|
581
|
+
var fileSelectors = (option === null || option === void 0 ? void 0 : option.defaultValue) ? JSON.parse(option.defaultValue) : '';
|
|
582
582
|
var fileNames = Object.values(fileSelectors);
|
|
583
583
|
var fileKeys = Object.keys(fileSelectors);
|
|
584
584
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
@@ -622,7 +622,7 @@ var EmailTemplateControl = /*#__PURE__*/ forwardRef(function(param, ref) {
|
|
|
622
622
|
]
|
|
623
623
|
});
|
|
624
624
|
}
|
|
625
|
-
if (option.type === OPTION_TYPE.days_reminder) {
|
|
625
|
+
if (option.type === OPTION_TYPE.days_reminder || option.type === OPTION_TYPE.waiver_reminder) {
|
|
626
626
|
return /*#__PURE__*/ jsxs(Fragment, {
|
|
627
627
|
children: [
|
|
628
628
|
/*#__PURE__*/ jsx(Form.Label, {
|
|
@@ -31,9 +31,10 @@ export interface EmailTemplateProps extends HasPermissionProp {
|
|
|
31
31
|
placeholders?: NotificationPlaceholder[];
|
|
32
32
|
options?: TemplateOption[];
|
|
33
33
|
serverErrors?: ServerError;
|
|
34
|
+
waiverType?: boolean;
|
|
34
35
|
notificationTypes?: NotificationType[];
|
|
35
36
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string;
|
|
36
37
|
onTypeChange?: (type?: NotificationType | null) => void;
|
|
37
38
|
}
|
|
38
|
-
export declare const EmailTemplateForm: ({ defaultValues, onSubmitSave, onSubmitSaveAndSend, hasPermission, placeholders, options, serverErrors, notificationTypes, getDefaultTemplateMetaByType, onTypeChange, }: EmailTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
|
+
export declare const EmailTemplateForm: ({ defaultValues, onSubmitSave, onSubmitSaveAndSend, hasPermission, placeholders, options, serverErrors, waiverType, notificationTypes, getDefaultTemplateMetaByType, onTypeChange, }: EmailTemplateProps) => import("react/jsx-runtime").JSX.Element;
|
|
39
40
|
//# sourceMappingURL=EmailTemplateForm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EmailTemplateForm.d.ts","sourceRoot":"","sources":["../../../../src/notification/email-template/form/EmailTemplateForm.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,8DAA8D,CAAA;AAIzF,OAAO,EAAE,iBAAiB,EAAE,MAAM,oDAAoD,CAAA;AACtF,OAAO,EAAE,uBAAuB,EAAE,MAAM,+EAA+E,CAAA;AACvH,OAAO,EAAE,cAAc,EAAE,MAAM,sE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AAI,CAAC,EAAE,MAAM,CAAA;IACb,kBAAkB,CAAC,EAAE,kBAAkB,EAAE,GAAG,mBAAmB,EAAE,CAAA;IACjE,WAAW,CAAC,EAAE,UAAU,EAAE,CAAA;IAC1B,oBAAoB,CAAC,EAAE,mBAAmB,EAAE,CAAA;IAC5C,cAAc,CAAC,EAAE,oBAAoB,EAAE,CAAA;IACvC,IAAI,CAAC,EAAE,gBAAgB,CAAA;CACxB;AAED,MAAM,WAAW,kBAAmB,SAAQ,iBAAiB;IAC3D,SAAS,EAAE,OAAO,CAAA;IAClB,YAAY,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IACnD,mBAAmB,CAAC,EAAE,CAAC,MAAM,EAAE,mBAAmB,KAAK,IAAI,CAAA;IAC3D,aAAa,CAAC,EAAE,mBAAmB,CAAA;IACnC,YAAY,CAAC,EAAE,uBAAuB,EAAE,CAAA;IACxC,OAAO,CAAC,EAAE,cAAc,EAAE,CAAA;IAC1B,YAAY,CAAC,EAAE,WAAW,CAAA;IAC1B,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,iBAAiB,CAAC,EAAE,gBAAgB,EAAE,CAAA;IACtC,4BAA4B,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,MAAM,CAAA;IACzE,YAAY,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,gBAAgB,GAAG,IAAI,KAAK,IAAI,CAAA;CACxD;AAED,eAAO,MAAM,iBAAiB,yLAY3B,kBAAkB,4CAoEpB,CAAA"}
|
|
@@ -108,7 +108,7 @@ function _unsupported_iterable_to_array(o, minLen) {
|
|
|
108
108
|
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
109
109
|
}
|
|
110
110
|
var EmailTemplateForm = function(param) {
|
|
111
|
-
var defaultValues = param.defaultValues, onSubmitSave = param.onSubmitSave, onSubmitSaveAndSend = param.onSubmitSaveAndSend, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, _param_placeholders = param.placeholders, placeholders = _param_placeholders === void 0 ? [] : _param_placeholders, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, serverErrors = param.serverErrors, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType, onTypeChange = param.onTypeChange;
|
|
111
|
+
var defaultValues = param.defaultValues, onSubmitSave = param.onSubmitSave, onSubmitSaveAndSend = param.onSubmitSaveAndSend, _param_hasPermission = param.hasPermission, hasPermission = _param_hasPermission === void 0 ? true : _param_hasPermission, _param_placeholders = param.placeholders, placeholders = _param_placeholders === void 0 ? [] : _param_placeholders, _param_options = param.options, options = _param_options === void 0 ? [] : _param_options, serverErrors = param.serverErrors, waiverType = param.waiverType, _param_notificationTypes = param.notificationTypes, notificationTypes = _param_notificationTypes === void 0 ? [] : _param_notificationTypes, getDefaultTemplateMetaByType = param.getDefaultTemplateMetaByType, onTypeChange = param.onTypeChange;
|
|
112
112
|
var t = useTranslation('Design').t;
|
|
113
113
|
var _useState = _sliced_to_array(useState(false), 2), isLoading = _useState[0], setIsLoading = _useState[1];
|
|
114
114
|
var emailEditorRef = useRef(null);
|
|
@@ -143,6 +143,7 @@ var EmailTemplateForm = function(param) {
|
|
|
143
143
|
children: [
|
|
144
144
|
/*#__PURE__*/ jsx(EmailTemplateControl, {
|
|
145
145
|
ref: emailEditorRef,
|
|
146
|
+
waiverType: waiverType,
|
|
146
147
|
setIsLoading: setIsLoading,
|
|
147
148
|
meta: (defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.meta) || null,
|
|
148
149
|
defaultAttachments: (defaultValues === null || defaultValues === void 0 ? void 0 : defaultValues.attachments) || [],
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@licklist/design",
|
|
3
|
-
"version": "0.78.5-stage.
|
|
3
|
+
"version": "0.78.5-stage.5",
|
|
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.36.1-stage.
|
|
45
|
+
"@licklist/core": "0.36.1-stage.2",
|
|
46
46
|
"@licklist/eslint-config": "0.5.6",
|
|
47
47
|
"@licklist/plugins": "0.36.4-stage.3",
|
|
48
48
|
"clsx": "2.1.1",
|
|
@@ -64,7 +64,7 @@
|
|
|
64
64
|
"@dnd-kit/utilities": "2.0.0",
|
|
65
65
|
"@fortawesome/fontawesome-svg-core": "1.2.34",
|
|
66
66
|
"@fortawesome/free-solid-svg-icons": "5.15.2",
|
|
67
|
-
"@licklist/core": "0.36.1-stage.
|
|
67
|
+
"@licklist/core": "0.36.1-stage.2",
|
|
68
68
|
"@licklist/eslint-config": "0.5.6",
|
|
69
69
|
"@licklist/plugins": "0.36.4-stage.3",
|
|
70
70
|
"@mantine/core": "6.0.22",
|
|
@@ -27,6 +27,7 @@ export interface EmailTemplateControlProps {
|
|
|
27
27
|
meta: string
|
|
28
28
|
defaultAttachments?: Attachment[]
|
|
29
29
|
notificationTypes?: NotificationType[]
|
|
30
|
+
waiverType?: boolean
|
|
30
31
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string
|
|
31
32
|
}
|
|
32
33
|
|
|
@@ -38,6 +39,7 @@ export const EmailTemplateControl = forwardRef(
|
|
|
38
39
|
options = [],
|
|
39
40
|
defaultAttachments = [],
|
|
40
41
|
notificationTypes = [],
|
|
42
|
+
waiverType = false,
|
|
41
43
|
getDefaultTemplateMetaByType,
|
|
42
44
|
}: EmailTemplateControlProps,
|
|
43
45
|
ref: any,
|
|
@@ -196,7 +198,7 @@ export const EmailTemplateControl = forwardRef(
|
|
|
196
198
|
})
|
|
197
199
|
})
|
|
198
200
|
}
|
|
199
|
-
|
|
201
|
+
|
|
200
202
|
return (
|
|
201
203
|
<>
|
|
202
204
|
<Row>
|
|
@@ -284,7 +286,7 @@ export const EmailTemplateControl = forwardRef(
|
|
|
284
286
|
</Form.Group>
|
|
285
287
|
</Row>
|
|
286
288
|
|
|
287
|
-
<Row>
|
|
289
|
+
{ !waiverType && (<Row>
|
|
288
290
|
<Form.Group as={Col}>
|
|
289
291
|
<Form.Check
|
|
290
292
|
{...register('isActive')}
|
|
@@ -301,7 +303,7 @@ export const EmailTemplateControl = forwardRef(
|
|
|
301
303
|
custom
|
|
302
304
|
/>
|
|
303
305
|
</Form.Group>
|
|
304
|
-
</Row>
|
|
306
|
+
</Row>)}
|
|
305
307
|
<Row className='mb-4'>
|
|
306
308
|
<Form.Group as={Col}>
|
|
307
309
|
<Form.Label>{t('Design:emailBody')}</Form.Label>
|
|
@@ -374,7 +376,7 @@ export const EmailTemplateControl = forwardRef(
|
|
|
374
376
|
}
|
|
375
377
|
// should show dropdown only if user want to include PDF file
|
|
376
378
|
if (option.type === OPTION_TYPE.files_selector) {
|
|
377
|
-
|
|
379
|
+
const fileSelectors = option?.defaultValue ? JSON.parse(option.defaultValue) : ''
|
|
378
380
|
const fileNames = Object.values(fileSelectors)
|
|
379
381
|
const fileKeys = Object.keys(fileSelectors)
|
|
380
382
|
|
|
@@ -423,7 +425,7 @@ export const EmailTemplateControl = forwardRef(
|
|
|
423
425
|
)
|
|
424
426
|
}
|
|
425
427
|
|
|
426
|
-
if (option.type === OPTION_TYPE.days_reminder) {
|
|
428
|
+
if (option.type === OPTION_TYPE.days_reminder || option.type === OPTION_TYPE.waiver_reminder ) {
|
|
427
429
|
return (
|
|
428
430
|
<>
|
|
429
431
|
<Form.Label className='mt-4'>
|
|
@@ -41,6 +41,7 @@ export interface EmailTemplateProps extends HasPermissionProp {
|
|
|
41
41
|
placeholders?: NotificationPlaceholder[]
|
|
42
42
|
options?: TemplateOption[]
|
|
43
43
|
serverErrors?: ServerError
|
|
44
|
+
waiverType?: boolean
|
|
44
45
|
notificationTypes?: NotificationType[]
|
|
45
46
|
getDefaultTemplateMetaByType?: (type?: NotificationType | null) => string
|
|
46
47
|
onTypeChange?: (type?: NotificationType | null) => void
|
|
@@ -54,6 +55,7 @@ export const EmailTemplateForm = ({
|
|
|
54
55
|
placeholders = [],
|
|
55
56
|
options = [],
|
|
56
57
|
serverErrors,
|
|
58
|
+
waiverType,
|
|
57
59
|
notificationTypes = [],
|
|
58
60
|
getDefaultTemplateMetaByType,
|
|
59
61
|
onTypeChange,
|
|
@@ -93,6 +95,7 @@ export const EmailTemplateForm = ({
|
|
|
93
95
|
>
|
|
94
96
|
<EmailTemplateControl
|
|
95
97
|
ref={emailEditorRef}
|
|
98
|
+
waiverType={waiverType}
|
|
96
99
|
setIsLoading={setIsLoading}
|
|
97
100
|
meta={defaultValues?.meta || null}
|
|
98
101
|
defaultAttachments={defaultValues?.attachments || []}
|
package/yarn.lock
CHANGED
|
@@ -2471,6 +2471,35 @@ __metadata:
|
|
|
2471
2471
|
languageName: node
|
|
2472
2472
|
linkType: hard
|
|
2473
2473
|
|
|
2474
|
+
"@licklist/core@npm:0.36.1-stage.2":
|
|
2475
|
+
version: 0.36.1-stage.2
|
|
2476
|
+
resolution: "@licklist/core@npm:0.36.1-stage.2"
|
|
2477
|
+
dependencies:
|
|
2478
|
+
"@sentry/browser": "npm:6.2.0"
|
|
2479
|
+
axios: "npm:0.26.0"
|
|
2480
|
+
i18next: "npm:25.3.2"
|
|
2481
|
+
luxon: "npm:3.5.0"
|
|
2482
|
+
react: "npm:18.3.1"
|
|
2483
|
+
react-dom: "npm:18.3.1"
|
|
2484
|
+
react-i18next: "npm:15.6.1"
|
|
2485
|
+
react-intl: "npm:7.1.11"
|
|
2486
|
+
uuid: "npm:9.0.0"
|
|
2487
|
+
wait-for-expect: "npm:3.0.2"
|
|
2488
|
+
zustand: "npm:3.7.2"
|
|
2489
|
+
peerDependencies:
|
|
2490
|
+
"@licklist/eslint-config": 0.5.6
|
|
2491
|
+
axios: 0.26.0
|
|
2492
|
+
i18next: 25.3.2
|
|
2493
|
+
luxon: 3.5.0
|
|
2494
|
+
react: 18.3.1
|
|
2495
|
+
react-dom: 18.3.1
|
|
2496
|
+
react-i18next: 15.6.1
|
|
2497
|
+
react-intl: 7.1.11
|
|
2498
|
+
zustand: 3.7.2
|
|
2499
|
+
checksum: 10c0/7500d61a1bfb3d1c09eac14427287d78a142f39bdfee3d0dee215a40e67c14de26c20206b0c19868d662134e26756b6b3648d68c64cab6a42c2023042a088191
|
|
2500
|
+
languageName: node
|
|
2501
|
+
linkType: hard
|
|
2502
|
+
|
|
2474
2503
|
"@licklist/design@workspace:.":
|
|
2475
2504
|
version: 0.0.0-use.local
|
|
2476
2505
|
resolution: "@licklist/design@workspace:."
|
|
@@ -2482,7 +2511,7 @@ __metadata:
|
|
|
2482
2511
|
"@dnd-kit/utilities": "npm:2.0.0"
|
|
2483
2512
|
"@fortawesome/fontawesome-svg-core": "npm:1.2.34"
|
|
2484
2513
|
"@fortawesome/free-solid-svg-icons": "npm:5.15.2"
|
|
2485
|
-
"@licklist/core": "npm:0.36.1-stage.
|
|
2514
|
+
"@licklist/core": "npm:0.36.1-stage.2"
|
|
2486
2515
|
"@licklist/eslint-config": "npm:0.5.6"
|
|
2487
2516
|
"@licklist/plugins": "npm:0.36.4-stage.3"
|
|
2488
2517
|
"@mantine/core": "npm:6.0.22"
|
|
@@ -2613,7 +2642,7 @@ __metadata:
|
|
|
2613
2642
|
vite-plugin-svgr: "npm:4.2.0"
|
|
2614
2643
|
vite-tsconfig-paths: "npm:5.0.1"
|
|
2615
2644
|
peerDependencies:
|
|
2616
|
-
"@licklist/core": 0.36.1-stage.
|
|
2645
|
+
"@licklist/core": 0.36.1-stage.2
|
|
2617
2646
|
"@licklist/eslint-config": 0.5.6
|
|
2618
2647
|
"@licklist/plugins": 0.36.4-stage.3
|
|
2619
2648
|
clsx: 2.1.1
|
|
@@ -8702,25 +8731,25 @@ __metadata:
|
|
|
8702
8731
|
linkType: hard
|
|
8703
8732
|
|
|
8704
8733
|
"core-js-compat@npm:^3.43.0, core-js-compat@npm:^3.8.1":
|
|
8705
|
-
version: 3.
|
|
8706
|
-
resolution: "core-js-compat@npm:3.
|
|
8734
|
+
version: 3.45.0
|
|
8735
|
+
resolution: "core-js-compat@npm:3.45.0"
|
|
8707
8736
|
dependencies:
|
|
8708
8737
|
browserslist: "npm:^4.25.1"
|
|
8709
|
-
checksum: 10c0/
|
|
8738
|
+
checksum: 10c0/3515955d2c83846f0bf8c4a0f96fc514a6b711e9b3ee19a8df3683a6b0720d762fef60a63bb5c07907f9d18aa00c5904ef690dd4150bc39e2d47e01f05154fda
|
|
8710
8739
|
languageName: node
|
|
8711
8740
|
linkType: hard
|
|
8712
8741
|
|
|
8713
8742
|
"core-js-pure@npm:^3.43.0, core-js-pure@npm:^3.8.2":
|
|
8714
|
-
version: 3.
|
|
8715
|
-
resolution: "core-js-pure@npm:3.
|
|
8716
|
-
checksum: 10c0/
|
|
8743
|
+
version: 3.45.0
|
|
8744
|
+
resolution: "core-js-pure@npm:3.45.0"
|
|
8745
|
+
checksum: 10c0/93f686d4f59e33701aba0762fc3742ececc36c843fb4621dfc7329b800e82782aecb0b8190b4c8bc997d7f8bf896af08707a3d1ddcb37d5544a68a0526232836
|
|
8717
8746
|
languageName: node
|
|
8718
8747
|
linkType: hard
|
|
8719
8748
|
|
|
8720
8749
|
"core-js@npm:^3.0.4, core-js@npm:^3.6.5, core-js@npm:^3.8.2":
|
|
8721
|
-
version: 3.
|
|
8722
|
-
resolution: "core-js@npm:3.
|
|
8723
|
-
checksum: 10c0/
|
|
8750
|
+
version: 3.45.0
|
|
8751
|
+
resolution: "core-js@npm:3.45.0"
|
|
8752
|
+
checksum: 10c0/118350f9f1d81f42a1276590d6c217dca04c789fdb8074c82e53056b1a784948769a62b16b98493fd73e8a988545432f302bca798571e56ad881b9c039a5a83c
|
|
8724
8753
|
languageName: node
|
|
8725
8754
|
linkType: hard
|
|
8726
8755
|
|
|
@@ -9875,9 +9904,9 @@ __metadata:
|
|
|
9875
9904
|
linkType: hard
|
|
9876
9905
|
|
|
9877
9906
|
"electron-to-chromium@npm:^1.3.564, electron-to-chromium@npm:^1.5.173":
|
|
9878
|
-
version: 1.5.
|
|
9879
|
-
resolution: "electron-to-chromium@npm:1.5.
|
|
9880
|
-
checksum: 10c0/
|
|
9907
|
+
version: 1.5.197
|
|
9908
|
+
resolution: "electron-to-chromium@npm:1.5.197"
|
|
9909
|
+
checksum: 10c0/2e48557a78bb17f1becdbcb4352ac570025cf7e304e5ad4657548a020c16646d1d5b00ffa149db3ebffb42a72981431305c566e7d7f971adaf5d15b9cb4c744a
|
|
9881
9910
|
languageName: node
|
|
9882
9911
|
linkType: hard
|
|
9883
9912
|
|
|
@@ -14293,11 +14322,11 @@ __metadata:
|
|
|
14293
14322
|
linkType: hard
|
|
14294
14323
|
|
|
14295
14324
|
"markdown-to-jsx@npm:^7.1.3":
|
|
14296
|
-
version: 7.7.
|
|
14297
|
-
resolution: "markdown-to-jsx@npm:7.7.
|
|
14325
|
+
version: 7.7.13
|
|
14326
|
+
resolution: "markdown-to-jsx@npm:7.7.13"
|
|
14298
14327
|
peerDependencies:
|
|
14299
14328
|
react: ">= 0.14.0"
|
|
14300
|
-
checksum: 10c0/
|
|
14329
|
+
checksum: 10c0/6e423b36f62cc387b87cc17ab603108b8a3095d0fc6b4294d7149aba9ca52a356a937638cb883c44e63ea8d40212f6f81ffc683020afcbc9f84bdd2856061aa9
|
|
14301
14330
|
languageName: node
|
|
14302
14331
|
linkType: hard
|
|
14303
14332
|
|
|
@@ -22230,11 +22259,11 @@ __metadata:
|
|
|
22230
22259
|
linkType: hard
|
|
22231
22260
|
|
|
22232
22261
|
"yaml@npm:^2.3.4":
|
|
22233
|
-
version: 2.8.
|
|
22234
|
-
resolution: "yaml@npm:2.8.
|
|
22262
|
+
version: 2.8.1
|
|
22263
|
+
resolution: "yaml@npm:2.8.1"
|
|
22235
22264
|
bin:
|
|
22236
22265
|
yaml: bin.mjs
|
|
22237
|
-
checksum: 10c0/
|
|
22266
|
+
checksum: 10c0/7c587be00d9303d2ae1566e03bc5bc7fe978ba0d9bf39cc418c3139d37929dfcb93a230d9749f2cb578b6aa5d9ebebc322415e4b653cb83acd8bc0bc321707f3
|
|
22238
22267
|
languageName: node
|
|
22239
22268
|
linkType: hard
|
|
22240
22269
|
|