@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.
@@ -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
- ret.errorInfo = "Please select a flow";
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
- ret.errorInfo = "Please select a flow";
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
@@ -15,7 +15,7 @@ import {
15
15
  hasActionError,
16
16
  hasError,
17
17
  isValidSelector
18
- } from "./chunk-QWYOGIRR.js";
18
+ } from "./chunk-S2HECK2C.js";
19
19
  import "./chunk-JQWKLXW6.js";
20
20
  import "./chunk-GFH3VWOC.js";
21
21
  import "./chunk-XEO3YXBM.js";
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
- ret.errorInfo = "Please select a flow";
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
@@ -105,7 +105,7 @@ import {
105
105
  hasActionError,
106
106
  hasError,
107
107
  isValidSelector
108
- } from "./chunk-QWYOGIRR.js";
108
+ } from "./chunk-S2HECK2C.js";
109
109
  import {
110
110
  convertTimeConditionLegacyToV2,
111
111
  evaluateTimeCondition,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@usertour/helpers",
3
- "version": "0.0.52",
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.35",
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",