@stonecrop/stonecrop 0.11.7 → 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.
- package/dist/{composables → src/composables}/lazy-link.js +1 -1
- package/dist/src/registry.d.ts.map +1 -1
- package/dist/{registry.js → src/registry.js} +0 -2
- package/dist/src/stonecrop.d.ts.map +1 -1
- package/dist/src/stonecrop.js +565 -0
- package/dist/{stores → src/stores}/hst.js +1 -1
- package/dist/src/stores/operation-log.d.ts.map +1 -1
- package/dist/{stores → src/stores}/operation-log.js +1 -1
- package/dist/stonecrop.js +11 -9
- package/dist/stonecrop.js.map +1 -1
- package/dist/stonecrop.tsbuildinfo +1 -1
- package/dist/tsdoc-metadata.json +1 -1
- package/package.json +23 -23
- package/src/composables/lazy-link.ts +1 -1
- package/src/composables/stonecrop.ts +1 -1
- package/src/field-triggers.ts +1 -1
- package/src/registry.ts +2 -4
- package/src/stonecrop.ts +0 -1
- package/src/stores/hst.ts +1 -1
- package/src/stores/operation-log.ts +11 -9
- /package/dist/{composables → src/composables}/operation-log.js +0 -0
- /package/dist/{composables → src/composables}/stonecrop.js +0 -0
- /package/dist/{doctype.js → src/doctype.js} +0 -0
- /package/dist/{exceptions.js → src/exceptions.js} +0 -0
- /package/dist/{field-triggers.js → src/field-triggers.js} +0 -0
- /package/dist/{index.js → src/index.js} +0 -0
- /package/dist/{plugins → src/plugins}/index.js +0 -0
- /package/dist/{schema-validator.js → src/schema-validator.js} +0 -0
- /package/dist/{stores → src/stores}/index.js +0 -0
- /package/dist/{types → src/types}/composable.js +0 -0
- /package/dist/{types → src/types}/doctype.js +0 -0
- /package/dist/{types → src/types}/field-triggers.js +0 -0
- /package/dist/{types → src/types}/hst.js +0 -0
- /package/dist/{types → src/types}/index.js +0 -0
- /package/dist/{types → src/types}/operation-log.js +0 -0
- /package/dist/{types → src/types}/plugin.js +0 -0
- /package/dist/{types → src/types}/registry.js +0 -0
- /package/dist/{types → src/types}/schema-validator.js +0 -0
- /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
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
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
|
|
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}`;
|