@usertour/helpers 0.0.46 → 0.0.48
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/__tests__/condition.test.cjs +2 -2
- package/dist/__tests__/condition.test.js +1 -1
- package/dist/__tests__/content-helper.test.cjs +1009 -0
- package/dist/__tests__/content-helper.test.d.cts +2 -0
- package/dist/__tests__/content-helper.test.d.ts +2 -0
- package/dist/__tests__/content-helper.test.js +716 -0
- package/dist/chunk-7GJAPR7Y.js +218 -0
- package/dist/{chunk-SLM6E7HG.js → chunk-SIG4WTEF.js} +2 -2
- package/dist/conditions/condition.cjs +2 -2
- package/dist/conditions/condition.js +1 -1
- package/dist/conditions/index.cjs +2 -2
- package/dist/conditions/index.js +1 -1
- package/dist/content-helper.cjs +67 -23
- package/dist/content-helper.d.cts +34 -9
- package/dist/content-helper.d.ts +34 -9
- package/dist/content-helper.js +25 -169
- package/dist/index.cjs +219 -2
- package/dist/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +31 -1
- package/package.json +1 -1
|
@@ -521,9 +521,9 @@ var evaluateRule = async (condition, options) => {
|
|
|
521
521
|
var _a, _b;
|
|
522
522
|
const { typeControl = {}, activatedIds, deactivatedIds, customEvaluators } = options;
|
|
523
523
|
const conditionId = condition.id;
|
|
524
|
-
if (activatedIds == null ? void 0 : activatedIds.includes(conditionId))
|
|
524
|
+
if (conditionId && (activatedIds == null ? void 0 : activatedIds.includes(conditionId)))
|
|
525
525
|
return true;
|
|
526
|
-
if (deactivatedIds == null ? void 0 : deactivatedIds.includes(conditionId))
|
|
526
|
+
if (conditionId && (deactivatedIds == null ? void 0 : deactivatedIds.includes(conditionId)))
|
|
527
527
|
return false;
|
|
528
528
|
const customEvaluator = customEvaluators == null ? void 0 : customEvaluators[condition.type];
|
|
529
529
|
if (customEvaluator) {
|