@usertour/helpers 0.0.10 → 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/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,6 +1,3 @@
1
- import {
2
- deepClone
3
- } from "./chunk-2AEGAICC.js";
4
1
  import {
5
2
  absoluteUrl,
6
3
  cn,
@@ -18,6 +15,9 @@ import {
18
15
  import {
19
16
  defaultStep
20
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.10",
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",
@@ -26,24 +26,21 @@
26
26
  "prepublishOnly": "pnpm build"
27
27
  },
28
28
  "dependencies": {
29
- "@floating-ui/dom": "^1.4.4",
30
- "@medv/finder": "^3.1.0",
31
- "@paralleldrive/cuid2": "^2.2.2",
32
- "@usertour/types": "^0.0.5",
29
+ "@usertour/types": "^0.0.4",
30
+ "fast-deep-equal": "^3.1.3",
33
31
  "chroma-js": "^3.1.2",
32
+ "deepmerge-ts": "^7.1.3",
33
+ "@paralleldrive/cuid2": "^2.2.2",
34
34
  "class-variance-authority": "^0.4.0",
35
35
  "clsx": "^1.2.1",
36
- "date-fns": "^2.30.0",
37
- "deepmerge-ts": "^7.1.3",
38
- "fast-deep-equal": "^3.1.3",
39
36
  "tailwind-merge": "^1.13.2",
40
37
  "uuid": "^9.0.1"
41
38
  },
42
39
  "devDependencies": {
43
- "@types/chroma-js": "^3.1.1",
44
- "@types/uuid": "^9.0.6",
45
40
  "@typescript-eslint/eslint-plugin": "^5.59.0",
46
41
  "@typescript-eslint/parser": "^5.59.0",
42
+ "@types/chroma-js": "^3.1.1",
43
+ "@types/uuid": "^9.0.6",
47
44
  "eslint": "^8.38.0",
48
45
  "typescript": "^5.0.2"
49
46
  },