@ones-editor/editor 3.0.2-beta.2 → 3.0.2-beta.3

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
@@ -40832,15 +40832,8 @@ ${codeText}
40832
40832
  super();
40833
40833
  __publicField(this, "remoteUsers", new RemoteUsers());
40834
40834
  __publicField(this, "client");
40835
- __publicField(this, "copyLink");
40836
40835
  this.options = options;
40837
40836
  this.client = new ShareDBSimpleClient(options.auth, options.serverUrl);
40838
- if (options.onCopyVersionLink) {
40839
- this.copyLink = (v) => {
40840
- var _a;
40841
- (_a = options.onCopyVersionLink) == null ? void 0 : _a.call(options, v);
40842
- };
40843
- }
40844
40837
  }
40845
40838
  destroy() {
40846
40839
  }
@@ -83324,7 +83317,7 @@ ${docStr}
83324
83317
  if (!version) {
83325
83318
  return;
83326
83319
  }
83327
- (_c = (_b = this.versionHelper).copyLink) == null ? void 0 : _c.call(_b, version);
83320
+ (_c = (_b = this.versionOptions) == null ? void 0 : _b.onCopyVersionLink) == null ? void 0 : _c.call(_b, version);
83328
83321
  });
83329
83322
  __publicField(this, "handleSelectVersion", (version) => {
83330
83323
  assert(logger$y, version, `The version: ${version} is invalid`);
@@ -83427,7 +83420,7 @@ ${docStr}
83427
83420
  return this.oldViewer;
83428
83421
  }
83429
83422
  renderContent(versions) {
83430
- var _a, _b, _c, _d, _e;
83423
+ var _a, _b, _c, _d, _e, _f;
83431
83424
  const { listContainer: versionsListContainer } = this.components;
83432
83425
  versionsListContainer.innerHTML = "";
83433
83426
  const versionList2 = new VersionList({
@@ -83441,10 +83434,10 @@ ${docStr}
83441
83434
  useCreatedBy: (_c = this.versionOptions) == null ? void 0 : _c.useCreatedBy,
83442
83435
  onSelectVersion: this.handleSelectVersion,
83443
83436
  onRevert: this.handleRevert,
83444
- onCopyLink: this.versionHelper.copyLink ? this.handleCopyLink : void 0,
83437
+ onCopyLink: ((_d = this.versionOptions) == null ? void 0 : _d.onCopyVersionLink) ? this.handleCopyLink : void 0,
83445
83438
  onMemoChanged: this.onMemoChanged,
83446
- decorateItem: (_d = this.versionOptions) == null ? void 0 : _d.decorateItem,
83447
- onBeforeEditMemo: ((_e = this.versionOptions) == null ? void 0 : _e.onBeforeEditMemo) || (async () => true),
83439
+ decorateItem: (_e = this.versionOptions) == null ? void 0 : _e.decorateItem,
83440
+ onBeforeEditMemo: ((_f = this.versionOptions) == null ? void 0 : _f.onBeforeEditMemo) || (async () => true),
83448
83441
  getMarkColor: (user) => {
83449
83442
  const { flag } = getUserColors(this.server.getRemoteUsers(), user);
83450
83443
  return flag;
@@ -96039,7 +96032,7 @@ ${JSON.stringify(error2, null, 2)}`);
96039
96032
  }
96040
96033
  }
96041
96034
  });
96042
- editor.version = "3.0.2-beta.2";
96035
+ editor.version = "3.0.2-beta.3";
96043
96036
  return editor;
96044
96037
  }
96045
96038
  function isDoc(doc2) {
@@ -96173,7 +96166,7 @@ ${JSON.stringify(error2, null, 2)}`);
96173
96166
  OnesEditorDropTarget.register(editor);
96174
96167
  OnesEditorTocProvider.register(editor);
96175
96168
  OnesEditorExclusiveBlock.register(editor);
96176
- editor.version = "3.0.2-beta.2";
96169
+ editor.version = "3.0.2-beta.3";
96177
96170
  return editor;
96178
96171
  }
96179
96172
  async function showDocVersions(editor, options, serverUrl) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ones-editor/editor",
3
- "version": "3.0.2-beta.2",
3
+ "version": "3.0.2-beta.3",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/index.d.ts",
6
6
  "dependencies": {