@bpmn-io/properties-panel 3.13.0 → 3.14.0

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 (90) hide show
  1. package/dist/assets/properties-panel.css +0 -4
  2. package/dist/index.esm.js +31 -22
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +66 -63
  5. package/dist/index.js.map +1 -1
  6. package/package.json +27 -30
  7. package/preact/README.md +2 -2
  8. package/preact/compat/LICENSE +21 -0
  9. package/preact/compat/dist/compat.js +1 -1
  10. package/preact/compat/dist/compat.js.map +1 -1
  11. package/preact/compat/dist/compat.mjs +1 -1
  12. package/preact/compat/dist/compat.module.js +1 -1
  13. package/preact/compat/dist/compat.module.js.map +1 -1
  14. package/preact/compat/dist/compat.umd.js +1 -1
  15. package/preact/compat/dist/compat.umd.js.map +1 -1
  16. package/preact/compat/server.browser.js +7 -0
  17. package/preact/compat/server.mjs +7 -0
  18. package/preact/compat/src/index.d.ts +22 -8
  19. package/preact/compat/src/index.js +35 -3
  20. package/preact/compat/src/portals.js +26 -35
  21. package/preact/compat/src/suspense.js +9 -6
  22. package/preact/compat/src/util.js +0 -5
  23. package/preact/debug/LICENSE +21 -0
  24. package/preact/debug/dist/debug.js +1 -1
  25. package/preact/debug/dist/debug.js.map +1 -1
  26. package/preact/debug/dist/debug.mjs +1 -1
  27. package/preact/debug/dist/debug.module.js +1 -1
  28. package/preact/debug/dist/debug.module.js.map +1 -1
  29. package/preact/debug/dist/debug.umd.js +1 -1
  30. package/preact/debug/dist/debug.umd.js.map +1 -1
  31. package/preact/debug/src/debug.js +124 -42
  32. package/preact/devtools/LICENSE +21 -0
  33. package/preact/devtools/dist/devtools.js +1 -1
  34. package/preact/devtools/dist/devtools.js.map +1 -1
  35. package/preact/devtools/dist/devtools.mjs +1 -1
  36. package/preact/devtools/dist/devtools.module.js +1 -1
  37. package/preact/devtools/dist/devtools.module.js.map +1 -1
  38. package/preact/devtools/dist/devtools.umd.js +1 -1
  39. package/preact/devtools/dist/devtools.umd.js.map +1 -1
  40. package/preact/devtools/src/devtools.js +1 -1
  41. package/preact/dist/preact.js +1 -1
  42. package/preact/dist/preact.js.map +1 -1
  43. package/preact/dist/preact.min.js +1 -1
  44. package/preact/dist/preact.min.js.map +1 -1
  45. package/preact/dist/preact.min.module.js +1 -1
  46. package/preact/dist/preact.min.module.js.map +1 -1
  47. package/preact/dist/preact.min.umd.js +1 -1
  48. package/preact/dist/preact.min.umd.js.map +1 -1
  49. package/preact/dist/preact.mjs +1 -1
  50. package/preact/dist/preact.module.js +1 -1
  51. package/preact/dist/preact.module.js.map +1 -1
  52. package/preact/dist/preact.umd.js +1 -1
  53. package/preact/dist/preact.umd.js.map +1 -1
  54. package/preact/hooks/LICENSE +21 -0
  55. package/preact/jsx-runtime/LICENSE +21 -0
  56. package/preact/jsx-runtime/dist/jsxRuntime.js +1 -1
  57. package/preact/jsx-runtime/dist/jsxRuntime.js.map +1 -1
  58. package/preact/jsx-runtime/dist/jsxRuntime.mjs +1 -1
  59. package/preact/jsx-runtime/dist/jsxRuntime.module.js +1 -1
  60. package/preact/jsx-runtime/dist/jsxRuntime.module.js.map +1 -1
  61. package/preact/jsx-runtime/dist/jsxRuntime.umd.js +1 -1
  62. package/preact/jsx-runtime/dist/jsxRuntime.umd.js.map +1 -1
  63. package/preact/jsx-runtime/src/index.d.ts +10 -0
  64. package/preact/jsx-runtime/src/index.js +113 -4
  65. package/preact/jsx-runtime/src/utils.js +36 -0
  66. package/preact/package.json +4 -3
  67. package/preact/src/clone-element.js +6 -4
  68. package/preact/src/component.js +34 -28
  69. package/preact/src/constants.js +13 -1
  70. package/preact/src/create-context.js +3 -3
  71. package/preact/src/create-element.js +14 -11
  72. package/preact/src/diff/catch-error.js +11 -7
  73. package/preact/src/diff/children.js +321 -218
  74. package/preact/src/diff/index.js +188 -142
  75. package/preact/src/diff/props.js +31 -38
  76. package/preact/src/index.d.ts +38 -19
  77. package/preact/src/index.js +1 -1
  78. package/preact/src/internal.d.ts +183 -153
  79. package/preact/src/jsx.d.ts +883 -19
  80. package/preact/src/options.js +1 -1
  81. package/preact/src/render.js +11 -11
  82. package/preact/src/util.js +2 -2
  83. package/preact/test-utils/dist/testUtils.js +1 -1
  84. package/preact/test-utils/dist/testUtils.js.map +1 -1
  85. package/preact/test-utils/dist/testUtils.mjs +1 -1
  86. package/preact/test-utils/dist/testUtils.module.js +1 -1
  87. package/preact/test-utils/dist/testUtils.module.js.map +1 -1
  88. package/preact/test-utils/dist/testUtils.umd.js +1 -1
  89. package/preact/test-utils/dist/testUtils.umd.js.map +1 -1
  90. package/preact/test-utils/src/index.js +13 -5
@@ -194,7 +194,10 @@ export function createElement(
194
194
  ClassAttributes<HTMLInputElement>)
195
195
  | null,
196
196
  ...children: ComponentChildren[]
197
- ): VNode<any>;
197
+ ): VNode<
198
+ | JSXInternal.DOMAttributes<HTMLInputElement> &
199
+ ClassAttributes<HTMLInputElement>
200
+ >;
198
201
  export function createElement<
199
202
  P extends JSXInternal.HTMLAttributes<T>,
200
203
  T extends HTMLElement
@@ -202,7 +205,7 @@ export function createElement<
202
205
  type: keyof JSXInternal.IntrinsicElements,
203
206
  props: (ClassAttributes<T> & P) | null,
204
207
  ...children: ComponentChildren[]
205
- ): VNode<any>;
208
+ ): VNode<ClassAttributes<T> & P>;
206
209
  export function createElement<
207
210
  P extends JSXInternal.SVGAttributes<T>,
208
211
  T extends HTMLElement
@@ -210,7 +213,7 @@ export function createElement<
210
213
  type: keyof JSXInternal.IntrinsicElements,
211
214
  props: (ClassAttributes<T> & P) | null,
212
215
  ...children: ComponentChildren[]
213
- ): VNode<any>;
216
+ ): VNode<ClassAttributes<T> & P>;
214
217
  export function createElement<T extends HTMLElement>(
215
218
  type: string,
216
219
  props:
@@ -219,12 +222,14 @@ export function createElement<T extends HTMLElement>(
219
222
  JSXInternal.SVGAttributes)
220
223
  | null,
221
224
  ...children: ComponentChildren[]
222
- ): VNode<any>;
225
+ ): VNode<
226
+ ClassAttributes<T> & JSXInternal.HTMLAttributes & JSXInternal.SVGAttributes
227
+ >;
223
228
  export function createElement<P>(
224
229
  type: ComponentType<P>,
225
230
  props: (Attributes & P) | null,
226
231
  ...children: ComponentChildren[]
227
- ): VNode<any>;
232
+ ): VNode<P>;
228
233
  export namespace createElement {
229
234
  export import JSX = JSXInternal;
230
235
  }
@@ -236,7 +241,10 @@ export function h(
236
241
  ClassAttributes<HTMLInputElement>)
237
242
  | null,
238
243
  ...children: ComponentChildren[]
239
- ): VNode<any>;
244
+ ): VNode<
245
+ | JSXInternal.DOMAttributes<HTMLInputElement> &
246
+ ClassAttributes<HTMLInputElement>
247
+ >;
240
248
  export function h<
241
249
  P extends JSXInternal.HTMLAttributes<T>,
242
250
  T extends HTMLElement
@@ -244,7 +252,7 @@ export function h<
244
252
  type: keyof JSXInternal.IntrinsicElements,
245
253
  props: (ClassAttributes<T> & P) | null,
246
254
  ...children: ComponentChildren[]
247
- ): VNode<any>;
255
+ ): VNode<ClassAttributes<T> & P>;
248
256
  export function h<
249
257
  P extends JSXInternal.SVGAttributes<T>,
250
258
  T extends HTMLElement
@@ -252,7 +260,7 @@ export function h<
252
260
  type: keyof JSXInternal.IntrinsicElements,
253
261
  props: (ClassAttributes<T> & P) | null,
254
262
  ...children: ComponentChildren[]
255
- ): VNode<any>;
263
+ ): VNode<ClassAttributes<T> & P>;
256
264
  export function h<T extends HTMLElement>(
257
265
  type: string,
258
266
  props:
@@ -261,12 +269,17 @@ export function h<T extends HTMLElement>(
261
269
  JSXInternal.SVGAttributes)
262
270
  | null,
263
271
  ...children: ComponentChildren[]
264
- ): VNode<any>;
272
+ ): VNode<
273
+ | (ClassAttributes<T> &
274
+ JSXInternal.HTMLAttributes &
275
+ JSXInternal.SVGAttributes)
276
+ | null
277
+ >;
265
278
  export function h<P>(
266
279
  type: ComponentType<P>,
267
280
  props: (Attributes & P) | null,
268
281
  ...children: ComponentChildren[]
269
- ): VNode<any>;
282
+ ): VNode<Attributes & P>;
270
283
  export namespace h {
271
284
  export import JSX = JSXInternal;
272
285
  }
@@ -274,15 +287,15 @@ export namespace h {
274
287
  //
275
288
  // Preact render
276
289
  // -----------------------------------
277
-
278
290
  interface ContainerNode {
279
- nodeType: Node['nodeType'];
280
- parentNode: Node['parentNode'];
281
- firstChild: Node['firstChild'];
282
- insertBefore: Node['insertBefore'];
283
- appendChild: Node['appendChild'];
284
- removeChild: Node['removeChild'];
285
- childNodes: ArrayLike<Node>;
291
+ readonly nodeType: number;
292
+ readonly parentNode: ContainerNode | null;
293
+ readonly firstChild: ContainerNode | null;
294
+ readonly childNodes: ArrayLike<ContainerNode>;
295
+
296
+ insertBefore(node: ContainerNode, child: ContainerNode | null): ContainerNode;
297
+ appendChild(node: ContainerNode): ContainerNode;
298
+ removeChild(child: ContainerNode): ContainerNode;
286
299
  }
287
300
 
288
301
  export function render(vnode: ComponentChild, parent: ContainerNode): void;
@@ -336,6 +349,12 @@ export interface Options {
336
349
  _addHookName?(name: string | number): void;
337
350
  __suspenseDidResolve?(vnode: VNode, cb: () => void): void;
338
351
  // __canSuspenseResolve?(vnode: VNode, cb: () => void): void;
352
+
353
+ /**
354
+ * Customize attribute serialization when a precompiled JSX transform
355
+ * is used.
356
+ */
357
+ attr?(name: string, value: any): string | void;
339
358
  }
340
359
 
341
360
  export const options: Options;
@@ -361,7 +380,7 @@ export interface PreactConsumer<T> extends Consumer<T> {}
361
380
  export interface Provider<T>
362
381
  extends FunctionComponent<{
363
382
  value: T;
364
- children: ComponentChildren;
383
+ children?: ComponentChildren;
365
384
  }> {}
366
385
  export interface PreactProvider<T> extends Provider<T> {}
367
386
  export type ContextType<C extends Context<any>> = C extends Context<infer T>
@@ -6,7 +6,7 @@ export {
6
6
  createRef,
7
7
  isValidElement
8
8
  } from './create-element';
9
- export { Component } from './component';
9
+ export { BaseComponent as Component } from './component';
10
10
  export { cloneElement } from './clone-element';
11
11
  export { createContext } from './create-context';
12
12
  export { toChildArray } from './diff/children';
@@ -1,156 +1,186 @@
1
1
  import * as preact from './index';
2
2
 
3
- export enum HookType {
4
- useState = 1,
5
- useReducer = 2,
6
- useEffect = 3,
7
- useLayoutEffect = 4,
8
- useRef = 5,
9
- useImperativeHandle = 6,
10
- useMemo = 7,
11
- useCallback = 8,
12
- useContext = 9,
13
- useErrorBoundary = 10,
14
- // Not a real hook, but the devtools treat is as such
15
- useDebugvalue = 11
16
- }
17
-
18
- export interface DevSource {
19
- fileName: string;
20
- lineNumber: number;
21
- }
22
-
23
- export interface ErrorInfo {
24
- componentStack?: string;
25
- }
26
-
27
- export interface Options extends preact.Options {
28
- /** Attach a hook that is invoked before render, mainly to check the arguments. */
29
- _root?(
30
- vnode: ComponentChild,
31
- parent: Element | Document | ShadowRoot | DocumentFragment
32
- ): void;
33
- /** Attach a hook that is invoked before a vnode is diffed. */
34
- _diff?(vnode: VNode): void;
35
- /** Attach a hook that is invoked after a tree was mounted or was updated. */
36
- _commit?(vnode: VNode, commitQueue: Component[]): void;
37
- /** Attach a hook that is invoked before a vnode has rendered. */
38
- _render?(vnode: VNode): void;
39
- /** Attach a hook that is invoked before a hook's state is queried. */
40
- _hook?(component: Component, index: number, type: HookType): void;
41
- /** Bypass effect execution. Currenty only used in devtools for hooks inspection */
42
- _skipEffects?: boolean;
43
- /** Attach a hook that is invoked after an error is caught in a component but before calling lifecycle hooks */
44
- _catchError(
45
- error: any,
46
- vnode: VNode,
47
- oldVNode: VNode | undefined,
48
- errorInfo: ErrorInfo | undefined
49
- ): void;
50
- }
51
-
52
- export type ComponentChild =
53
- | VNode<any>
54
- | string
55
- | number
56
- | boolean
57
- | null
58
- | undefined;
59
- export type ComponentChildren = ComponentChild[] | ComponentChild;
60
-
61
- export interface FunctionComponent<P = {}> extends preact.FunctionComponent<P> {
62
- // Internally, createContext uses `contextType` on a Function component to
63
- // implement the Consumer component
64
- contextType?: PreactContext;
65
-
66
- // Internally, createContext stores a ref to the context object on the Provider
67
- // Function component to help devtools
68
- _contextRef?: PreactContext;
69
-
70
- // Define these properties as undefined on FunctionComponent to get rid of
71
- // some errors in `diff()`
72
- getDerivedStateFromProps?: undefined;
73
- getDerivedStateFromError?: undefined;
74
- }
75
-
76
- export interface ComponentClass<P = {}> extends preact.ComponentClass<P> {
77
- _contextRef?: any;
78
-
79
- // Override public contextType with internal PreactContext type
80
- contextType?: PreactContext;
81
- }
82
-
83
- // Redefine ComponentType using our new internal FunctionComponent interface above
84
- export type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
85
-
86
- export interface PreactElement extends HTMLElement {
87
- _children?: VNode<any> | null;
88
- /** Event listeners to support event delegation */
89
- _listeners?: Record<string, (e: Event) => void>;
90
-
91
- // Preact uses this attribute to detect SVG nodes
92
- ownerSVGElement?: SVGElement | null;
93
-
94
- // style: HTMLElement["style"]; // From HTMLElement
95
-
96
- data?: string | number; // From Text node
97
- }
98
-
99
- // We use the `current` property to differentiate between the two kinds of Refs so
100
- // internally we'll define `current` on both to make TypeScript happy
101
- type RefObject<T> = { current: T | null };
102
- type RefCallback<T> = { (instance: T | null): void; current: undefined };
103
- type Ref<T> = RefObject<T> | RefCallback<T>;
104
-
105
- export interface VNode<P = {}> extends preact.VNode<P> {
106
- // Redefine type here using our internal ComponentType type
107
- type: string | ComponentType<P>;
108
- props: P & { children: ComponentChildren };
109
- ref?: Ref<any> | null;
110
- _children: Array<VNode<any>> | null;
111
- _parent: VNode | null;
112
- _depth: number | null;
113
- /**
114
- * The [first (for Fragments)] DOM child of a VNode
115
- */
116
- _dom: PreactElement | null;
117
- /**
118
- * The last dom child of a Fragment, or components that return a Fragment
119
- */
120
- _nextDom: PreactElement | null;
121
- _component: Component | null;
122
- _hydrating: boolean | null;
123
- constructor: undefined;
124
- _original: number;
125
- }
126
-
127
- export interface Component<P = {}, S = {}> extends preact.Component<P, S> {
128
- // When component is functional component, this is reset to functional component
129
- constructor: ComponentType<P>;
130
- state: S; // Override Component["state"] to not be readonly for internal use, specifically Hooks
131
- base?: PreactElement;
132
-
133
- _dirty: boolean;
134
- _force?: boolean;
135
- _renderCallbacks: Array<() => void>; // Only class components
136
- _stateCallbacks: Array<() => void>; // Only class components
137
- _globalContext?: any;
138
- _vnode?: VNode<P> | null;
139
- _nextState?: S | null; // Only class components
140
- /** Only used in the devtools to later dirty check if state has changed */
141
- _prevState?: S | null;
142
- /**
143
- * Pointer to the parent dom node. This is only needed for top-level Fragment
144
- * components or array returns.
145
- */
146
- _parentDom?: PreactElement | null;
147
- // Always read, set only when handling error
148
- _processingException?: Component<any, any> | null;
149
- // Always read, set only when handling error. This is used to indicate at diffTime to set _processingException
150
- _pendingError?: Component<any, any> | null;
151
- }
152
-
153
- export interface PreactContext extends preact.Context<any> {
154
- _id: string;
155
- _defaultValue: any;
3
+ declare global {
4
+ export enum HookType {
5
+ useState = 1,
6
+ useReducer = 2,
7
+ useEffect = 3,
8
+ useLayoutEffect = 4,
9
+ useRef = 5,
10
+ useImperativeHandle = 6,
11
+ useMemo = 7,
12
+ useCallback = 8,
13
+ useContext = 9,
14
+ useErrorBoundary = 10,
15
+ // Not a real hook, but the devtools treat is as such
16
+ useDebugvalue = 11
17
+ }
18
+
19
+ export interface DevSource {
20
+ fileName: string;
21
+ lineNumber: number;
22
+ }
23
+
24
+ export interface ErrorInfo {
25
+ componentStack?: string;
26
+ }
27
+
28
+ export interface Options extends preact.Options {
29
+ /** Attach a hook that is invoked before render, mainly to check the arguments. */
30
+ _root?(vnode: ComponentChild, parent: preact.ContainerNode): void;
31
+ /** Attach a hook that is invoked before a vnode is diffed. */
32
+ _diff?(vnode: VNode): void;
33
+ /** Attach a hook that is invoked after a tree was mounted or was updated. */
34
+ _commit?(vnode: VNode, commitQueue: Component[]): void;
35
+ /** Attach a hook that is invoked before a vnode has rendered. */
36
+ _render?(vnode: VNode): void;
37
+ /** Attach a hook that is invoked before a hook's state is queried. */
38
+ _hook?(component: Component, index: number, type: HookType): void;
39
+ /** Bypass effect execution. Currenty only used in devtools for hooks inspection */
40
+ _skipEffects?: boolean;
41
+ /** Attach a hook that is invoked after an error is caught in a component but before calling lifecycle hooks */
42
+ _catchError(
43
+ error: any,
44
+ vnode: VNode,
45
+ oldVNode?: VNode | undefined,
46
+ errorInfo?: ErrorInfo | undefined
47
+ ): void;
48
+ }
49
+
50
+ export type ComponentChild =
51
+ | VNode<any>
52
+ | string
53
+ | number
54
+ | boolean
55
+ | null
56
+ | undefined;
57
+ export type ComponentChildren = ComponentChild[] | ComponentChild;
58
+
59
+ export interface FunctionComponent<P = {}>
60
+ extends preact.FunctionComponent<P> {
61
+ // Internally, createContext uses `contextType` on a Function component to
62
+ // implement the Consumer component
63
+ contextType?: PreactContext;
64
+
65
+ // Internally, createContext stores a ref to the context object on the Provider
66
+ // Function component to help devtools
67
+ _contextRef?: PreactContext;
68
+
69
+ // Define these properties as undefined on FunctionComponent to get rid of
70
+ // some errors in `diff()`
71
+ getDerivedStateFromProps?: undefined;
72
+ getDerivedStateFromError?: undefined;
73
+ }
74
+
75
+ export interface ComponentClass<P = {}> extends preact.ComponentClass<P> {
76
+ _contextRef?: any;
77
+
78
+ // Override public contextType with internal PreactContext type
79
+ contextType?: PreactContext;
80
+ }
81
+
82
+ // Redefine ComponentType using our new internal FunctionComponent interface above
83
+ export type ComponentType<P = {}> = ComponentClass<P> | FunctionComponent<P>;
84
+
85
+ export interface PreactElement extends preact.ContainerNode {
86
+ // SVG detection
87
+ readonly ownerSVGElement?: SVGElement['ownerSVGElement'];
88
+ // Property used to update Text nodes
89
+ data?: CharacterData['data'];
90
+ // Property to set __dangerouslySetInnerHTML
91
+ innerHTML?: Element['innerHTML'];
92
+
93
+ // Attribute reading and setting
94
+ readonly attributes?: Element['attributes'];
95
+ setAttribute?: Element['setAttribute'];
96
+ removeAttribute?: Element['removeAttribute'];
97
+
98
+ // Event listeners
99
+ addEventListener?: Element['addEventListener'];
100
+ removeEventListener?: Element['removeEventListener'];
101
+
102
+ // Setting styles
103
+ readonly style?: CSSStyleDeclaration;
104
+
105
+ // nextSibling required for inserting nodes
106
+ readonly nextSibling: ContainerNode | null;
107
+
108
+ // Used to match DOM nodes to VNodes during hydration. Note: doesn't exist
109
+ // on Text nodes
110
+ readonly localName?: string;
111
+
112
+ // Input handling
113
+ value?: HTMLInputElement['value'];
114
+ checked?: HTMLInputElement['checked'];
115
+
116
+ // Internal properties
117
+ _children?: VNode<any> | null;
118
+ /** Event listeners to support event delegation */
119
+ _listeners?: Record<string, (e: Event) => void>;
120
+ }
121
+
122
+ export interface PreactEvent extends Event {
123
+ _dispatched?: number;
124
+ }
125
+
126
+ // We use the `current` property to differentiate between the two kinds of Refs so
127
+ // internally we'll define `current` on both to make TypeScript happy
128
+ type RefObject<T> = { current: T | null };
129
+ type RefCallback<T> = { (instance: T | null): void; current: undefined };
130
+ type Ref<T> = RefObject<T> | RefCallback<T>;
131
+
132
+ export interface VNode<P = {}> extends preact.VNode<P> {
133
+ // Redefine type here using our internal ComponentType type, and specify
134
+ // string has an undefined `defaultProps` property to make TS happy
135
+ type: (string & { defaultProps: undefined }) | ComponentType<P>;
136
+ props: P & { children: ComponentChildren };
137
+ ref?: Ref<any> | null;
138
+ _children: Array<VNode<any>> | null;
139
+ _parent: VNode | null;
140
+ _depth: number | null;
141
+ /**
142
+ * The [first (for Fragments)] DOM child of a VNode
143
+ */
144
+ _dom: PreactElement | null;
145
+ /**
146
+ * The last dom child of a Fragment, or components that return a Fragment
147
+ */
148
+ _nextDom: PreactElement | null | undefined;
149
+ _component: Component | null;
150
+ constructor: undefined;
151
+ _original: number;
152
+ _index: number;
153
+ _flags: number;
154
+ }
155
+
156
+ export interface Component<P = {}, S = {}> extends preact.Component<P, S> {
157
+ // When component is functional component, this is reset to functional component
158
+ constructor: ComponentType<P>;
159
+ state: S; // Override Component["state"] to not be readonly for internal use, specifically Hooks
160
+ base?: PreactElement;
161
+
162
+ _dirty: boolean;
163
+ _force?: boolean;
164
+ _renderCallbacks: Array<() => void>; // Only class components
165
+ _stateCallbacks: Array<() => void>; // Only class components
166
+ _globalContext?: any;
167
+ _vnode?: VNode<P> | null;
168
+ _nextState?: S | null; // Only class components
169
+ /** Only used in the devtools to later dirty check if state has changed */
170
+ _prevState?: S | null;
171
+ /**
172
+ * Pointer to the parent dom node. This is only needed for top-level Fragment
173
+ * components or array returns.
174
+ */
175
+ _parentDom?: PreactElement | null;
176
+ // Always read, set only when handling error
177
+ _processingException?: Component<any, any> | null;
178
+ // Always read, set only when handling error. This is used to indicate at diffTime to set _processingException
179
+ _pendingError?: Component<any, any> | null;
180
+ }
181
+
182
+ export interface PreactContext extends preact.Context<any> {
183
+ _id: string;
184
+ _defaultValue: any;
185
+ }
156
186
  }