@uniformdev/context-react 19.60.1-alpha.6 → 19.61.1-alpha.13

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
@@ -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
434
  export { Personalize, PersonalizeComponentProps, PersonalizeWrapperComponent, PersonalizedVariationComponent, TVariation, Test, TestComponentProps, Track, TrackFragment, TrackFragmentProps, TrackProps, UniformContext, UniformContextProps$1 as UniformContextProps, VariantOutputType, useQuirks, useScores, useUniformContext };
package/dist/index.d.ts CHANGED
@@ -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
434
  export { Personalize, PersonalizeComponentProps, PersonalizeWrapperComponent, PersonalizedVariationComponent, TVariation, Test, TestComponentProps, Track, TrackFragment, TrackFragmentProps, TrackProps, UniformContext, UniformContextProps$1 as UniformContextProps, VariantOutputType, useQuirks, useScores, useUniformContext };
package/dist/index.esm.js CHANGED
@@ -317,7 +317,11 @@ var Track = ({
317
317
  currentUrl,
318
318
  hasTracked
319
319
  ]);
320
- const element = createElement2(tagName, { ...rest, ref: wrapperEl }, children);
320
+ const debugProps = {};
321
+ if (process.env.NODE_ENV === "development") {
322
+ debugProps["data-track-on-view-wrapper"] = "This div wrapper is added by Uniform Context, check 'behaviorTracking' property of UniformComposition";
323
+ }
324
+ const element = createElement2(tagName, { ...debugProps, ...rest, ref: wrapperEl }, children);
321
325
  return element;
322
326
  };
323
327
 
package/dist/index.js CHANGED
@@ -360,7 +360,11 @@ var Track = ({
360
360
  currentUrl,
361
361
  hasTracked
362
362
  ]);
363
- const element = (0, import_react13.createElement)(tagName, { ...rest, ref: wrapperEl }, children);
363
+ const debugProps = {};
364
+ if (process.env.NODE_ENV === "development") {
365
+ debugProps["data-track-on-view-wrapper"] = "This div wrapper is added by Uniform Context, check 'behaviorTracking' property of UniformComposition";
366
+ }
367
+ const element = (0, import_react13.createElement)(tagName, { ...debugProps, ...rest, ref: wrapperEl }, children);
364
368
  return element;
365
369
  };
366
370
 
package/dist/index.mjs CHANGED
@@ -317,7 +317,11 @@ var Track = ({
317
317
  currentUrl,
318
318
  hasTracked
319
319
  ]);
320
- const element = createElement2(tagName, { ...rest, ref: wrapperEl }, children);
320
+ const debugProps = {};
321
+ if (process.env.NODE_ENV === "development") {
322
+ debugProps["data-track-on-view-wrapper"] = "This div wrapper is added by Uniform Context, check 'behaviorTracking' property of UniformComposition";
323
+ }
324
+ const element = createElement2(tagName, { ...debugProps, ...rest, ref: wrapperEl }, children);
321
325
  return element;
322
326
  };
323
327
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-react",
3
- "version": "19.60.1-alpha.6+ac384b46c",
3
+ "version": "19.61.1-alpha.13+9ea7c72e6",
4
4
  "description": "Uniform Context React integration package",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "main": "./dist/index.js",
@@ -31,7 +31,7 @@
31
31
  "react-dom": "18.2.0"
32
32
  },
33
33
  "dependencies": {
34
- "@uniformdev/context": "19.60.1-alpha.6+ac384b46c",
34
+ "@uniformdev/context": "19.61.1-alpha.13+9ea7c72e6",
35
35
  "cookie": "0.5.0",
36
36
  "dequal": "2.0.3"
37
37
  },
@@ -45,5 +45,5 @@
45
45
  "publishConfig": {
46
46
  "access": "public"
47
47
  },
48
- "gitHead": "ac384b46c7694dbecf4983cb04cd66dc8904c5fa"
48
+ "gitHead": "9ea7c72e685bf1dd690149aa40a9b7a443d2ad28"
49
49
  }