@usertour/helpers 0.0.52 → 0.0.53
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/{chunk-QWYOGIRR.js → chunk-S2HECK2C.js} +2 -1
- package/dist/error.cjs +2 -1
- package/dist/error.js +1 -1
- package/dist/index.cjs +2 -1
- package/dist/index.js +1 -1
- package/package.json +2 -2
|
@@ -125,7 +125,8 @@ var getContentError = (data) => {
|
|
|
125
125
|
const ret = { showError: false, errorInfo: "" };
|
|
126
126
|
if (!data.contentId) {
|
|
127
127
|
ret.showError = true;
|
|
128
|
-
|
|
128
|
+
const contentType = data.type === "checklist" ? "checklist" : "flow";
|
|
129
|
+
ret.errorInfo = `Please select a ${contentType}`;
|
|
129
130
|
}
|
|
130
131
|
return ret;
|
|
131
132
|
};
|
package/dist/error.cjs
CHANGED
|
@@ -175,7 +175,8 @@ var getContentError = (data) => {
|
|
|
175
175
|
const ret = { showError: false, errorInfo: "" };
|
|
176
176
|
if (!data.contentId) {
|
|
177
177
|
ret.showError = true;
|
|
178
|
-
|
|
178
|
+
const contentType = data.type === "checklist" ? "checklist" : "flow";
|
|
179
|
+
ret.errorInfo = `Please select a ${contentType}`;
|
|
179
180
|
}
|
|
180
181
|
return ret;
|
|
181
182
|
};
|
package/dist/error.js
CHANGED
package/dist/index.cjs
CHANGED
|
@@ -736,7 +736,8 @@ var getContentError = (data) => {
|
|
|
736
736
|
const ret = { showError: false, errorInfo: "" };
|
|
737
737
|
if (!data.contentId) {
|
|
738
738
|
ret.showError = true;
|
|
739
|
-
|
|
739
|
+
const contentType = data.type === "checklist" ? "checklist" : "flow";
|
|
740
|
+
ret.errorInfo = `Please select a ${contentType}`;
|
|
740
741
|
}
|
|
741
742
|
return ret;
|
|
742
743
|
};
|
package/dist/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@usertour/helpers",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.53",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Utility functions and helpers shared across the UserTour project",
|
|
6
6
|
"homepage": "https://www.usertour.io",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
32
|
-
"@usertour/types": "^0.0.
|
|
32
|
+
"@usertour/types": "^0.0.40",
|
|
33
33
|
"chroma-js": "^3.1.2",
|
|
34
34
|
"class-variance-authority": "^0.4.0",
|
|
35
35
|
"clsx": "^1.2.1",
|