@usertour/helpers 0.0.11 → 0.0.12

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.js CHANGED
@@ -25,6 +25,42 @@ import {
25
25
  storage
26
26
  } from "./chunk-FGFMTWFT.js";
27
27
  import "./chunk-3ZGH3NRU.js";
28
+ import {
29
+ AbortController,
30
+ ArrayProto,
31
+ XMLHttpRequest,
32
+ assignableWindow,
33
+ document,
34
+ fetch,
35
+ location,
36
+ nativeForEach,
37
+ nativeIndexOf,
38
+ navigator,
39
+ userAgent,
40
+ win
41
+ } from "./chunk-H7VA3ML2.js";
42
+ import {
43
+ PRIORITIES,
44
+ activedContentCondition,
45
+ activedContentRulesConditions,
46
+ activedRulesConditions,
47
+ checklistIsDimissed,
48
+ checklistIsSeen,
49
+ completeEventMapping,
50
+ filterAutoStartContent,
51
+ findLatestEvent,
52
+ flowIsDismissed,
53
+ flowIsSeen,
54
+ isActive,
55
+ isActiveContent,
56
+ isDismissedEventMapping,
57
+ isHasActivedContents,
58
+ isSameContents,
59
+ isValidContent,
60
+ parseUrlParams,
61
+ rulesTypes,
62
+ wait
63
+ } from "./chunk-UT6OPCUX.js";
28
64
  import {
29
65
  conditionsIsSame,
30
66
  isEqual,
@@ -85,30 +121,23 @@ import {
85
121
  hasError,
86
122
  isValidSelector
87
123
  } 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";
102
124
  import "./chunk-XEO3YXBM.js";
103
125
  export {
104
126
  AbortController,
105
127
  ArrayProto,
128
+ PRIORITIES,
106
129
  XMLHttpRequest,
107
130
  absoluteUrl,
131
+ activedContentCondition,
132
+ activedContentRulesConditions,
133
+ activedRulesConditions,
108
134
  assignableWindow,
109
135
  autoStartConditions,
110
136
  buildConfig,
137
+ checklistIsDimissed,
138
+ checklistIsSeen,
111
139
  cn,
140
+ completeEventMapping,
112
141
  conditionsIsSame,
113
142
  convertSettings,
114
143
  convertToCssVars,
@@ -119,6 +148,10 @@ export {
119
148
  document,
120
149
  evalCode,
121
150
  fetch,
151
+ filterAutoStartContent,
152
+ findLatestEvent,
153
+ flowIsDismissed,
154
+ flowIsSeen,
122
155
  formatDate,
123
156
  generateAutoStateColors,
124
157
  getAuthToken,
@@ -141,10 +174,13 @@ export {
141
174
  hexToHSLString,
142
175
  hexToRGBStr,
143
176
  hexToRgb,
177
+ isActive,
178
+ isActiveContent,
144
179
  isArray,
145
180
  isBoolean,
146
181
  isDark,
147
182
  isDate,
183
+ isDismissedEventMapping,
148
184
  isDocument,
149
185
  isEmptyObject,
150
186
  isEmptyString,
@@ -152,6 +188,7 @@ export {
152
188
  isFile,
153
189
  isFormData,
154
190
  isFunction,
191
+ isHasActivedContents,
155
192
  isMatchUrlPattern,
156
193
  isNull,
157
194
  isNullish,
@@ -159,20 +196,25 @@ export {
159
196
  isObject,
160
197
  isPublishedAtLeastOneEnvironment,
161
198
  isPublishedInAllEnvironments,
199
+ isSameContents,
162
200
  isString,
163
201
  isUint8Array,
164
202
  isUndefined,
165
203
  isUrl,
204
+ isValidContent,
166
205
  isValidSelector,
167
206
  location,
168
207
  mergeThemeDefaultSettings,
169
208
  nativeForEach,
170
209
  nativeIndexOf,
171
210
  navigator,
211
+ parseUrlParams,
172
212
  removeAuthToken,
213
+ rulesTypes,
173
214
  setAuthToken,
174
215
  storage,
175
216
  userAgent,
176
217
  uuidV4,
218
+ wait,
177
219
  win as window
178
220
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usertour/helpers",
3
- "version": "0.0.11",
3
+ "version": "0.0.12",
4
4
  "type": "module",
5
5
  "description": "Utility functions and helpers shared across the UserTour project",
6
6
  "homepage": "https://www.usertour.io",
@@ -26,7 +26,7 @@
26
26
  "prepublishOnly": "pnpm build"
27
27
  },
28
28
  "dependencies": {
29
- "@usertour/types": "^0.0.4",
29
+ "@usertour/types": "^0.0.6",
30
30
  "fast-deep-equal": "^3.1.3",
31
31
  "chroma-js": "^3.1.2",
32
32
  "deepmerge-ts": "^7.1.3",
@@ -34,6 +34,7 @@
34
34
  "class-variance-authority": "^0.4.0",
35
35
  "clsx": "^1.2.1",
36
36
  "tailwind-merge": "^1.13.2",
37
+ "date-fns": "^2.30.0",
37
38
  "uuid": "^9.0.1"
38
39
  },
39
40
  "devDependencies": {