@uniformdev/context-react 19.55.2-alpha.29 → 19.55.2-alpha.34

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
@@ -319,7 +319,11 @@ var Track = ({
319
319
  currentUrl,
320
320
  hasTracked
321
321
  ]);
322
- 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);
323
327
  return element;
324
328
  };
325
329
 
package/dist/index.js CHANGED
@@ -361,7 +361,11 @@ var Track = ({
361
361
  currentUrl,
362
362
  hasTracked
363
363
  ]);
364
- 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);
365
369
  return element;
366
370
  };
367
371
 
package/dist/index.mjs CHANGED
@@ -319,7 +319,11 @@ var Track = ({
319
319
  currentUrl,
320
320
  hasTracked
321
321
  ]);
322
- 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);
323
327
  return element;
324
328
  };
325
329
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uniformdev/context-react",
3
- "version": "19.55.2-alpha.29+d3dee9648",
3
+ "version": "19.55.2-alpha.34+8aefcd7df",
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.55.2-alpha.29+d3dee9648",
34
+ "@uniformdev/context": "19.55.2-alpha.34+8aefcd7df",
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": "d3dee964810fcfa01070b60b83acadf1e5487cb1"
48
+ "gitHead": "8aefcd7df66f58e0ffa59360ae2b518eb485386a"
49
49
  }