@usertour/helpers 0.0.9 → 0.0.11
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/globals.d.cts +1 -1
- package/dist/globals.d.ts +1 -1
- package/dist/index.cjs +2 -913
- package/dist/index.d.cts +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.js +20 -71
- package/package.json +7 -17
- package/dist/chunk-7IK5Q5N2.js +0 -591
- package/dist/chunk-DEG6MTU7.js +0 -318
- package/dist/chunk-HWWIAVVP.js +0 -112
- package/dist/chunk-Y5PCSFVZ.js +0 -183
- package/dist/chunk-Y6FPPOKF.js +0 -28
- package/dist/conditions.cjs +0 -1001
- package/dist/conditions.d.cts +0 -23
- package/dist/conditions.d.ts +0 -23
- package/dist/conditions.js +0 -45
- package/dist/finderx.cjs +0 -346
- package/dist/finderx.d.cts +0 -47
- package/dist/finderx.d.ts +0 -47
- package/dist/finderx.js +0 -15
- package/dist/jwt-license-signer.cjs +0 -147
- package/dist/jwt-license-signer.d.cts +0 -61
- package/dist/jwt-license-signer.d.ts +0 -61
- package/dist/jwt-license-signer.js +0 -7
- package/dist/jwt-license-validator.cjs +0 -217
- package/dist/jwt-license-validator.d.cts +0 -54
- package/dist/jwt-license-validator.d.ts +0 -54
- package/dist/jwt-license-validator.js +0 -7
- package/dist/listener.cjs +0 -68
- package/dist/listener.d.cts +0 -7
- package/dist/listener.d.ts +0 -7
- package/dist/listener.js +0 -16
- package/dist/server.cjs +0 -331
- package/dist/server.d.cts +0 -4
- package/dist/server.d.ts +0 -4
- package/dist/server.js +0 -11
package/dist/index.d.cts
CHANGED
|
@@ -11,8 +11,6 @@ export { isPublishedAtLeastOneEnvironment, isPublishedInAllEnvironments } from '
|
|
|
11
11
|
export { deepClone } from './utils.cjs';
|
|
12
12
|
export { generateAutoStateColors, hexToHSLString, hexToRGBStr } from './color.cjs';
|
|
13
13
|
export { absoluteUrl, cn, cuid, evalCode, formatDate, getRandomColor, hexToRgb, isDark, uuidV4 } from './helper.cjs';
|
|
14
|
-
export { PRIORITIES, activedContentCondition, activedContentRulesConditions, activedRulesConditions, checklistIsDimissed, checklistIsSeen, filterAutoStartContent, findLatestEvent, flowIsDismissed, flowIsSeen, isActive, isActiveContent, isHasActivedContents, isSameContents, isValidContent, isVisible, parseUrlParams, wait } from './conditions.cjs';
|
|
15
|
-
export { Options, Target, TargetResult, XData, XNode, XResult, finder, finderV2, finderX, parserV2, parserX } from './finderx.cjs';
|
|
16
14
|
export { default as isEqual } from 'fast-deep-equal';
|
|
17
15
|
import '@usertour/types';
|
|
18
16
|
import './storage.cjs';
|
package/dist/index.d.ts
CHANGED
|
@@ -11,8 +11,6 @@ export { isPublishedAtLeastOneEnvironment, isPublishedInAllEnvironments } from '
|
|
|
11
11
|
export { deepClone } from './utils.js';
|
|
12
12
|
export { generateAutoStateColors, hexToHSLString, hexToRGBStr } from './color.js';
|
|
13
13
|
export { absoluteUrl, cn, cuid, evalCode, formatDate, getRandomColor, hexToRgb, isDark, uuidV4 } from './helper.js';
|
|
14
|
-
export { PRIORITIES, activedContentCondition, activedContentRulesConditions, activedRulesConditions, checklistIsDimissed, checklistIsSeen, filterAutoStartContent, findLatestEvent, flowIsDismissed, flowIsSeen, isActive, isActiveContent, isHasActivedContents, isSameContents, isValidContent, isVisible, parseUrlParams, wait } from './conditions.js';
|
|
15
|
-
export { Options, Target, TargetResult, XData, XNode, XResult, finder, finderV2, finderX, parserV2, parserX } from './finderx.js';
|
|
16
14
|
export { default as isEqual } from 'fast-deep-equal';
|
|
17
15
|
import '@usertour/types';
|
|
18
16
|
import './storage.js';
|
package/dist/index.js
CHANGED
|
@@ -1,9 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
defaultStep
|
|
3
|
-
} from "./chunk-FW54TSA3.js";
|
|
4
|
-
import {
|
|
5
|
-
deepClone
|
|
6
|
-
} from "./chunk-2AEGAICC.js";
|
|
7
1
|
import {
|
|
8
2
|
absoluteUrl,
|
|
9
3
|
cn,
|
|
@@ -18,6 +12,12 @@ import {
|
|
|
18
12
|
import {
|
|
19
13
|
isUrl
|
|
20
14
|
} from "./chunk-ZNFXGN3M.js";
|
|
15
|
+
import {
|
|
16
|
+
defaultStep
|
|
17
|
+
} from "./chunk-FW54TSA3.js";
|
|
18
|
+
import {
|
|
19
|
+
deepClone
|
|
20
|
+
} from "./chunk-2AEGAICC.js";
|
|
21
21
|
import {
|
|
22
22
|
getAuthToken,
|
|
23
23
|
removeAuthToken,
|
|
@@ -25,48 +25,6 @@ import {
|
|
|
25
25
|
storage
|
|
26
26
|
} from "./chunk-FGFMTWFT.js";
|
|
27
27
|
import "./chunk-3ZGH3NRU.js";
|
|
28
|
-
import {
|
|
29
|
-
PRIORITIES,
|
|
30
|
-
activedContentCondition,
|
|
31
|
-
activedContentRulesConditions,
|
|
32
|
-
activedRulesConditions,
|
|
33
|
-
checklistIsDimissed,
|
|
34
|
-
checklistIsSeen,
|
|
35
|
-
filterAutoStartContent,
|
|
36
|
-
findLatestEvent,
|
|
37
|
-
flowIsDismissed,
|
|
38
|
-
flowIsSeen,
|
|
39
|
-
isActive,
|
|
40
|
-
isActiveContent,
|
|
41
|
-
isHasActivedContents,
|
|
42
|
-
isSameContents,
|
|
43
|
-
isValidContent,
|
|
44
|
-
isVisible,
|
|
45
|
-
parseUrlParams,
|
|
46
|
-
wait
|
|
47
|
-
} from "./chunk-7IK5Q5N2.js";
|
|
48
|
-
import {
|
|
49
|
-
finder,
|
|
50
|
-
finderV2,
|
|
51
|
-
finderX,
|
|
52
|
-
parserV2,
|
|
53
|
-
parserX
|
|
54
|
-
} from "./chunk-DEG6MTU7.js";
|
|
55
|
-
import "./chunk-Y6FPPOKF.js";
|
|
56
|
-
import {
|
|
57
|
-
AbortController,
|
|
58
|
-
ArrayProto,
|
|
59
|
-
XMLHttpRequest,
|
|
60
|
-
assignableWindow,
|
|
61
|
-
document,
|
|
62
|
-
fetch,
|
|
63
|
-
location,
|
|
64
|
-
nativeForEach,
|
|
65
|
-
nativeIndexOf,
|
|
66
|
-
navigator,
|
|
67
|
-
userAgent,
|
|
68
|
-
win
|
|
69
|
-
} from "./chunk-H7VA3ML2.js";
|
|
70
28
|
import {
|
|
71
29
|
conditionsIsSame,
|
|
72
30
|
isEqual,
|
|
@@ -127,21 +85,29 @@ import {
|
|
|
127
85
|
hasError,
|
|
128
86
|
isValidSelector
|
|
129
87
|
} from "./chunk-G5P7KULU.js";
|
|
88
|
+
import {
|
|
89
|
+
AbortController,
|
|
90
|
+
ArrayProto,
|
|
91
|
+
XMLHttpRequest,
|
|
92
|
+
assignableWindow,
|
|
93
|
+
document,
|
|
94
|
+
fetch,
|
|
95
|
+
location,
|
|
96
|
+
nativeForEach,
|
|
97
|
+
nativeIndexOf,
|
|
98
|
+
navigator,
|
|
99
|
+
userAgent,
|
|
100
|
+
win
|
|
101
|
+
} from "./chunk-H7VA3ML2.js";
|
|
130
102
|
import "./chunk-XEO3YXBM.js";
|
|
131
103
|
export {
|
|
132
104
|
AbortController,
|
|
133
105
|
ArrayProto,
|
|
134
|
-
PRIORITIES,
|
|
135
106
|
XMLHttpRequest,
|
|
136
107
|
absoluteUrl,
|
|
137
|
-
activedContentCondition,
|
|
138
|
-
activedContentRulesConditions,
|
|
139
|
-
activedRulesConditions,
|
|
140
108
|
assignableWindow,
|
|
141
109
|
autoStartConditions,
|
|
142
110
|
buildConfig,
|
|
143
|
-
checklistIsDimissed,
|
|
144
|
-
checklistIsSeen,
|
|
145
111
|
cn,
|
|
146
112
|
conditionsIsSame,
|
|
147
113
|
convertSettings,
|
|
@@ -153,13 +119,6 @@ export {
|
|
|
153
119
|
document,
|
|
154
120
|
evalCode,
|
|
155
121
|
fetch,
|
|
156
|
-
filterAutoStartContent,
|
|
157
|
-
findLatestEvent,
|
|
158
|
-
finder,
|
|
159
|
-
finderV2,
|
|
160
|
-
finderX,
|
|
161
|
-
flowIsDismissed,
|
|
162
|
-
flowIsSeen,
|
|
163
122
|
formatDate,
|
|
164
123
|
generateAutoStateColors,
|
|
165
124
|
getAuthToken,
|
|
@@ -182,8 +141,6 @@ export {
|
|
|
182
141
|
hexToHSLString,
|
|
183
142
|
hexToRGBStr,
|
|
184
143
|
hexToRgb,
|
|
185
|
-
isActive,
|
|
186
|
-
isActiveContent,
|
|
187
144
|
isArray,
|
|
188
145
|
isBoolean,
|
|
189
146
|
isDark,
|
|
@@ -195,7 +152,6 @@ export {
|
|
|
195
152
|
isFile,
|
|
196
153
|
isFormData,
|
|
197
154
|
isFunction,
|
|
198
|
-
isHasActivedContents,
|
|
199
155
|
isMatchUrlPattern,
|
|
200
156
|
isNull,
|
|
201
157
|
isNullish,
|
|
@@ -203,27 +159,20 @@ export {
|
|
|
203
159
|
isObject,
|
|
204
160
|
isPublishedAtLeastOneEnvironment,
|
|
205
161
|
isPublishedInAllEnvironments,
|
|
206
|
-
isSameContents,
|
|
207
162
|
isString,
|
|
208
163
|
isUint8Array,
|
|
209
164
|
isUndefined,
|
|
210
165
|
isUrl,
|
|
211
|
-
isValidContent,
|
|
212
166
|
isValidSelector,
|
|
213
|
-
isVisible,
|
|
214
167
|
location,
|
|
215
168
|
mergeThemeDefaultSettings,
|
|
216
169
|
nativeForEach,
|
|
217
170
|
nativeIndexOf,
|
|
218
171
|
navigator,
|
|
219
|
-
parseUrlParams,
|
|
220
|
-
parserV2,
|
|
221
|
-
parserX,
|
|
222
172
|
removeAuthToken,
|
|
223
173
|
setAuthToken,
|
|
224
174
|
storage,
|
|
225
175
|
userAgent,
|
|
226
176
|
uuidV4,
|
|
227
|
-
wait,
|
|
228
177
|
win as window
|
|
229
178
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usertour/helpers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Utility functions and helpers shared across the UserTour project",
|
|
6
6
|
"homepage": "https://www.usertour.io",
|
|
@@ -14,11 +14,6 @@
|
|
|
14
14
|
"import": "./dist/index.js",
|
|
15
15
|
"require": "./dist/index.js",
|
|
16
16
|
"types": "./dist/index.d.ts"
|
|
17
|
-
},
|
|
18
|
-
"./server": {
|
|
19
|
-
"import": "./dist/server.js",
|
|
20
|
-
"require": "./dist/server.js",
|
|
21
|
-
"types": "./dist/server.d.ts"
|
|
22
17
|
}
|
|
23
18
|
},
|
|
24
19
|
"files": ["dist"],
|
|
@@ -31,26 +26,21 @@
|
|
|
31
26
|
"prepublishOnly": "pnpm build"
|
|
32
27
|
},
|
|
33
28
|
"dependencies": {
|
|
34
|
-
"@
|
|
35
|
-
"
|
|
36
|
-
"@paralleldrive/cuid2": "^2.2.2",
|
|
37
|
-
"@types/jsonwebtoken": "^9.0.10",
|
|
38
|
-
"@usertour/types": "^0.0.5",
|
|
29
|
+
"@usertour/types": "^0.0.4",
|
|
30
|
+
"fast-deep-equal": "^3.1.3",
|
|
39
31
|
"chroma-js": "^3.1.2",
|
|
32
|
+
"deepmerge-ts": "^7.1.3",
|
|
33
|
+
"@paralleldrive/cuid2": "^2.2.2",
|
|
40
34
|
"class-variance-authority": "^0.4.0",
|
|
41
35
|
"clsx": "^1.2.1",
|
|
42
|
-
"date-fns": "^2.30.0",
|
|
43
|
-
"deepmerge-ts": "^7.1.3",
|
|
44
|
-
"fast-deep-equal": "^3.1.3",
|
|
45
|
-
"jsonwebtoken": "^9.0.2",
|
|
46
36
|
"tailwind-merge": "^1.13.2",
|
|
47
37
|
"uuid": "^9.0.1"
|
|
48
38
|
},
|
|
49
39
|
"devDependencies": {
|
|
50
|
-
"@types/chroma-js": "^3.1.1",
|
|
51
|
-
"@types/uuid": "^9.0.6",
|
|
52
40
|
"@typescript-eslint/eslint-plugin": "^5.59.0",
|
|
53
41
|
"@typescript-eslint/parser": "^5.59.0",
|
|
42
|
+
"@types/chroma-js": "^3.1.1",
|
|
43
|
+
"@types/uuid": "^9.0.6",
|
|
54
44
|
"eslint": "^8.38.0",
|
|
55
45
|
"typescript": "^5.0.2"
|
|
56
46
|
},
|