atom.io 0.8.3 → 0.9.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/README.md +33 -28
- package/data/dist/index.d.mts +31 -0
- package/data/dist/index.d.ts +31 -0
- package/data/dist/index.js +77 -0
- package/data/dist/index.js.map +1 -0
- package/data/dist/index.mjs +73 -0
- package/data/dist/index.mjs.map +1 -0
- package/data/package.json +15 -0
- package/data/src/dict.ts +31 -0
- package/data/src/index.ts +3 -0
- package/data/src/struct-family.ts +45 -0
- package/data/src/struct.ts +58 -0
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/internal/dist/index.js +20 -18
- package/internal/dist/index.js.map +1 -1
- package/internal/dist/index.mjs +20 -18
- package/internal/dist/index.mjs.map +1 -1
- package/internal/src/store/store.ts +15 -16
- package/package.json +37 -19
- package/react-devtools/dist/index.d.mts +4 -4
- package/react-devtools/dist/index.d.ts +4 -4
- package/react-devtools/dist/index.js +12 -8
- package/react-devtools/dist/index.js.map +1 -1
- package/react-devtools/dist/index.mjs +12 -8
- package/react-devtools/dist/index.mjs.map +1 -1
- package/react-devtools/src/StateIndex.tsx +3 -2
- package/realtime-server/dist/index.js +30 -18
- package/realtime-server/dist/index.js.map +1 -1
- package/realtime-server/dist/index.mjs +30 -18
- package/realtime-server/dist/index.mjs.map +1 -1
- package/realtime-server/src/hook-composition/expose-family.ts +11 -5
- package/realtime-server/src/hook-composition/expose-mutable-family.ts +11 -5
- package/realtime-testing/dist/index.js +11 -4
- package/realtime-testing/dist/index.js.map +1 -1
- package/realtime-testing/dist/index.mjs +11 -4
- package/realtime-testing/dist/index.mjs.map +1 -1
- package/realtime-testing/src/setup-realtime-test.tsx +11 -5
- package/src/logger.ts +2 -2
package/internal/dist/index.mjs
CHANGED
|
@@ -266,15 +266,17 @@ var Junction = class {
|
|
|
266
266
|
if (a === void 0 && typeof b === `string`) {
|
|
267
267
|
const bRelations = this.getRelatedKeys(b);
|
|
268
268
|
if (bRelations) {
|
|
269
|
-
|
|
269
|
+
for (const a2 of bRelations) {
|
|
270
|
+
this.delete(a2, b);
|
|
271
|
+
}
|
|
270
272
|
}
|
|
271
273
|
}
|
|
272
274
|
if (typeof a === `string` && b === void 0) {
|
|
273
275
|
const aRelations = this.getRelatedKeys(a);
|
|
274
276
|
if (aRelations) {
|
|
275
|
-
|
|
277
|
+
for (const b2 of aRelations) {
|
|
276
278
|
this.delete(a, b2);
|
|
277
|
-
}
|
|
279
|
+
}
|
|
278
280
|
}
|
|
279
281
|
}
|
|
280
282
|
if (typeof a === `string` && typeof b === `string`) {
|
|
@@ -509,22 +511,22 @@ var Store = class {
|
|
|
509
511
|
}), (_a = store == null ? void 0 : store.config) == null ? void 0 : _a.logger),
|
|
510
512
|
name
|
|
511
513
|
});
|
|
514
|
+
for (const [, atom] of store.atoms) {
|
|
515
|
+
atom.install(this);
|
|
516
|
+
}
|
|
517
|
+
for (const [, selector] of store.readonlySelectors) {
|
|
518
|
+
selector.install(this);
|
|
519
|
+
}
|
|
520
|
+
for (const [, selector] of store.selectors) {
|
|
521
|
+
selector.install(this);
|
|
522
|
+
}
|
|
523
|
+
for (const [, tx] of store.transactions) {
|
|
524
|
+
tx.install(this);
|
|
525
|
+
}
|
|
526
|
+
for (const [, timeline] of store.timelines) {
|
|
527
|
+
timeline.install(this);
|
|
528
|
+
}
|
|
512
529
|
}
|
|
513
|
-
store == null ? void 0 : store.atoms.forEach((atom) => {
|
|
514
|
-
atom.install(this);
|
|
515
|
-
});
|
|
516
|
-
store == null ? void 0 : store.readonlySelectors.forEach((selector) => {
|
|
517
|
-
selector.install(this);
|
|
518
|
-
});
|
|
519
|
-
store == null ? void 0 : store.selectors.forEach((selector) => {
|
|
520
|
-
selector.install(this);
|
|
521
|
-
});
|
|
522
|
-
store == null ? void 0 : store.transactions.forEach((tx) => {
|
|
523
|
-
tx.install(this);
|
|
524
|
-
});
|
|
525
|
-
store == null ? void 0 : store.timelines.forEach((timeline) => {
|
|
526
|
-
timeline.install(this);
|
|
527
|
-
});
|
|
528
530
|
}
|
|
529
531
|
};
|
|
530
532
|
var IMPLICIT = {
|