@ninetailed/experience.js 4.3.0-beta.4 → 4.3.0-beta.5
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/index.cjs +2 -2
- package/index.js +2 -2
- package/lib/types/ElementSeenPayload.d.ts +2 -2
- package/lib/types/index.d.ts +2 -1
- package/package.json +2 -2
package/index.cjs
CHANGED
|
@@ -3725,7 +3725,7 @@ const TrackComponentProperties = zod.z.object({
|
|
|
3725
3725
|
|
|
3726
3726
|
class NinetailedPlugin {}
|
|
3727
3727
|
|
|
3728
|
-
const
|
|
3728
|
+
const ElementSeenPayloadSchema = zod.z.object({
|
|
3729
3729
|
element: zod.z.any(),
|
|
3730
3730
|
experience: zod.z.object({
|
|
3731
3731
|
id: zod.z.string(),
|
|
@@ -4047,7 +4047,7 @@ exports.ANONYMOUS_ID = ANONYMOUS_ID;
|
|
|
4047
4047
|
exports.CONSENT = CONSENT;
|
|
4048
4048
|
exports.DEBUG_FLAG = DEBUG_FLAG;
|
|
4049
4049
|
exports.EMPTY_MERGE_ID = EMPTY_MERGE_ID;
|
|
4050
|
-
exports.
|
|
4050
|
+
exports.ElementSeenPayloadSchema = ElementSeenPayloadSchema;
|
|
4051
4051
|
exports.HAS_SEEN_COMPONENT = HAS_SEEN_COMPONENT;
|
|
4052
4052
|
exports.HAS_SEEN_ELEMENT = HAS_SEEN_ELEMENT;
|
|
4053
4053
|
exports.LEGACY_ANONYMOUS_ID = LEGACY_ANONYMOUS_ID;
|
package/index.js
CHANGED
|
@@ -3718,7 +3718,7 @@ const TrackComponentProperties = z.object({
|
|
|
3718
3718
|
|
|
3719
3719
|
class NinetailedPlugin {}
|
|
3720
3720
|
|
|
3721
|
-
const
|
|
3721
|
+
const ElementSeenPayloadSchema = z.object({
|
|
3722
3722
|
element: z.any(),
|
|
3723
3723
|
experience: z.object({
|
|
3724
3724
|
id: z.string(),
|
|
@@ -3996,4 +3996,4 @@ const makeExperienceSelectMiddleware = ({
|
|
|
3996
3996
|
};
|
|
3997
3997
|
};
|
|
3998
3998
|
|
|
3999
|
-
export { ANONYMOUS_ID, CONSENT, DEBUG_FLAG, EMPTY_MERGE_ID,
|
|
3999
|
+
export { ANONYMOUS_ID, CONSENT, DEBUG_FLAG, EMPTY_MERGE_ID, ElementSeenPayloadSchema, HAS_SEEN_COMPONENT, HAS_SEEN_ELEMENT, LEGACY_ANONYMOUS_ID, Ninetailed, NinetailedPlugin, OnChangeEmitter, PAGE_HIDDEN, PLUGIN_NAME, PROFILE_CHANGE, PROFILE_FALLBACK_CACHE, PROFILE_RESET, SET_ENABLED_FEATURES, TrackComponentProperties, buildClientNinetailedRequestContext, decodeExperienceVariantsMap, makeExperienceSelectMiddleware, ninetailedPlugin, selectPluginsHavingExperienceSelectionMiddleware, selectPluginsHavingOnChangeEmitter, selectVariant };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const
|
|
2
|
+
export declare const ElementSeenPayloadSchema: z.ZodObject<{
|
|
3
3
|
element: z.ZodAny;
|
|
4
4
|
experience: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
5
5
|
id: z.ZodString;
|
|
@@ -77,6 +77,6 @@ export declare const ElementSeenPayload: z.ZodObject<{
|
|
|
77
77
|
description?: string | undefined;
|
|
78
78
|
} | null | undefined;
|
|
79
79
|
}>;
|
|
80
|
-
export type ElementSeenPayload = Omit<z.input<typeof
|
|
80
|
+
export type ElementSeenPayload = Omit<z.input<typeof ElementSeenPayloadSchema>, 'element'> & {
|
|
81
81
|
element: Element;
|
|
82
82
|
};
|
package/lib/types/index.d.ts
CHANGED
|
@@ -63,6 +63,7 @@ export interface NinetailedInstance {
|
|
|
63
63
|
export { NinetailedPlugin, TrackComponentProperties };
|
|
64
64
|
export type { EventHandler } from './EventHandler';
|
|
65
65
|
export type { AnalyticsInstance } from './AnalyticsInstance';
|
|
66
|
-
export {
|
|
66
|
+
export { ElementSeenPayloadSchema } from './ElementSeenPayload';
|
|
67
|
+
export type { ElementSeenPayload } from './ElementSeenPayload';
|
|
67
68
|
export type { ProfileChangedPayload } from './ProfileChangedPayload';
|
|
68
69
|
export type { Credentials } from './Credentials';
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ninetailed/experience.js",
|
|
3
|
-
"version": "4.3.0-beta.
|
|
3
|
+
"version": "4.3.0-beta.5",
|
|
4
4
|
"module": "./index.js",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"types": "./index.d.ts",
|
|
8
8
|
"dependencies": {
|
|
9
|
-
"@ninetailed/experience.js-shared": "4.3.0-beta.
|
|
9
|
+
"@ninetailed/experience.js-shared": "4.3.0-beta.5",
|
|
10
10
|
"analytics": "0.8.1",
|
|
11
11
|
"zod": "3.21.4"
|
|
12
12
|
},
|