@harbour-enterprises/superdoc 0.13.0-RC2 → 0.13.0-next.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.
Files changed (95) hide show
  1. package/dist/chunks/{eventemitter3-Dq2TEegt.es.js → eventemitter3-BrspJk8q.es.js} +1 -1
  2. package/dist/chunks/{eventemitter3-DuScojUH.cjs → eventemitter3-DfVviFzP.cjs} +1 -1
  3. package/dist/chunks/{index-CMBtuT02.cjs → index-B4J7wgs6.cjs} +2 -2
  4. package/dist/chunks/{index-B1MhwjTC.cjs → index-Cdsq63Xq.cjs} +4 -4
  5. package/dist/chunks/{index-SKpROzLW.es.js → index-Diu6UKHt.es.js} +4 -4
  6. package/dist/chunks/{index-BrSjd1Id.es.js → index-Hr3Um-Bg.es.js} +2 -2
  7. package/dist/chunks/{jszip-Bwu_om3F.cjs → jszip-BTAcmbVg.cjs} +1 -1
  8. package/dist/chunks/{jszip-BmWWPxfF.es.js → jszip-DckFs3A7.es.js} +1 -1
  9. package/dist/chunks/{super-editor.es-CG_E8Uh1.cjs → super-editor.es-B4lFJKTF.cjs} +3765 -1629
  10. package/dist/chunks/{super-editor.es-B6M3d3ew.es.js → super-editor.es-C-QroPG4.es.js} +3765 -1629
  11. package/dist/chunks/{url-DuggQ5JR.cjs → url-BIzg4y2i.cjs} +2 -2
  12. package/dist/chunks/{url-CAZQTNP3.es.js → url-CHayXMZH.es.js} +2 -2
  13. package/dist/chunks/{vue-IIIZMHTg.es.js → vue-Bi1uWinj.es.js} +17 -11
  14. package/dist/chunks/{vue-DPZkajuO.cjs → vue-HIY1g7dm.cjs} +17 -11
  15. package/dist/chunks/{xml-js-B7Vccv2s.cjs → xml-js-BjqmFOSP.cjs} +2 -2
  16. package/dist/chunks/{xml-js-BV-kCPOA.es.js → xml-js-CfClL-1b.es.js} +2 -2
  17. package/dist/core/SuperDoc.d.ts +0 -6
  18. package/dist/core/SuperDoc.d.ts.map +1 -1
  19. package/dist/core/collaboration/collaboration.d.ts +0 -9
  20. package/dist/core/collaboration/collaboration.d.ts.map +1 -1
  21. package/dist/core/collaboration/helpers.d.ts.map +1 -1
  22. package/dist/style.css +246 -147
  23. package/dist/super-editor/ai-writer.es.js +2 -2
  24. package/dist/super-editor/chunks/{converter-DdMoUfYl.js → converter-Bwa99qcs.js} +571 -336
  25. package/dist/super-editor/chunks/{docx-zipper-CaPhHWh0.js → docx-zipper-CVKlI3mU.js} +1 -1
  26. package/dist/super-editor/chunks/{editor-DfrK7LO9.js → editor-BdaZqkkS.js} +3590 -1911
  27. package/dist/super-editor/chunks/{toolbar-h35AzYvu.js → toolbar-BNg5l9RP.js} +130 -37
  28. package/dist/super-editor/components/pagination-helpers.d.ts.map +1 -1
  29. package/dist/super-editor/converter.es.js +1 -1
  30. package/dist/super-editor/core/Editor.d.ts +1 -8
  31. package/dist/super-editor/core/Editor.d.ts.map +1 -1
  32. package/dist/super-editor/core/InputRule.d.ts +7 -0
  33. package/dist/super-editor/core/InputRule.d.ts.map +1 -1
  34. package/dist/super-editor/core/commands/splitListItem.d.ts +1 -1
  35. package/dist/super-editor/core/commands/splitListItem.d.ts.map +1 -1
  36. package/dist/super-editor/core/helpers/annotator.d.ts +2 -0
  37. package/dist/super-editor/core/helpers/annotator.d.ts.map +1 -1
  38. package/dist/super-editor/core/helpers/findWordBounds.d.ts +5 -0
  39. package/dist/super-editor/core/helpers/findWordBounds.d.ts.map +1 -0
  40. package/dist/super-editor/core/helpers/setWordSelection.d.ts +2 -0
  41. package/dist/super-editor/core/helpers/setWordSelection.d.ts.map +1 -0
  42. package/dist/super-editor/core/inputRules/docx-paste/docx-paste.d.ts.map +1 -1
  43. package/dist/super-editor/core/super-converter/SuperConverter.d.ts +4 -1
  44. package/dist/super-editor/core/super-converter/SuperConverter.d.ts.map +1 -1
  45. package/dist/super-editor/core/super-converter/exporter.d.ts.map +1 -1
  46. package/dist/super-editor/core/super-converter/helpers.d.ts.map +1 -1
  47. package/dist/super-editor/core/super-converter/v2/importer/autoPageNumberImporter.d.ts.map +1 -1
  48. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts +5 -32
  49. package/dist/super-editor/core/super-converter/v2/importer/listImporter.d.ts.map +1 -1
  50. package/dist/super-editor/core/super-converter/v2/importer/paragraphNodeImporter.d.ts.map +1 -1
  51. package/dist/super-editor/docx-zipper.es.js +2 -2
  52. package/dist/super-editor/editor.es.js +3 -3
  53. package/dist/super-editor/extensions/field-annotation/FieldAnnotationView.d.ts.map +1 -1
  54. package/dist/super-editor/extensions/field-annotation/field-annotation.d.ts.map +1 -1
  55. package/dist/super-editor/extensions/image/imageHelpers/imagePositionPlugin.d.ts.map +1 -1
  56. package/dist/super-editor/extensions/image/imageHelpers/index.d.ts +1 -0
  57. package/dist/super-editor/extensions/image/imageHelpers/processUploadedImage.d.ts.map +1 -1
  58. package/dist/super-editor/extensions/image/index.d.ts +1 -0
  59. package/dist/super-editor/extensions/index.d.ts +2 -1
  60. package/dist/super-editor/extensions/index.d.ts.map +1 -1
  61. package/dist/super-editor/extensions/line-height/line-height.d.ts.map +1 -1
  62. package/dist/super-editor/extensions/linked-styles/linked-styles.d.ts.map +1 -1
  63. package/dist/super-editor/extensions/list-item/list-item.d.ts.map +1 -1
  64. package/dist/super-editor/extensions/noderesizer/index.d.ts +2 -0
  65. package/dist/super-editor/extensions/noderesizer/index.d.ts.map +1 -0
  66. package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts +7 -0
  67. package/dist/super-editor/extensions/noderesizer/noderesizer.d.ts.map +1 -0
  68. package/dist/super-editor/extensions/ordered-list/ordered-list.d.ts.map +1 -1
  69. package/dist/super-editor/extensions/page-number/page-number.d.ts +10 -0
  70. package/dist/super-editor/extensions/page-number/page-number.d.ts.map +1 -1
  71. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts +2 -1
  72. package/dist/super-editor/extensions/pagination/pagination-helpers.d.ts.map +1 -1
  73. package/dist/super-editor/extensions/pagination/pagination.d.ts.map +1 -1
  74. package/dist/super-editor/extensions/paragraph/paragraph.d.ts.map +1 -1
  75. package/dist/super-editor/file-zipper.es.js +1 -1
  76. package/dist/super-editor/style.css +219 -120
  77. package/dist/super-editor/super-editor.es.js +325 -200
  78. package/dist/super-editor/tests/e2e/test-app/vite.config.d.ts +1 -1
  79. package/dist/super-editor/tests/export/export-helpers/export-helpers.d.ts.map +1 -1
  80. package/dist/super-editor/toolbar.es.js +2 -2
  81. package/dist/super-editor.cjs +2 -2
  82. package/dist/super-editor.es.js +2 -2
  83. package/dist/superdoc.cjs +1590 -367
  84. package/dist/superdoc.es.js +1575 -368
  85. package/dist/superdoc.umd.js +5248 -1904
  86. package/dist/superdoc.umd.js.map +1 -1
  87. package/package.json +3 -2
  88. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts +0 -235
  89. package/dist/super-editor/core/helpers/list-numbering-helpers.d.ts.map +0 -1
  90. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts +0 -56
  91. package/dist/super-editor/extensions/list-item/ListItemNodeView.d.ts.map +0 -1
  92. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts +0 -3
  93. package/dist/super-editor/tests/e2e/test-app/dist/assets/index-BTMvkUyI.d.ts.map +0 -1
  94. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts +0 -2
  95. package/dist/super-editor/tests/editor/listItemHelpers.test.d.ts.map +0 -1
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-Bwu_om3F.cjs");
3
- const xmlJs = require("./xml-js-B7Vccv2s.cjs");
2
+ const jszip = require("./jszip-BTAcmbVg.cjs");
3
+ const xmlJs = require("./xml-js-BjqmFOSP.cjs");
4
4
  const __viteBrowserExternal = require("./__vite-browser-external-DWbQq7bv.cjs");
5
5
  var punycode$1 = { exports: {} };
6
6
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -1,5 +1,5 @@
1
- import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-BmWWPxfF.es.js";
2
- import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-BV-kCPOA.es.js";
1
+ import { c as commonjsGlobal, g as getDefaultExportFromCjs, a as getAugmentedNamespace } from "./jszip-DckFs3A7.es.js";
2
+ import { t as type, g as getIntrinsic, c as callBound$2 } from "./xml-js-CfClL-1b.es.js";
3
3
  import { _ as __viteBrowserExternal } from "./__vite-browser-external-CURh0WXD.es.js";
4
4
  var punycode$1 = { exports: {} };
5
5
  /*! https://mths.be/punycode v1.4.1 by @mathias */
@@ -162,7 +162,7 @@ process.umask = function() {
162
162
  var browserExports = browser.exports;
163
163
  const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
164
164
  /**
165
- * @vue/shared v3.5.14
165
+ * @vue/shared v3.5.16
166
166
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
167
167
  * @license MIT
168
168
  **/
@@ -1984,11 +1984,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1984
1984
  oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
1985
1985
  boundCleanup
1986
1986
  ];
1987
+ oldValue = newValue;
1987
1988
  call ? call(cb, 3, args) : (
1988
1989
  // @ts-expect-error
1989
1990
  cb(...args)
1990
1991
  );
1991
- oldValue = newValue;
1992
1992
  } finally {
1993
1993
  activeWatcher = currentWatcher;
1994
1994
  }
@@ -2886,15 +2886,16 @@ const TeleportImpl = {
2886
2886
  updateCssVars(n2, true);
2887
2887
  }
2888
2888
  if (isTeleportDeferred(n2.props)) {
2889
+ n2.el.__isMounted = false;
2889
2890
  queuePostRenderEffect(() => {
2890
2891
  mountToTarget();
2891
- n2.el.__isMounted = true;
2892
+ delete n2.el.__isMounted;
2892
2893
  }, parentSuspense);
2893
2894
  } else {
2894
2895
  mountToTarget();
2895
2896
  }
2896
2897
  } else {
2897
- if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) {
2898
+ if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
2898
2899
  queuePostRenderEffect(() => {
2899
2900
  TeleportImpl.process(
2900
2901
  n1,
@@ -2908,7 +2909,6 @@ const TeleportImpl = {
2908
2909
  optimized,
2909
2910
  internals
2910
2911
  );
2911
- delete n1.el.__isMounted;
2912
2912
  }, parentSuspense);
2913
2913
  return;
2914
2914
  }
@@ -4676,9 +4676,15 @@ If you want to remount the same app, move your app creation logic into a factory
4676
4676
  },
4677
4677
  provide(key, value) {
4678
4678
  if (!!(process$1.env.NODE_ENV !== "production") && key in context.provides) {
4679
- warn$1(
4680
- `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
4681
- );
4679
+ if (hasOwn(context.provides, key)) {
4680
+ warn$1(
4681
+ `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
4682
+ );
4683
+ } else {
4684
+ warn$1(
4685
+ `App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
4686
+ );
4687
+ }
4682
4688
  }
4683
4689
  context.provides[key] = value;
4684
4690
  return app;
@@ -4714,7 +4720,7 @@ function provide(key, value) {
4714
4720
  function inject(key, defaultValue, treatDefaultAsFactory = false) {
4715
4721
  const instance = currentInstance || currentRenderingInstance;
4716
4722
  if (instance || currentApp) {
4717
- const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
4723
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
4718
4724
  if (provides && key in provides) {
4719
4725
  return provides[key];
4720
4726
  } else if (arguments.length > 1) {
@@ -5729,7 +5735,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5729
5735
  (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
5730
5736
  // which also requires the correct parent container
5731
5737
  !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
5732
- oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
5738
+ oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
5733
5739
  // In other cases, the parent container is not actually used so we
5734
5740
  // just pass the block element here to avoid a DOM parentNode call.
5735
5741
  fallbackContainer
@@ -8327,7 +8333,7 @@ function initCustomFormatter() {
8327
8333
  window.devtoolsFormatters = [formatter];
8328
8334
  }
8329
8335
  }
8330
- const version = "3.5.14";
8336
+ const version = "3.5.16";
8331
8337
  const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8332
8338
  !!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
8333
8339
  !!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
@@ -163,7 +163,7 @@ process.umask = function() {
163
163
  var browserExports = browser.exports;
164
164
  const process$1 = /* @__PURE__ */ getDefaultExportFromCjs(browserExports);
165
165
  /**
166
- * @vue/shared v3.5.14
166
+ * @vue/shared v3.5.16
167
167
  * (c) 2018-present Yuxi (Evan) You and Vue contributors
168
168
  * @license MIT
169
169
  **/
@@ -1985,11 +1985,11 @@ function watch$1(source, cb, options = EMPTY_OBJ) {
1985
1985
  oldValue === INITIAL_WATCHER_VALUE ? void 0 : isMultiSource && oldValue[0] === INITIAL_WATCHER_VALUE ? [] : oldValue,
1986
1986
  boundCleanup
1987
1987
  ];
1988
+ oldValue = newValue;
1988
1989
  call ? call(cb, 3, args) : (
1989
1990
  // @ts-expect-error
1990
1991
  cb(...args)
1991
1992
  );
1992
- oldValue = newValue;
1993
1993
  } finally {
1994
1994
  activeWatcher = currentWatcher;
1995
1995
  }
@@ -2887,15 +2887,16 @@ const TeleportImpl = {
2887
2887
  updateCssVars(n2, true);
2888
2888
  }
2889
2889
  if (isTeleportDeferred(n2.props)) {
2890
+ n2.el.__isMounted = false;
2890
2891
  queuePostRenderEffect(() => {
2891
2892
  mountToTarget();
2892
- n2.el.__isMounted = true;
2893
+ delete n2.el.__isMounted;
2893
2894
  }, parentSuspense);
2894
2895
  } else {
2895
2896
  mountToTarget();
2896
2897
  }
2897
2898
  } else {
2898
- if (isTeleportDeferred(n2.props) && !n1.el.__isMounted) {
2899
+ if (isTeleportDeferred(n2.props) && n1.el.__isMounted === false) {
2899
2900
  queuePostRenderEffect(() => {
2900
2901
  TeleportImpl.process(
2901
2902
  n1,
@@ -2909,7 +2910,6 @@ const TeleportImpl = {
2909
2910
  optimized,
2910
2911
  internals
2911
2912
  );
2912
- delete n1.el.__isMounted;
2913
2913
  }, parentSuspense);
2914
2914
  return;
2915
2915
  }
@@ -4677,9 +4677,15 @@ If you want to remount the same app, move your app creation logic into a factory
4677
4677
  },
4678
4678
  provide(key, value) {
4679
4679
  if (!!(process$1.env.NODE_ENV !== "production") && key in context.provides) {
4680
- warn$1(
4681
- `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
4682
- );
4680
+ if (hasOwn(context.provides, key)) {
4681
+ warn$1(
4682
+ `App already provides property with key "${String(key)}". It will be overwritten with the new value.`
4683
+ );
4684
+ } else {
4685
+ warn$1(
4686
+ `App already provides property with key "${String(key)}" inherited from its parent element. It will be overwritten with the new value.`
4687
+ );
4688
+ }
4683
4689
  }
4684
4690
  context.provides[key] = value;
4685
4691
  return app;
@@ -4715,7 +4721,7 @@ function provide(key, value) {
4715
4721
  function inject(key, defaultValue, treatDefaultAsFactory = false) {
4716
4722
  const instance = currentInstance || currentRenderingInstance;
4717
4723
  if (instance || currentApp) {
4718
- const provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
4724
+ let provides = currentApp ? currentApp._context.provides : instance ? instance.parent == null || instance.ce ? instance.vnode.appContext && instance.vnode.appContext.provides : instance.parent.provides : void 0;
4719
4725
  if (provides && key in provides) {
4720
4726
  return provides[key];
4721
4727
  } else if (arguments.length > 1) {
@@ -5730,7 +5736,7 @@ function baseCreateRenderer(options, createHydrationFns) {
5730
5736
  (oldVNode.type === Fragment || // - In the case of different nodes, there is going to be a replacement
5731
5737
  // which also requires the correct parent container
5732
5738
  !isSameVNodeType(oldVNode, newVNode) || // - In the case of a component, it could contain anything.
5733
- oldVNode.shapeFlag & (6 | 64)) ? hostParentNode(oldVNode.el) : (
5739
+ oldVNode.shapeFlag & (6 | 64 | 128)) ? hostParentNode(oldVNode.el) : (
5734
5740
  // In other cases, the parent container is not actually used so we
5735
5741
  // just pass the block element here to avoid a DOM parentNode call.
5736
5742
  fallbackContainer
@@ -8328,7 +8334,7 @@ function initCustomFormatter() {
8328
8334
  window.devtoolsFormatters = [formatter];
8329
8335
  }
8330
8336
  }
8331
- const version = "3.5.14";
8337
+ const version = "3.5.16";
8332
8338
  const warn = !!(process$1.env.NODE_ENV !== "production") ? warn$1 : NOOP;
8333
8339
  !!(process$1.env.NODE_ENV !== "production") || true ? devtools$1 : void 0;
8334
8340
  !!(process$1.env.NODE_ENV !== "production") || true ? setDevtoolsHook$1 : NOOP;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
- const jszip = require("./jszip-Bwu_om3F.cjs");
3
- const vue = require("./vue-DPZkajuO.cjs");
2
+ const jszip = require("./jszip-BTAcmbVg.cjs");
3
+ const vue = require("./vue-HIY1g7dm.cjs");
4
4
  var inherits_browser = { exports: {} };
5
5
  if (typeof Object.create === "function") {
6
6
  inherits_browser.exports = function inherits(ctor, superCtor) {
@@ -1,5 +1,5 @@
1
- import { a as getAugmentedNamespace, d as dist, c as commonjsGlobal } from "./jszip-BmWWPxfF.es.js";
2
- import { p as process$1 } from "./vue-IIIZMHTg.es.js";
1
+ import { a as getAugmentedNamespace, d as dist, c as commonjsGlobal } from "./jszip-DckFs3A7.es.js";
2
+ import { p as process$1 } from "./vue-Bi1uWinj.es.js";
3
3
  var inherits_browser = { exports: {} };
4
4
  if (typeof Object.create === "function") {
5
5
  inherits_browser.exports = function inherits(ctor, superCtor) {
@@ -80,7 +80,6 @@
80
80
  * @property {Object} [pdfViewer] The PDF viewer configuration
81
81
  * @property {function(File): Promise<string>} [handleImageUpload] The function to handle image uploads
82
82
  * @property {User} [lockedBy] The user who locked the SuperDoc
83
- * @property {HocuspocusProviderWebsocket} [socket] The socket connection for collaboration
84
83
  * @property {boolean} [rulers] Whether to show the ruler in the editor
85
84
  * @property {boolean} [suppressDefaultDocxStyles] Whether to suppress default styles in docx mode
86
85
  * @property {boolean} [jsonOverride] Whether to override content with provided JSON
@@ -597,10 +596,6 @@ export type Config = {
597
596
  * The user who locked the SuperDoc
598
597
  */
599
598
  lockedBy?: User;
600
- /**
601
- * The socket connection for collaboration
602
- */
603
- socket?: HocuspocusProviderWebsocket;
604
599
  /**
605
600
  * Whether to show the ruler in the editor
606
601
  */
@@ -618,5 +613,4 @@ import { EventEmitter } from 'eventemitter3';
618
613
  import { Telemetry } from '@harbour-enterprises/common/Telemetry.js';
619
614
  import { SuperToolbar } from '@harbour-enterprises/super-editor';
620
615
  import { SuperComments } from '../components/CommentsLayer/commentsList/super-comments-list.js';
621
- import { HocuspocusProviderWebsocket } from '@hocuspocus/provider';
622
616
  //# sourceMappingURL=SuperDoc.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"SuperDoc.d.ts","sourceRoot":"","sources":["../../src/core/SuperDoc.js"],"names":[],"mappings":"AAiBA;;;;;GAKG;AAEH;;;;;;GAMG;AAEH;;;;;;;;;;GAUG;AAEH;;;;;;;;GAQG;AAEH,2EAA2E;AAE3E;;;;;GAKG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CG;AAEH;;;;;;GAMG;AACH;IACE,4BAA4B;IAC5B,qBADW,KAAK,CAAC,MAAM,CAAC,CACgB;IAsExC;;OAEG;IACH,oBAFW,MAAM,EAKhB;IA1ED,qBAAqB;IACrB,SADW,MAAM,CACT;IAER,qBAAqB;IACrB,OADW,IAAI,EAAE,CACX;IAEN,4CAA4C;IAC5C,MAD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pC,CAAC,MAAM,EAAE;QAAE,KAAK,EAAE,KAAK,CAAA;KAAE,KAAK,IAAI;;;;2BAClC,CAAC,MAAM,EAAE;QAAE,UAAU,EAAE,OAAO,CAAA;KAAE,KAAK,IAAI;;;;aACzC,MAAM;;;;uBACN,KAAQ;;;;iBACR,OAAO;;;;YACP,MAAM;;;;oBACN,KAAQ;;;;eACR,OAAO;;;;;;;;wBAEP,CAAS,IAAI,EAAJ,IAAI,KAAG,OAAO,CAAC,MAAM,CAAC;;;;eAC/B,IAAI;;;;aACJ,OAAO;;;;gCACP,OAAO;;;;mBACP,OAAO;;6BAvGQ,eAAe;0BASlB,0CAA0C;6BAJ5B,mCAAmC;8BAC7C,iEAAiE"}
@@ -1,12 +1,3 @@
1
- /**
2
- * Translate awareness states to an array of users. This will cause superdoc (context) to
3
- * emit an awareness-update event with the list of users.
4
- *
5
- * @param {Object} context The superdoc instance
6
- * @param {*} states The awareness states
7
- * @returns {void}
8
- */
9
- export function createAwarenessHandler(context: any, states: any): void;
10
1
  /**
11
2
  * Main function to create a provider for collaboration.
12
3
  * Currently only hocuspocus is actually supported.
@@ -1 +1 @@
1
- {"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/collaboration.js"],"names":[],"mappings":"AAIA;;;;;;;GAOG;AACH,6DAHW,GAAC,GACC,IAAI,CAOhB;AAED;;;;;;;;;;GAUG;AACH,uFANG;IAAsB,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,UAAU,EAAxB,MAAM;CACd,OAQF"}
1
+ {"version":3,"file":"collaboration.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/collaboration.js"],"names":[],"mappings":"AAiCA;;;;;;;;;;GAUG;AACH,uFANG;IAAsB,MAAM;IACN,IAAI;IACJ,IAAI;IACJ,UAAU,EAAxB,MAAM;CACd,OAYF"}
@@ -1 +1 @@
1
- {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/helpers.js"],"names":[],"mappings":"AAeO,0DAFM,IAAI,CA6ChB;AAUM,iDAFM,IAAI,CAkBhB;AAUM,+DAqBN;AASM,kEAFM,IAAI,CAsBhB"}
1
+ {"version":3,"file":"helpers.d.ts","sourceRoot":"","sources":["../../../src/core/collaboration/helpers.js"],"names":[],"mappings":"AAeO,0DAFM,IAAI,CA6ChB;AAUM,iDAFM,IAAI,CAmBhB;AAUM,+DAoBN;AASM,kEAFM,IAAI,CAsBhB"}