@uniformdev/context-react 19.62.0 → 19.62.1-alpha.127

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/LICENSE.txt CHANGED
@@ -1,2 +1,2 @@
1
- © 2023 Uniform Systems, Inc. All Rights Reserved.
1
+ © 2024 Uniform Systems, Inc. All Rights Reserved.
2
2
  See details of Uniform Systems, Inc. Master Subscription Agreement here: https://uniform.dev/eula
package/dist/index.d.mts CHANGED
@@ -168,7 +168,7 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
168
168
  accessKey?: string | undefined;
169
169
  autoFocus?: boolean | undefined;
170
170
  className?: string | undefined;
171
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
171
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
172
172
  contextMenu?: string | undefined;
173
173
  dir?: string | undefined;
174
174
  draggable?: (boolean | "true" | "false") | undefined;
@@ -210,59 +210,59 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
210
210
  unselectable?: "on" | "off" | undefined;
211
211
  inputMode?: "url" | "search" | "text" | "none" | "tel" | "email" | "numeric" | "decimal" | undefined;
212
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-braillelabel'?: string | undefined;
217
- 'aria-brailleroledescription'?: string | undefined;
218
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
219
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
220
- 'aria-colcount'?: number | undefined;
221
- 'aria-colindex'?: number | undefined;
222
- 'aria-colindextext'?: string | undefined;
223
- 'aria-colspan'?: number | undefined;
224
- 'aria-controls'?: string | undefined;
225
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
226
- 'aria-describedby'?: string | undefined;
227
- 'aria-description'?: string | undefined;
228
- 'aria-details'?: string | undefined;
229
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
230
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
231
- 'aria-errormessage'?: string | undefined;
232
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
233
- 'aria-flowto'?: string | undefined;
234
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
235
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
236
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
237
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
238
- 'aria-keyshortcuts'?: string | undefined;
239
- 'aria-label'?: string | undefined;
240
- 'aria-labelledby'?: string | undefined;
241
- 'aria-level'?: number | undefined;
242
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
243
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
244
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
245
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
246
- 'aria-orientation'?: "horizontal" | "vertical" | undefined;
247
- 'aria-owns'?: string | undefined;
248
- 'aria-placeholder'?: string | undefined;
249
- 'aria-posinset'?: number | undefined;
250
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
251
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
252
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
253
- 'aria-required'?: (boolean | "true" | "false") | undefined;
254
- 'aria-roledescription'?: string | undefined;
255
- 'aria-rowcount'?: number | undefined;
256
- 'aria-rowindex'?: number | undefined;
257
- 'aria-rowindextext'?: string | undefined;
258
- 'aria-rowspan'?: number | undefined;
259
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
260
- 'aria-setsize'?: number | undefined;
261
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
262
- 'aria-valuemax'?: number | undefined;
263
- 'aria-valuemin'?: number | undefined;
264
- 'aria-valuenow'?: number | undefined;
265
- 'aria-valuetext'?: string | undefined;
213
+ "aria-activedescendant"?: string | undefined;
214
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
215
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
216
+ "aria-braillelabel"?: string | undefined;
217
+ "aria-brailleroledescription"?: string | undefined;
218
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
219
+ "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
220
+ "aria-colcount"?: number | undefined;
221
+ "aria-colindex"?: number | undefined;
222
+ "aria-colindextext"?: string | undefined;
223
+ "aria-colspan"?: number | undefined;
224
+ "aria-controls"?: string | undefined;
225
+ "aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
226
+ "aria-describedby"?: string | undefined;
227
+ "aria-description"?: string | undefined;
228
+ "aria-details"?: string | undefined;
229
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
230
+ "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
231
+ "aria-errormessage"?: string | undefined;
232
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
233
+ "aria-flowto"?: string | undefined;
234
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
235
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
236
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
237
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
238
+ "aria-keyshortcuts"?: string | undefined;
239
+ "aria-label"?: string | undefined;
240
+ "aria-labelledby"?: string | undefined;
241
+ "aria-level"?: number | undefined;
242
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
243
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
244
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
245
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
246
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
247
+ "aria-owns"?: string | undefined;
248
+ "aria-placeholder"?: string | undefined;
249
+ "aria-posinset"?: number | undefined;
250
+ "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
251
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
252
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
253
+ "aria-required"?: (boolean | "true" | "false") | undefined;
254
+ "aria-roledescription"?: string | undefined;
255
+ "aria-rowcount"?: number | undefined;
256
+ "aria-rowindex"?: number | undefined;
257
+ "aria-rowindextext"?: string | undefined;
258
+ "aria-rowspan"?: number | undefined;
259
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
260
+ "aria-setsize"?: number | undefined;
261
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
262
+ "aria-valuemax"?: number | undefined;
263
+ "aria-valuemin"?: number | undefined;
264
+ "aria-valuenow"?: number | undefined;
265
+ "aria-valuetext"?: string | undefined;
266
266
  dangerouslySetInnerHTML?: {
267
267
  __html: string | TrustedHTML;
268
268
  } | undefined;
@@ -428,6 +428,7 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
428
428
  onAnimationIterationCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
429
429
  onTransitionEnd?: react.TransitionEventHandler<HTMLElement> | undefined;
430
430
  onTransitionEndCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
431
+ 'data-track-on-view-wrapper'?: string | undefined;
431
432
  }, HTMLElement>;
432
433
 
433
- export { Personalize, PersonalizeComponentProps, PersonalizeWrapperComponent, PersonalizedVariationComponent, TVariation, Test, TestComponentProps, Track, TrackFragment, TrackFragmentProps, TrackProps, UniformContext, UniformContextProps$1 as UniformContextProps, VariantOutputType, useQuirks, useScores, useUniformContext };
434
+ export { Personalize, type PersonalizeComponentProps, type PersonalizeWrapperComponent, type PersonalizedVariationComponent, type TVariation, Test, type TestComponentProps, Track, TrackFragment, type TrackFragmentProps, type TrackProps, UniformContext, type UniformContextProps$1 as UniformContextProps, type VariantOutputType, useQuirks, useScores, useUniformContext };
package/dist/index.d.ts CHANGED
@@ -168,7 +168,7 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
168
168
  accessKey?: string | undefined;
169
169
  autoFocus?: boolean | undefined;
170
170
  className?: string | undefined;
171
- contentEditable?: (boolean | "true" | "false") | "inherit" | undefined;
171
+ contentEditable?: (boolean | "true" | "false") | "inherit" | "plaintext-only" | undefined;
172
172
  contextMenu?: string | undefined;
173
173
  dir?: string | undefined;
174
174
  draggable?: (boolean | "true" | "false") | undefined;
@@ -210,59 +210,59 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
210
210
  unselectable?: "on" | "off" | undefined;
211
211
  inputMode?: "url" | "search" | "text" | "none" | "tel" | "email" | "numeric" | "decimal" | undefined;
212
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-braillelabel'?: string | undefined;
217
- 'aria-brailleroledescription'?: string | undefined;
218
- 'aria-busy'?: (boolean | "true" | "false") | undefined;
219
- 'aria-checked'?: boolean | "true" | "false" | "mixed" | undefined;
220
- 'aria-colcount'?: number | undefined;
221
- 'aria-colindex'?: number | undefined;
222
- 'aria-colindextext'?: string | undefined;
223
- 'aria-colspan'?: number | undefined;
224
- 'aria-controls'?: string | undefined;
225
- 'aria-current'?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
226
- 'aria-describedby'?: string | undefined;
227
- 'aria-description'?: string | undefined;
228
- 'aria-details'?: string | undefined;
229
- 'aria-disabled'?: (boolean | "true" | "false") | undefined;
230
- 'aria-dropeffect'?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
231
- 'aria-errormessage'?: string | undefined;
232
- 'aria-expanded'?: (boolean | "true" | "false") | undefined;
233
- 'aria-flowto'?: string | undefined;
234
- 'aria-grabbed'?: (boolean | "true" | "false") | undefined;
235
- 'aria-haspopup'?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
236
- 'aria-hidden'?: (boolean | "true" | "false") | undefined;
237
- 'aria-invalid'?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
238
- 'aria-keyshortcuts'?: string | undefined;
239
- 'aria-label'?: string | undefined;
240
- 'aria-labelledby'?: string | undefined;
241
- 'aria-level'?: number | undefined;
242
- 'aria-live'?: "off" | "assertive" | "polite" | undefined;
243
- 'aria-modal'?: (boolean | "true" | "false") | undefined;
244
- 'aria-multiline'?: (boolean | "true" | "false") | undefined;
245
- 'aria-multiselectable'?: (boolean | "true" | "false") | undefined;
246
- 'aria-orientation'?: "horizontal" | "vertical" | undefined;
247
- 'aria-owns'?: string | undefined;
248
- 'aria-placeholder'?: string | undefined;
249
- 'aria-posinset'?: number | undefined;
250
- 'aria-pressed'?: boolean | "true" | "false" | "mixed" | undefined;
251
- 'aria-readonly'?: (boolean | "true" | "false") | undefined;
252
- 'aria-relevant'?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
253
- 'aria-required'?: (boolean | "true" | "false") | undefined;
254
- 'aria-roledescription'?: string | undefined;
255
- 'aria-rowcount'?: number | undefined;
256
- 'aria-rowindex'?: number | undefined;
257
- 'aria-rowindextext'?: string | undefined;
258
- 'aria-rowspan'?: number | undefined;
259
- 'aria-selected'?: (boolean | "true" | "false") | undefined;
260
- 'aria-setsize'?: number | undefined;
261
- 'aria-sort'?: "none" | "ascending" | "descending" | "other" | undefined;
262
- 'aria-valuemax'?: number | undefined;
263
- 'aria-valuemin'?: number | undefined;
264
- 'aria-valuenow'?: number | undefined;
265
- 'aria-valuetext'?: string | undefined;
213
+ "aria-activedescendant"?: string | undefined;
214
+ "aria-atomic"?: (boolean | "true" | "false") | undefined;
215
+ "aria-autocomplete"?: "none" | "list" | "inline" | "both" | undefined;
216
+ "aria-braillelabel"?: string | undefined;
217
+ "aria-brailleroledescription"?: string | undefined;
218
+ "aria-busy"?: (boolean | "true" | "false") | undefined;
219
+ "aria-checked"?: boolean | "true" | "false" | "mixed" | undefined;
220
+ "aria-colcount"?: number | undefined;
221
+ "aria-colindex"?: number | undefined;
222
+ "aria-colindextext"?: string | undefined;
223
+ "aria-colspan"?: number | undefined;
224
+ "aria-controls"?: string | undefined;
225
+ "aria-current"?: boolean | "time" | "true" | "false" | "page" | "step" | "location" | "date" | undefined;
226
+ "aria-describedby"?: string | undefined;
227
+ "aria-description"?: string | undefined;
228
+ "aria-details"?: string | undefined;
229
+ "aria-disabled"?: (boolean | "true" | "false") | undefined;
230
+ "aria-dropeffect"?: "link" | "none" | "copy" | "execute" | "move" | "popup" | undefined;
231
+ "aria-errormessage"?: string | undefined;
232
+ "aria-expanded"?: (boolean | "true" | "false") | undefined;
233
+ "aria-flowto"?: string | undefined;
234
+ "aria-grabbed"?: (boolean | "true" | "false") | undefined;
235
+ "aria-haspopup"?: boolean | "dialog" | "menu" | "true" | "false" | "grid" | "listbox" | "tree" | undefined;
236
+ "aria-hidden"?: (boolean | "true" | "false") | undefined;
237
+ "aria-invalid"?: boolean | "true" | "false" | "grammar" | "spelling" | undefined;
238
+ "aria-keyshortcuts"?: string | undefined;
239
+ "aria-label"?: string | undefined;
240
+ "aria-labelledby"?: string | undefined;
241
+ "aria-level"?: number | undefined;
242
+ "aria-live"?: "off" | "assertive" | "polite" | undefined;
243
+ "aria-modal"?: (boolean | "true" | "false") | undefined;
244
+ "aria-multiline"?: (boolean | "true" | "false") | undefined;
245
+ "aria-multiselectable"?: (boolean | "true" | "false") | undefined;
246
+ "aria-orientation"?: "horizontal" | "vertical" | undefined;
247
+ "aria-owns"?: string | undefined;
248
+ "aria-placeholder"?: string | undefined;
249
+ "aria-posinset"?: number | undefined;
250
+ "aria-pressed"?: boolean | "true" | "false" | "mixed" | undefined;
251
+ "aria-readonly"?: (boolean | "true" | "false") | undefined;
252
+ "aria-relevant"?: "text" | "additions" | "additions removals" | "additions text" | "all" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals" | undefined;
253
+ "aria-required"?: (boolean | "true" | "false") | undefined;
254
+ "aria-roledescription"?: string | undefined;
255
+ "aria-rowcount"?: number | undefined;
256
+ "aria-rowindex"?: number | undefined;
257
+ "aria-rowindextext"?: string | undefined;
258
+ "aria-rowspan"?: number | undefined;
259
+ "aria-selected"?: (boolean | "true" | "false") | undefined;
260
+ "aria-setsize"?: number | undefined;
261
+ "aria-sort"?: "none" | "ascending" | "descending" | "other" | undefined;
262
+ "aria-valuemax"?: number | undefined;
263
+ "aria-valuemin"?: number | undefined;
264
+ "aria-valuenow"?: number | undefined;
265
+ "aria-valuetext"?: string | undefined;
266
266
  dangerouslySetInnerHTML?: {
267
267
  __html: string | TrustedHTML;
268
268
  } | undefined;
@@ -428,6 +428,7 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
428
428
  onAnimationIterationCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
429
429
  onTransitionEnd?: react.TransitionEventHandler<HTMLElement> | undefined;
430
430
  onTransitionEndCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
431
+ 'data-track-on-view-wrapper'?: string | undefined;
431
432
  }, HTMLElement>;
432
433
 
433
- export { Personalize, PersonalizeComponentProps, PersonalizeWrapperComponent, PersonalizedVariationComponent, TVariation, Test, TestComponentProps, Track, TrackFragment, TrackFragmentProps, TrackProps, UniformContext, UniformContextProps$1 as UniformContextProps, VariantOutputType, useQuirks, useScores, useUniformContext };
434
+ export { Personalize, type PersonalizeComponentProps, type PersonalizeWrapperComponent, type PersonalizedVariationComponent, type TVariation, Test, type TestComponentProps, Track, TrackFragment, type TrackFragmentProps, type TrackProps, UniformContext, type UniformContextProps$1 as UniformContextProps, type VariantOutputType, useQuirks, useScores, useUniformContext };
package/dist/index.esm.js CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  // src/hooks/useQuirks.ts
2
4
  import { useEffect, useState } from "react";
3
5
  function useQuirks() {
@@ -317,7 +319,11 @@ var Track = ({
317
319
  currentUrl,
318
320
  hasTracked
319
321
  ]);
320
- const element = createElement2(tagName, { ...rest, ref: wrapperEl }, children);
322
+ const debugProps = {};
323
+ if (process.env.NODE_ENV === "development") {
324
+ debugProps["data-track-on-view-wrapper"] = "This div wrapper is added by Uniform Context, check 'behaviorTracking' property of UniformComposition";
325
+ }
326
+ const element = createElement2(tagName, { ...debugProps, ...rest, ref: wrapperEl }, children);
321
327
  return element;
322
328
  };
323
329
 
package/dist/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ 'use client';
1
2
  "use strict";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
@@ -360,7 +361,11 @@ var Track = ({
360
361
  currentUrl,
361
362
  hasTracked
362
363
  ]);
363
- const element = (0, import_react13.createElement)(tagName, { ...rest, ref: wrapperEl }, children);
364
+ const debugProps = {};
365
+ if (process.env.NODE_ENV === "development") {
366
+ debugProps["data-track-on-view-wrapper"] = "This div wrapper is added by Uniform Context, check 'behaviorTracking' property of UniformComposition";
367
+ }
368
+ const element = (0, import_react13.createElement)(tagName, { ...debugProps, ...rest, ref: wrapperEl }, children);
364
369
  return element;
365
370
  };
366
371
 
package/dist/index.mjs CHANGED
@@ -1,3 +1,5 @@
1
+ 'use client';
2
+
1
3
  // src/hooks/useQuirks.ts
2
4
  import { useEffect, useState } from "react";
3
5
  function useQuirks() {
@@ -317,7 +319,11 @@ var Track = ({
317
319
  currentUrl,
318
320
  hasTracked
319
321
  ]);
320
- const element = createElement2(tagName, { ...rest, ref: wrapperEl }, children);
322
+ const debugProps = {};
323
+ if (process.env.NODE_ENV === "development") {
324
+ debugProps["data-track-on-view-wrapper"] = "This div wrapper is added by Uniform Context, check 'behaviorTracking' property of UniformComposition";
325
+ }
326
+ const element = createElement2(tagName, { ...debugProps, ...rest, ref: wrapperEl }, children);
321
327
  return element;
322
328
  };
323
329
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-react",
3
- "version": "19.62.0",
3
+ "version": "19.62.1-alpha.127+d49e5a0782",
4
4
  "description": "Uniform Context React integration package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -25,14 +25,14 @@
25
25
  "document": "api-extractor run --local"
26
26
  },
27
27
  "devDependencies": {
28
- "@types/cookie": "0.5.2",
29
- "@types/react": "18.2.21",
28
+ "@types/cookie": "0.6.0",
29
+ "@types/react": "18.2.40",
30
30
  "react": "18.2.0",
31
31
  "react-dom": "18.2.0"
32
32
  },
33
33
  "dependencies": {
34
- "@uniformdev/context": "19.62.0",
35
- "cookie": "0.5.0",
34
+ "@uniformdev/context": "19.62.1-alpha.127+d49e5a0782",
35
+ "cookie": "0.6.0",
36
36
  "dequal": "2.0.3"
37
37
  },
38
38
  "peerDependencies": {
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "dcaa272276caccfec3318d2a028cf4efa8a569a8"
48
+ "gitHead": "d49e5a07824d69e5df3a92ff10bc9acd88d0bc22"
49
49
  }