@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.js
CHANGED
|
@@ -172,8 +172,17 @@ function itemChanges(item, current, options = {}) {
|
|
|
172
172
|
|
|
173
173
|
// directives/record-values.ts
|
|
174
174
|
import { useEffect, useState, useSyncExternalStore as useSyncExternalStore2 } from "react";
|
|
175
|
-
var
|
|
176
|
-
|
|
175
|
+
var STORE_SLOT = /* @__PURE__ */ Symbol.for("@ai-matrx/content-ir-react/record-revisions");
|
|
176
|
+
function revisionStore() {
|
|
177
|
+
const slots = globalThis;
|
|
178
|
+
let store = slots[STORE_SLOT];
|
|
179
|
+
if (!store) {
|
|
180
|
+
store = { revisions: /* @__PURE__ */ new Map(), listeners: /* @__PURE__ */ new Set() };
|
|
181
|
+
slots[STORE_SLOT] = store;
|
|
182
|
+
}
|
|
183
|
+
return store;
|
|
184
|
+
}
|
|
185
|
+
var { revisions, listeners } = revisionStore();
|
|
177
186
|
function recordRevision(id) {
|
|
178
187
|
return revisions.get(id) ?? 0;
|
|
179
188
|
}
|