atom.io 0.33.5 → 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 -4
- package/dist/data/index.d.ts.map +1 -1
- package/dist/eslint-plugin/index.d.ts +0 -1
- package/dist/eslint-plugin/index.d.ts.map +1 -1
- package/dist/internal/index.d.ts.map +1 -1
- package/dist/internal/index.js +2 -2
- package/dist/internal/index.js.map +1 -1
- package/dist/introspection/index.js +1 -1
- package/dist/introspection/index.js.map +1 -1
- package/dist/json/index.d.ts +1 -2
- package/dist/json/index.d.ts.map +1 -1
- 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.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 -1
- package/dist/react-devtools/index.d.ts.map +1 -1
- package/dist/react-devtools/index.js +2 -2
- package/dist/react-devtools/index.js.map +1 -1
- 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 -24
- 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 -14
- 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 -16
- package/dist/realtime-server/index.d.ts.map +1 -1
- package/dist/realtime-server/index.js +1 -1
- package/dist/realtime-server/index.js.map +1 -1
- package/dist/realtime-testing/index.js +1 -1
- package/dist/realtime-testing/index.js.map +1 -1
- package/package.json +25 -16
- 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/timeline/time-travel.ts +0 -2
- package/src/introspection/attach-type-selectors.ts +1 -1
- package/src/main/index.ts +2 -8
- 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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "atom.io",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.6",
|
|
4
4
|
"description": "Composable and testable reactive data library.",
|
|
5
5
|
"homepage": "https://atom.io.fyi",
|
|
6
6
|
"sideEffects": false,
|
|
@@ -60,27 +60,30 @@
|
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
"devDependencies": {
|
|
63
|
-
"@eslint/core": "0.15.
|
|
63
|
+
"@eslint/core": "0.15.1",
|
|
64
|
+
"@storybook/addon-docs": "9.0.12",
|
|
65
|
+
"@storybook/addon-onboarding": "9.0.12",
|
|
66
|
+
"@storybook/react-vite": "9.0.12",
|
|
64
67
|
"@testing-library/react": "16.3.0",
|
|
65
|
-
"@types/bun": "npm:bun-types@1.2.
|
|
68
|
+
"@types/bun": "npm:bun-types@1.2.17",
|
|
66
69
|
"@types/eslint": "9.6.1",
|
|
67
70
|
"@types/estree": "1.0.8",
|
|
68
71
|
"@types/http-proxy": "1.17.16",
|
|
69
72
|
"@types/npmlog": "7.0.0",
|
|
70
73
|
"@types/react": "19.1.8",
|
|
71
74
|
"@types/tmp": "0.2.6",
|
|
72
|
-
"@typescript-eslint/parser": "8.
|
|
73
|
-
"@typescript-eslint/rule-tester": "8.
|
|
74
|
-
"@typescript-eslint/utils": "8.
|
|
75
|
-
"@vitest/coverage-v8": "3.2.
|
|
76
|
-
"@vitest/ui": "3.2.
|
|
77
|
-
"concurrently": "9.
|
|
78
|
-
"drizzle-kit": "0.31.
|
|
75
|
+
"@typescript-eslint/parser": "8.35.0",
|
|
76
|
+
"@typescript-eslint/rule-tester": "8.35.0",
|
|
77
|
+
"@typescript-eslint/utils": "8.35.0",
|
|
78
|
+
"@vitest/coverage-v8": "3.2.4",
|
|
79
|
+
"@vitest/ui": "3.2.4",
|
|
80
|
+
"concurrently": "9.2.0",
|
|
81
|
+
"drizzle-kit": "0.31.2",
|
|
79
82
|
"drizzle-orm": "0.44.2",
|
|
80
83
|
"eslint": "9.29.0",
|
|
81
84
|
"happy-dom": "18.0.1",
|
|
82
85
|
"http-proxy": "1.18.1",
|
|
83
|
-
"motion": "12.
|
|
86
|
+
"motion": "12.19.1",
|
|
84
87
|
"npmlog": "7.0.1",
|
|
85
88
|
"nyc": "17.1.0",
|
|
86
89
|
"postgres": "3.4.7",
|
|
@@ -91,14 +94,15 @@
|
|
|
91
94
|
"recoverage": "0.1.11",
|
|
92
95
|
"socket.io": "4.8.1",
|
|
93
96
|
"socket.io-client": "4.8.1",
|
|
97
|
+
"storybook": "9.0.12",
|
|
94
98
|
"tmp": "0.2.3",
|
|
95
|
-
"tsdown": "0.12.
|
|
99
|
+
"tsdown": "0.12.9",
|
|
96
100
|
"tsx": "4.20.3",
|
|
97
101
|
"typescript": "5.8.3",
|
|
98
|
-
"vite": "
|
|
102
|
+
"vite": "7.0.0",
|
|
99
103
|
"vite-tsconfig-paths": "5.1.4",
|
|
100
|
-
"vitest": "3.2.
|
|
101
|
-
"zod": "3.25.
|
|
104
|
+
"vitest": "3.2.4",
|
|
105
|
+
"zod": "3.25.67",
|
|
102
106
|
"break-check": "0.6.14"
|
|
103
107
|
},
|
|
104
108
|
"main": "./dist/main/index.js",
|
|
@@ -154,6 +158,9 @@
|
|
|
154
158
|
"import": "./dist/react-devtools/index.js",
|
|
155
159
|
"types": "./dist/react-devtools/index.d.ts"
|
|
156
160
|
},
|
|
161
|
+
"./react-devtools/css": {
|
|
162
|
+
"import": "./dist/react-devtools/index.css"
|
|
163
|
+
},
|
|
157
164
|
"./realtime": {
|
|
158
165
|
"import": "./dist/realtime/index.js",
|
|
159
166
|
"types": "./dist/realtime/index.d.ts"
|
|
@@ -200,6 +207,8 @@
|
|
|
200
207
|
"test:once:public": "cross-env IMPORT=dist vitest run public",
|
|
201
208
|
"test:manifest": "tsx __scripts__/manifest-test.node.ts",
|
|
202
209
|
"test:semver": "break-check --verbose",
|
|
203
|
-
"postversion": "biome format --write package.json"
|
|
210
|
+
"postversion": "biome format --write package.json",
|
|
211
|
+
"storybook": "storybook dev -p 6006",
|
|
212
|
+
"build-storybook": "storybook build"
|
|
204
213
|
}
|
|
205
214
|
}
|
|
@@ -7,12 +7,8 @@ import type {
|
|
|
7
7
|
import type { Json } from "atom.io/json"
|
|
8
8
|
import { selectJson } from "atom.io/json"
|
|
9
9
|
|
|
10
|
-
import {
|
|
11
|
-
|
|
12
|
-
type MutableAtom,
|
|
13
|
-
prettyPrintTokenType,
|
|
14
|
-
setIntoStore,
|
|
15
|
-
} from ".."
|
|
10
|
+
import type { MutableAtom } from ".."
|
|
11
|
+
import { cacheValue, setIntoStore } from ".."
|
|
16
12
|
import { markAtomAsDefault } from "../atom"
|
|
17
13
|
import { newest } from "../lineage"
|
|
18
14
|
import { deposit, type Store } from "../store"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { WritableFamilyToken, WritableToken } from "atom.io"
|
|
2
|
-
import { type Canonical, parseJson
|
|
2
|
+
import { type Canonical, parseJson } from "atom.io/json"
|
|
3
3
|
|
|
4
4
|
import { findInStore } from "../families"
|
|
5
5
|
import { getFamilyOfToken } from "../families/get-family-of-token"
|
package/src/main/index.ts
CHANGED
|
@@ -1,19 +1,13 @@
|
|
|
1
1
|
import type { Transceiver } from "atom.io/internal"
|
|
2
2
|
import type { Canonical, Json, stringified } from "atom.io/json"
|
|
3
3
|
|
|
4
|
-
import type {
|
|
5
|
-
import type { getState } from "./get-state"
|
|
4
|
+
import type { AtomFamilyToken } from "./atom"
|
|
6
5
|
import type {
|
|
7
6
|
SelectorFamilyToken,
|
|
8
7
|
WritableSelectorFamilyToken,
|
|
9
8
|
} from "./selector"
|
|
10
|
-
import type { setState } from "./set-state"
|
|
11
9
|
import type { TimelineToken } from "./timeline"
|
|
12
|
-
import type {
|
|
13
|
-
runTransaction,
|
|
14
|
-
transaction,
|
|
15
|
-
TransactionToken,
|
|
16
|
-
} from "./transaction"
|
|
10
|
+
import type { TransactionToken } from "./transaction"
|
|
17
11
|
|
|
18
12
|
export * from "./atom"
|
|
19
13
|
export * from "./dispose-state"
|
|
@@ -67,11 +67,9 @@ const TransactionUpdateFC: React.FC<{
|
|
|
67
67
|
{typeof param === `object` &&
|
|
68
68
|
param !== null &&
|
|
69
69
|
`type` in param &&
|
|
70
|
-
`target` in param
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
<>{JSON.stringify(param)}</>
|
|
74
|
-
)}
|
|
70
|
+
`target` in param
|
|
71
|
+
? JSON.stringify(param.type)
|
|
72
|
+
: JSON.stringify(param)}
|
|
75
73
|
</span>
|
|
76
74
|
</article>
|
|
77
75
|
)
|
|
@@ -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;
|
|
@@ -12,7 +12,7 @@ function round(value: number, decimalPlaces?: number): number {
|
|
|
12
12
|
const factor = 10 ** decimalPlaces
|
|
13
13
|
return Math.round(value * factor) / factor
|
|
14
14
|
}
|
|
15
|
-
function
|
|
15
|
+
function _roundAndPad(value: number, decimalPlaces?: number): string {
|
|
16
16
|
const roundedValue = round(value, decimalPlaces)
|
|
17
17
|
const paddedString = roundedValue.toFixed(decimalPlaces)
|
|
18
18
|
return paddedString
|
|
@@ -13,7 +13,7 @@ export type ErrorBoundaryProps = {
|
|
|
13
13
|
children: ReactNode
|
|
14
14
|
onError?: ((error: Error | string, errorInfo: ErrorInfo) => void) | undefined
|
|
15
15
|
Fallback?: FC<FallbackProps> | undefined
|
|
16
|
-
|
|
16
|
+
resetErrorState?: () => void
|
|
17
17
|
useErrorState?: () => [
|
|
18
18
|
ErrorBoundaryState,
|
|
19
19
|
(
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
import type {
|
|
2
|
-
AtomToken,
|
|
3
2
|
JoinToken,
|
|
4
3
|
MutableAtomToken,
|
|
5
4
|
ReadonlyPureSelectorFamilyToken,
|
|
6
|
-
ReadonlyPureSelectorToken,
|
|
7
5
|
} from "atom.io"
|
|
8
6
|
import { atom, getInternalRelations, join, selectorFamily } from "atom.io"
|
|
9
|
-
import { Join } from "atom.io/internal"
|
|
10
7
|
import type { SetRTXJson } from "atom.io/transceivers/set-rtx"
|
|
11
8
|
import { SetRTX } from "atom.io/transceivers/set-rtx"
|
|
12
9
|
|
|
@@ -49,7 +49,7 @@ export function prepareToExposeRealtimeContinuity({
|
|
|
49
49
|
userKey,
|
|
50
50
|
store,
|
|
51
51
|
).socketKeyOfUser
|
|
52
|
-
const
|
|
52
|
+
const _unsubscribeFromSocketTracking = subscribeToState(
|
|
53
53
|
store,
|
|
54
54
|
socketKeyState,
|
|
55
55
|
`sync-continuity:${continuityKey}:${userKey}`,
|