@uniformdev/context-react 19.35.2 → 19.35.3-alpha.82
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 +428 -0
- package/package.json +3 -3
package/dist/index.d.mts
ADDED
|
@@ -0,0 +1,428 @@
|
|
|
1
|
+
import { Quirks, ScoreVector, Context, PersonalizedVariant, TestVariant, EnrichmentData } from '@uniformdev/context';
|
|
2
|
+
import * as react from 'react';
|
|
3
|
+
import react__default, { ReactNode, ReactElement, HTMLAttributes } from 'react';
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Provides reactive access to the Uniform Context's current visitor quirks values
|
|
7
|
+
* This can be used when you want to read current quirk values directly.
|
|
8
|
+
*/
|
|
9
|
+
declare function useQuirks(): Quirks;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Provides reactive access to the Uniform Context's current visitor scores values.
|
|
13
|
+
* This can be used when you want to read current score values directly.
|
|
14
|
+
*/
|
|
15
|
+
declare function useScores(): ScoreVector;
|
|
16
|
+
|
|
17
|
+
type VariantOutputType = 'edge' | 'standard';
|
|
18
|
+
interface UniformContextProps$1 {
|
|
19
|
+
/** The configured Uniform Context instance to provide */
|
|
20
|
+
context: Context;
|
|
21
|
+
/** The output type to emit.
|
|
22
|
+
* - `standard` - Emits selected variants as HTML suitable for SSR or SSG
|
|
23
|
+
* - `edge` - Emits all variants suitable for Edge-side personalization selection
|
|
24
|
+
*
|
|
25
|
+
* @default standard
|
|
26
|
+
*/
|
|
27
|
+
outputType?: VariantOutputType;
|
|
28
|
+
/**
|
|
29
|
+
* Whether to track a route change to the current URL when this component is rendered.
|
|
30
|
+
*
|
|
31
|
+
* @default true
|
|
32
|
+
*/
|
|
33
|
+
trackRouteOnRender?: boolean;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to include Uniform transfer state tag in the page HTML.
|
|
36
|
+
* - `always` - Always include Uniform transfer state tag in the page HTML
|
|
37
|
+
* - `never` - Never include Uniform transfer state tag in the page HTML
|
|
38
|
+
* - `server-only` - Only include Uniform transfer state tag in the page HTML when `window` is undefined, i.e. on the server or during SSG.
|
|
39
|
+
*
|
|
40
|
+
* @default server-only
|
|
41
|
+
* */
|
|
42
|
+
includeTransferState?: 'always' | 'never' | 'server-only';
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Registers Uniform Context with a React app (as a React Context!).
|
|
46
|
+
* Children of this component may use the Context via hooks, such as useScores and useUniformContext.
|
|
47
|
+
*/
|
|
48
|
+
declare const UniformContext: react__default.FC<react__default.PropsWithChildren<UniformContextProps$1>>;
|
|
49
|
+
|
|
50
|
+
type UniformContextProps = {
|
|
51
|
+
context: Context;
|
|
52
|
+
outputType: VariantOutputType;
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
interface UseUniformContextOptions {
|
|
56
|
+
throwOnMissingProvider?: boolean;
|
|
57
|
+
}
|
|
58
|
+
interface UseUniformContextThrowsOptions extends UseUniformContextOptions {
|
|
59
|
+
throwOnMissingProvider: true;
|
|
60
|
+
}
|
|
61
|
+
interface UseUniformContextDoesNotThrowOptions extends UseUniformContextOptions {
|
|
62
|
+
throwOnMissingProvider: false;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Gets the current Uniform Context object (must be within a UniformContext component ancestor)
|
|
66
|
+
*
|
|
67
|
+
* IMPORTANT: The Context object's scores and quirks (i.e. context.scores) are NOT reactive when fetched with this hook.
|
|
68
|
+
* If you need reactive scores or quirks use `useScores` and `useQuirks` instead.
|
|
69
|
+
*/
|
|
70
|
+
declare function useUniformContext(options?: UseUniformContextThrowsOptions): UniformContextProps;
|
|
71
|
+
declare function useUniformContext(options?: UseUniformContextDoesNotThrowOptions): UniformContextProps | undefined;
|
|
72
|
+
|
|
73
|
+
type PersonalizeWrapperComponent = react__default.ComponentType<{
|
|
74
|
+
children: ReactNode;
|
|
75
|
+
personalizationOccurred: boolean;
|
|
76
|
+
}>;
|
|
77
|
+
type PersonalizedVariationComponent<TVariation> = react__default.ComponentType<TVariation & {
|
|
78
|
+
personalizationResult: {
|
|
79
|
+
variation: PersonalizedVariant;
|
|
80
|
+
personalizationOccurred: boolean;
|
|
81
|
+
};
|
|
82
|
+
}>;
|
|
83
|
+
type PersonalizeComponentProps<TVariation extends PersonalizedVariant> = {
|
|
84
|
+
/**
|
|
85
|
+
* Name of the personalized placement. Should be unique to this placement location and set of variants.
|
|
86
|
+
* This name is emitted to analytics after personalization executes.
|
|
87
|
+
*/
|
|
88
|
+
name: string;
|
|
89
|
+
/** The possible variations of the content to render depending on personalization conditions */
|
|
90
|
+
variations: TVariation[];
|
|
91
|
+
/** A React component to use to render a selected variant. */
|
|
92
|
+
component: PersonalizedVariationComponent<TVariation>;
|
|
93
|
+
/** A React component that will be used to wrap all personalized variants. If no variants match, the wrapper is not rendered. */
|
|
94
|
+
wrapperComponent?: PersonalizeWrapperComponent;
|
|
95
|
+
/** The number of variations to select. Use for personalized lists where the `count` most relevant should be shown. */
|
|
96
|
+
count?: number;
|
|
97
|
+
};
|
|
98
|
+
declare function Personalize<TVariation extends PersonalizedVariant>(props: PersonalizeComponentProps<TVariation>): ReactElement | null;
|
|
99
|
+
|
|
100
|
+
type TVariation = TestVariant;
|
|
101
|
+
interface TestComponentProps<TVariation extends TestVariant> {
|
|
102
|
+
/** Name of the test that is running. */
|
|
103
|
+
name: string;
|
|
104
|
+
/** Variation list that this test will selected from. */
|
|
105
|
+
variations: TVariation[];
|
|
106
|
+
/**
|
|
107
|
+
* Determines what should be rendered if testing is in a "loading" state.
|
|
108
|
+
* default: shows the default variation while loading
|
|
109
|
+
* none: shows nothing while loading
|
|
110
|
+
* React component: shows the component while loading
|
|
111
|
+
*/
|
|
112
|
+
loadingMode?: 'default' | 'none' | react__default.ComponentType;
|
|
113
|
+
/** A React component to use to render the test variant. */
|
|
114
|
+
component: react__default.ComponentType<TVariation>;
|
|
115
|
+
}
|
|
116
|
+
declare const Test: <TVariation_1 extends TestVariant>(props: TestComponentProps<TVariation_1>) => ReactElement | null;
|
|
117
|
+
|
|
118
|
+
type TrackFragmentProps = {
|
|
119
|
+
/** Behavior that will be pushed when tracking occurs. */
|
|
120
|
+
behavior: EnrichmentData | EnrichmentData[] | undefined;
|
|
121
|
+
/** Nested elements that are related to the behavior specified. */
|
|
122
|
+
children: ReactNode;
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* Tracks visitor behavior by adding enrichment score when they are shown a route with this component on it.
|
|
126
|
+
*
|
|
127
|
+
* NOTE: if you wish to track on the visitor seeing the content in the browser viewport instead,
|
|
128
|
+
* use Track instead of TrackFragment.
|
|
129
|
+
*/
|
|
130
|
+
declare const TrackFragment: ({ behavior, children }: TrackFragmentProps) => react__default.JSX.Element;
|
|
131
|
+
|
|
132
|
+
type TrackProps = TrackFragmentProps & HTMLAttributes<HTMLElement> & {
|
|
133
|
+
/**
|
|
134
|
+
* Element tag that will be used for tracking.
|
|
135
|
+
*
|
|
136
|
+
* @defaultValue div
|
|
137
|
+
*/
|
|
138
|
+
tagName?: keyof JSX.IntrinsicElements;
|
|
139
|
+
/**
|
|
140
|
+
* Disables visiblity checking on this component, will trigger behavior immediately on page load.
|
|
141
|
+
*
|
|
142
|
+
* @defaultValue If supported, `false`. `true` when window is undefined or when IntersectionObserver is not supported by browser.
|
|
143
|
+
*/
|
|
144
|
+
disableVisibilityTrigger?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* Trigger behavior when this element is at least `threshold` visible.
|
|
147
|
+
*
|
|
148
|
+
* @defaultValue 0.5
|
|
149
|
+
*/
|
|
150
|
+
threshold?: number | number[];
|
|
151
|
+
};
|
|
152
|
+
/**
|
|
153
|
+
* Tracks visitor behavior by adding enrichment score when they view content wrapped in this component.
|
|
154
|
+
* When the Track component is sufficiently in the viewport, it will trigger the enrichment values specified
|
|
155
|
+
* in `behavior` to the current visitor. If the browser does not support IntersectionObserver, the behavior will
|
|
156
|
+
* be triggered immediately on page load instead.
|
|
157
|
+
*
|
|
158
|
+
* NOTE: this component necessarily renders a wrapping tag to attach the IntersectionObserver to; this can result
|
|
159
|
+
* in DOM changes when personalization is added. If that's undesirable use TrackFragment instead which tracks
|
|
160
|
+
* only on page load, but does not render a wrapping tag.
|
|
161
|
+
*/
|
|
162
|
+
declare const Track: ({ behavior, children, tagName, threshold, disableVisibilityTrigger, ...rest }: TrackProps) => react.DOMElement<{
|
|
163
|
+
ref: react.RefObject<HTMLElement>;
|
|
164
|
+
defaultChecked?: boolean | undefined;
|
|
165
|
+
defaultValue?: string | number | readonly string[] | undefined;
|
|
166
|
+
suppressContentEditableWarning?: boolean | undefined;
|
|
167
|
+
suppressHydrationWarning?: boolean | undefined;
|
|
168
|
+
accessKey?: string | undefined;
|
|
169
|
+
autoFocus?: boolean | undefined;
|
|
170
|
+
className?: string | undefined;
|
|
171
|
+
contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
|
|
172
|
+
contextMenu?: string | undefined;
|
|
173
|
+
dir?: string | undefined;
|
|
174
|
+
draggable?: (boolean | "true" | "false") | undefined;
|
|
175
|
+
hidden?: boolean | undefined;
|
|
176
|
+
id?: string | undefined;
|
|
177
|
+
lang?: string | undefined;
|
|
178
|
+
nonce?: string | undefined;
|
|
179
|
+
placeholder?: string | undefined;
|
|
180
|
+
slot?: string | undefined;
|
|
181
|
+
spellCheck?: (boolean | "true" | "false") | undefined;
|
|
182
|
+
style?: react.CSSProperties | undefined;
|
|
183
|
+
tabIndex?: number | undefined;
|
|
184
|
+
title?: string | undefined;
|
|
185
|
+
translate?: "yes" | "no" | undefined;
|
|
186
|
+
radioGroup?: string | undefined;
|
|
187
|
+
role?: react.AriaRole | undefined;
|
|
188
|
+
about?: string | undefined;
|
|
189
|
+
content?: string | undefined;
|
|
190
|
+
datatype?: string | undefined;
|
|
191
|
+
inlist?: any;
|
|
192
|
+
prefix?: string | undefined;
|
|
193
|
+
property?: string | undefined;
|
|
194
|
+
rel?: string | undefined;
|
|
195
|
+
resource?: string | undefined;
|
|
196
|
+
rev?: string | undefined;
|
|
197
|
+
typeof?: string | undefined;
|
|
198
|
+
vocab?: string | undefined;
|
|
199
|
+
autoCapitalize?: string | undefined;
|
|
200
|
+
autoCorrect?: string | undefined;
|
|
201
|
+
autoSave?: string | undefined;
|
|
202
|
+
color?: string | undefined;
|
|
203
|
+
itemProp?: string | undefined;
|
|
204
|
+
itemScope?: boolean | undefined;
|
|
205
|
+
itemType?: string | undefined;
|
|
206
|
+
itemID?: string | undefined;
|
|
207
|
+
itemRef?: string | undefined;
|
|
208
|
+
results?: number | undefined;
|
|
209
|
+
security?: string | undefined;
|
|
210
|
+
unselectable?: "on" | "off" | undefined;
|
|
211
|
+
inputMode?: "url" | "search" | "text" | "none" | "tel" | "email" | "numeric" | "decimal" | undefined;
|
|
212
|
+
is?: string | undefined;
|
|
213
|
+
'aria-activedescendant'?: string | undefined;
|
|
214
|
+
'aria-atomic'?: (boolean | "true" | "false") | undefined;
|
|
215
|
+
'aria-autocomplete'?: "none" | "list" | "inline" | "both" | undefined;
|
|
216
|
+
'aria-busy'?: (boolean | "true" | "false") | undefined;
|
|
217
|
+
'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
218
|
+
'aria-colcount'?: number | undefined;
|
|
219
|
+
'aria-colindex'?: number | undefined;
|
|
220
|
+
'aria-colspan'?: number | undefined;
|
|
221
|
+
'aria-controls'?: string | undefined;
|
|
222
|
+
'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
|
|
223
|
+
'aria-describedby'?: string | undefined;
|
|
224
|
+
'aria-details'?: string | undefined;
|
|
225
|
+
'aria-disabled'?: (boolean | "true" | "false") | undefined;
|
|
226
|
+
'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
|
|
227
|
+
'aria-errormessage'?: string | undefined;
|
|
228
|
+
'aria-expanded'?: (boolean | "true" | "false") | undefined;
|
|
229
|
+
'aria-flowto'?: string | undefined;
|
|
230
|
+
'aria-grabbed'?: (boolean | "true" | "false") | undefined;
|
|
231
|
+
'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
|
|
232
|
+
'aria-hidden'?: (boolean | "true" | "false") | undefined;
|
|
233
|
+
'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
|
|
234
|
+
'aria-keyshortcuts'?: string | undefined;
|
|
235
|
+
'aria-label'?: string | undefined;
|
|
236
|
+
'aria-labelledby'?: string | undefined;
|
|
237
|
+
'aria-level'?: number | undefined;
|
|
238
|
+
'aria-live'?: "off" | "assertive" | "polite" | undefined;
|
|
239
|
+
'aria-modal'?: (boolean | "true" | "false") | undefined;
|
|
240
|
+
'aria-multiline'?: (boolean | "true" | "false") | undefined;
|
|
241
|
+
'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
|
|
242
|
+
'aria-orientation'?: "horizontal" | "vertical" | undefined;
|
|
243
|
+
'aria-owns'?: string | undefined;
|
|
244
|
+
'aria-placeholder'?: string | undefined;
|
|
245
|
+
'aria-posinset'?: number | undefined;
|
|
246
|
+
'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
|
|
247
|
+
'aria-readonly'?: (boolean | "true" | "false") | undefined;
|
|
248
|
+
'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
|
|
249
|
+
'aria-required'?: (boolean | "true" | "false") | undefined;
|
|
250
|
+
'aria-roledescription'?: string | undefined;
|
|
251
|
+
'aria-rowcount'?: number | undefined;
|
|
252
|
+
'aria-rowindex'?: number | undefined;
|
|
253
|
+
'aria-rowspan'?: number | undefined;
|
|
254
|
+
'aria-selected'?: (boolean | "true" | "false") | undefined;
|
|
255
|
+
'aria-setsize'?: number | undefined;
|
|
256
|
+
'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
|
|
257
|
+
'aria-valuemax'?: number | undefined;
|
|
258
|
+
'aria-valuemin'?: number | undefined;
|
|
259
|
+
'aria-valuenow'?: number | undefined;
|
|
260
|
+
'aria-valuetext'?: string | undefined;
|
|
261
|
+
dangerouslySetInnerHTML?: {
|
|
262
|
+
__html: string | TrustedHTML;
|
|
263
|
+
} | undefined;
|
|
264
|
+
onCopy?: react.ClipboardEventHandler<HTMLElement> | undefined;
|
|
265
|
+
onCopyCapture?: react.ClipboardEventHandler<HTMLElement> | undefined;
|
|
266
|
+
onCut?: react.ClipboardEventHandler<HTMLElement> | undefined;
|
|
267
|
+
onCutCapture?: react.ClipboardEventHandler<HTMLElement> | undefined;
|
|
268
|
+
onPaste?: react.ClipboardEventHandler<HTMLElement> | undefined;
|
|
269
|
+
onPasteCapture?: react.ClipboardEventHandler<HTMLElement> | undefined;
|
|
270
|
+
onCompositionEnd?: react.CompositionEventHandler<HTMLElement> | undefined;
|
|
271
|
+
onCompositionEndCapture?: react.CompositionEventHandler<HTMLElement> | undefined;
|
|
272
|
+
onCompositionStart?: react.CompositionEventHandler<HTMLElement> | undefined;
|
|
273
|
+
onCompositionStartCapture?: react.CompositionEventHandler<HTMLElement> | undefined;
|
|
274
|
+
onCompositionUpdate?: react.CompositionEventHandler<HTMLElement> | undefined;
|
|
275
|
+
onCompositionUpdateCapture?: react.CompositionEventHandler<HTMLElement> | undefined;
|
|
276
|
+
onFocus?: react.FocusEventHandler<HTMLElement> | undefined;
|
|
277
|
+
onFocusCapture?: react.FocusEventHandler<HTMLElement> | undefined;
|
|
278
|
+
onBlur?: react.FocusEventHandler<HTMLElement> | undefined;
|
|
279
|
+
onBlurCapture?: react.FocusEventHandler<HTMLElement> | undefined;
|
|
280
|
+
onChange?: react.FormEventHandler<HTMLElement> | undefined;
|
|
281
|
+
onChangeCapture?: react.FormEventHandler<HTMLElement> | undefined;
|
|
282
|
+
onBeforeInput?: react.FormEventHandler<HTMLElement> | undefined;
|
|
283
|
+
onBeforeInputCapture?: react.FormEventHandler<HTMLElement> | undefined;
|
|
284
|
+
onInput?: react.FormEventHandler<HTMLElement> | undefined;
|
|
285
|
+
onInputCapture?: react.FormEventHandler<HTMLElement> | undefined;
|
|
286
|
+
onReset?: react.FormEventHandler<HTMLElement> | undefined;
|
|
287
|
+
onResetCapture?: react.FormEventHandler<HTMLElement> | undefined;
|
|
288
|
+
onSubmit?: react.FormEventHandler<HTMLElement> | undefined;
|
|
289
|
+
onSubmitCapture?: react.FormEventHandler<HTMLElement> | undefined;
|
|
290
|
+
onInvalid?: react.FormEventHandler<HTMLElement> | undefined;
|
|
291
|
+
onInvalidCapture?: react.FormEventHandler<HTMLElement> | undefined;
|
|
292
|
+
onLoad?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
293
|
+
onLoadCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
294
|
+
onError?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
295
|
+
onErrorCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
296
|
+
onKeyDown?: react.KeyboardEventHandler<HTMLElement> | undefined;
|
|
297
|
+
onKeyDownCapture?: react.KeyboardEventHandler<HTMLElement> | undefined;
|
|
298
|
+
onKeyPress?: react.KeyboardEventHandler<HTMLElement> | undefined;
|
|
299
|
+
onKeyPressCapture?: react.KeyboardEventHandler<HTMLElement> | undefined;
|
|
300
|
+
onKeyUp?: react.KeyboardEventHandler<HTMLElement> | undefined;
|
|
301
|
+
onKeyUpCapture?: react.KeyboardEventHandler<HTMLElement> | undefined;
|
|
302
|
+
onAbort?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
303
|
+
onAbortCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
304
|
+
onCanPlay?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
305
|
+
onCanPlayCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
306
|
+
onCanPlayThrough?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
307
|
+
onCanPlayThroughCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
308
|
+
onDurationChange?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
309
|
+
onDurationChangeCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
310
|
+
onEmptied?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
311
|
+
onEmptiedCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
312
|
+
onEncrypted?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
313
|
+
onEncryptedCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
314
|
+
onEnded?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
315
|
+
onEndedCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
316
|
+
onLoadedData?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
317
|
+
onLoadedDataCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
318
|
+
onLoadedMetadata?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
319
|
+
onLoadedMetadataCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
320
|
+
onLoadStart?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
321
|
+
onLoadStartCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
322
|
+
onPause?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
323
|
+
onPauseCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
324
|
+
onPlay?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
325
|
+
onPlayCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
326
|
+
onPlaying?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
327
|
+
onPlayingCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
328
|
+
onProgress?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
329
|
+
onProgressCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
330
|
+
onRateChange?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
331
|
+
onRateChangeCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
332
|
+
onResize?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
333
|
+
onResizeCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
334
|
+
onSeeked?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
335
|
+
onSeekedCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
336
|
+
onSeeking?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
337
|
+
onSeekingCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
338
|
+
onStalled?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
339
|
+
onStalledCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
340
|
+
onSuspend?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
341
|
+
onSuspendCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
342
|
+
onTimeUpdate?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
343
|
+
onTimeUpdateCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
344
|
+
onVolumeChange?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
345
|
+
onVolumeChangeCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
346
|
+
onWaiting?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
347
|
+
onWaitingCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
348
|
+
onAuxClick?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
349
|
+
onAuxClickCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
350
|
+
onClick?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
351
|
+
onClickCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
352
|
+
onContextMenu?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
353
|
+
onContextMenuCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
354
|
+
onDoubleClick?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
355
|
+
onDoubleClickCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
356
|
+
onDrag?: react.DragEventHandler<HTMLElement> | undefined;
|
|
357
|
+
onDragCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
358
|
+
onDragEnd?: react.DragEventHandler<HTMLElement> | undefined;
|
|
359
|
+
onDragEndCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
360
|
+
onDragEnter?: react.DragEventHandler<HTMLElement> | undefined;
|
|
361
|
+
onDragEnterCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
362
|
+
onDragExit?: react.DragEventHandler<HTMLElement> | undefined;
|
|
363
|
+
onDragExitCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
364
|
+
onDragLeave?: react.DragEventHandler<HTMLElement> | undefined;
|
|
365
|
+
onDragLeaveCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
366
|
+
onDragOver?: react.DragEventHandler<HTMLElement> | undefined;
|
|
367
|
+
onDragOverCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
368
|
+
onDragStart?: react.DragEventHandler<HTMLElement> | undefined;
|
|
369
|
+
onDragStartCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
370
|
+
onDrop?: react.DragEventHandler<HTMLElement> | undefined;
|
|
371
|
+
onDropCapture?: react.DragEventHandler<HTMLElement> | undefined;
|
|
372
|
+
onMouseDown?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
373
|
+
onMouseDownCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
374
|
+
onMouseEnter?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
375
|
+
onMouseLeave?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
376
|
+
onMouseMove?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
377
|
+
onMouseMoveCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
378
|
+
onMouseOut?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
379
|
+
onMouseOutCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
380
|
+
onMouseOver?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
381
|
+
onMouseOverCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
382
|
+
onMouseUp?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
383
|
+
onMouseUpCapture?: react.MouseEventHandler<HTMLElement> | undefined;
|
|
384
|
+
onSelect?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
385
|
+
onSelectCapture?: react.ReactEventHandler<HTMLElement> | undefined;
|
|
386
|
+
onTouchCancel?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
387
|
+
onTouchCancelCapture?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
388
|
+
onTouchEnd?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
389
|
+
onTouchEndCapture?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
390
|
+
onTouchMove?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
391
|
+
onTouchMoveCapture?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
392
|
+
onTouchStart?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
393
|
+
onTouchStartCapture?: react.TouchEventHandler<HTMLElement> | undefined;
|
|
394
|
+
onPointerDown?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
395
|
+
onPointerDownCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
396
|
+
onPointerMove?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
397
|
+
onPointerMoveCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
398
|
+
onPointerUp?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
399
|
+
onPointerUpCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
400
|
+
onPointerCancel?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
401
|
+
onPointerCancelCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
402
|
+
onPointerEnter?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
403
|
+
onPointerEnterCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
404
|
+
onPointerLeave?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
405
|
+
onPointerLeaveCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
406
|
+
onPointerOver?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
407
|
+
onPointerOverCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
408
|
+
onPointerOut?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
409
|
+
onPointerOutCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
410
|
+
onGotPointerCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
411
|
+
onGotPointerCaptureCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
412
|
+
onLostPointerCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
413
|
+
onLostPointerCaptureCapture?: react.PointerEventHandler<HTMLElement> | undefined;
|
|
414
|
+
onScroll?: react.UIEventHandler<HTMLElement> | undefined;
|
|
415
|
+
onScrollCapture?: react.UIEventHandler<HTMLElement> | undefined;
|
|
416
|
+
onWheel?: react.WheelEventHandler<HTMLElement> | undefined;
|
|
417
|
+
onWheelCapture?: react.WheelEventHandler<HTMLElement> | undefined;
|
|
418
|
+
onAnimationStart?: react.AnimationEventHandler<HTMLElement> | undefined;
|
|
419
|
+
onAnimationStartCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
|
|
420
|
+
onAnimationEnd?: react.AnimationEventHandler<HTMLElement> | undefined;
|
|
421
|
+
onAnimationEndCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
|
|
422
|
+
onAnimationIteration?: react.AnimationEventHandler<HTMLElement> | undefined;
|
|
423
|
+
onAnimationIterationCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
|
|
424
|
+
onTransitionEnd?: react.TransitionEventHandler<HTMLElement> | undefined;
|
|
425
|
+
onTransitionEndCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
|
|
426
|
+
}, HTMLElement>;
|
|
427
|
+
|
|
428
|
+
export { Personalize, PersonalizeComponentProps, PersonalizeWrapperComponent, PersonalizedVariationComponent, TVariation, Test, TestComponentProps, Track, TrackFragment, TrackFragmentProps, TrackProps, UniformContext, UniformContextProps$1 as UniformContextProps, VariantOutputType, useQuirks, useScores, useUniformContext };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@uniformdev/context-react",
|
|
3
|
-
"version": "19.35.
|
|
3
|
+
"version": "19.35.3-alpha.82+4bc341093",
|
|
4
4
|
"description": "Uniform Context React integration package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
"react-dom": "18.2.0"
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
|
-
"@uniformdev/context": "19.35.
|
|
33
|
+
"@uniformdev/context": "19.35.3-alpha.82+4bc341093",
|
|
34
34
|
"cookie": "0.5.0",
|
|
35
35
|
"dequal": "2.0.3"
|
|
36
36
|
},
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "4bc341093bc946900df2646fe53eca4bcddc693c"
|
|
48
48
|
}
|