@uniformdev/context-react 19.61.1-alpha.10 → 19.61.1-alpha.18
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 +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +7 -1
- package/dist/index.js +6 -1
- package/dist/index.mjs +7 -1
- package/package.json +4 -4
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
|
@@ -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
|
|
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
|
|
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
|
|
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.61.1-alpha.
|
|
3
|
+
"version": "19.61.1-alpha.18+f26189658",
|
|
4
4
|
"description": "Uniform Context React integration package",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"document": "api-extractor run --local"
|
|
26
26
|
},
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/cookie": "0.5.
|
|
28
|
+
"@types/cookie": "0.5.3",
|
|
29
29
|
"@types/react": "18.2.21",
|
|
30
30
|
"react": "18.2.0",
|
|
31
31
|
"react-dom": "18.2.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@uniformdev/context": "19.61.1-alpha.
|
|
34
|
+
"@uniformdev/context": "19.61.1-alpha.18+f26189658",
|
|
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": "
|
|
48
|
+
"gitHead": "f2618965881c30f1e995f45a6e880bc2f4d10ebe"
|
|
49
49
|
}
|