@uniformdev/context-react 20.34.3-alpha.70 → 20.35.1-alpha.188

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Quirks, ScoreVector, Context, PersonalizedVariant, CompositionMetadata, TestVariant, EnrichmentData } from '@uniformdev/context';
2
2
  import * as react from 'react';
3
- import react__default, { ReactNode, ReactElement, HTMLAttributes } from 'react';
3
+ import react__default, { ReactNode, ReactElement, HTMLAttributes, JSX } from 'react';
4
4
 
5
5
  /**
6
6
  * Provides reactive access to the Uniform Context's current visitor quirks values
@@ -166,7 +166,7 @@ type TrackProps = TrackFragmentProps & HTMLAttributes<HTMLElement> & {
166
166
  * only on page load, but does not render a wrapping tag.
167
167
  */
168
168
  declare const Track: ({ behavior, children, tagName, threshold, disableVisibilityTrigger, ...rest }: TrackProps) => react.DOMElement<{
169
- ref: react.RefObject<HTMLElement>;
169
+ ref: react.RefObject<HTMLElement | null>;
170
170
  defaultChecked?: boolean | undefined;
171
171
  defaultValue?: string | number | readonly string[] | undefined;
172
172
  suppressContentEditableWarning?: boolean | undefined;
@@ -214,6 +214,10 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
214
214
  results?: number | undefined;
215
215
  security?: string | undefined;
216
216
  unselectable?: "on" | "off" | undefined;
217
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
218
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
219
+ popoverTarget?: string | undefined;
220
+ inert?: boolean | undefined;
217
221
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
218
222
  is?: string | undefined;
219
223
  exportparts?: string | undefined;
@@ -422,6 +426,8 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
422
426
  onLostPointerCaptureCapture?: react.PointerEventHandler<HTMLElement> | undefined;
423
427
  onScroll?: react.UIEventHandler<HTMLElement> | undefined;
424
428
  onScrollCapture?: react.UIEventHandler<HTMLElement> | undefined;
429
+ onScrollEnd?: react.UIEventHandler<HTMLElement> | undefined;
430
+ onScrollEndCapture?: react.UIEventHandler<HTMLElement> | undefined;
425
431
  onWheel?: react.WheelEventHandler<HTMLElement> | undefined;
426
432
  onWheelCapture?: react.WheelEventHandler<HTMLElement> | undefined;
427
433
  onAnimationStart?: react.AnimationEventHandler<HTMLElement> | undefined;
@@ -430,8 +436,16 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
430
436
  onAnimationEndCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
431
437
  onAnimationIteration?: react.AnimationEventHandler<HTMLElement> | undefined;
432
438
  onAnimationIterationCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
439
+ onToggle?: react.ToggleEventHandler<HTMLElement> | undefined;
440
+ onBeforeToggle?: react.ToggleEventHandler<HTMLElement> | undefined;
441
+ onTransitionCancel?: react.TransitionEventHandler<HTMLElement> | undefined;
442
+ onTransitionCancelCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
433
443
  onTransitionEnd?: react.TransitionEventHandler<HTMLElement> | undefined;
434
444
  onTransitionEndCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
445
+ onTransitionRun?: react.TransitionEventHandler<HTMLElement> | undefined;
446
+ onTransitionRunCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
447
+ onTransitionStart?: react.TransitionEventHandler<HTMLElement> | undefined;
448
+ onTransitionStartCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
435
449
  'data-track-on-view-wrapper'?: string;
436
450
  }, HTMLElement>;
437
451
 
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Quirks, ScoreVector, Context, PersonalizedVariant, CompositionMetadata, TestVariant, EnrichmentData } from '@uniformdev/context';
2
2
  import * as react from 'react';
3
- import react__default, { ReactNode, ReactElement, HTMLAttributes } from 'react';
3
+ import react__default, { ReactNode, ReactElement, HTMLAttributes, JSX } from 'react';
4
4
 
5
5
  /**
6
6
  * Provides reactive access to the Uniform Context's current visitor quirks values
@@ -166,7 +166,7 @@ type TrackProps = TrackFragmentProps & HTMLAttributes<HTMLElement> & {
166
166
  * only on page load, but does not render a wrapping tag.
167
167
  */
168
168
  declare const Track: ({ behavior, children, tagName, threshold, disableVisibilityTrigger, ...rest }: TrackProps) => react.DOMElement<{
169
- ref: react.RefObject<HTMLElement>;
169
+ ref: react.RefObject<HTMLElement | null>;
170
170
  defaultChecked?: boolean | undefined;
171
171
  defaultValue?: string | number | readonly string[] | undefined;
172
172
  suppressContentEditableWarning?: boolean | undefined;
@@ -214,6 +214,10 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
214
214
  results?: number | undefined;
215
215
  security?: string | undefined;
216
216
  unselectable?: "on" | "off" | undefined;
217
+ popover?: "" | "auto" | "manual" | "hint" | undefined;
218
+ popoverTargetAction?: "toggle" | "show" | "hide" | undefined;
219
+ popoverTarget?: string | undefined;
220
+ inert?: boolean | undefined;
217
221
  inputMode?: "none" | "text" | "tel" | "url" | "email" | "numeric" | "decimal" | "search" | undefined;
218
222
  is?: string | undefined;
219
223
  exportparts?: string | undefined;
@@ -422,6 +426,8 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
422
426
  onLostPointerCaptureCapture?: react.PointerEventHandler<HTMLElement> | undefined;
423
427
  onScroll?: react.UIEventHandler<HTMLElement> | undefined;
424
428
  onScrollCapture?: react.UIEventHandler<HTMLElement> | undefined;
429
+ onScrollEnd?: react.UIEventHandler<HTMLElement> | undefined;
430
+ onScrollEndCapture?: react.UIEventHandler<HTMLElement> | undefined;
425
431
  onWheel?: react.WheelEventHandler<HTMLElement> | undefined;
426
432
  onWheelCapture?: react.WheelEventHandler<HTMLElement> | undefined;
427
433
  onAnimationStart?: react.AnimationEventHandler<HTMLElement> | undefined;
@@ -430,8 +436,16 @@ declare const Track: ({ behavior, children, tagName, threshold, disableVisibilit
430
436
  onAnimationEndCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
431
437
  onAnimationIteration?: react.AnimationEventHandler<HTMLElement> | undefined;
432
438
  onAnimationIterationCapture?: react.AnimationEventHandler<HTMLElement> | undefined;
439
+ onToggle?: react.ToggleEventHandler<HTMLElement> | undefined;
440
+ onBeforeToggle?: react.ToggleEventHandler<HTMLElement> | undefined;
441
+ onTransitionCancel?: react.TransitionEventHandler<HTMLElement> | undefined;
442
+ onTransitionCancelCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
433
443
  onTransitionEnd?: react.TransitionEventHandler<HTMLElement> | undefined;
434
444
  onTransitionEndCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
445
+ onTransitionRun?: react.TransitionEventHandler<HTMLElement> | undefined;
446
+ onTransitionRunCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
447
+ onTransitionStart?: react.TransitionEventHandler<HTMLElement> | undefined;
448
+ onTransitionStartCapture?: react.TransitionEventHandler<HTMLElement> | undefined;
435
449
  'data-track-on-view-wrapper'?: string;
436
450
  }, HTMLElement>;
437
451
 
package/dist/index.esm.js CHANGED
@@ -269,7 +269,7 @@ var Track = ({
269
269
  const [lastUrl, setLastUrl] = useState3();
270
270
  const [hasTracked, setHasTracked] = useState3(false);
271
271
  const wrapperEl = useRef(null);
272
- const disconnect = useRef();
272
+ const disconnect = useRef(null);
273
273
  useEffect3(() => {
274
274
  const urlHasChanged = lastUrl !== currentUrl;
275
275
  if (urlHasChanged) {
package/dist/index.js CHANGED
@@ -311,7 +311,7 @@ var Track = ({
311
311
  const [lastUrl, setLastUrl] = (0, import_react13.useState)();
312
312
  const [hasTracked, setHasTracked] = (0, import_react13.useState)(false);
313
313
  const wrapperEl = (0, import_react13.useRef)(null);
314
- const disconnect = (0, import_react13.useRef)();
314
+ const disconnect = (0, import_react13.useRef)(null);
315
315
  (0, import_react13.useEffect)(() => {
316
316
  const urlHasChanged = lastUrl !== currentUrl;
317
317
  if (urlHasChanged) {
package/dist/index.mjs CHANGED
@@ -269,7 +269,7 @@ var Track = ({
269
269
  const [lastUrl, setLastUrl] = useState3();
270
270
  const [hasTracked, setHasTracked] = useState3(false);
271
271
  const wrapperEl = useRef(null);
272
- const disconnect = useRef();
272
+ const disconnect = useRef(null);
273
273
  useEffect3(() => {
274
274
  const urlHasChanged = lastUrl !== currentUrl;
275
275
  if (urlHasChanged) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-react",
3
- "version": "20.34.3-alpha.70+bc3f8ba0f4",
3
+ "version": "20.35.1-alpha.188+c2a5b9c45f",
4
4
  "description": "Uniform Context React integration package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -19,18 +19,18 @@
19
19
  "build": "tsup",
20
20
  "dev": "tsup --watch",
21
21
  "clean": "rimraf dist",
22
- "test": "jest --maxWorkers=1",
22
+ "test": "vitest run",
23
23
  "lint": "eslint \"src/**/*.{js,ts,tsx}\"",
24
24
  "format": "prettier --write \"src/**/*.{js,ts,tsx}\"",
25
25
  "document:prebuild": "api-extractor run --local"
26
26
  },
27
27
  "devDependencies": {
28
- "@types/react": "18.3.24",
29
- "react": "18.3.1",
30
- "react-dom": "18.3.1"
28
+ "@types/react": "19.2.2",
29
+ "react": "19.2.0",
30
+ "react-dom": "19.2.0"
31
31
  },
32
32
  "dependencies": {
33
- "@uniformdev/context": "20.34.3-alpha.70+bc3f8ba0f4",
33
+ "@uniformdev/context": "20.35.1-alpha.188+c2a5b9c45f",
34
34
  "cookie": "1.0.1",
35
35
  "dequal": "2.0.3"
36
36
  },
@@ -44,5 +44,5 @@
44
44
  "publishConfig": {
45
45
  "access": "public"
46
46
  },
47
- "gitHead": "bc3f8ba0f4719673f92d9e8c48c3818dc439c364"
47
+ "gitHead": "c2a5b9c45fdbcd3199fba23e38beaf7ca0388c35"
48
48
  }