@walkeros/web-destination-plausible 3.4.0 → 3.4.1

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.
@@ -104,7 +104,7 @@ function L(e2, t = {}, n = {}) {
104
104
  }
105
105
  function fe(e2 = {}) {
106
106
  var _a;
107
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
107
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
108
108
  if (e2.name) {
109
109
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
110
110
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -118,6 +118,8 @@ function le(e2 = "entity action", t = {}) {
118
118
 
119
119
  // src/examples/step.ts
120
120
  var init2 = {
121
+ title: "Initialization",
122
+ description: "Destination bootstrap loads the Plausible script for the configured domain and installs the queue.",
121
123
  in: {
122
124
  loadScript: true,
123
125
  settings: {
@@ -135,6 +137,8 @@ var init2 = {
135
137
  ]
136
138
  };
137
139
  var purchase = {
140
+ title: "Purchase",
141
+ description: "A completed order fires a Plausible purchase event with revenue currency and amount.",
138
142
  in: le("order complete", { timestamp: 1700000200 }),
139
143
  mapping: {
140
144
  name: "purchase",
@@ -163,6 +167,8 @@ var purchase = {
163
167
  ]
164
168
  };
165
169
  var customEvent = {
170
+ title: "Custom event",
171
+ description: "A generic entity action fires a Plausible custom event with mapped props and a revenue field.",
166
172
  in: le("entity action", { timestamp: 1700000201 }),
167
173
  mapping: {
168
174
  name: "Custom Event",
@@ -83,7 +83,7 @@ function L(e2, t = {}, n = {}) {
83
83
  }
84
84
  function fe(e2 = {}) {
85
85
  var _a;
86
- const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.0", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
86
+ const t = e2.timestamp || (/* @__PURE__ */ new Date()).setHours(0, 13, 37, 0), n = e2.group || "gr0up", o = e2.count || 1, r = L({ name: "entity action", data: { string: "foo", number: 1, boolean: true, array: [0, "text", false], not: void 0 }, context: { dev: ["test", 1] }, globals: { lang: "elb" }, custom: { completely: "random" }, user: { id: "us3r", device: "c00k13", session: "s3ss10n" }, nested: [{ entity: "child", data: { is: "subordinated" }, nested: [], context: { element: ["child", 0] } }], consent: { functional: true }, id: `${t}-${n}-${o}`, trigger: "test", entity: "entity", action: "action", timestamp: t, timing: 3.14, group: n, count: o, version: { source: "3.4.1", tagging: 1 }, source: { type: "web", id: "https://localhost:80", previous_id: "http://remotehost:9001" } }, e2, { merge: false });
87
87
  if (e2.name) {
88
88
  const [t2, n2] = (_a = e2.name.split(" ")) != null ? _a : [];
89
89
  t2 && n2 && (r.entity = t2, r.action = n2);
@@ -97,6 +97,8 @@ function le(e2 = "entity action", t = {}) {
97
97
 
98
98
  // src/examples/step.ts
99
99
  var init2 = {
100
+ title: "Initialization",
101
+ description: "Destination bootstrap loads the Plausible script for the configured domain and installs the queue.",
100
102
  in: {
101
103
  loadScript: true,
102
104
  settings: {
@@ -114,6 +116,8 @@ var init2 = {
114
116
  ]
115
117
  };
116
118
  var purchase = {
119
+ title: "Purchase",
120
+ description: "A completed order fires a Plausible purchase event with revenue currency and amount.",
117
121
  in: le("order complete", { timestamp: 1700000200 }),
118
122
  mapping: {
119
123
  name: "purchase",
@@ -142,6 +146,8 @@ var purchase = {
142
146
  ]
143
147
  };
144
148
  var customEvent = {
149
+ title: "Custom event",
150
+ description: "A generic entity action fires a Plausible custom event with mapped props and a revenue field.",
145
151
  in: le("entity action", { timestamp: 1700000201 }),
146
152
  mapping: {
147
153
  name: "Custom Event",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "$meta": {
3
3
  "package": "@walkeros/web-destination-plausible",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "type": "destination",
6
6
  "platform": [
7
7
  "web"
@@ -73,6 +73,8 @@
73
73
  },
74
74
  "step": {
75
75
  "customEvent": {
76
+ "title": "Custom event",
77
+ "description": "A generic entity action fires a Plausible custom event with mapped props and a revenue field.",
76
78
  "in": {
77
79
  "name": "entity action",
78
80
  "data": {
@@ -129,7 +131,7 @@
129
131
  "group": "gr0up",
130
132
  "count": 1,
131
133
  "version": {
132
- "source": "3.4.0",
134
+ "source": "3.4.1",
133
135
  "tagging": 1
134
136
  },
135
137
  "source": {
@@ -168,6 +170,8 @@
168
170
  ]
169
171
  },
170
172
  "init": {
173
+ "title": "Initialization",
174
+ "description": "Destination bootstrap loads the Plausible script for the configured domain and installs the queue.",
171
175
  "in": {
172
176
  "loadScript": true,
173
177
  "settings": {
@@ -185,6 +189,8 @@
185
189
  ]
186
190
  },
187
191
  "purchase": {
192
+ "title": "Purchase",
193
+ "description": "A completed order fires a Plausible purchase event with revenue currency and amount.",
188
194
  "in": {
189
195
  "name": "order complete",
190
196
  "data": {
@@ -271,7 +277,7 @@
271
277
  "group": "gr0up",
272
278
  "count": 1,
273
279
  "version": {
274
- "source": "3.4.0",
280
+ "source": "3.4.1",
275
281
  "tagging": 1
276
282
  },
277
283
  "source": {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@walkeros/web-destination-plausible",
3
3
  "description": "Plausible web destination for walkerOS",
4
- "version": "3.4.0",
4
+ "version": "3.4.1",
5
5
  "license": "MIT",
6
6
  "main": "./dist/index.js",
7
7
  "module": "./dist/index.mjs",
@@ -37,10 +37,10 @@
37
37
  "update": "npx npm-check-updates -u && npm update"
38
38
  },
39
39
  "dependencies": {
40
- "@walkeros/web-core": "3.4.0"
40
+ "@walkeros/web-core": "3.4.1"
41
41
  },
42
42
  "devDependencies": {
43
- "@walkeros/collector": "3.4.0"
43
+ "@walkeros/collector": "3.4.1"
44
44
  },
45
45
  "repository": {
46
46
  "url": "git+https://github.com/elbwalker/walkerOS.git",