plitejs 54.0.0-beta.3 → 54.0.0-beta.4

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 (56) hide show
  1. package/dist/annotations/index.d.ts +1 -1
  2. package/dist/annotations/index.js +1 -1
  3. package/dist/authored/index.d.ts +2 -2
  4. package/dist/authored/index.js +168 -46
  5. package/dist/{authored-veto-DSnQcHGR.js → authored-veto-D_9wCJcK.js} +1 -1
  6. package/dist/{comparison-plan-CEQL0ooW.js → comparison-plan-DY_vuGPq.js} +1 -1
  7. package/dist/{comparison-types-Dt-unJZY.d.ts → comparison-types-DdwE6mYq.d.ts} +1 -1
  8. package/dist/{create-editor-CkHtPWXV.js → create-editor-CLQEkEZ1.js} +2 -1
  9. package/dist/diff/index.d.ts +2 -2
  10. package/dist/diff/index.js +2 -2
  11. package/dist/dom/index.d.ts +1 -1
  12. package/dist/dom/index.js +1 -1
  13. package/dist/{dom-Cgfscvnm.js → dom-CH2BXXj6.js} +2 -2
  14. package/dist/{editor-owner-IUmkTeXz.js → editor-owner-C9rVbMTs.js} +1 -1
  15. package/dist/history/index.d.ts +1 -1
  16. package/dist/history/index.js +2 -2
  17. package/dist/hyperscript/index.d.ts +1 -1
  18. package/dist/hyperscript/index.js +1 -1
  19. package/dist/{hyperscript-FPuoArEi.js → hyperscript-CeT83ZLB.js} +2 -2
  20. package/dist/{index-DPWyk3lG.d.ts → index-BWPcE4ac.d.ts} +7 -1
  21. package/dist/{index-DpltOCot.d.ts → index-BXjLmx1n.d.ts} +101 -27
  22. package/dist/{index-K0Za9YXc.d.ts → index-DVMNewDn.d.ts} +10 -13
  23. package/dist/{index-BpQx2UG4.d.ts → index-Db-ktCTE.d.ts} +5 -6
  24. package/dist/{index-HPYawTae.d.ts → index-Dq3Jlj8O.d.ts} +1 -1
  25. package/dist/{index-Cw-oC2ps.d.ts → index-UrB4jAwl.d.ts} +1 -1
  26. package/dist/index.d.ts +2 -2
  27. package/dist/index.js +4 -4
  28. package/dist/internal/index.d.ts +2 -2
  29. package/dist/internal/index.js +4 -4
  30. package/dist/{mapped-view-store-ld-6uxEU.js → mapped-view-store-CbWqba_1.js} +1 -1
  31. package/dist/{native-grouping-input-DMNcsIaW.js → native-grouping-input-DXNhlPHd.js} +1 -1
  32. package/dist/pagination/index.d.ts +1 -1
  33. package/dist/pagination/index.js +1 -1
  34. package/dist/pagination/react.d.ts +2 -2
  35. package/dist/pagination/react.js +5 -5
  36. package/dist/{pagination-D_A8iPJP.js → pagination-CBdYiOuR.js} +1 -1
  37. package/dist/{plugin-DWzkJbnJ.js → plugin-SR3HTH0j.js} +1458 -952
  38. package/dist/{range-geometry-BjeLHOnl.js → range-geometry-CdltxcH6.js} +2 -2
  39. package/dist/{range-geometry-BLAHRE11.d.ts → range-geometry-Dwp2oyCc.d.ts} +1 -1
  40. package/dist/react/index.d.ts +5 -5
  41. package/dist/react/index.js +6 -6
  42. package/dist/react/virtualized.d.ts +2 -2
  43. package/dist/react/virtualized.js +1 -1
  44. package/dist/{react-DZ15gmz2.js → react-CN-iBh1z.js} +8 -8
  45. package/dist/{retraction-BMem8Rfk.js → retraction-BmPJB9cE.js} +1 -1
  46. package/dist/{src-cT1OTKP_.js → src-B-zm0kz4.js} +128 -3
  47. package/dist/{store-Cz2mXyDe.js → store-51r4zpCR.js} +24 -11
  48. package/dist/testing/index.d.ts +2 -2
  49. package/dist/testing/index.js +3 -3
  50. package/dist/{use-editor-dom-scope-BbMDSCpW.js → use-editor-dom-scope-uDJQ692F.js} +184 -168
  51. package/dist/yjs/index.d.ts +1 -1
  52. package/dist/yjs/index.js +1 -1
  53. package/dist/yjs/react/index.d.ts +3 -3
  54. package/dist/yjs/react/index.js +3 -3
  55. package/dist/{yjs-DOK-m7kl.js → yjs-IGE0Al3n.js} +5 -2
  56. package/package.json +1 -1
@@ -1,5 +1,6 @@
1
- import { $d as pathKey$1, $u as createInternalRootChangeFromSections, Ad as propertyDeltaFromModifications, B as NodeApi, Bc as withStoredAuthoredRead, Bu as historyFollowsAllFacts, Cc as getDocumentChangeRelocations, Cd as addSection, Dc as authoredDocumentCapabilityPoint, Df as assertEditorJsonValue, Ec as hasIndexedPathAncestor, En as assertEditorExternalMutationAllowed, Eu as getEditorSchema, Fd as DocumentIndex, Gd as PreparedTokenSliceStructureError, Gn as getCurrentSelection, If as supportsEditorValuePersistenceVersion, Jn as getEditorDocumentRecords, Jo as withoutRepairOrphans, Kd as closeToken, Lf as textPropertiesEqual, Ll as readEditorSchemaIdentity, Ms as fitImportedBlock, Mu as letterOriginsOfChange, Nd as joinsOf, Ol as hasPlaceDependentElementProperty, Os as settleRange, Qd as openToken, Qu as createInternalDocumentChange, Sd as RootChange, Tl as getCompiledPropertyMergeStrategy, Un as getCollabEffects, Ur as registerEditorTransactionGuard, Wd as PreparedTokenSlice, Xd as isTextNode, Xf as visitRootNames, Yc as toInternalRoot, Yd as isElementNode, Yr as scheduleAfterCommitNotification, Yu as DocumentChange, Zd as nodeProps, Zf as countCoreWork, _d as valueRootIndex, _i as trackEditorLetters, _u as MAIN_ROOT_KEY, al as reportEditorLifecycleError, b as queueAfterPluginAcquisition, bd as withInternalDocumentRootChange, bf as recordOpsFromJson, bl as areEditorSchemaIdentitiesEqual, cd as getInternalDocumentChangeRootKeys, cf as deriveValue, df as getRecordIds, dl as getCompiledEditorSchema, ed as documentChangeBetween, ep as deepFreeze$1, eu as failInvariant, gd as valueRoot, hf as getValueRecords, il as notifyObservers, io as withoutPlacement, ip as getDefined, iu as SelectionApi, jd as semanticPropertyModifications, jf as encodeEditorEffect, jl as isPlaceDependentElementProperty, jr as isNotifyingNestedCommit, kf as decodeEditorEffect, ks as completeChildrenAt, l as definePlugin, ld as getInternalDocumentRootChange, li as setRootCopyScope, md as mapInternalDocumentChangePosition, ml as getPluginRegistry, mr as getSetSite, mu as RangeApi, nd as filterDocumentChangeRoots, nf as tokensEqual, np as jsonEqual, os as holdsImportedRoot, pf as getRecordText, pl as getPluginContributions, qr as runTrustedUpdate, r as carryPluginFactoryType, rl as REMOTE_UPDATE, rs as getCompiledEditorSchemaFromApi, sd as getInternalDocumentChangeRecords, ss as holdsOneText, tf as tokenLength$1, ud as hasInternalDocumentChangeRoot, uf as getRecordEntries, us as readEmptyText, vc as getEditorCommitValue, vd as valueRootNodes, wc as getExactDocumentChangeRelocation, wd as ancestorType, wn as applyUnnamedDocumentChange, wu as getEditorRuntimeOwner, xu as PathApi, yd as withDocumentChangeRecords, zf as createEditorEffect } from "./plugin-DWzkJbnJ.js";
2
- import { r as isMissingReference, t as retractionOf } from "./retraction-BMem8Rfk.js";
1
+ import { $d as pathKey$1, $f as PathApi, $u as createInternalRootChangeFromSections, Ac as getExactDocumentChangeRelocation, Ad as propertyDeltaFromModifications, Al as areEditorSchemaIdentitiesEqual, Ar as isNotifyingNestedCommit, B as NodeApi, Bu as historyFollowsAllFacts, Cd as addSection, Cl as getPluginContributions, Cn as applyUnnamedDocumentChange, Df as assertEditorJsonValue, Eu as getEditorSchema, Fd as DocumentIndex, Fl as getCompiledPropertyMergeStrategy, Fs as completeChildrenAt, Gd as PreparedTokenSliceStructureError, Gf as RangeApi, Hn as getCollabEffects, If as supportsEditorValuePersistenceVersion, Kd as closeToken, Lf as textPropertiesEqual, Mc as hasIndexedPathAncestor, Mu as letterOriginsOfChange, Nc as authoredDocumentCapabilityPoint, Nd as joinsOf, Ps as settleRange, Qd as openToken, Qu as createInternalDocumentChange, Rl as hasPlaceDependentElementProperty, Rs as fitImportedBlock, Sd as RootChange, Tn as assertEditorExternalMutationAllowed, Ur as registerEditorTransactionGuard, Vl as isPlaceDependentElementProperty, Wc as withStoredAuthoredRead, Wd as PreparedTokenSlice, Wn as getCurrentSelection, Xd as isTextNode, Yd as isElementNode, Yf as MAIN_ROOT_KEY, Yr as scheduleAfterCommitNotification, Yu as DocumentChange, Zd as nodeProps, _d as valueRootIndex, _i as trackEditorLetters, al as toInternalRoot, b as queueAfterPluginAcquisition, bd as withInternalDocumentRootChange, bf as recordOpsFromJson, cd as getInternalDocumentChangeRootKeys, cf as deriveValue, cp as countCoreWork, df as getRecordIds, dp as deepFreeze$1, ed as documentChangeBetween, es as withoutRepairOrphans, fs as holdsImportedRoot, gd as valueRoot, gs as readEmptyText, hf as getValueRecords, hl as reportEditorLifecycleError, hp as getDefined, jd as semanticPropertyModifications, jf as encodeEditorEffect, kc as getDocumentChangeRelocations, kf as decodeEditorEffect, l as definePlugin, ld as getInternalDocumentRootChange, li as setRootCopyScope, ls as getCompiledEditorSchemaFromApi, md as mapInternalDocumentChangePosition, ml as notifyObservers, mu as SelectionApi, nd as filterDocumentChangeRoots, nf as tokensEqual, oo as withoutPlacement, pf as getRecordText, pl as REMOTE_UPDATE, pp as jsonEqual, pr as getSetSite, ps as holdsOneText, ql as readEditorSchemaIdentity, qn as getEditorDocumentRecords, qr as runTrustedUpdate, r as carryPluginFactoryType, sd as getInternalDocumentChangeRecords, sp as visitRootNames, tf as tokenLength$1, ud as hasInternalDocumentChangeRoot, uf as getRecordEntries, uu as failInvariant, vd as valueRootNodes, wc as getEditorCommitValue, wd as ancestorType, wl as getPluginRegistry, wu as getEditorRuntimeOwner, xl as getCompiledEditorSchema, yd as withDocumentChangeRecords, zf as createEditorEffect } from "./plugin-SR3HTH0j.js";
2
+ import { o as suspendMovePlacement } from "./src-B-zm0kz4.js";
3
+ import { r as isMissingReference, t as retractionOf } from "./retraction-BmPJB9cE.js";
3
4
  import { t as registerEditorViewLifetimeCleanup } from "./editor-view-lifetime-GJKa_QGh.js";
4
5
  import { DiffMatchPatch, DiffOp } from "diff-match-patch-ts";
5
6
  import * as Y from "yjs";
@@ -13253,8 +13254,10 @@ const createBindingRuntime = (options) => {
13253
13254
  setActiveYjsBinding(owner, binding);
13254
13255
  }
13255
13256
  const current = binding;
13257
+ const resumePlacement = suspendMovePlacement(owner);
13256
13258
  current.records += 1;
13257
13259
  context.onCleanup(() => {
13260
+ resumePlacement();
13258
13261
  current.records -= 1;
13259
13262
  if (current.records > 0) return;
13260
13263
  current.destroy();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "plitejs",
3
- "version": "54.0.0-beta.3",
3
+ "version": "54.0.0-beta.4",
4
4
  "description": "A headless-first framework for building rich text editors.",
5
5
  "keywords": [
6
6
  "contenteditable",