@vendure/admin-ui 3.4.0-minor-202506250934 → 3.4.0

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.
@@ -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.4.0-minor-202506250934';
7859
+ const ADMIN_UI_VERSION = '3.4.0';
7859
7860
 
7860
7861
  /* eslint-disable @angular-eslint/directive-selector */
7861
7862
  class FormFieldControlDirective {
@@ -14121,7 +14122,6 @@ class AssetPreviewComponent {
14121
14122
  return this.asset.focalPoint ? this.asset.focalPoint.y : null;
14122
14123
  }
14123
14124
  ngOnInit() {
14124
- const { focalPoint } = this.asset;
14125
14125
  if (this.assets?.length) {
14126
14126
  this.showSlideButtons = true;
14127
14127
  this.previewAssetIndex = this.assets.findIndex(asset => asset.id === this.asset.id) || 0;
@@ -15172,20 +15172,24 @@ function headingRule(nodeType, maxLevel) {
15172
15172
  function buildInputRules(schema) {
15173
15173
  const rules = smartQuotes.concat(ellipsis, emDash);
15174
15174
  let type;
15175
- /* eslint-disable no-cond-assign */
15176
- if ((type = schema.nodes.blockquote)) {
15175
+ type = schema.nodes.blockquote;
15176
+ if (type) {
15177
15177
  rules.push(blockQuoteRule(type));
15178
15178
  }
15179
- if ((type = schema.nodes.ordered_list)) {
15179
+ type = schema.nodes.ordered_list;
15180
+ if (type) {
15180
15181
  rules.push(orderedListRule(type));
15181
15182
  }
15182
- if ((type = schema.nodes.bullet_list)) {
15183
+ type = schema.nodes.bullet_list;
15184
+ if (type) {
15183
15185
  rules.push(bulletListRule(type));
15184
15186
  }
15185
- if ((type = schema.nodes.code_block)) {
15187
+ type = schema.nodes.code_block;
15188
+ if (type) {
15186
15189
  rules.push(codeBlockRule(type));
15187
15190
  }
15188
- if ((type = schema.nodes.heading)) {
15191
+ type = schema.nodes.heading;
15192
+ if (type) {
15189
15193
  rules.push(headingRule(type, 6));
15190
15194
  }
15191
15195
  return inputRules({ rules });
@@ -15245,28 +15249,34 @@ function buildKeymap(schema, mapKeys) {
15245
15249
  bind('Alt-ArrowDown', joinDown);
15246
15250
  bind('Mod-BracketLeft', lift);
15247
15251
  bind('Escape', selectParentNode);
15248
- /* eslint-disable no-cond-assign */
15249
- if ((type = schema.marks.strong)) {
15252
+ type = schema.marks.strong;
15253
+ if (type) {
15250
15254
  bind('Mod-b', toggleMark(type));
15251
15255
  bind('Mod-B', toggleMark(type));
15252
15256
  }
15253
- if ((type = schema.marks.em)) {
15257
+ type = schema.marks.em;
15258
+ if (type) {
15254
15259
  bind('Mod-i', toggleMark(type));
15255
15260
  bind('Mod-I', toggleMark(type));
15256
15261
  }
15257
- if ((type = schema.marks.code)) {
15262
+ type = schema.marks.code;
15263
+ if (type) {
15258
15264
  bind('Mod-`', toggleMark(type));
15259
15265
  }
15260
- if ((type = schema.nodes.bullet_list)) {
15266
+ type = schema.nodes.bullet_list;
15267
+ if (type) {
15261
15268
  bind('Shift-Ctrl-8', wrapInList(type));
15262
15269
  }
15263
- if ((type = schema.nodes.ordered_list)) {
15270
+ type = schema.nodes.ordered_list;
15271
+ if (type) {
15264
15272
  bind('Shift-Ctrl-9', wrapInList(type));
15265
15273
  }
15266
- if ((type = schema.nodes.blockquote)) {
15274
+ type = schema.nodes.blockquote;
15275
+ if (type) {
15267
15276
  bind('Ctrl->', wrapIn(type));
15268
15277
  }
15269
- if ((type = schema.nodes.hard_break)) {
15278
+ type = schema.nodes.hard_break;
15279
+ if (type) {
15270
15280
  const br = type;
15271
15281
  const cmd = chainCommands(exitCode, (state, dispatch) => {
15272
15282
  // eslint-disable-next-line @typescript-eslint/no-non-null-assertion
@@ -15279,23 +15289,28 @@ function buildKeymap(schema, mapKeys) {
15279
15289
  bind('Ctrl-Enter', cmd);
15280
15290
  }
15281
15291
  }
15282
- if ((type = schema.nodes.list_item)) {
15292
+ type = schema.nodes.list_item;
15293
+ if (type) {
15283
15294
  bind('Enter', splitListItem(type));
15284
15295
  bind('Mod-[', liftListItem(type));
15285
15296
  bind('Mod-]', sinkListItem(type));
15286
15297
  }
15287
- if ((type = schema.nodes.paragraph)) {
15298
+ type = schema.nodes.paragraph;
15299
+ if (type) {
15288
15300
  bind('Shift-Ctrl-0', setBlockType(type));
15289
15301
  }
15290
- if ((type = schema.nodes.code_block)) {
15302
+ type = schema.nodes.code_block;
15303
+ if (type) {
15291
15304
  bind('Shift-Ctrl-\\', setBlockType(type));
15292
15305
  }
15293
- if ((type = schema.nodes.heading)) {
15306
+ type = schema.nodes.heading;
15307
+ if (type) {
15294
15308
  for (let i = 1; i <= 6; i++) {
15295
15309
  bind('Shift-Ctrl-' + i, setBlockType(type, { level: i }));
15296
15310
  }
15297
15311
  }
15298
- if ((type = schema.nodes.horizontal_rule)) {
15312
+ type = schema.nodes.horizontal_rule;
15313
+ if (type) {
15299
15314
  const hr = type;
15300
15315
  bind('Mod-_', (state, dispatch) => {
15301
15316
  dispatch(state.tr.replaceSelectionWith(hr.create()).scrollIntoView());
@@ -15914,59 +15929,69 @@ function wrapListItem(nodeType, options) {
15914
15929
  function buildMenuItems(schema, modalService) {
15915
15930
  const r = {};
15916
15931
  let type;
15917
- /* eslint-disable no-cond-assign */
15918
- if ((type = schema.marks.strong)) {
15932
+ type = schema.marks.strong;
15933
+ if (type) {
15919
15934
  r.toggleStrong = markItem(type, {
15920
15935
  title: 'Toggle strong style',
15921
15936
  iconShape: 'bold',
15922
15937
  });
15923
15938
  }
15924
- if ((type = schema.marks.em)) {
15939
+ type = schema.marks.em;
15940
+ if (type) {
15925
15941
  r.toggleEm = markItem(type, {
15926
15942
  title: 'Toggle emphasis',
15927
15943
  iconShape: 'italic',
15928
15944
  });
15929
15945
  }
15930
- if ((type = schema.marks.code)) {
15946
+ type = schema.marks.code;
15947
+ if (type) {
15931
15948
  r.toggleCode = markItem(type, { title: 'Toggle code font', icon: icons.code });
15932
15949
  }
15933
- if ((type = schema.marks.link)) {
15950
+ type = schema.marks.link;
15951
+ if (type) {
15934
15952
  r.toggleLink = linkItem(type, modalService);
15935
15953
  }
15936
- if ((type = schema.nodes.image)) {
15954
+ type = schema.nodes.image;
15955
+ if (type) {
15937
15956
  r.insertImage = insertImageItem(type, modalService);
15938
15957
  }
15939
- if ((type = schema.nodes.bullet_list)) {
15958
+ type = schema.nodes.bullet_list;
15959
+ if (type) {
15940
15960
  r.wrapBulletList = wrapListItem(type, {
15941
15961
  title: 'Wrap in bullet list',
15942
15962
  iconShape: 'bullet-list',
15943
15963
  });
15944
15964
  }
15945
- if ((type = schema.nodes.ordered_list)) {
15965
+ type = schema.nodes.ordered_list;
15966
+ if (type) {
15946
15967
  r.wrapOrderedList = wrapListItem(type, {
15947
15968
  title: 'Wrap in ordered list',
15948
15969
  iconShape: 'number-list',
15949
15970
  });
15950
15971
  }
15951
- if ((type = schema.nodes.blockquote)) {
15972
+ type = schema.nodes.blockquote;
15973
+ if (type) {
15952
15974
  r.wrapBlockQuote = wrapItem(type, {
15953
15975
  title: 'Wrap in block quote',
15954
15976
  render: renderClarityIcon({ shape: 'block-quote', size: IconSize.Large }),
15955
15977
  });
15956
15978
  }
15957
- if ((type = schema.nodes.paragraph)) {
15979
+ type = schema.nodes.paragraph;
15980
+ if (type) {
15958
15981
  r.makeParagraph = blockTypeItem(type, {
15959
15982
  title: 'Change to paragraph',
15960
15983
  render: renderClarityIcon({ shape: 'text', label: 'Plain' }),
15961
15984
  });
15962
15985
  }
15963
- if ((type = schema.nodes.code_block)) {
15986
+ type = schema.nodes.code_block;
15987
+ if (type) {
15964
15988
  r.makeCodeBlock = blockTypeItem(type, {
15965
15989
  title: 'Change to code block',
15966
15990
  render: renderClarityIcon({ shape: 'code', label: 'Code' }),
15967
15991
  });
15968
15992
  }
15969
- if ((type = schema.nodes.heading)) {
15993
+ type = schema.nodes.heading;
15994
+ if (type) {
15970
15995
  for (let i = 1; i <= 10; i++) {
15971
15996
  r['makeHead' + i] = blockTypeItem(type, {
15972
15997
  title: 'Change to heading ' + i,
@@ -15975,7 +16000,8 @@ function buildMenuItems(schema, modalService) {
15975
16000
  });
15976
16001
  }
15977
16002
  }
15978
- if ((type = schema.nodes.horizontal_rule)) {
16003
+ type = schema.nodes.horizontal_rule;
16004
+ if (type) {
15979
16005
  const hr = type;
15980
16006
  r.insertHorizontalRule = new MenuItem({
15981
16007
  title: 'Insert horizontal rule',