atom.io 0.15.3 → 0.15.5

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.
Files changed (125) hide show
  1. package/data/dist/index.cjs +29 -16
  2. package/data/dist/index.cjs.map +1 -1
  3. package/data/dist/index.js +30 -17
  4. package/data/dist/index.js.map +1 -1
  5. package/data/src/join.ts +15 -2
  6. package/dist/index.cjs +32 -6
  7. package/dist/index.cjs.map +1 -1
  8. package/dist/index.d.ts +153 -85
  9. package/dist/index.js +157 -1
  10. package/dist/index.js.map +1 -1
  11. package/internal/dist/index.cjs +98 -159
  12. package/internal/dist/index.cjs.map +1 -1
  13. package/internal/dist/index.d.ts +44 -32
  14. package/internal/dist/index.js +89 -105
  15. package/internal/dist/index.js.map +1 -1
  16. package/internal/src/atom/create-regular-atom.ts +1 -1
  17. package/internal/src/get-environment-data.ts +18 -0
  18. package/internal/src/index.ts +2 -0
  19. package/internal/src/ingest-updates/index.ts +3 -0
  20. package/internal/src/ingest-updates/ingest-atom-update.ts +14 -0
  21. package/internal/src/ingest-updates/ingest-selector-update.ts +17 -0
  22. package/internal/src/ingest-updates/ingest-transaction-update.ts +22 -0
  23. package/internal/src/mutable/tracker.ts +4 -4
  24. package/internal/src/not-found-error.ts +3 -8
  25. package/internal/src/operation.ts +4 -4
  26. package/internal/src/selector/create-read-write-selector.ts +6 -4
  27. package/internal/src/selector/create-readonly-selector.ts +3 -3
  28. package/internal/src/selector/register-selector.ts +6 -4
  29. package/internal/src/selector/update-selector-atoms.ts +2 -2
  30. package/internal/src/store/deposit.ts +5 -5
  31. package/internal/src/store/store.ts +4 -4
  32. package/internal/src/store/withdraw-new-family-member.ts +8 -11
  33. package/internal/src/store/withdraw.ts +11 -12
  34. package/internal/src/subscribe/subscribe-to-state.ts +2 -2
  35. package/internal/src/subscribe/subscribe-to-timeline.ts +4 -4
  36. package/internal/src/timeline/add-atom-to-timeline.ts +7 -7
  37. package/internal/src/timeline/create-timeline.ts +29 -21
  38. package/internal/src/timeline/time-travel.ts +19 -45
  39. package/internal/src/transaction/apply-transaction.ts +5 -51
  40. package/internal/src/transaction/build-transaction.ts +9 -2
  41. package/internal/src/transaction/create-transaction.ts +4 -4
  42. package/internal/src/transaction/index.ts +2 -2
  43. package/introspection/dist/index.cjs +9 -9
  44. package/introspection/dist/index.cjs.map +1 -1
  45. package/introspection/dist/index.d.ts +6 -6
  46. package/introspection/dist/index.js +9 -9
  47. package/introspection/dist/index.js.map +1 -1
  48. package/introspection/src/attach-atom-index.ts +4 -4
  49. package/introspection/src/attach-introspection-states.ts +2 -2
  50. package/introspection/src/attach-selector-index.ts +4 -4
  51. package/introspection/src/attach-timeline-family.ts +6 -6
  52. package/introspection/src/attach-timeline-index.ts +6 -4
  53. package/introspection/src/attach-transaction-index.ts +1 -1
  54. package/introspection/src/index.ts +1 -1
  55. package/package.json +11 -12
  56. package/react/dist/index.cjs.map +1 -1
  57. package/react/dist/index.d.ts +4 -4
  58. package/react/dist/index.js.map +1 -1
  59. package/react/src/store-hooks.ts +5 -5
  60. package/react-devtools/dist/index.cjs +7 -9
  61. package/react-devtools/dist/index.cjs.map +1 -1
  62. package/react-devtools/dist/index.d.ts +10 -265
  63. package/react-devtools/dist/index.js +7 -9
  64. package/react-devtools/dist/index.js.map +1 -1
  65. package/react-devtools/src/StateEditor.tsx +3 -3
  66. package/react-devtools/src/StateIndex.tsx +3 -3
  67. package/react-devtools/src/TimelineIndex.tsx +2 -2
  68. package/react-devtools/src/Updates.tsx +1 -1
  69. package/realtime-client/dist/index.cjs +68 -66
  70. package/realtime-client/dist/index.cjs.map +1 -1
  71. package/realtime-client/dist/index.d.ts +8 -7
  72. package/realtime-client/dist/index.js +63 -62
  73. package/realtime-client/dist/index.js.map +1 -1
  74. package/realtime-client/src/pull-family-member.ts +1 -1
  75. package/realtime-client/src/pull.ts +1 -1
  76. package/realtime-client/src/push.ts +2 -3
  77. package/realtime-client/src/realtime-state.ts +11 -3
  78. package/realtime-client/src/server-action.ts +65 -65
  79. package/realtime-react/dist/index.cjs +90 -56
  80. package/realtime-react/dist/index.cjs.map +1 -1
  81. package/realtime-react/dist/index.d.ts +11 -6
  82. package/realtime-react/dist/index.js +89 -55
  83. package/realtime-react/dist/index.js.map +1 -1
  84. package/realtime-react/src/on-mount.ts +23 -0
  85. package/realtime-react/src/realtime-context.tsx +14 -6
  86. package/realtime-react/src/use-pull-family-member.ts +5 -8
  87. package/realtime-react/src/use-pull-mutable-family-member.ts +4 -7
  88. package/realtime-react/src/use-pull-mutable.ts +4 -7
  89. package/realtime-react/src/use-pull.ts +5 -8
  90. package/realtime-react/src/use-push.ts +5 -9
  91. package/realtime-react/src/use-realtime-service.ts +30 -0
  92. package/realtime-react/src/use-server-action.ts +8 -8
  93. package/realtime-server/dist/index.cjs +109 -40
  94. package/realtime-server/dist/index.cjs.map +1 -1
  95. package/realtime-server/dist/index.d.ts +7 -6
  96. package/realtime-server/dist/index.js +90 -39
  97. package/realtime-server/dist/index.js.map +1 -1
  98. package/realtime-server/src/hook-composition/expose-family.ts +2 -2
  99. package/realtime-server/src/hook-composition/expose-mutable-family.ts +1 -1
  100. package/realtime-server/src/hook-composition/expose-single.ts +1 -1
  101. package/realtime-server/src/hook-composition/index.ts +2 -1
  102. package/realtime-server/src/hook-composition/receive-state.ts +2 -2
  103. package/realtime-server/src/hook-composition/receive-transaction.ts +13 -32
  104. package/realtime-server/src/hook-composition/sync-transaction.ts +92 -0
  105. package/realtime-testing/dist/index.cjs +3 -3
  106. package/realtime-testing/dist/index.cjs.map +1 -1
  107. package/realtime-testing/dist/index.js +2 -2
  108. package/realtime-testing/dist/index.js.map +1 -1
  109. package/realtime-testing/src/setup-realtime-test.tsx +4 -3
  110. package/src/atom.ts +30 -7
  111. package/src/dispose.ts +2 -2
  112. package/src/find-state.ts +64 -0
  113. package/src/get-state.ts +2 -2
  114. package/src/index.ts +23 -0
  115. package/src/logger.ts +1 -0
  116. package/src/selector.ts +16 -0
  117. package/src/set-state.ts +2 -2
  118. package/src/silo.ts +2 -2
  119. package/src/subscribe.ts +7 -11
  120. package/src/timeline.ts +20 -12
  121. package/src/transaction.ts +31 -12
  122. package/src/validators.ts +74 -0
  123. package/dist/chunk-K22LR3V6.js +0 -138
  124. package/dist/chunk-K22LR3V6.js.map +0 -1
  125. package/internal/src/set-state/copy-mutable-into-new-store.ts +0 -34
@@ -1,11 +1,11 @@
1
+ import * as Internal from 'atom.io/internal';
1
2
  import * as atom_io from 'atom.io';
2
- import { FamilyMetadata as FamilyMetadata$1, ƒn as _n, TransactionUpdate, TransactorsWithRun, MutableAtomToken, AtomToken, StateToken, TimelineUpdate, StateUpdate, AtomFamily, ReadonlySelectorFamily, SelectorFamily, ReadonlySelectorToken, SelectorToken, TransactionToken, TimelineToken, AtomIOLogger, Logger } from 'atom.io';
3
- import { Json } from 'atom.io/json';
3
+ import { AtomToken, ReadonlySelectorToken, SelectorToken } from 'atom.io';
4
4
 
5
5
  type ClassSignature = abstract new (...args: any) => any;
6
6
 
7
- type RefinementStrategy = ClassSignature | Refinement$1<unknown, any>;
8
- type Supported<Refine extends RefinementStrategy> = Refine extends Refinement$1<unknown, infer T> ? T : Refine extends ClassSignature ? InstanceType<Refine> : never;
7
+ type RefinementStrategy = ClassSignature | Refinement<unknown, any>;
8
+ type Supported<Refine extends RefinementStrategy> = Refine extends Refinement<unknown, infer T> ? T : Refine extends ClassSignature ? InstanceType<Refine> : never;
9
9
  type RefinementSupport = Record<string, RefinementStrategy>;
10
10
  declare class Refinery<SupportedTypes extends RefinementSupport> {
11
11
  supported: SupportedTypes;
@@ -18,276 +18,21 @@ declare class Refinery<SupportedTypes extends RefinementSupport> {
18
18
  }[keyof SupportedTypes] | null;
19
19
  }
20
20
 
21
- interface Refinement$1<A, B extends A> {
21
+ interface Refinement<A, B extends A> {
22
22
  (a: A): a is B;
23
23
  }
24
24
 
25
25
  type PlainObject = Record<keyof any, unknown>;
26
26
 
27
- type FamilyMetadata = {
28
- key: string;
29
- subKey: string;
30
- };
31
-
32
- declare class Subject<T> {
33
- Subscriber: (value: T) => void;
34
- subscribers: Map<string, this[`Subscriber`]>;
35
- subscribe(key: string, subscriber: this[`Subscriber`]): () => void;
36
- private unsubscribe;
37
- next(value: T): void;
38
- }
39
- declare class StatefulSubject<T> extends Subject<T> {
40
- state: T;
41
- constructor(initialState: T);
42
- next(value: T): void;
43
- }
44
-
45
- type Selector<T> = {
46
- key: string;
47
- type: `selector`;
48
- family?: FamilyMetadata$1;
49
- install: (store: Store) => void;
50
- subject: Subject<{
51
- newValue: T;
52
- oldValue: T;
53
- }>;
54
- get: () => T;
55
- set: (newValue: T | ((oldValue: T) => T)) => void;
56
- };
57
- type ReadonlySelector<T> = {
58
- key: string;
59
- type: `readonly_selector`;
60
- family?: FamilyMetadata$1;
61
- install: (store: Store) => void;
62
- subject: Subject<{
63
- newValue: T;
64
- oldValue: T;
65
- }>;
66
- get: () => T;
67
- };
68
-
69
- type Transaction<ƒ extends _n> = {
70
- key: string;
71
- type: `transaction`;
72
- install: (store: Store) => void;
73
- subject: Subject<TransactionUpdate<ƒ>>;
74
- run: (...parameters: Parameters<ƒ>) => ReturnType<ƒ>;
75
- };
76
-
77
- type TransactionMeta<ƒ extends _n> = {
78
- phase: `applying` | `building`;
79
- time: number;
80
- update: TransactionUpdate<ƒ>;
81
- transactors: TransactorsWithRun;
82
- };
83
-
84
- type primitive = boolean | number | string | null;
85
-
86
- type Serializable = primitive | Readonly<{
87
- [key: string]: Serializable;
88
- }> | ReadonlyArray<Serializable>;
89
- type Object$1<Key extends string = string, Value extends Serializable = Serializable> = Record<Key, Value>;
90
-
91
- type Refinement<Unrefined, Refined extends Unrefined> = (value: Unrefined) => value is Refined;
92
- type Cardinality = `1:1` | `1:n` | `n:n`;
93
-
94
- interface JunctionEntries<Content extends Object$1 | null> extends Object$1 {
95
- readonly relations: [string, string[]][];
96
- readonly contents: [string, Content][];
97
- }
98
- interface JunctionSchema<ASide extends string, BSide extends string> extends Object$1 {
99
- readonly between: [a: ASide, b: BSide];
100
- readonly cardinality: Cardinality;
101
- }
102
- type BaseExternalStoreConfiguration = {
103
- addRelation: (a: string, b: string) => void;
104
- deleteRelation: (a: string, b: string) => void;
105
- replaceRelationsSafely: (a: string, bs: string[]) => void;
106
- replaceRelationsUnsafely: (a: string, bs: string[]) => void;
107
- getRelatedKeys: (key: string) => Set<string> | undefined;
108
- has: (a: string, b?: string) => boolean;
109
- };
110
- type ExternalStoreWithContentConfiguration<Content extends Object$1> = {
111
- getContent: (contentKey: string) => Content | undefined;
112
- setContent: (contentKey: string, content: Content) => void;
113
- deleteContent: (contentKey: string) => void;
114
- };
115
- type Empty<Obj extends object> = {
116
- [Key in keyof Obj]?: undefined;
117
- };
118
- type ExternalStoreConfiguration<Content extends Object$1 | null> = Content extends Object$1 ? BaseExternalStoreConfiguration & ExternalStoreWithContentConfiguration<Content> : BaseExternalStoreConfiguration & Empty<ExternalStoreWithContentConfiguration<Object$1>>;
119
- type JunctionAdvancedConfiguration<Content extends Object$1 | null> = {
120
- externalStore?: ExternalStoreConfiguration<Content>;
121
- isContent?: Refinement<unknown, Content>;
122
- makeContentKey?: (a: string, b: string) => string;
123
- };
124
- type JunctionJSON<ASide extends string, BSide extends string, Content extends Object$1 | null> = JunctionEntries<Content> & JunctionSchema<ASide, BSide>;
125
- declare class Junction<const ASide extends string, const BSide extends string, const Content extends Object$1 | null = null> {
126
- readonly a: ASide;
127
- readonly b: BSide;
128
- readonly cardinality: Cardinality;
129
- readonly relations: Map<string, Set<string>>;
130
- readonly contents: Map<string, Content>;
131
- isContent: Refinement<unknown, Content> | null;
132
- makeContentKey: (a: string, b: string) => string;
133
- getRelatedKeys(key: string): Set<string> | undefined;
134
- protected addRelation(a: string, b: string): void;
135
- protected deleteRelation(a: string, b: string): void;
136
- protected replaceRelationsUnsafely(a: string, bs: string[]): void;
137
- protected replaceRelationsSafely(a: string, bs: string[]): void;
138
- protected getContentInternal(contentKey: string): Content | undefined;
139
- protected setContent(contentKey: string, content: Content): void;
140
- protected deleteContent(contentKey: string): void;
141
- constructor(data: JunctionSchema<ASide, BSide> & Partial<JunctionEntries<Content>>, config?: JunctionAdvancedConfiguration<Content>);
142
- toJSON(): JunctionJSON<ASide, BSide, Content>;
143
- set(a: string, ...rest: Content extends null ? [b: string] : [b: string, content: Content]): this;
144
- set(relation: {
145
- [Key in ASide | BSide]: string;
146
- }, ...rest: Content extends null ? [] | [b?: undefined] : [content: Content]): this;
147
- delete(a: string, b?: string): this;
148
- delete(relation: Record<ASide | BSide, string> | Record<ASide, string> | Record<BSide, string>, b?: undefined): this;
149
- getRelatedKey(key: string): string | undefined;
150
- replaceRelations(a: string, relations: Content extends null ? string[] : Record<string, Content>, config?: {
151
- reckless: boolean;
152
- }): this;
153
- getContent(a: string, b: string): Content | undefined;
154
- getRelationEntries(input: Record<ASide, string> | Record<BSide, string>): [string, Content][];
155
- has(a: string, b?: string): boolean;
156
- }
157
-
158
- interface Lineage {
159
- parent: typeof this | null;
160
- child: typeof this | null;
161
- }
162
-
163
- interface Transceiver<Signal extends Json.Serializable> {
164
- do: (update: Signal) => void;
165
- undo: (update: Signal) => void;
166
- subscribe: (key: string, fn: (update: Signal) => void) => () => void;
167
- cacheUpdateNumber: number;
168
- getUpdateNumber: (update: Signal) => number;
169
- }
170
-
171
- /**
172
- * @internal Give the tracker a transceiver state and a store, and it will
173
- * subscribe to the transceiver's inner value. When the inner value changes,
174
- * the tracker will update its own state to reflect the change.
175
- */
176
- declare class Tracker<Mutable extends Transceiver<any>> {
177
- private Update;
178
- private initializeState;
179
- private unsubscribeFromInnerValue;
180
- private unsubscribeFromState;
181
- private observeCore;
182
- private updateCore;
183
- mutableState: MutableAtomToken<Mutable, Json.Serializable>;
184
- latestUpdateState: AtomToken<typeof this.Update | null>;
185
- dispose: () => void;
186
- constructor(mutableState: MutableAtomToken<Mutable, Json.Serializable>, store: Store);
187
- }
188
-
189
- interface MutableAtom<T> extends Atom<T> {
190
- mutable: true;
191
- }
192
-
193
- type OperationProgress = {
194
- open: false;
195
- } | {
196
- open: true;
197
- done: Set<string>;
198
- prev: Map<string, any>;
199
- time: number;
200
- token: StateToken<any>;
201
- };
202
-
203
- type TimelineAtomUpdate = StateUpdate<unknown> & {
204
- key: string;
205
- type: `atom_update`;
206
- timestamp: number;
207
- family?: FamilyMetadata$1;
208
- };
209
- type TimelineSelectorUpdate = {
210
- key: string;
211
- type: `selector_update`;
212
- timestamp: number;
213
- atomUpdates: Omit<TimelineAtomUpdate, `timestamp`>[];
214
- };
215
- type TimelineTransactionUpdate = TransactionUpdate<_n> & {
216
- key: string;
217
- type: `transaction_update`;
218
- timestamp: number;
219
- };
220
- type Timeline = {
221
- type: `timeline`;
222
- key: string;
223
- at: number;
224
- shouldCapture?: (update: TimelineUpdate, timeline: Timeline) => boolean;
225
- timeTraveling: `into_future` | `into_past` | null;
226
- history: TimelineUpdate[];
227
- selectorTime: number | null;
228
- transactionKey: string | null;
229
- install: (store: Store) => void;
230
- subject: Subject<TimelineAtomUpdate | TimelineSelectorUpdate | TimelineTransactionUpdate | `redo` | `undo`>;
231
- };
232
-
233
- declare class Store implements Lineage {
234
- parent: Store | null;
235
- child: Store | null;
236
- valueMap: Map<string, any>;
237
- atoms: Map<string, Atom<any> | MutableAtom<any>>;
238
- selectors: Map<string, Selector<any>>;
239
- readonlySelectors: Map<string, ReadonlySelector<any>>;
240
- trackers: Map<string, Tracker<Transceiver<any>>>;
241
- families: Map<string, AtomFamily<any, any> | ReadonlySelectorFamily<any, any> | SelectorFamily<any, any>>;
242
- timelines: Map<string, Timeline>;
243
- transactions: Map<string, Transaction<_n>>;
244
- atomsThatAreDefault: Set<string>;
245
- timelineAtoms: Junction<"timelineKey", "atomKey", null>;
246
- selectorAtoms: Junction<"selectorKey", "atomKey", null>;
247
- selectorGraph: Junction<"upstreamSelectorKey", "downstreamSelectorKey", {
248
- source: string;
249
- }>;
250
- subject: {
251
- atomCreation: Subject<AtomToken<unknown>>;
252
- selectorCreation: Subject<ReadonlySelectorToken<unknown> | SelectorToken<unknown>>;
253
- transactionCreation: Subject<TransactionToken<_n>>;
254
- timelineCreation: Subject<TimelineToken>;
255
- transactionApplying: StatefulSubject<TransactionMeta<_n> | null>;
256
- operationStatus: Subject<OperationProgress>;
257
- };
258
- operation: OperationProgress;
259
- transactionMeta: TransactionMeta<_n> | null;
260
- config: {
261
- name: string;
262
- };
263
- loggers: AtomIOLogger[];
264
- logger: Logger;
265
- constructor(name: string, store?: Store | null);
266
- }
267
-
268
- type Atom<T> = {
269
- key: string;
270
- type: `atom`;
271
- mutable?: boolean;
272
- family?: FamilyMetadata;
273
- install: (store: Store) => void;
274
- subject: Subject<{
275
- newValue: T;
276
- oldValue: T;
277
- }>;
278
- default: T | (() => T);
279
- cleanup?: () => void;
280
- };
281
-
282
- type AtomTokenIndex = StateTokenIndex<AtomToken<unknown>>;
27
+ type AtomTokenIndex = WritableTokenIndex<AtomToken<unknown>>;
283
28
 
284
29
  type FamilyNode<Token extends AtomToken<unknown> | ReadonlySelectorToken<unknown> | SelectorToken<unknown>> = {
285
30
  key: string;
286
31
  familyMembers: Record<string, Token>;
287
32
  };
288
- type StateTokenIndex<Token extends AtomToken<unknown> | ReadonlySelectorToken<unknown> | SelectorToken<unknown>> = Record<string, FamilyNode<Token> | Token>;
33
+ type WritableTokenIndex<Token extends AtomToken<unknown> | ReadonlySelectorToken<unknown> | SelectorToken<unknown>> = Record<string, FamilyNode<Token> | Token>;
289
34
 
290
- type SelectorTokenIndex = StateTokenIndex<ReadonlySelectorToken<unknown> | SelectorToken<unknown>>;
35
+ type SelectorTokenIndex = WritableTokenIndex<ReadonlySelectorToken<unknown> | SelectorToken<unknown>>;
291
36
 
292
37
  type Delta = {
293
38
  summary: string;
@@ -320,8 +65,8 @@ declare const atomIndex: atom_io.ReadonlySelectorToken<AtomTokenIndex>;
320
65
  declare const selectorIndex: atom_io.ReadonlySelectorToken<SelectorTokenIndex>;
321
66
  declare const transactionIndex: atom_io.ReadonlySelectorToken<atom_io.TransactionToken<atom_io.ƒn>[]>;
322
67
  declare const findTransactionLogState: atom_io.ReadonlySelectorFamily<atom_io.TransactionUpdate<atom_io.ƒn>[]>;
323
- declare const timelineIndex: atom_io.ReadonlySelectorToken<atom_io.TimelineToken[]>;
324
- declare const findTimelineState: atom_io.ReadonlySelectorFamily<Timeline>;
68
+ declare const timelineIndex: atom_io.ReadonlySelectorToken<atom_io.TimelineToken<any>[]>;
69
+ declare const findTimelineState: atom_io.ReadonlySelectorFamily<Internal.Timeline<any>>;
325
70
  declare const devtoolsAreOpenState: atom_io.AtomToken<boolean>;
326
71
  type DevtoolsView = `atoms` | `selectors` | `timelines` | `transactions`;
327
72
  declare const devtoolsViewSelectionState: atom_io.AtomToken<DevtoolsView>;
@@ -688,7 +688,6 @@ var valueToText = (numericValue) => {
688
688
  };
689
689
  var NumberInput = ({
690
690
  autoSize = false,
691
- customCss,
692
691
  decimalPlaces,
693
692
  disabled = false,
694
693
  label,
@@ -737,7 +736,7 @@ var NumberInput = ({
737
736
  }
738
737
  };
739
738
  const displayValue = temporaryEntry != null ? temporaryEntry : valueToText(value ? refine(value) : value);
740
- return /* @__PURE__ */ jsxs("span", { css: customCss, children: [
739
+ return /* @__PURE__ */ jsxs("span", { children: [
741
740
  label && /* @__PURE__ */ jsx("label", { htmlFor: id, children: label }),
742
741
  autoSize ? /* @__PURE__ */ jsx(
743
742
  ElasticInput,
@@ -775,10 +774,9 @@ var TextInput = ({
775
774
  set,
776
775
  label,
777
776
  placeholder,
778
- customCss,
779
777
  autoSize = false
780
778
  }) => {
781
- return /* @__PURE__ */ jsxs("span", { css: customCss, children: [
779
+ return /* @__PURE__ */ jsxs("span", { children: [
782
780
  /* @__PURE__ */ jsx("label", { children: label }),
783
781
  autoSize ? /* @__PURE__ */ jsx(
784
782
  ElasticInput,
@@ -822,7 +820,7 @@ var JsonEditor_INTERNAL = ({
822
820
  isReadonly = () => false,
823
821
  isHidden = () => false,
824
822
  className,
825
- customCss,
823
+ style,
826
824
  Header: HeaderDisplay,
827
825
  Components
828
826
  }) => {
@@ -830,7 +828,7 @@ var JsonEditor_INTERNAL = ({
830
828
  const refined = dataIsJson ? refineJsonType(data) : { type: `non-json`, data };
831
829
  const SubEditor = dataIsJson ? SubEditors[refined.type] : NonJsonEditor;
832
830
  const disabled = isReadonly(path);
833
- return isHidden(path) ? null : /* @__PURE__ */ jsx(Components.ErrorBoundary, { children: /* @__PURE__ */ jsxs(Components.EditorWrapper, { className, customCss, children: [
831
+ return isHidden(path) ? null : /* @__PURE__ */ jsx(Components.ErrorBoundary, { children: /* @__PURE__ */ jsxs(Components.EditorWrapper, { className, style, children: [
834
832
  remove && /* @__PURE__ */ jsx(
835
833
  Components.Button,
836
834
  {
@@ -1615,7 +1613,7 @@ var DEFAULT_JSON_EDITOR_COMPONENTS = {
1615
1613
  children
1616
1614
  }
1617
1615
  ),
1618
- EditorWrapper: ({ children, customCss, className }) => /* @__PURE__ */ jsx("div", { className: `json_editor ` + className, css: customCss, children }),
1616
+ EditorWrapper: ({ children, className }) => /* @__PURE__ */ jsx("div", { className: `json_editor ` + className, children }),
1619
1617
  EditorLayout: ({
1620
1618
  DeleteButton,
1621
1619
  Header,
@@ -1657,8 +1655,8 @@ var JsonEditor = ({
1657
1655
  isHidden = () => false,
1658
1656
  // isIllegal = () => false,
1659
1657
  className,
1660
- customCss,
1661
1658
  Header,
1659
+ style,
1662
1660
  Components: CustomComponents = {}
1663
1661
  }) => {
1664
1662
  const Components = __spreadValues(__spreadValues({}, DEFAULT_JSON_EDITOR_COMPONENTS), CustomComponents);
@@ -1675,8 +1673,8 @@ var JsonEditor = ({
1675
1673
  isReadonly,
1676
1674
  isHidden,
1677
1675
  className,
1678
- customCss,
1679
1676
  Header,
1677
+ style,
1680
1678
  Components
1681
1679
  }
1682
1680
  );