@vendure/admin-ui 3.3.6-master-202507110238 → 3.3.6
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/core/common/version.d.ts +1 -1
- package/fesm2022/vendure-admin-ui-core.mjs +60 -34
- package/fesm2022/vendure-admin-ui-core.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-customer.mjs +0 -1
- package/fesm2022/vendure-admin-ui-customer.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-order.mjs +0 -1
- package/fesm2022/vendure-admin-ui-order.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-react.mjs +0 -1
- package/fesm2022/vendure-admin-ui-react.mjs.map +1 -1
- package/fesm2022/vendure-admin-ui-settings.mjs +3 -6
- package/fesm2022/vendure-admin-ui-settings.mjs.map +1 -1
- package/package.json +2 -2
- package/static/i18n-messages/es.json +1 -1
package/core/common/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const ADMIN_UI_VERSION = "3.3.6
|
|
1
|
+
export declare const ADMIN_UI_VERSION = "3.3.6";
|
|
@@ -2975,6 +2975,7 @@ class CollectionDataService {
|
|
|
2975
2975
|
'inheritFilters',
|
|
2976
2976
|
'filters',
|
|
2977
2977
|
'customFields',
|
|
2978
|
+
'isPrivate',
|
|
2978
2979
|
]),
|
|
2979
2980
|
});
|
|
2980
2981
|
}
|
|
@@ -7855,7 +7856,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.10", ngImpo
|
|
|
7855
7856
|
}], ctorParameters: () => [{ type: AlertsService }] });
|
|
7856
7857
|
|
|
7857
7858
|
// Auto-generated by the set-version.js script.
|
|
7858
|
-
const ADMIN_UI_VERSION = '3.3.6
|
|
7859
|
+
const ADMIN_UI_VERSION = '3.3.6';
|
|
7859
7860
|
|
|
7860
7861
|
/* eslint-disable @angular-eslint/directive-selector */
|
|
7861
7862
|
class FormFieldControlDirective {
|
|
@@ -14114,7 +14115,6 @@ class AssetPreviewComponent {
|
|
|
14114
14115
|
return this.asset.focalPoint ? this.asset.focalPoint.y : null;
|
|
14115
14116
|
}
|
|
14116
14117
|
ngOnInit() {
|
|
14117
|
-
const { focalPoint } = this.asset;
|
|
14118
14118
|
if (this.assets?.length) {
|
|
14119
14119
|
this.showSlideButtons = true;
|
|
14120
14120
|
this.previewAssetIndex = this.assets.findIndex(asset => asset.id === this.asset.id) || 0;
|
|
@@ -15165,20 +15165,24 @@ function headingRule(nodeType, maxLevel) {
|
|
|
15165
15165
|
function buildInputRules(schema) {
|
|
15166
15166
|
const rules = smartQuotes.concat(ellipsis, emDash);
|
|
15167
15167
|
let type;
|
|
15168
|
-
|
|
15169
|
-
if (
|
|
15168
|
+
type = schema.nodes.blockquote;
|
|
15169
|
+
if (type) {
|
|
15170
15170
|
rules.push(blockQuoteRule(type));
|
|
15171
15171
|
}
|
|
15172
|
-
|
|
15172
|
+
type = schema.nodes.ordered_list;
|
|
15173
|
+
if (type) {
|
|
15173
15174
|
rules.push(orderedListRule(type));
|
|
15174
15175
|
}
|
|
15175
|
-
|
|
15176
|
+
type = schema.nodes.bullet_list;
|
|
15177
|
+
if (type) {
|
|
15176
15178
|
rules.push(bulletListRule(type));
|
|
15177
15179
|
}
|
|
15178
|
-
|
|
15180
|
+
type = schema.nodes.code_block;
|
|
15181
|
+
if (type) {
|
|
15179
15182
|
rules.push(codeBlockRule(type));
|
|
15180
15183
|
}
|
|
15181
|
-
|
|
15184
|
+
type = schema.nodes.heading;
|
|
15185
|
+
if (type) {
|
|
15182
15186
|
rules.push(headingRule(type, 6));
|
|
15183
15187
|
}
|
|
15184
15188
|
return inputRules({ rules });
|
|
@@ -15238,28 +15242,34 @@ function buildKeymap(schema, mapKeys) {
|
|
|
15238
15242
|
bind('Alt-ArrowDown', joinDown);
|
|
15239
15243
|
bind('Mod-BracketLeft', lift);
|
|
15240
15244
|
bind('Escape', selectParentNode);
|
|
15241
|
-
|
|
15242
|
-
if (
|
|
15245
|
+
type = schema.marks.strong;
|
|
15246
|
+
if (type) {
|
|
15243
15247
|
bind('Mod-b', toggleMark(type));
|
|
15244
15248
|
bind('Mod-B', toggleMark(type));
|
|
15245
15249
|
}
|
|
15246
|
-
|
|
15250
|
+
type = schema.marks.em;
|
|
15251
|
+
if (type) {
|
|
15247
15252
|
bind('Mod-i', toggleMark(type));
|
|
15248
15253
|
bind('Mod-I', toggleMark(type));
|
|
15249
15254
|
}
|
|
15250
|
-
|
|
15255
|
+
type = schema.marks.code;
|
|
15256
|
+
if (type) {
|
|
15251
15257
|
bind('Mod-`', toggleMark(type));
|
|
15252
15258
|
}
|
|
15253
|
-
|
|
15259
|
+
type = schema.nodes.bullet_list;
|
|
15260
|
+
if (type) {
|
|
15254
15261
|
bind('Shift-Ctrl-8', wrapInList(type));
|
|
15255
15262
|
}
|
|
15256
|
-
|
|
15263
|
+
type = schema.nodes.ordered_list;
|
|
15264
|
+
if (type) {
|
|
15257
15265
|
bind('Shift-Ctrl-9', wrapInList(type));
|
|
15258
15266
|
}
|
|
15259
|
-
|
|
15267
|
+
type = schema.nodes.blockquote;
|
|
15268
|
+
if (type) {
|
|
15260
15269
|
bind('Ctrl->', wrapIn(type));
|
|
15261
15270
|
}
|
|
15262
|
-
|
|
15271
|
+
type = schema.nodes.hard_break;
|
|
15272
|
+
if (type) {
|
|
15263
15273
|
const br = type;
|
|
15264
15274
|
const cmd = chainCommands(exitCode, (state, dispatch) => {
|
|
15265
15275
|
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
@@ -15272,23 +15282,28 @@ function buildKeymap(schema, mapKeys) {
|
|
|
15272
15282
|
bind('Ctrl-Enter', cmd);
|
|
15273
15283
|
}
|
|
15274
15284
|
}
|
|
15275
|
-
|
|
15285
|
+
type = schema.nodes.list_item;
|
|
15286
|
+
if (type) {
|
|
15276
15287
|
bind('Enter', splitListItem(type));
|
|
15277
15288
|
bind('Mod-[', liftListItem(type));
|
|
15278
15289
|
bind('Mod-]', sinkListItem(type));
|
|
15279
15290
|
}
|
|
15280
|
-
|
|
15291
|
+
type = schema.nodes.paragraph;
|
|
15292
|
+
if (type) {
|
|
15281
15293
|
bind('Shift-Ctrl-0', setBlockType(type));
|
|
15282
15294
|
}
|
|
15283
|
-
|
|
15295
|
+
type = schema.nodes.code_block;
|
|
15296
|
+
if (type) {
|
|
15284
15297
|
bind('Shift-Ctrl-\\', setBlockType(type));
|
|
15285
15298
|
}
|
|
15286
|
-
|
|
15299
|
+
type = schema.nodes.heading;
|
|
15300
|
+
if (type) {
|
|
15287
15301
|
for (let i = 1; i <= 6; i++) {
|
|
15288
15302
|
bind('Shift-Ctrl-' + i, setBlockType(type, { level: i }));
|
|
15289
15303
|
}
|
|
15290
15304
|
}
|
|
15291
|
-
|
|
15305
|
+
type = schema.nodes.horizontal_rule;
|
|
15306
|
+
if (type) {
|
|
15292
15307
|
const hr = type;
|
|
15293
15308
|
bind('Mod-_', (state, dispatch) => {
|
|
15294
15309
|
dispatch(state.tr.replaceSelectionWith(hr.create()).scrollIntoView());
|
|
@@ -15907,59 +15922,69 @@ function wrapListItem(nodeType, options) {
|
|
|
15907
15922
|
function buildMenuItems(schema, modalService) {
|
|
15908
15923
|
const r = {};
|
|
15909
15924
|
let type;
|
|
15910
|
-
|
|
15911
|
-
if (
|
|
15925
|
+
type = schema.marks.strong;
|
|
15926
|
+
if (type) {
|
|
15912
15927
|
r.toggleStrong = markItem(type, {
|
|
15913
15928
|
title: 'Toggle strong style',
|
|
15914
15929
|
iconShape: 'bold',
|
|
15915
15930
|
});
|
|
15916
15931
|
}
|
|
15917
|
-
|
|
15932
|
+
type = schema.marks.em;
|
|
15933
|
+
if (type) {
|
|
15918
15934
|
r.toggleEm = markItem(type, {
|
|
15919
15935
|
title: 'Toggle emphasis',
|
|
15920
15936
|
iconShape: 'italic',
|
|
15921
15937
|
});
|
|
15922
15938
|
}
|
|
15923
|
-
|
|
15939
|
+
type = schema.marks.code;
|
|
15940
|
+
if (type) {
|
|
15924
15941
|
r.toggleCode = markItem(type, { title: 'Toggle code font', icon: icons.code });
|
|
15925
15942
|
}
|
|
15926
|
-
|
|
15943
|
+
type = schema.marks.link;
|
|
15944
|
+
if (type) {
|
|
15927
15945
|
r.toggleLink = linkItem(type, modalService);
|
|
15928
15946
|
}
|
|
15929
|
-
|
|
15947
|
+
type = schema.nodes.image;
|
|
15948
|
+
if (type) {
|
|
15930
15949
|
r.insertImage = insertImageItem(type, modalService);
|
|
15931
15950
|
}
|
|
15932
|
-
|
|
15951
|
+
type = schema.nodes.bullet_list;
|
|
15952
|
+
if (type) {
|
|
15933
15953
|
r.wrapBulletList = wrapListItem(type, {
|
|
15934
15954
|
title: 'Wrap in bullet list',
|
|
15935
15955
|
iconShape: 'bullet-list',
|
|
15936
15956
|
});
|
|
15937
15957
|
}
|
|
15938
|
-
|
|
15958
|
+
type = schema.nodes.ordered_list;
|
|
15959
|
+
if (type) {
|
|
15939
15960
|
r.wrapOrderedList = wrapListItem(type, {
|
|
15940
15961
|
title: 'Wrap in ordered list',
|
|
15941
15962
|
iconShape: 'number-list',
|
|
15942
15963
|
});
|
|
15943
15964
|
}
|
|
15944
|
-
|
|
15965
|
+
type = schema.nodes.blockquote;
|
|
15966
|
+
if (type) {
|
|
15945
15967
|
r.wrapBlockQuote = wrapItem(type, {
|
|
15946
15968
|
title: 'Wrap in block quote',
|
|
15947
15969
|
render: renderClarityIcon({ shape: 'block-quote', size: IconSize.Large }),
|
|
15948
15970
|
});
|
|
15949
15971
|
}
|
|
15950
|
-
|
|
15972
|
+
type = schema.nodes.paragraph;
|
|
15973
|
+
if (type) {
|
|
15951
15974
|
r.makeParagraph = blockTypeItem(type, {
|
|
15952
15975
|
title: 'Change to paragraph',
|
|
15953
15976
|
render: renderClarityIcon({ shape: 'text', label: 'Plain' }),
|
|
15954
15977
|
});
|
|
15955
15978
|
}
|
|
15956
|
-
|
|
15979
|
+
type = schema.nodes.code_block;
|
|
15980
|
+
if (type) {
|
|
15957
15981
|
r.makeCodeBlock = blockTypeItem(type, {
|
|
15958
15982
|
title: 'Change to code block',
|
|
15959
15983
|
render: renderClarityIcon({ shape: 'code', label: 'Code' }),
|
|
15960
15984
|
});
|
|
15961
15985
|
}
|
|
15962
|
-
|
|
15986
|
+
type = schema.nodes.heading;
|
|
15987
|
+
if (type) {
|
|
15963
15988
|
for (let i = 1; i <= 10; i++) {
|
|
15964
15989
|
r['makeHead' + i] = blockTypeItem(type, {
|
|
15965
15990
|
title: 'Change to heading ' + i,
|
|
@@ -15968,7 +15993,8 @@ function buildMenuItems(schema, modalService) {
|
|
|
15968
15993
|
});
|
|
15969
15994
|
}
|
|
15970
15995
|
}
|
|
15971
|
-
|
|
15996
|
+
type = schema.nodes.horizontal_rule;
|
|
15997
|
+
if (type) {
|
|
15972
15998
|
const hr = type;
|
|
15973
15999
|
r.insertHorizontalRule = new MenuItem({
|
|
15974
16000
|
title: 'Insert horizontal rule',
|