@ai-matrx/content-ir-react 0.19.0 → 0.19.1
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/CHANGELOG.md +12 -0
- package/dist/directives.cjs +11 -2
- package/dist/directives.cjs.map +1 -1
- package/dist/directives.js +11 -2
- package/dist/directives.js.map +1 -1
- package/dist/index.cjs +11 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +11 -2
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +11 -2
- package/dist/react.cjs.map +1 -1
- package/dist/react.js +11 -2
- package/dist/react.js.map +1 -1
- package/package.json +3 -3
package/dist/react.cjs
CHANGED
|
@@ -212,8 +212,17 @@ function itemChanges(item, current, options = {}) {
|
|
|
212
212
|
|
|
213
213
|
// directives/record-values.ts
|
|
214
214
|
var import_react4 = require("react");
|
|
215
|
-
var
|
|
216
|
-
|
|
215
|
+
var STORE_SLOT = /* @__PURE__ */ Symbol.for("@ai-matrx/content-ir-react/record-revisions");
|
|
216
|
+
function revisionStore() {
|
|
217
|
+
const slots = globalThis;
|
|
218
|
+
let store = slots[STORE_SLOT];
|
|
219
|
+
if (!store) {
|
|
220
|
+
store = { revisions: /* @__PURE__ */ new Map(), listeners: /* @__PURE__ */ new Set() };
|
|
221
|
+
slots[STORE_SLOT] = store;
|
|
222
|
+
}
|
|
223
|
+
return store;
|
|
224
|
+
}
|
|
225
|
+
var { revisions, listeners } = revisionStore();
|
|
217
226
|
function recordRevision(id) {
|
|
218
227
|
return revisions.get(id) ?? 0;
|
|
219
228
|
}
|