atom.io 0.33.4 → 0.33.6
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/data/index.d.ts +2 -7
- package/dist/data/index.d.ts.map +1 -1
- package/dist/eslint-plugin/index.d.ts +0 -6
- package/dist/eslint-plugin/index.d.ts.map +1 -1
- package/dist/internal/index.d.ts +12 -100
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +35 -35
- package/dist/internal/index.js.map +1 -1
- package/dist/introspection/index.d.ts +0 -8
- package/dist/introspection/index.d.ts.map +1 -1
- package/dist/introspection/index.js +9 -9
- package/dist/introspection/index.js.map +1 -1
- package/dist/json/index.d.ts +1 -6
- package/dist/json/index.d.ts.map +1 -1
- package/dist/main/index.d.ts +3 -28
- package/dist/main/index.d.ts.map +1 -1
- package/dist/main/index.js +4 -6
- package/dist/main/index.js.map +1 -1
- package/dist/react/index.d.ts +0 -5
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +7 -11
- package/dist/react/index.js.map +1 -1
- package/dist/react-devtools/index.css +9 -7
- package/dist/react-devtools/index.css.map +1 -1
- package/dist/react-devtools/index.d.ts +1 -12
- package/dist/react-devtools/index.d.ts.map +1 -1
- package/dist/react-devtools/index.js +7 -4
- package/dist/react-devtools/index.js.map +1 -1
- package/dist/realtime/index.d.ts +0 -2
- package/dist/realtime/index.d.ts.map +1 -1
- package/dist/realtime/index.js.map +1 -1
- package/dist/realtime-client/index.d.ts +13 -38
- package/dist/realtime-client/index.d.ts.map +1 -1
- package/dist/realtime-client/index.js +4 -6
- package/dist/realtime-client/index.js.map +1 -1
- package/dist/realtime-react/index.d.ts +7 -25
- package/dist/realtime-react/index.d.ts.map +1 -1
- package/dist/realtime-react/index.js +23 -42
- package/dist/realtime-react/index.js.map +1 -1
- package/dist/realtime-server/index.d.ts +11 -31
- package/dist/realtime-server/index.d.ts.map +1 -1
- package/dist/realtime-server/index.js +6 -6
- package/dist/realtime-server/index.js.map +1 -1
- package/dist/realtime-testing/index.d.ts +0 -1
- package/dist/realtime-testing/index.js +1 -1
- package/dist/realtime-testing/index.js.map +1 -1
- package/dist/transceivers/set-rtx/index.d.ts +0 -1
- package/dist/web/index.d.ts +0 -1
- package/package.json +37 -28
- package/src/internal/families/dispose-from-store.ts +1 -1
- package/src/internal/mutable/create-mutable-atom.ts +2 -6
- package/src/internal/set-state/set-into-store.ts +1 -1
- package/src/internal/store/withdraw.ts +13 -13
- package/src/internal/timeline/time-travel.ts +0 -2
- package/src/introspection/attach-type-selectors.ts +1 -1
- package/src/main/index.ts +2 -8
- package/src/main/logger.ts +2 -2
- package/src/react-devtools/AtomIODevtools.tsx +2 -2
- package/src/react-devtools/StateEditor.tsx +1 -5
- package/src/react-devtools/Updates.tsx +3 -5
- package/src/react-devtools/devtools.css +9 -7
- package/src/react-devtools/elastic-input/NumberInput.tsx +1 -1
- package/src/react-devtools/error-boundary/ReactErrorBoundary.tsx +1 -1
- package/src/react-devtools/json-editor/developer-interface.tsx +1 -1
- package/src/react-devtools/json-editor/editors-by-type/utilities/cast-json.ts +1 -1
- package/src/realtime/shared-room-store.ts +0 -3
- package/src/realtime-react/use-pull-selector.ts +0 -1
- package/src/realtime-react/use-single-effect.ts +2 -0
- package/src/realtime-server/continuity/prepare-to-sync-realtime-continuity.ts +1 -1
- package/src/realtime-server/continuity/subscribe-to-continuity-actions.ts +0 -2
- package/src/realtime-server/ipc-sockets/parent-socket.ts +1 -1
|
@@ -27,6 +27,7 @@ main[data-css="atom_io_devtools"] {
|
|
|
27
27
|
* {
|
|
28
28
|
font-size: 16px;
|
|
29
29
|
font-family: theia, monospace;
|
|
30
|
+
line-height: 1em;
|
|
30
31
|
}
|
|
31
32
|
> header {
|
|
32
33
|
padding: 5px;
|
|
@@ -35,7 +36,6 @@ main[data-css="atom_io_devtools"] {
|
|
|
35
36
|
display: flex;
|
|
36
37
|
justify-content: space-between;
|
|
37
38
|
h1 {
|
|
38
|
-
font-size: inherit;
|
|
39
39
|
margin: 0;
|
|
40
40
|
font-size: 24px;
|
|
41
41
|
font-family: charter, serif;
|
|
@@ -47,7 +47,7 @@ main[data-css="atom_io_devtools"] {
|
|
|
47
47
|
cursor: pointer;
|
|
48
48
|
background: none;
|
|
49
49
|
border: none;
|
|
50
|
-
padding:
|
|
50
|
+
padding: 0px 5px;
|
|
51
51
|
margin-bottom: -2px;
|
|
52
52
|
z-index: 1000;
|
|
53
53
|
&:disabled {
|
|
@@ -114,10 +114,12 @@ main[data-css="atom_io_devtools"] {
|
|
|
114
114
|
flex-flow: row;
|
|
115
115
|
gap: 5px;
|
|
116
116
|
cursor: help;
|
|
117
|
-
|
|
117
|
+
align-items: baseline;
|
|
118
|
+
/* h2,
|
|
119
|
+
span.type {
|
|
118
120
|
display: inline-block;
|
|
119
121
|
margin: 0;
|
|
120
|
-
}
|
|
122
|
+
} */
|
|
121
123
|
.detail {
|
|
122
124
|
color: #777;
|
|
123
125
|
@media (prefers-color-scheme: light) {
|
|
@@ -126,9 +128,9 @@ main[data-css="atom_io_devtools"] {
|
|
|
126
128
|
}
|
|
127
129
|
}
|
|
128
130
|
}
|
|
129
|
-
main {
|
|
130
|
-
|
|
131
|
-
|
|
131
|
+
/* main {
|
|
132
|
+
margin-left: 15px;
|
|
133
|
+
} */
|
|
132
134
|
}
|
|
133
135
|
section.transaction_log {
|
|
134
136
|
margin-top: 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.css","names":[],"sources":["../../src/react-devtools/devtools.css"],"sourcesContent":["main[data-css=\"atom_io_devtools\"] {\n\t--fg-color: #eee;\n\t--bg-color: #111;\n\t--bg-tint1: #222;\n\t--fg-border: 1px solid var(--fg-color);\n\t@media (prefers-color-scheme: light) {\n\t\t--fg-color: #444;\n\t\t--bg-color: #ddd;\n\t\t--bg-tint1: #e3e3e3;\n\t}\n\t& {\n\t\tbox-sizing: border-box;\n\t\tcolor: var(--fg-color);\n\t\tbackground-color: var(--bg-color);\n\t\tborder: 2px solid var(--fg-color);\n\t\tposition: fixed;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\tflex-flow: column;\n\t\tmax-height: 800px;\n\t\twidth: 100%;\n\t\tmax-width: 500px;\n\t\toverflow-y: scroll;\n\t}\n\t* {\n\t\tfont-size: 16px;\n\t\tfont-family: theia, monospace;\n\t}\n\t> header {\n\t\tpadding: 5px;\n\t\tpadding-left: 10px;\n\t\tpadding-bottom: 0;\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\th1 {\n\t\t\
|
|
1
|
+
{"version":3,"file":"index.css","names":[],"sources":["../../src/react-devtools/devtools.css"],"sourcesContent":["main[data-css=\"atom_io_devtools\"] {\n\t--fg-color: #eee;\n\t--bg-color: #111;\n\t--bg-tint1: #222;\n\t--fg-border: 1px solid var(--fg-color);\n\t@media (prefers-color-scheme: light) {\n\t\t--fg-color: #444;\n\t\t--bg-color: #ddd;\n\t\t--bg-tint1: #e3e3e3;\n\t}\n\t& {\n\t\tbox-sizing: border-box;\n\t\tcolor: var(--fg-color);\n\t\tbackground-color: var(--bg-color);\n\t\tborder: 2px solid var(--fg-color);\n\t\tposition: fixed;\n\t\tright: 0;\n\t\tbottom: 0;\n\t\theight: 100%;\n\t\tdisplay: flex;\n\t\tflex-flow: column;\n\t\tmax-height: 800px;\n\t\twidth: 100%;\n\t\tmax-width: 500px;\n\t\toverflow-y: scroll;\n\t}\n\t* {\n\t\tfont-size: 16px;\n\t\tfont-family: theia, monospace;\n\t\tline-height: 1em;\n\t}\n\t> header {\n\t\tpadding: 5px;\n\t\tpadding-left: 10px;\n\t\tpadding-bottom: 0;\n\t\tdisplay: flex;\n\t\tjustify-content: space-between;\n\t\th1 {\n\t\t\tmargin: 0;\n\t\t\tfont-size: 24px;\n\t\t\tfont-family: charter, serif;\n\t\t}\n\t\tnav {\n\t\t\tdisplay: flex;\n\t\t\tflex-flow: row nowrap;\n\t\t\tbutton {\n\t\t\t\tcursor: pointer;\n\t\t\t\tbackground: none;\n\t\t\t\tborder: none;\n\t\t\t\tpadding: 0px 5px;\n\t\t\t\tmargin-bottom: -2px;\n\t\t\t\tz-index: 1000;\n\t\t\t\t&:disabled {\n\t\t\t\t\tcursor: default;\n\t\t\t\t\tbackground-color: var(--bg-tint1);\n\t\t\t\t\tcolor: var(--fg-color);\n\t\t\t\t\tborder: var(--fg-border);\n\t\t\t\t\tborder-bottom: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t> main {\n\t\tbackground: var(--bg-tint1);\n\t}\n\tmain {\n\t\toverflow-y: scroll;\n\t\tflex-grow: 1;\n\t\tdisplay: flex;\n\t\tflex-flow: column;\n\t\tgap: 0;\n\t\tarticle.index {\n\t\t\t.node .node {\n\t\t\t\tborder-right: var(--fg-border);\n\t\t\t\tpadding-right: 0;\n\t\t\t\tbackground: #fff3;\n\t\t\t}\n\t\t\t.node > .node {\n\t\t\t\tmargin: 5px 0;\n\t\t\t\tmargin-left: 12px;\n\t\t\t\tborder-left: var(--fg-border);\n\t\t\t}\n\t\t\t.node {\n\t\t\t\tborder-top: var(--fg-border);\n\t\t\t\toverflow-x: scroll;\n\t\t\t\tpadding: 5px;\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-bottom: var(--fg-border);\n\t\t\t\t}\n\t\t\t\t&.transaction_update {\n\t\t\t\t\tpadding: 0;\n\t\t\t\t}\n\t\t\t\theader {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-flow: row;\n\t\t\t\t\tgap: 5px;\n\t\t\t\t\tposition: sticky;\n\t\t\t\t\tz-index: 999;\n\t\t\t\t\ttop: 0;\n\t\t\t\t\tbutton.carat {\n\t\t\t\t\t\tcursor: pointer;\n\t\t\t\t\t\tbackground: none;\n\t\t\t\t\t\tborder: none;\n\t\t\t\t\t\twidth: 20px;\n\t\t\t\t\t\t&.open {\n\t\t\t\t\t\t\ttransform: rotate(90deg);\n\t\t\t\t\t\t}\n\t\t\t\t\t\t&:disabled {\n\t\t\t\t\t\t\tcursor: default;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t> main {\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\tflex-flow: row;\n\t\t\t\t\t\tgap: 5px;\n\t\t\t\t\t\tcursor: help;\n\t\t\t\t\t\talign-items: baseline;\n\t\t\t\t\t\t/* h2,\n\t\t\t\t\t\tspan.type {\n\t\t\t\t\t\t\tdisplay: inline-block;\n\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t} */\n\t\t\t\t\t\t.detail {\n\t\t\t\t\t\t\tcolor: #777;\n\t\t\t\t\t\t\t@media (prefers-color-scheme: light) {\n\t\t\t\t\t\t\t\tcolor: #999;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t/* main {\n margin-left: 15px;\n } */\n\t\t\t}\n\t\t\tsection.transaction_log {\n\t\t\t\tmargin-top: 0;\n\t\t\t\tmain {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\tflex-flow: row wrap;\n\t\t\t\t\tgap: 5px;\n\t\t\t\t\t.transaction_update {\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\tflex-flow: row;\n\t\t\t\t\t\talign-items: flex-start;\n\t\t\t\t\t\tjustify-content: flex-start;\n\t\t\t\t\t\tjustify-items: flex-start;\n\t\t\t\t\t\talign-content: flex-start;\n\t\t\t\t\t\tborder-left: var(--fg-border);\n\t\t\t\t\t\tborder-top: var(--fg-border);\n\t\t\t\t\t\theader {\n\t\t\t\t\t\t\tpadding: 5px;\n\t\t\t\t\t\t\th4 {\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\t\t\tfont-size: inherit;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tmain {\n\t\t\t\t\t\t\tmargin-left: 0;\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\tflex-flow: column;\n\t\t\t\t\t\t\tgap: 0px;\n\t\t\t\t\t\t\tborder-left: 1px solid #333;\n\t\t\t\t\t\t\tsection ~ section {\n\t\t\t\t\t\t\t\tborder-top: 1px solid #333;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tsection {\n\t\t\t\t\t\t\t\tpadding: 5px;\n\t\t\t\t\t\t\t\t&.transaction_output {\n\t\t\t\t\t\t\t\t\tborder-right: none;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t&.transaction_impact {\n\t\t\t\t\t\t\t\t\tpadding: 5px;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t\t\tarticle {\n\t\t\t\t\t\t\t\t\tborder-left: var(--fg-border);\n\t\t\t\t\t\t\t\t\tborder-right: var(--fg-border);\n\t\t\t\t\t\t\t\t\t.summary {\n\t\t\t\t\t\t\t\t\t\twhite-space: nowrap;\n\t\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tsection.timeline_log {\n\t\t\t\theader {\n\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t> main {\n\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\twidth: 100%;\n\t\t\t\t\t\tflex-grow: 1;\n\t\t\t\t\t\t.gap {\n\t\t\t\t\t\t\tflex-grow: 1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tnav {\n\t\t\t\t\t\t\tdisplay: flex;\n\t\t\t\t\t\t\tflex-flow: row nowrap;\n\t\t\t\t\t\t\tgap: 5px;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t.timeline_update {\n\t\t\t\t\tpadding: 5px;\n\t\t\t\t\tborder-left: var(--fg-border);\n\t\t\t\t\th4 {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\tpadding: 0;\n\t\t\t\t\t\tfont-size: inherit;\n\t\t\t\t\t}\n\t\t\t\t\tmain {\n\t\t\t\t\t\tmargin: 0;\n\t\t\t\t\t\t.node.atom_update {\n\t\t\t\t\t\t\tborder-left: var(--fg-border);\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t.you_are_here {\n\t\t\t\t\tbackground: var(--fg-color);\n\t\t\t\t\tcolor: var(--bg-color);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\tfooter {\n\t\tdisplay: flex;\n\t\tjustify-content: flex-end;\n\t\tbutton {\n\t\t\tcursor: pointer;\n\t\t\tbackground: none;\n\t\t\tborder: none;\n\t\t\tpadding: none;\n\t\t\tposition: absolute;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\t}\n\n\t.json_editor {\n\t\tinput {\n\t\t\tfont-family: theia, monospace;\n\t\t\tborder: none;\n\t\t\tborder-bottom: 1px solid;\n\t\t\tbackground: none;\n\t\t\t&:disabled {\n\t\t\t\tborder: none;\n\t\t\t}\n\t\t}\n\t\tbutton {\n\t\t\tbackground: none;\n\t\t\tcolor: #777;\n\t\t\tborder: none;\n\t\t\tfont-family: theia, monospace;\n\t\t\tfont-size: 14px;\n\t\t\tmargin: none;\n\t\t\tpadding: 4px;\n\t\t\tpadding-bottom: 6px;\n\t\t\tcursor: pointer;\n\t\t\t&:hover {\n\t\t\t\tcolor: #333;\n\t\t\t\tbackground-color: #aaa;\n\t\t\t}\n\t\t}\n\t\tselect {\n\t\t\tfont-family: theia, monospace;\n\t\t\tfont-size: 14px;\n\t\t\tbackground: none;\n\t\t\tborder: none;\n\t\t\tcolor: #777;\n\t\t\t@media (prefers-color-scheme: light) {\n\t\t\t\tcolor: #999;\n\t\t\t}\n\t\t}\n\t\t.json_editor_unofficial {\n\t\t\tbackground-color: #777;\n\t\t\tbutton {\n\t\t\t\tcolor: #333;\n\t\t\t}\n\t\t}\n\t\t.json_editor_missing {\n\t\t\tbackground-color: #f055;\n\t\t}\n\t\t.json_editor_key {\n\t\t\tpadding-right: 10px;\n\t\t\tinput {\n\t\t\t\tcolor: #999;\n\t\t\t\t@media (prefers-color-scheme: light) {\n\t\t\t\t\tcolor: #777;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t.json_editor_object {\n\t\t\tborder-left: 2px solid #333;\n\t\t\tpadding-left: 20px;\n\t\t\t@media (prefers-color-scheme: light) {\n\t\t\t\tborder-color: #ccc;\n\t\t\t}\n\t\t\t.json_editor_properties {\n\t\t\t\t> * {\n\t\t\t\t\tborder-bottom: var(--fg-border);\n\t\t\t\t\tmargin-bottom: 2px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
@@ -3,7 +3,6 @@ import { CSSProperties, Component, DetailedHTMLProps, ErrorInfo, FC, ForwardRefE
|
|
|
3
3
|
|
|
4
4
|
//#region src/react-devtools/AtomIODevtools.d.ts
|
|
5
5
|
declare const AtomIODevtools: React.FC;
|
|
6
|
-
|
|
7
6
|
//#endregion
|
|
8
7
|
//#region src/react-devtools/elastic-input/ElasticInput.d.ts
|
|
9
8
|
type ElasticInputProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
@@ -12,7 +11,6 @@ type ElasticInputProps = DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>
|
|
|
12
11
|
declare const ElasticInput: ForwardRefExoticComponent<DetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {
|
|
13
12
|
widthPadding?: number;
|
|
14
13
|
}>;
|
|
15
|
-
|
|
16
14
|
//#endregion
|
|
17
15
|
//#region src/react-devtools/elastic-input/NumberInput.d.ts
|
|
18
16
|
declare function clampInto(min: number, max: number): (value: number) => number;
|
|
@@ -43,7 +41,6 @@ type NumberInputProps = Partial<NumberConstraints> & {
|
|
|
43
41
|
value?: number | null;
|
|
44
42
|
};
|
|
45
43
|
declare const NumberInput: FC<NumberInputProps>;
|
|
46
|
-
|
|
47
44
|
//#endregion
|
|
48
45
|
//#region src/react-devtools/elastic-input/TextInput.d.ts
|
|
49
46
|
type TextInputProps = {
|
|
@@ -56,7 +53,6 @@ type TextInputProps = {
|
|
|
56
53
|
testid?: string;
|
|
57
54
|
};
|
|
58
55
|
declare const TextInput: FC<TextInputProps>;
|
|
59
|
-
|
|
60
56
|
//#endregion
|
|
61
57
|
//#region src/react-devtools/error-boundary/DefaultFallback.d.ts
|
|
62
58
|
type FallbackProps = {
|
|
@@ -64,7 +60,6 @@ type FallbackProps = {
|
|
|
64
60
|
errorInfo?: ErrorInfo | undefined;
|
|
65
61
|
};
|
|
66
62
|
declare const DefaultFallback: FC<FallbackProps>;
|
|
67
|
-
|
|
68
63
|
//#endregion
|
|
69
64
|
//#region src/react-devtools/error-boundary/ReactErrorBoundary.d.ts
|
|
70
65
|
type ErrorBoundaryState = {
|
|
@@ -75,7 +70,7 @@ type ErrorBoundaryProps = {
|
|
|
75
70
|
children: ReactNode;
|
|
76
71
|
onError?: ((error: Error | string, errorInfo: ErrorInfo) => void) | undefined;
|
|
77
72
|
Fallback?: FC<FallbackProps> | undefined;
|
|
78
|
-
|
|
73
|
+
resetErrorState?: () => void;
|
|
79
74
|
useErrorState?: () => [ErrorBoundaryState, (newState: ErrorBoundaryState | ((currState: ErrorBoundaryState) => ErrorBoundaryState)) => void];
|
|
80
75
|
};
|
|
81
76
|
declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryState> {
|
|
@@ -83,7 +78,6 @@ declare class ErrorBoundary extends Component<ErrorBoundaryProps, ErrorBoundaryS
|
|
|
83
78
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
84
79
|
render(): ReactNode;
|
|
85
80
|
}
|
|
86
|
-
|
|
87
81
|
//#endregion
|
|
88
82
|
//#region src/react-devtools/json-editor/default-components.d.ts
|
|
89
83
|
type Dict<T> = Record<string, T>;
|
|
@@ -116,7 +110,6 @@ type JsonEditorComponents = {
|
|
|
116
110
|
KeyWrapper: WC;
|
|
117
111
|
};
|
|
118
112
|
declare const DEFAULT_JSON_EDITOR_COMPONENTS: JsonEditorComponents;
|
|
119
|
-
|
|
120
113
|
//#endregion
|
|
121
114
|
//#region src/react-devtools/json-editor/json-editor-internal.d.ts
|
|
122
115
|
type JsonEditorProps_INTERNAL<T> = {
|
|
@@ -137,7 +130,6 @@ type JsonEditorProps_INTERNAL<T> = {
|
|
|
137
130
|
Components: JsonEditorComponents;
|
|
138
131
|
testid?: string | undefined;
|
|
139
132
|
};
|
|
140
|
-
|
|
141
133
|
//#endregion
|
|
142
134
|
//#region src/react-devtools/json-editor/developer-interface.d.ts
|
|
143
135
|
type JsonEditorProps<T> = {
|
|
@@ -171,7 +163,6 @@ declare const JsonEditor: <T>({
|
|
|
171
163
|
Components: CustomComponents,
|
|
172
164
|
testid
|
|
173
165
|
}: JsonEditorProps<T>) => ReactElement;
|
|
174
|
-
|
|
175
166
|
//#endregion
|
|
176
167
|
//#region src/react-devtools/json-editor/editors-by-type/utilities/cast-to-json.d.ts
|
|
177
168
|
declare const castToJson: (input: unknown) => {
|
|
@@ -182,12 +173,10 @@ declare const castToJson: (input: unknown) => {
|
|
|
182
173
|
string: string;
|
|
183
174
|
null: null;
|
|
184
175
|
};
|
|
185
|
-
|
|
186
176
|
//#endregion
|
|
187
177
|
//#region src/react-devtools/json-editor/index.d.ts
|
|
188
178
|
type SetterOrUpdater<T> = <New extends T>(next: New | ((old: T) => New)) => void;
|
|
189
179
|
declare const SubEditors: Record<keyof JsonTypes, FC<JsonEditorProps_INTERNAL<any>>>;
|
|
190
|
-
|
|
191
180
|
//#endregion
|
|
192
181
|
export { AtomIODevtools, DEFAULT_JSON_EDITOR_COMPONENTS, DEFAULT_NUMBER_CONSTRAINTS, DecimalInProgress, DefaultFallback, Dict, ElasticInput, ElasticInputProps, ErrorBoundary, ErrorBoundaryProps, ErrorBoundaryState, FallbackProps, JsonEditor, JsonEditorComponents, JsonEditorProps, NumberConstraints, NumberInput, SetterOrUpdater, SubEditors, TextInput, TextInputProps, VALID_NON_NUMBERS, VALID_NON_NUMBER_INTERPRETATIONS, ValidNonNumber, WC, WrapperComponent, castToJson, clampInto, isDecimalInProgress, isValidNonNumber };
|
|
193
182
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":["AtomIODevtools: React.FC","ElasticInput: ForwardRefExoticComponent<\n\tDetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {\n\t\twidthPadding?: number\n\t}\n>","min: number","max: number","value: number","input: string","VALID_NON_NUMBER_INTERPRETATIONS: Readonly<\n\tRecord<ValidNonNumber, number | null>\n>","DEFAULT_NUMBER_CONSTRAINTS: NumberConstraints","e: React.ChangeEvent<HTMLInputElement>","e: React.MouseEvent<HTMLDivElement, MouseEvent>","newValue: number | null","NumberInput: FC<NumberInputProps>","value: string","TextInput: FC<TextInputProps>","DefaultFallback: FC<FallbackProps>","error: Error | string","errorInfo: ErrorInfo","newState:\n\t\t\t\t| ErrorBoundaryState\n\t\t\t\t| ((currState: ErrorBoundaryState) => ErrorBoundaryState)","currState: ErrorBoundaryState","props: ErrorBoundaryProps","error: Error","DEFAULT_JSON_EDITOR_COMPONENTS: JsonEditorComponents","newKey: string","newType: keyof JsonTypes","path: ReadonlyArray<number | string>","SubEditors: Record<\n\tkeyof JsonTypes,\n\tFC<JsonEditorProps_INTERNAL<any>>\n>","valOrUpdater: T | ((currVal: T) => T)","currVal: T","newKey: string","path: ReadonlyArray<number | string>","input: unknown","next: New | ((old: T) => New)","old: T","SubEditors: Record<\n\tkeyof JsonTypes,\n\tFC<JsonEditorProps_INTERNAL<any>>\n>"],"sources":["../../src/react-devtools/AtomIODevtools.tsx","../../src/react-devtools/elastic-input/ElasticInput.tsx","../../src/react-devtools/elastic-input/NumberInput.tsx","../../src/react-devtools/elastic-input/TextInput.tsx","../../src/react-devtools/error-boundary/DefaultFallback.tsx","../../src/react-devtools/error-boundary/ReactErrorBoundary.tsx","../../src/react-devtools/json-editor/default-components.tsx","../../src/react-devtools/json-editor/json-editor-internal.tsx","../../src/react-devtools/json-editor/developer-interface.tsx","../../src/react-devtools/json-editor/editors-by-type/utilities/cast-to-json.ts","../../src/react-devtools/json-editor/index.ts"],"sourcesContent":[],"mappings":";;;;cAWaA,gBAAgB,KAAA,CAAM
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":["AtomIODevtools: React.FC","ElasticInput: ForwardRefExoticComponent<\n\tDetailedHTMLProps<InputHTMLAttributes<HTMLInputElement>, HTMLInputElement> & {\n\t\twidthPadding?: number\n\t}\n>","min: number","max: number","value: number","input: string","VALID_NON_NUMBER_INTERPRETATIONS: Readonly<\n\tRecord<ValidNonNumber, number | null>\n>","DEFAULT_NUMBER_CONSTRAINTS: NumberConstraints","e: React.ChangeEvent<HTMLInputElement>","e: React.MouseEvent<HTMLDivElement, MouseEvent>","newValue: number | null","NumberInput: FC<NumberInputProps>","value: string","TextInput: FC<TextInputProps>","DefaultFallback: FC<FallbackProps>","error: Error | string","errorInfo: ErrorInfo","newState:\n\t\t\t\t| ErrorBoundaryState\n\t\t\t\t| ((currState: ErrorBoundaryState) => ErrorBoundaryState)","currState: ErrorBoundaryState","props: ErrorBoundaryProps","error: Error","DEFAULT_JSON_EDITOR_COMPONENTS: JsonEditorComponents","newKey: string","newType: keyof JsonTypes","path: ReadonlyArray<number | string>","SubEditors: Record<\n\tkeyof JsonTypes,\n\tFC<JsonEditorProps_INTERNAL<any>>\n>","valOrUpdater: T | ((currVal: T) => T)","currVal: T","newKey: string","path: ReadonlyArray<number | string>","input: unknown","next: New | ((old: T) => New)","old: T","SubEditors: Record<\n\tkeyof JsonTypes,\n\tFC<JsonEditorProps_INTERNAL<any>>\n>"],"sources":["../../src/react-devtools/AtomIODevtools.tsx","../../src/react-devtools/elastic-input/ElasticInput.tsx","../../src/react-devtools/elastic-input/NumberInput.tsx","../../src/react-devtools/elastic-input/TextInput.tsx","../../src/react-devtools/error-boundary/DefaultFallback.tsx","../../src/react-devtools/error-boundary/ReactErrorBoundary.tsx","../../src/react-devtools/json-editor/default-components.tsx","../../src/react-devtools/json-editor/json-editor-internal.tsx","../../src/react-devtools/json-editor/developer-interface.tsx","../../src/react-devtools/json-editor/editors-by-type/utilities/cast-to-json.ts","../../src/react-devtools/json-editor/index.ts"],"sourcesContent":[],"mappings":";;;;cAWaA,gBAAgB,KAAA,CAAM;;;KCEvB,iBAAA,GAAoB,kBAC/B,oBAAoB,mBACpB;;;ADJYA,cCSAC,YDTgB,ECSF,yBDTQ,CCUlC,iBDVkC,CCUhB,mBDVgB,CCUI,gBDVJ,CAAA,ECUuB,gBDVvB,CAAA,GAAA;;;;;iBENnB,SAAA;cAeH;KACD,cAAA,WAAyB;AFVxBD,cEWA,gBFXgB,EAAM,CAAA,KAAA,EAAA,MAAA,EAAA,GAAA,KAAA,IEWuB,cFXvB;cEatBM,kCAAkC,SAC9C,OAAO;KAOI,iBAAA;cACC,iDAAgD;ADpBjD,KC8BA,iBAAA,GD9BA;EAAA,GAAA,EAAA,MAAA;EAAA,GAAA,EAAA,MACS;EAAA,aAApB,EAAA,MAAA;EAAA,QACA,EAAA,OAAA;CAAA;AAF+B,cCoCnBC,0BDpCmB,ECoCS,iBDpCT;AAOhC,KCoEK,gBAAA,GAAmB,ODjEtB,CCiE8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,CAAA,CAAA;EAApB,UAAuC,CAAA,EOmB5C,OPnB4C,COmBpC,oBPnBoC,CAAA;EAAA,MAAzD,CAAA,EAAA,MAAA,GAAA,SAAA;CAAA;AAD0B,cOwBd,UPxBc,EAAA,CAAA,CAAA,CAAA,CAAA;EAAA,IAAA;EAAA,GAAA;EAAA,IAAA;EAAA,MAAA;EAAA,MAAA;EAAA,UAAA;EAAA,QAAA;EAAA,SAAA;EAAA,MAAA;EAAA,KAAA;EAAA,UAAA,EOmCd,gBPnCc;EAAA;AAAA,CAAA,EOqCxB,ePrCwB,COqCR,CPrCQ,CAAA,EAAA,GOqCH,YPrCG;;;cQfd;SAGL,IAAA,CAAK,IAAA,CAAK;;ETGlB,MAAaD,EAAAA,MAAAA;USAJ,IAAA,CAAK,IAAA,CAAK;;;AREnB,CAAA;;;KSIY,kCAAkC,SACvC,aAAa,MAAM;cAGbiC,YAAY,aAClB,WACN,GAAG"}
|
|
@@ -4,7 +4,7 @@ import { getState, redo, undo } from "atom.io";
|
|
|
4
4
|
import { Component, Fragment, createContext, forwardRef, useContext, useId, useImperativeHandle, useLayoutEffect, useRef, useState } from "react";
|
|
5
5
|
import { Fragment as Fragment$1, jsx, jsxs } from "react/jsx-runtime";
|
|
6
6
|
import { StoreContext, useI, useO } from "atom.io/react";
|
|
7
|
-
import { LayoutGroup, motion
|
|
7
|
+
import { LayoutGroup, motion } from "motion/react";
|
|
8
8
|
import { attachIntrospectionStates, discoverType, jsonRefinery, prettyJson, primitiveRefinery } from "atom.io/introspection";
|
|
9
9
|
import { persistSync } from "atom.io/web";
|
|
10
10
|
|
|
@@ -327,7 +327,7 @@ const stringToArray = (str) => str.split(`,`);
|
|
|
327
327
|
const stringToObject = (str) => {
|
|
328
328
|
try {
|
|
329
329
|
return JSON.parse(str);
|
|
330
|
-
} catch (
|
|
330
|
+
} catch (_) {
|
|
331
331
|
return { [str]: str };
|
|
332
332
|
}
|
|
333
333
|
};
|
|
@@ -995,7 +995,7 @@ const TransactionUpdateFC = ({ serialNumber, transactionUpdate }) => {
|
|
|
995
995
|
children: [discoverType(param), ": "]
|
|
996
996
|
}), /* @__PURE__ */ jsx("span", {
|
|
997
997
|
className: "summary",
|
|
998
|
-
children: typeof param === `object` && param !== null && `type` in param && `target` in param ?
|
|
998
|
+
children: typeof param === `object` && param !== null && `type` in param && `target` in param ? JSON.stringify(param.type) : JSON.stringify(param)
|
|
999
999
|
})]
|
|
1000
1000
|
}, `param` + index);
|
|
1001
1001
|
})]
|
|
@@ -1245,7 +1245,10 @@ const AtomIODevtoolsInternal = () => {
|
|
|
1245
1245
|
drag: true,
|
|
1246
1246
|
dragConstraints: constraintsRef,
|
|
1247
1247
|
"data-css": "atom_io_devtools",
|
|
1248
|
-
transition:
|
|
1248
|
+
transition: {
|
|
1249
|
+
type: `spring`,
|
|
1250
|
+
bounce: .25
|
|
1251
|
+
},
|
|
1249
1252
|
style: devtoolsAreOpen ? {} : {
|
|
1250
1253
|
backgroundColor: `#0000`,
|
|
1251
1254
|
borderColor: `#0000`,
|