atom.io 0.6.6 → 0.6.7
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/index.d.mts +7 -8
- package/dist/index.d.ts +7 -8
- package/dist/index.js +66 -93
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +66 -83
- package/dist/index.mjs.map +1 -1
- package/introspection/dist/index.d.mts +273 -0
- package/introspection/dist/index.d.ts +273 -0
- package/introspection/dist/index.js +41 -3
- package/introspection/dist/index.js.map +1 -1
- package/introspection/dist/index.mjs +41 -3
- package/introspection/dist/index.mjs.map +1 -1
- package/package.json +12 -12
- package/react-devtools/dist/index.d.mts +8 -10
- package/react-devtools/dist/index.d.ts +8 -10
- package/react-devtools/dist/index.js +104 -105
- package/react-devtools/dist/index.js.map +1 -1
- package/react-devtools/dist/index.mjs +105 -106
- package/react-devtools/dist/index.mjs.map +1 -1
- package/src/internal/atom-internal.ts +5 -6
- package/src/internal/get.ts +7 -9
- package/src/internal/operation.ts +14 -21
- package/src/internal/selector/create-read-write-selector.ts +8 -4
- package/src/internal/selector/create-readonly-selector.ts +1 -7
- package/src/internal/selector-internal.ts +1 -3
- package/src/internal/set.ts +1 -4
- package/src/internal/store.ts +19 -22
- package/src/internal/subscribe-internal.ts +7 -1
- package/src/internal/timeline-internal.ts +1 -3
- package/src/internal/transaction/apply-transaction.ts +9 -6
- package/src/internal/transaction/build-transaction.ts +6 -6
- package/src/internal/transaction-internal.ts +1 -7
- package/src/introspection/attach-timeline-family.ts +14 -4
- package/src/introspection/attach-transaction-logs.ts +1 -1
- package/src/react-devtools/AtomIODevtools.tsx +1 -2
- package/src/react-explorer/AtomIOExplorer.tsx +3 -3
|
@@ -388,21 +388,17 @@ var Differ = class {
|
|
|
388
388
|
// ../../anvl/src/string/capitalize.ts
|
|
389
389
|
var capitalize = (str) => str[0].toUpperCase() + str.slice(1);
|
|
390
390
|
|
|
391
|
-
// ../src/internal/atom-internal.ts
|
|
392
|
-
var import_hamt_plus5 = __toESM(require("hamt_plus"));
|
|
393
|
-
|
|
394
391
|
// ../src/internal/get.ts
|
|
395
|
-
var import_hamt_plus = __toESM(require("hamt_plus"));
|
|
396
392
|
var computeSelectorState = (selector) => selector.get();
|
|
397
393
|
function lookup(key, store) {
|
|
398
394
|
const core = target(store);
|
|
399
|
-
const type =
|
|
395
|
+
const type = core.atoms.has(key) ? `atom` : core.selectors.has(key) ? `selector` : `readonly_selector`;
|
|
400
396
|
return { key, type };
|
|
401
397
|
}
|
|
402
398
|
function withdraw(token, store) {
|
|
403
399
|
var _a2, _b, _c, _d, _e;
|
|
404
400
|
const core = target(store);
|
|
405
|
-
return (_e = (_d = (_c = (_b = (_a2 =
|
|
401
|
+
return (_e = (_d = (_c = (_b = (_a2 = core.atoms.get(token.key)) != null ? _a2 : core.selectors.get(token.key)) != null ? _b : core.readonlySelectors.get(token.key)) != null ? _c : core.transactions.get(token.key)) != null ? _d : core.timelines.get(token.key)) != null ? _e : null;
|
|
406
402
|
}
|
|
407
403
|
function deposit(state) {
|
|
408
404
|
return __spreadValues({
|
|
@@ -441,12 +437,6 @@ var markAtomAsNotDefault = (key, store = IMPLICIT.STORE) => {
|
|
|
441
437
|
core.atomsThatAreDefault.delete(key);
|
|
442
438
|
};
|
|
443
439
|
|
|
444
|
-
// ../src/internal/operation.ts
|
|
445
|
-
var import_hamt_plus3 = __toESM(require("hamt_plus"));
|
|
446
|
-
|
|
447
|
-
// ../src/internal/store.ts
|
|
448
|
-
var import_hamt_plus2 = __toESM(require("hamt_plus"));
|
|
449
|
-
|
|
450
440
|
// ../../anvl/src/join/core-relation-data.ts
|
|
451
441
|
var import_string = require("fp-ts/string");
|
|
452
442
|
|
|
@@ -802,17 +792,17 @@ var Join = class _Join {
|
|
|
802
792
|
// ../src/internal/store.ts
|
|
803
793
|
var createStore = (name, store = null) => {
|
|
804
794
|
var _a2;
|
|
805
|
-
const
|
|
795
|
+
const created = __spreadProps(__spreadValues({}, store != null ? store : (() => ({
|
|
806
796
|
atomsThatAreDefault: /* @__PURE__ */ new Set(),
|
|
807
797
|
selectorAtoms: new Join({ relationType: `n:n` }).from(`selectorKey`).to(`atomKey`),
|
|
808
|
-
selectorGraph: new Join({ relationType: `n:n` })
|
|
809
|
-
valueMap: import_hamt_plus2.default.make()
|
|
798
|
+
selectorGraph: new Join({ relationType: `n:n` })
|
|
810
799
|
}))()), {
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
800
|
+
valueMap: new Map(store == null ? void 0 : store.valueMap),
|
|
801
|
+
atoms: /* @__PURE__ */ new Map(),
|
|
802
|
+
readonlySelectors: /* @__PURE__ */ new Map(),
|
|
803
|
+
selectors: /* @__PURE__ */ new Map(),
|
|
804
|
+
transactions: /* @__PURE__ */ new Map(),
|
|
805
|
+
timelines: /* @__PURE__ */ new Map(),
|
|
816
806
|
timelineAtoms: new Join({ relationType: `1:n` }).from(`timelineKey`).to(`atomKey`),
|
|
817
807
|
subject: {
|
|
818
808
|
atomCreation: new Subject(),
|
|
@@ -838,21 +828,21 @@ var createStore = (name, store = null) => {
|
|
|
838
828
|
});
|
|
839
829
|
store == null ? void 0 : store.atoms.forEach((atom2) => {
|
|
840
830
|
const copiedAtom = __spreadProps(__spreadValues({}, atom2), { subject: new Subject() });
|
|
841
|
-
|
|
831
|
+
created.atoms.set(atom2.key, copiedAtom);
|
|
842
832
|
});
|
|
843
833
|
store == null ? void 0 : store.readonlySelectors.forEach((selector) => {
|
|
844
|
-
selector.install(
|
|
834
|
+
selector.install(created);
|
|
845
835
|
});
|
|
846
836
|
store == null ? void 0 : store.selectors.forEach((selector) => {
|
|
847
|
-
selector.install(
|
|
837
|
+
selector.install(created);
|
|
848
838
|
});
|
|
849
839
|
store == null ? void 0 : store.transactions.forEach((tx) => {
|
|
850
|
-
tx.install(
|
|
840
|
+
tx.install(created);
|
|
851
841
|
});
|
|
852
|
-
store == null ? void 0 : store.timelines.forEach((
|
|
853
|
-
|
|
842
|
+
store == null ? void 0 : store.timelines.forEach((timeline2) => {
|
|
843
|
+
timeline2.install(created);
|
|
854
844
|
});
|
|
855
|
-
return
|
|
845
|
+
return created;
|
|
856
846
|
};
|
|
857
847
|
var IMPLICIT = {
|
|
858
848
|
STORE_INTERNAL: void 0,
|
|
@@ -875,7 +865,7 @@ var openOperation = (token, store) => {
|
|
|
875
865
|
core.operation = {
|
|
876
866
|
open: true,
|
|
877
867
|
done: /* @__PURE__ */ new Set(),
|
|
878
|
-
prev: store.valueMap,
|
|
868
|
+
prev: new Map(store.valueMap),
|
|
879
869
|
time: Date.now(),
|
|
880
870
|
token
|
|
881
871
|
};
|
|
@@ -919,39 +909,35 @@ var recallState = (state, store = IMPLICIT.STORE) => {
|
|
|
919
909
|
(_a2 = store.config.logger) == null ? void 0 : _a2.warn(
|
|
920
910
|
`recall called outside of an operation. This is probably a bug.`
|
|
921
911
|
);
|
|
922
|
-
return
|
|
912
|
+
return core.valueMap.get(state.key);
|
|
923
913
|
}
|
|
924
|
-
return
|
|
914
|
+
return core.operation.prev.get(state.key);
|
|
925
915
|
};
|
|
926
916
|
var cacheValue = (key, value, store = IMPLICIT.STORE) => {
|
|
927
917
|
const core = target(store);
|
|
928
|
-
core.valueMap
|
|
918
|
+
core.valueMap.set(key, value);
|
|
929
919
|
};
|
|
930
920
|
var evictCachedValue = (key, store = IMPLICIT.STORE) => {
|
|
931
921
|
const core = target(store);
|
|
932
|
-
core.valueMap
|
|
933
|
-
};
|
|
934
|
-
var readCachedValue = (key, store = IMPLICIT.STORE) => import_hamt_plus3.default.get(key, target(store).valueMap);
|
|
935
|
-
var isValueCached = (key, store = IMPLICIT.STORE) => import_hamt_plus3.default.has(key, target(store).valueMap);
|
|
936
|
-
var hasKeyBeenUsed = (key, store = IMPLICIT.STORE) => {
|
|
937
|
-
const core = target(store);
|
|
938
|
-
return import_hamt_plus3.default.has(key, core.atoms) || import_hamt_plus3.default.has(key, core.selectors) || import_hamt_plus3.default.has(key, core.readonlySelectors);
|
|
922
|
+
core.valueMap.delete(key);
|
|
939
923
|
};
|
|
924
|
+
var readCachedValue = (key, store = IMPLICIT.STORE) => target(store).valueMap.get(key);
|
|
925
|
+
var isValueCached = (key, store = IMPLICIT.STORE) => target(store).valueMap.has(key);
|
|
940
926
|
|
|
941
927
|
// ../src/internal/transaction-internal.ts
|
|
942
|
-
var import_hamt_plus4 = __toESM(require("hamt_plus"));
|
|
943
928
|
var target = (store = IMPLICIT.STORE) => store.transactionStatus.phase === `building` ? store.transactionStatus.core : store;
|
|
944
929
|
|
|
945
930
|
// ../src/internal/atom-internal.ts
|
|
946
931
|
function atom__INTERNAL(options, family, store = IMPLICIT.STORE) {
|
|
947
932
|
var _a2, _b, _c;
|
|
948
933
|
const core = target(store);
|
|
949
|
-
|
|
934
|
+
const existing = core.atoms.get(options.key);
|
|
935
|
+
if (existing) {
|
|
950
936
|
(_b = (_a2 = store.config.logger) == null ? void 0 : _a2.error) == null ? void 0 : _b.call(
|
|
951
937
|
_a2,
|
|
952
938
|
`Key "${options.key}" already exists in the store.`
|
|
953
939
|
);
|
|
954
|
-
return deposit(
|
|
940
|
+
return deposit(existing);
|
|
955
941
|
}
|
|
956
942
|
const subject = new Subject();
|
|
957
943
|
const newAtom = __spreadValues(__spreadProps(__spreadValues({}, options), {
|
|
@@ -959,7 +945,7 @@ function atom__INTERNAL(options, family, store = IMPLICIT.STORE) {
|
|
|
959
945
|
type: `atom`
|
|
960
946
|
}), family && { family });
|
|
961
947
|
const initialValue = options.default instanceof Function ? options.default() : options.default;
|
|
962
|
-
core.atoms
|
|
948
|
+
core.atoms.set(newAtom.key, newAtom);
|
|
963
949
|
markAtomAsDefault(options.key, store);
|
|
964
950
|
cacheValue(options.key, initialValue, store);
|
|
965
951
|
const token = deposit(newAtom);
|
|
@@ -1082,7 +1068,6 @@ var traceAllSelectorAtoms = (selectorKey, store) => {
|
|
|
1082
1068
|
};
|
|
1083
1069
|
|
|
1084
1070
|
// ../src/internal/set.ts
|
|
1085
|
-
var import_hamt_plus6 = __toESM(require("hamt_plus"));
|
|
1086
1071
|
var evictDownStream = (state, store = IMPLICIT.STORE) => {
|
|
1087
1072
|
var _a2, _b;
|
|
1088
1073
|
const core = target(store);
|
|
@@ -1101,7 +1086,7 @@ var evictDownStream = (state, store = IMPLICIT.STORE) => {
|
|
|
1101
1086
|
(_a3 = store.config.logger) == null ? void 0 : _a3.info(` || ${stateKey} already done`);
|
|
1102
1087
|
return;
|
|
1103
1088
|
}
|
|
1104
|
-
const state2 = (_b2 =
|
|
1089
|
+
const state2 = (_b2 = core.selectors.get(stateKey)) != null ? _b2 : core.readonlySelectors.get(stateKey);
|
|
1105
1090
|
if (!state2) {
|
|
1106
1091
|
(_c = store.config.logger) == null ? void 0 : _c.info(
|
|
1107
1092
|
` || ${stateKey} is an atom, and can't be downstream`
|
|
@@ -1218,7 +1203,13 @@ var subscribeToRootAtoms = (state, store) => {
|
|
|
1218
1203
|
);
|
|
1219
1204
|
const oldValue = recallState(state, store);
|
|
1220
1205
|
const newValue = getState__INTERNAL(state, store);
|
|
1221
|
-
(_b = store.config.logger) == null ? void 0 : _b.info(
|
|
1206
|
+
(_b = store.config.logger) == null ? void 0 : _b.info(
|
|
1207
|
+
` <- "${state.key}" went (`,
|
|
1208
|
+
oldValue,
|
|
1209
|
+
`->`,
|
|
1210
|
+
newValue,
|
|
1211
|
+
`)`
|
|
1212
|
+
);
|
|
1222
1213
|
state.subject.next({ newValue, oldValue });
|
|
1223
1214
|
});
|
|
1224
1215
|
});
|
|
@@ -1411,11 +1402,24 @@ var attachTimelineFamily = (store = import_atom3.__INTERNAL__.IMPLICIT.STORE) =>
|
|
|
1411
1402
|
const findTimelineLogState__INTERNAL = import_atom3.__INTERNAL__.atomFamily__INTERNAL(
|
|
1412
1403
|
{
|
|
1413
1404
|
key: `\u{1F441}\u200D\u{1F5E8} Timeline Update Log (Internal)`,
|
|
1414
|
-
default: (key) =>
|
|
1405
|
+
default: (key) => {
|
|
1406
|
+
var _a2;
|
|
1407
|
+
return (_a2 = store.timelines.get(key)) != null ? _a2 : {
|
|
1408
|
+
key: ``,
|
|
1409
|
+
at: 0,
|
|
1410
|
+
timeTraveling: false,
|
|
1411
|
+
history: [],
|
|
1412
|
+
selectorTime: null,
|
|
1413
|
+
transactionKey: null,
|
|
1414
|
+
install: () => {
|
|
1415
|
+
},
|
|
1416
|
+
subject: new Subject()
|
|
1417
|
+
};
|
|
1418
|
+
},
|
|
1415
1419
|
effects: (key) => [
|
|
1416
1420
|
({ setSelf }) => {
|
|
1417
1421
|
const tl = store.timelines.get(key);
|
|
1418
|
-
tl.subject.subscribe((_) => {
|
|
1422
|
+
tl == null ? void 0 : tl.subject.subscribe((_) => {
|
|
1419
1423
|
if (store.operation.open === true) {
|
|
1420
1424
|
const subscription = store.subject.operationStatus.subscribe(
|
|
1421
1425
|
(operationStatus) => {
|
|
@@ -1516,7 +1520,7 @@ var attachTransactionLogs = (store = import_atom6.__INTERNAL__.IMPLICIT.STORE) =
|
|
|
1516
1520
|
effects: (key) => [
|
|
1517
1521
|
({ setSelf }) => {
|
|
1518
1522
|
const tx = store.transactions.get(key);
|
|
1519
|
-
tx.subject.subscribe((transactionUpdate) => {
|
|
1523
|
+
tx == null ? void 0 : tx.subject.subscribe((transactionUpdate) => {
|
|
1520
1524
|
if (transactionUpdate.key === key) {
|
|
1521
1525
|
setSelf((state) => [...state, transactionUpdate]);
|
|
1522
1526
|
}
|
|
@@ -2843,9 +2847,8 @@ var StringEditor = ({
|
|
|
2843
2847
|
}, this);
|
|
2844
2848
|
};
|
|
2845
2849
|
|
|
2846
|
-
// ../../hamr/src/react-error-boundary/
|
|
2850
|
+
// ../../hamr/src/react-error-boundary/ReactErrorBoundary.tsx
|
|
2847
2851
|
var import_react4 = require("react");
|
|
2848
|
-
var import_recoil = require("recoil");
|
|
2849
2852
|
|
|
2850
2853
|
// ../../hamr/src/react-error-boundary/DefaultFallback.tsx
|
|
2851
2854
|
var import_jsx_dev_runtime10 = require("react/jsx-dev-runtime");
|
|
@@ -2925,7 +2928,7 @@ var DefaultFallback = ({ error, errorInfo }) => {
|
|
|
2925
2928
|
);
|
|
2926
2929
|
};
|
|
2927
2930
|
|
|
2928
|
-
// ../../hamr/src/react-error-boundary/
|
|
2931
|
+
// ../../hamr/src/react-error-boundary/ReactErrorBoundary.tsx
|
|
2929
2932
|
var import_jsx_dev_runtime11 = require("react/jsx-dev-runtime");
|
|
2930
2933
|
var ErrorBoundary = class extends import_react4.Component {
|
|
2931
2934
|
constructor(props) {
|
|
@@ -2944,23 +2947,19 @@ var ErrorBoundary = class extends import_react4.Component {
|
|
|
2944
2947
|
const { error, errorInfo } = this.state;
|
|
2945
2948
|
const { children, Fallback = DefaultFallback } = this.props;
|
|
2946
2949
|
return errorInfo ? /* @__PURE__ */ (0, import_jsx_dev_runtime11.jsxDEV)(Fallback, { error, errorInfo }, void 0, false, {
|
|
2947
|
-
fileName: "../../hamr/src/react-error-boundary/
|
|
2948
|
-
lineNumber:
|
|
2950
|
+
fileName: "../../hamr/src/react-error-boundary/ReactErrorBoundary.tsx",
|
|
2951
|
+
lineNumber: 51,
|
|
2949
2952
|
columnNumber: 4
|
|
2950
2953
|
}, this) : children;
|
|
2951
2954
|
}
|
|
2952
2955
|
};
|
|
2953
|
-
var findErrorBoundaryState = (0, import_recoil.atomFamily)({
|
|
2954
|
-
key: `errorBoundary`,
|
|
2955
|
-
default: { error: void 0, errorInfo: void 0 }
|
|
2956
|
-
});
|
|
2957
2956
|
|
|
2958
2957
|
// ../../hamr/src/react-json-editor/default-components.tsx
|
|
2959
2958
|
var import_jsx_dev_runtime12 = require("react/jsx-dev-runtime");
|
|
2960
2959
|
var DEFAULT_JSON_EDITOR_COMPONENTS = {
|
|
2961
2960
|
ErrorBoundary: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(ErrorBoundary, { children }, void 0, false, {
|
|
2962
2961
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
2963
|
-
lineNumber:
|
|
2962
|
+
lineNumber: 46,
|
|
2964
2963
|
columnNumber: 35
|
|
2965
2964
|
}, this),
|
|
2966
2965
|
Button: ({ onClick, children, disabled }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(
|
|
@@ -2976,14 +2975,14 @@ var DEFAULT_JSON_EDITOR_COMPONENTS = {
|
|
|
2976
2975
|
false,
|
|
2977
2976
|
{
|
|
2978
2977
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
2979
|
-
lineNumber:
|
|
2978
|
+
lineNumber: 48,
|
|
2980
2979
|
columnNumber: 3
|
|
2981
2980
|
},
|
|
2982
2981
|
this
|
|
2983
2982
|
),
|
|
2984
2983
|
EditorWrapper: ({ children, customCss, className }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("div", { className: `json_editor ` + className, css: customCss, children }, void 0, false, {
|
|
2985
2984
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
2986
|
-
lineNumber:
|
|
2985
|
+
lineNumber: 58,
|
|
2987
2986
|
columnNumber: 3
|
|
2988
2987
|
}, this),
|
|
2989
2988
|
EditorLayout: ({
|
|
@@ -2997,98 +2996,98 @@ var DEFAULT_JSON_EDITOR_COMPONENTS = {
|
|
|
2997
2996
|
return /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(Wrapper, { children: [
|
|
2998
2997
|
DeleteButton && /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(DeleteButton, {}, void 0, false, {
|
|
2999
2998
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3000
|
-
lineNumber:
|
|
2999
|
+
lineNumber: 72,
|
|
3001
3000
|
columnNumber: 22
|
|
3002
3001
|
}, this),
|
|
3003
3002
|
Header && /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(Header, {}, void 0, false, {
|
|
3004
3003
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3005
|
-
lineNumber:
|
|
3004
|
+
lineNumber: 73,
|
|
3006
3005
|
columnNumber: 16
|
|
3007
3006
|
}, this),
|
|
3008
3007
|
KeyInput && /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(KeyInput, {}, void 0, false, {
|
|
3009
3008
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3010
|
-
lineNumber:
|
|
3009
|
+
lineNumber: 74,
|
|
3011
3010
|
columnNumber: 18
|
|
3012
3011
|
}, this),
|
|
3013
3012
|
TypeSelect && /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(TypeSelect, {}, void 0, false, {
|
|
3014
3013
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3015
|
-
lineNumber:
|
|
3014
|
+
lineNumber: 75,
|
|
3016
3015
|
columnNumber: 20
|
|
3017
3016
|
}, this),
|
|
3018
3017
|
/* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)(ValueEditor, {}, void 0, false, {
|
|
3019
3018
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3020
|
-
lineNumber:
|
|
3019
|
+
lineNumber: 76,
|
|
3021
3020
|
columnNumber: 5
|
|
3022
3021
|
}, this)
|
|
3023
3022
|
] }, void 0, true, {
|
|
3024
3023
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3025
|
-
lineNumber:
|
|
3024
|
+
lineNumber: 71,
|
|
3026
3025
|
columnNumber: 4
|
|
3027
3026
|
}, this);
|
|
3028
3027
|
},
|
|
3029
3028
|
ArrayWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("div", { className: "json_editor_array", children }, void 0, false, {
|
|
3030
3029
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3031
|
-
lineNumber:
|
|
3030
|
+
lineNumber: 81,
|
|
3032
3031
|
columnNumber: 3
|
|
3033
3032
|
}, this),
|
|
3034
3033
|
ObjectWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("div", { className: "json_editor_object", children }, void 0, false, {
|
|
3035
3034
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3036
|
-
lineNumber:
|
|
3035
|
+
lineNumber: 84,
|
|
3037
3036
|
columnNumber: 3
|
|
3038
3037
|
}, this),
|
|
3039
3038
|
StringWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_string", children }, void 0, false, {
|
|
3040
3039
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3041
|
-
lineNumber:
|
|
3040
|
+
lineNumber: 87,
|
|
3042
3041
|
columnNumber: 3
|
|
3043
3042
|
}, this),
|
|
3044
3043
|
NumberWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_number", children }, void 0, false, {
|
|
3045
3044
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3046
|
-
lineNumber:
|
|
3045
|
+
lineNumber: 90,
|
|
3047
3046
|
columnNumber: 3
|
|
3048
3047
|
}, this),
|
|
3049
3048
|
BooleanWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_boolean", children }, void 0, false, {
|
|
3050
3049
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3051
|
-
lineNumber:
|
|
3050
|
+
lineNumber: 93,
|
|
3052
3051
|
columnNumber: 3
|
|
3053
3052
|
}, this),
|
|
3054
3053
|
NullWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_null", children }, void 0, false, {
|
|
3055
3054
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3056
|
-
lineNumber:
|
|
3055
|
+
lineNumber: 96,
|
|
3057
3056
|
columnNumber: 3
|
|
3058
3057
|
}, this),
|
|
3059
3058
|
MissingPropertyWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("div", { className: "json_editor_property json_editor_missing", children }, void 0, false, {
|
|
3060
3059
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3061
|
-
lineNumber:
|
|
3060
|
+
lineNumber: 99,
|
|
3062
3061
|
columnNumber: 3
|
|
3063
3062
|
}, this),
|
|
3064
3063
|
MiscastPropertyWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("div", { className: "json_editor_property json_editor_miscast", children }, void 0, false, {
|
|
3065
3064
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3066
|
-
lineNumber:
|
|
3065
|
+
lineNumber: 102,
|
|
3067
3066
|
columnNumber: 3
|
|
3068
3067
|
}, this),
|
|
3069
3068
|
IllegalPropertyWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_property json_editor_illegal", children }, void 0, false, {
|
|
3070
3069
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3071
|
-
lineNumber:
|
|
3070
|
+
lineNumber: 105,
|
|
3072
3071
|
columnNumber: 3
|
|
3073
3072
|
}, this),
|
|
3074
3073
|
OfficialPropertyWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_property json_editor_official", children }, void 0, false, {
|
|
3075
3074
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3076
|
-
lineNumber:
|
|
3075
|
+
lineNumber: 108,
|
|
3077
3076
|
columnNumber: 3
|
|
3078
3077
|
}, this),
|
|
3079
3078
|
UnofficialPropertyWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_property json_editor_unofficial", children }, void 0, false, {
|
|
3080
3079
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3081
|
-
lineNumber:
|
|
3080
|
+
lineNumber: 111,
|
|
3082
3081
|
columnNumber: 3
|
|
3083
3082
|
}, this),
|
|
3084
3083
|
DeleteIcon: () => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_icon json_editor_delete", children: "x" }, void 0, false, {
|
|
3085
3084
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3086
|
-
lineNumber:
|
|
3085
|
+
lineNumber: 116,
|
|
3087
3086
|
columnNumber: 3
|
|
3088
3087
|
}, this),
|
|
3089
3088
|
KeyWrapper: ({ children }) => /* @__PURE__ */ (0, import_jsx_dev_runtime12.jsxDEV)("span", { className: "json_editor_key", children }, void 0, false, {
|
|
3090
3089
|
fileName: "../../hamr/src/react-json-editor/default-components.tsx",
|
|
3091
|
-
lineNumber:
|
|
3090
|
+
lineNumber: 119,
|
|
3092
3091
|
columnNumber: 3
|
|
3093
3092
|
}, this)
|
|
3094
3093
|
};
|
|
@@ -3139,7 +3138,7 @@ var JsonEditor = ({
|
|
|
3139
3138
|
false,
|
|
3140
3139
|
{
|
|
3141
3140
|
fileName: "../../hamr/src/react-json-editor/developer-interface.tsx",
|
|
3142
|
-
lineNumber:
|
|
3141
|
+
lineNumber: 78,
|
|
3143
3142
|
columnNumber: 3
|
|
3144
3143
|
},
|
|
3145
3144
|
this
|
|
@@ -3708,7 +3707,7 @@ var YouAreHere = () => {
|
|
|
3708
3707
|
}, this);
|
|
3709
3708
|
};
|
|
3710
3709
|
var TimelineLog = ({ token, isOpenState, timelineState }) => {
|
|
3711
|
-
const
|
|
3710
|
+
const timeline2 = (0, import_react8.useO)(timelineState);
|
|
3712
3711
|
const [isOpen, setIsOpen] = (0, import_react8.useIO)(isOpenState);
|
|
3713
3712
|
return /* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)("section", { className: "node timeline_log", children: [
|
|
3714
3713
|
/* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)("header", { children: [
|
|
@@ -3725,9 +3724,9 @@ var TimelineLog = ({ token, isOpenState, timelineState }) => {
|
|
|
3725
3724
|
}, this),
|
|
3726
3725
|
/* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)("span", { className: "detail length", children: [
|
|
3727
3726
|
"(",
|
|
3728
|
-
|
|
3727
|
+
timeline2.at,
|
|
3729
3728
|
"/",
|
|
3730
|
-
|
|
3729
|
+
timeline2.history.length,
|
|
3731
3730
|
")"
|
|
3732
3731
|
] }, void 0, true, {
|
|
3733
3732
|
fileName: "../src/react-devtools/TimelineIndex.tsx",
|
|
@@ -3745,7 +3744,7 @@ var TimelineLog = ({ token, isOpenState, timelineState }) => {
|
|
|
3745
3744
|
{
|
|
3746
3745
|
type: "button",
|
|
3747
3746
|
onClick: () => (0, import_atom9.undo)(token),
|
|
3748
|
-
disabled:
|
|
3747
|
+
disabled: timeline2.at === 0,
|
|
3749
3748
|
children: "undo"
|
|
3750
3749
|
},
|
|
3751
3750
|
void 0,
|
|
@@ -3762,7 +3761,7 @@ var TimelineLog = ({ token, isOpenState, timelineState }) => {
|
|
|
3762
3761
|
{
|
|
3763
3762
|
type: "button",
|
|
3764
3763
|
onClick: () => (0, import_atom9.redo)(token),
|
|
3765
|
-
disabled:
|
|
3764
|
+
disabled: timeline2.at === timeline2.history.length,
|
|
3766
3765
|
children: "redo"
|
|
3767
3766
|
},
|
|
3768
3767
|
void 0,
|
|
@@ -3789,8 +3788,8 @@ var TimelineLog = ({ token, isOpenState, timelineState }) => {
|
|
|
3789
3788
|
lineNumber: 30,
|
|
3790
3789
|
columnNumber: 4
|
|
3791
3790
|
}, this),
|
|
3792
|
-
isOpen ? /* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)("main", { children:
|
|
3793
|
-
index ===
|
|
3791
|
+
isOpen ? /* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)("main", { children: timeline2.history.map((update, index) => /* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)(import_react9.Fragment, { children: [
|
|
3792
|
+
index === timeline2.at ? /* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)(YouAreHere, {}, void 0, false, {
|
|
3794
3793
|
fileName: "../src/react-devtools/TimelineIndex.tsx",
|
|
3795
3794
|
lineNumber: 60,
|
|
3796
3795
|
columnNumber: 33
|
|
@@ -3800,12 +3799,12 @@ var TimelineLog = ({ token, isOpenState, timelineState }) => {
|
|
|
3800
3799
|
lineNumber: 61,
|
|
3801
3800
|
columnNumber: 8
|
|
3802
3801
|
}, this),
|
|
3803
|
-
index ===
|
|
3802
|
+
index === timeline2.history.length - 1 && timeline2.at === timeline2.history.length ? /* @__PURE__ */ (0, import_jsx_dev_runtime17.jsxDEV)(YouAreHere, {}, void 0, false, {
|
|
3804
3803
|
fileName: "../src/react-devtools/TimelineIndex.tsx",
|
|
3805
3804
|
lineNumber: 64,
|
|
3806
3805
|
columnNumber: 9
|
|
3807
3806
|
}, this) : null
|
|
3808
|
-
] }, update.key + index +
|
|
3807
|
+
] }, update.key + index + timeline2.at, true, {
|
|
3809
3808
|
fileName: "../src/react-devtools/TimelineIndex.tsx",
|
|
3810
3809
|
lineNumber: 59,
|
|
3811
3810
|
columnNumber: 7
|
|
@@ -3962,7 +3961,7 @@ var AtomIODevtools = () => {
|
|
|
3962
3961
|
false,
|
|
3963
3962
|
{
|
|
3964
3963
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
3965
|
-
lineNumber:
|
|
3964
|
+
lineNumber: 29,
|
|
3966
3965
|
columnNumber: 4
|
|
3967
3966
|
},
|
|
3968
3967
|
this
|
|
@@ -3985,7 +3984,7 @@ var AtomIODevtools = () => {
|
|
|
3985
3984
|
/* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(import_framer_motion.motion.header, { children: [
|
|
3986
3985
|
/* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)("h1", { children: "atom.io" }, void 0, false, {
|
|
3987
3986
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
3988
|
-
lineNumber:
|
|
3987
|
+
lineNumber: 60,
|
|
3989
3988
|
columnNumber: 8
|
|
3990
3989
|
}, this),
|
|
3991
3990
|
/* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)("nav", { children: devtoolsViewOptions.map((viewOption) => /* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(
|
|
@@ -4001,48 +4000,48 @@ var AtomIODevtools = () => {
|
|
|
4001
4000
|
false,
|
|
4002
4001
|
{
|
|
4003
4002
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4004
|
-
lineNumber:
|
|
4003
|
+
lineNumber: 63,
|
|
4005
4004
|
columnNumber: 10
|
|
4006
4005
|
},
|
|
4007
4006
|
this
|
|
4008
4007
|
)) }, void 0, false, {
|
|
4009
4008
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4010
|
-
lineNumber:
|
|
4009
|
+
lineNumber: 61,
|
|
4011
4010
|
columnNumber: 8
|
|
4012
4011
|
}, this)
|
|
4013
4012
|
] }, void 0, true, {
|
|
4014
4013
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4015
|
-
lineNumber:
|
|
4014
|
+
lineNumber: 59,
|
|
4016
4015
|
columnNumber: 7
|
|
4017
4016
|
}, this),
|
|
4018
4017
|
/* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(import_framer_motion.motion.main, { children: /* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(import_framer_motion.LayoutGroup, { children: devtoolsView === `atoms` ? /* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(StateIndex, { tokenIndex: atomIndex }, void 0, false, {
|
|
4019
4018
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4020
|
-
lineNumber:
|
|
4019
|
+
lineNumber: 78,
|
|
4021
4020
|
columnNumber: 10
|
|
4022
4021
|
}, this) : devtoolsView === `selectors` ? /* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(StateIndex, { tokenIndex: selectorIndex }, void 0, false, {
|
|
4023
4022
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4024
|
-
lineNumber:
|
|
4023
|
+
lineNumber: 80,
|
|
4025
4024
|
columnNumber: 10
|
|
4026
4025
|
}, this) : devtoolsView === `transactions` ? /* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(TransactionIndex, {}, void 0, false, {
|
|
4027
4026
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4028
|
-
lineNumber:
|
|
4027
|
+
lineNumber: 82,
|
|
4029
4028
|
columnNumber: 10
|
|
4030
4029
|
}, this) : devtoolsView === `timelines` ? /* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(TimelineIndex, {}, void 0, false, {
|
|
4031
4030
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4032
|
-
lineNumber:
|
|
4031
|
+
lineNumber: 84,
|
|
4033
4032
|
columnNumber: 10
|
|
4034
4033
|
}, this) : null }, void 0, false, {
|
|
4035
4034
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4036
|
-
lineNumber:
|
|
4035
|
+
lineNumber: 76,
|
|
4037
4036
|
columnNumber: 8
|
|
4038
4037
|
}, this) }, void 0, false, {
|
|
4039
4038
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4040
|
-
lineNumber:
|
|
4039
|
+
lineNumber: 75,
|
|
4041
4040
|
columnNumber: 7
|
|
4042
4041
|
}, this)
|
|
4043
4042
|
] }, void 0, true, {
|
|
4044
4043
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4045
|
-
lineNumber:
|
|
4044
|
+
lineNumber: 58,
|
|
4046
4045
|
columnNumber: 6
|
|
4047
4046
|
}, this) : null,
|
|
4048
4047
|
/* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)("footer", { children: /* @__PURE__ */ (0, import_jsx_dev_runtime19.jsxDEV)(
|
|
@@ -4062,13 +4061,13 @@ var AtomIODevtools = () => {
|
|
|
4062
4061
|
false,
|
|
4063
4062
|
{
|
|
4064
4063
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4065
|
-
lineNumber:
|
|
4064
|
+
lineNumber: 91,
|
|
4066
4065
|
columnNumber: 6
|
|
4067
4066
|
},
|
|
4068
4067
|
this
|
|
4069
4068
|
) }, void 0, false, {
|
|
4070
4069
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4071
|
-
lineNumber:
|
|
4070
|
+
lineNumber: 90,
|
|
4072
4071
|
columnNumber: 5
|
|
4073
4072
|
}, this)
|
|
4074
4073
|
]
|
|
@@ -4077,14 +4076,14 @@ var AtomIODevtools = () => {
|
|
|
4077
4076
|
true,
|
|
4078
4077
|
{
|
|
4079
4078
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4080
|
-
lineNumber:
|
|
4079
|
+
lineNumber: 41,
|
|
4081
4080
|
columnNumber: 4
|
|
4082
4081
|
},
|
|
4083
4082
|
this
|
|
4084
4083
|
)
|
|
4085
4084
|
] }, void 0, true, {
|
|
4086
4085
|
fileName: "../src/react-devtools/AtomIODevtools.tsx",
|
|
4087
|
-
lineNumber:
|
|
4086
|
+
lineNumber: 28,
|
|
4088
4087
|
columnNumber: 3
|
|
4089
4088
|
}, this);
|
|
4090
4089
|
};
|