@ones-editor/editor 1.1.16-beta.17 → 1.1.16-beta.19

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/index.js CHANGED
@@ -64878,9 +64878,9 @@ ${codeText}
64878
64878
  });
64879
64879
  }
64880
64880
  function showTemplatesCore(editor, options) {
64881
- var _a, _b;
64881
+ var _a, _b, _c;
64882
64882
  const templateOptions = (_a = editor.options.componentsOptions) == null ? void 0 : _a.templates;
64883
- if (!templateOptions) {
64883
+ if (!templateOptions || ((_b = templateOptions == null ? void 0 : templateOptions.onBeforeTemplateShow) == null ? void 0 : _b.call(templateOptions, editor))) {
64884
64884
  return;
64885
64885
  }
64886
64886
  const lastBlock2 = getLastChildBlock(editor.rootContainer);
@@ -64934,7 +64934,7 @@ ${codeText}
64934
64934
  });
64935
64935
  const chooseTemplateCard = createChooseTemplateCard(editor, chooseTemplateImageSrc);
64936
64936
  cardContainer.appendChild(chooseTemplateCard);
64937
- (_b = templateOptions == null ? void 0 : templateOptions.onTemplateChooserStatusChanged) == null ? void 0 : _b.call(templateOptions, editor, cardContainer, "visible");
64937
+ (_c = templateOptions == null ? void 0 : templateOptions.onTemplateChooserStatusChanged) == null ? void 0 : _c.call(templateOptions, editor, cardContainer, "visible");
64938
64938
  }
64939
64939
  const showTemplates = debounce__default.default(showTemplatesCore, 50);
64940
64940
  function hideTemplates(editor) {
@@ -75360,7 +75360,7 @@ ${data.flowchartText}
75360
75360
  }
75361
75361
  }
75362
75362
  });
75363
- editor.version = "1.1.16-beta.17";
75363
+ editor.version = "1.1.16-beta.19";
75364
75364
  return editor;
75365
75365
  }
75366
75366
  function isDoc(doc2) {
@@ -75442,7 +75442,7 @@ ${data.flowchartText}
75442
75442
  });
75443
75443
  editor.addCustom(DOC_RE_AUTH_KEYS, (editor2) => new DocReAuthCallbacks(editor2));
75444
75444
  OnesEditorToolbar.register(editor);
75445
- editor.version = "1.1.16-beta.17";
75445
+ editor.version = "1.1.16-beta.19";
75446
75446
  return editor;
75447
75447
  }
75448
75448
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "1.1.16-beta.17",
3
+ "version": "1.1.16-beta.19",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",