@usertour/helpers 0.0.13 → 0.0.15

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.
@@ -1,76 +0,0 @@
1
- "use strict";
2
- var __defProp = Object.defineProperty;
3
- var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
- var __getOwnPropNames = Object.getOwnPropertyNames;
5
- var __hasOwnProp = Object.prototype.hasOwnProperty;
6
- var __export = (target, all) => {
7
- for (var name in all)
8
- __defProp(target, name, { get: all[name], enumerable: true });
9
- };
10
- var __copyProps = (to, from, except, desc) => {
11
- if (from && typeof from === "object" || typeof from === "function") {
12
- for (let key of __getOwnPropNames(from))
13
- if (!__hasOwnProp.call(to, key) && key !== except)
14
- __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
- }
16
- return to;
17
- };
18
- var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
-
20
- // src/content-settings.ts
21
- var content_settings_exports = {};
22
- __export(content_settings_exports, {
23
- autoStartConditions: () => autoStartConditions,
24
- buildConfig: () => buildConfig,
25
- defaultContentConfig: () => defaultContentConfig
26
- });
27
- module.exports = __toCommonJS(content_settings_exports);
28
- var import_types = require("@usertour/types");
29
- var import_deepmerge_ts = require("deepmerge-ts");
30
- var rulesSetting = {
31
- // frequency: {
32
- // frequency: Frequency.ONCE,
33
- // every: { duration: 0, times: 1, unit: FrequencyUnits.MINUTES },
34
- // atLeast: { duration: 0, unit: FrequencyUnits.MINUTES },
35
- // },
36
- startIfNotComplete: false,
37
- priority: import_types.ContentPriority.MEDIUM,
38
- wait: 0
39
- };
40
- var hideRulesSetting = {};
41
- var defaultContentConfig = {
42
- enabledAutoStartRules: false,
43
- enabledHideRules: false,
44
- autoStartRules: [],
45
- hideRules: [],
46
- autoStartRulesSetting: rulesSetting,
47
- hideRulesSetting
48
- };
49
- var autoStartConditions = {
50
- ...defaultContentConfig,
51
- enabledAutoStartRules: true,
52
- autoStartRules: [
53
- {
54
- data: { excludes: [], includes: ["/*"] },
55
- type: "current-page",
56
- operators: "and"
57
- }
58
- ]
59
- };
60
- var buildConfig = (config) => {
61
- return {
62
- ...defaultContentConfig,
63
- ...config,
64
- autoStartRulesSetting: (0, import_deepmerge_ts.deepmerge)(
65
- defaultContentConfig.autoStartRulesSetting,
66
- (config == null ? void 0 : config.autoStartRulesSetting) || {}
67
- ),
68
- hideRulesSetting: (config == null ? void 0 : config.hideRulesSetting) || {}
69
- };
70
- };
71
- // Annotate the CommonJS export names for ESM import in node:
72
- 0 && (module.exports = {
73
- autoStartConditions,
74
- buildConfig,
75
- defaultContentConfig
76
- });
@@ -1,7 +0,0 @@
1
- import { ContentConfigObject } from '@usertour/types';
2
-
3
- declare const defaultContentConfig: ContentConfigObject;
4
- declare const autoStartConditions: ContentConfigObject;
5
- declare const buildConfig: (config: ContentConfigObject | undefined) => ContentConfigObject;
6
-
7
- export { autoStartConditions, buildConfig, defaultContentConfig };
@@ -1,7 +0,0 @@
1
- import { ContentConfigObject } from '@usertour/types';
2
-
3
- declare const defaultContentConfig: ContentConfigObject;
4
- declare const autoStartConditions: ContentConfigObject;
5
- declare const buildConfig: (config: ContentConfigObject | undefined) => ContentConfigObject;
6
-
7
- export { autoStartConditions, buildConfig, defaultContentConfig };
@@ -1,11 +0,0 @@
1
- import {
2
- autoStartConditions,
3
- buildConfig,
4
- defaultContentConfig
5
- } from "./chunk-64BFWPHJ.js";
6
- import "./chunk-XEO3YXBM.js";
7
- export {
8
- autoStartConditions,
9
- buildConfig,
10
- defaultContentConfig
11
- };