@stonecrop/stonecrop 0.11.6 → 0.11.8

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 (39) hide show
  1. package/dist/{composables → src/composables}/lazy-link.js +1 -1
  2. package/dist/src/registry.d.ts.map +1 -1
  3. package/dist/{registry.js → src/registry.js} +0 -2
  4. package/dist/src/stonecrop.d.ts.map +1 -1
  5. package/dist/src/stonecrop.js +565 -0
  6. package/dist/{stores → src/stores}/hst.js +1 -1
  7. package/dist/src/stores/operation-log.d.ts.map +1 -1
  8. package/dist/{stores → src/stores}/operation-log.js +1 -1
  9. package/dist/stonecrop.js +11 -9
  10. package/dist/stonecrop.js.map +1 -1
  11. package/dist/stonecrop.tsbuildinfo +1 -1
  12. package/dist/tsdoc-metadata.json +1 -1
  13. package/package.json +22 -22
  14. package/src/composables/lazy-link.ts +1 -1
  15. package/src/composables/stonecrop.ts +1 -1
  16. package/src/field-triggers.ts +1 -1
  17. package/src/registry.ts +2 -4
  18. package/src/stonecrop.ts +0 -1
  19. package/src/stores/hst.ts +1 -1
  20. package/src/stores/operation-log.ts +11 -9
  21. /package/dist/{composables → src/composables}/operation-log.js +0 -0
  22. /package/dist/{composables → src/composables}/stonecrop.js +0 -0
  23. /package/dist/{doctype.js → src/doctype.js} +0 -0
  24. /package/dist/{exceptions.js → src/exceptions.js} +0 -0
  25. /package/dist/{field-triggers.js → src/field-triggers.js} +0 -0
  26. /package/dist/{index.js → src/index.js} +0 -0
  27. /package/dist/{plugins → src/plugins}/index.js +0 -0
  28. /package/dist/{schema-validator.js → src/schema-validator.js} +0 -0
  29. /package/dist/{stores → src/stores}/index.js +0 -0
  30. /package/dist/{types → src/types}/composable.js +0 -0
  31. /package/dist/{types → src/types}/doctype.js +0 -0
  32. /package/dist/{types → src/types}/field-triggers.js +0 -0
  33. /package/dist/{types → src/types}/hst.js +0 -0
  34. /package/dist/{types → src/types}/index.js +0 -0
  35. /package/dist/{types → src/types}/operation-log.js +0 -0
  36. /package/dist/{types → src/types}/plugin.js +0 -0
  37. /package/dist/{types → src/types}/registry.js +0 -0
  38. /package/dist/{types → src/types}/schema-validator.js +0 -0
  39. /package/dist/{types → src/types}/stonecrop.js +0 -0
package/dist/stonecrop.js CHANGED
@@ -355,13 +355,15 @@ const Ie = Li("hst-operation-log", () => {
355
355
  for (let v = r.value; v >= 0 && t.value[v]?.reversible; v--)
356
356
  _++;
357
357
  return _;
358
- }), c = G(() => t.value.length - 1 - r.value), f = G(() => ({
359
- canUndo: s.value,
360
- canRedo: a.value,
361
- undoCount: u.value,
362
- redoCount: c.value,
363
- currentIndex: r.value
364
- }));
358
+ }), c = G(() => t.value.length - 1 - r.value), f = G(
359
+ () => ({
360
+ canUndo: s.value,
361
+ canRedo: a.value,
362
+ undoCount: u.value,
363
+ redoCount: c.value,
364
+ currentIndex: r.value
365
+ })
366
+ );
365
367
  function h(_) {
366
368
  e.value = { ...e.value, ..._ }, e.value.enablePersistence && (Q(), xt()), e.value.enableCrossTabSync && ae();
367
369
  }
@@ -1058,7 +1060,7 @@ class Ue {
1058
1060
  constructor(t, r, n = "", i = null) {
1059
1061
  return this.target = t, this.ancestorPath = n, this.rootNode = i || this, this.doctype = r, this.hst = Kt.getInstance(), new Proxy(this, {
1060
1062
  get(o, s) {
1061
- if (s in o) return o[s];
1063
+ if (s in o) return Reflect.get(o, s);
1062
1064
  const a = String(s);
1063
1065
  return o.getNode(a);
1064
1066
  },
@@ -1710,7 +1712,7 @@ function hs(e, t, r) {
1710
1712
  `
1711
1713
  )(n, u(), a);
1712
1714
  } catch (d) {
1713
- throw new Error(`Custom handler failed: ${d instanceof Error ? d.message : String(d)}`);
1715
+ throw new Error(`Custom handler failed: ${d instanceof Error ? d.message : String(d)}`, { cause: d });
1714
1716
  }
1715
1717
  }, h = async () => {
1716
1718
  const p = c(), d = `${e.slug || e.doctype}.${t}`;