@walkeros/web-source-browser 4.3.2 → 4.4.0-next-1785239495233
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/CHANGELOG.md +20 -0
- package/dist/dev.d.mts +3 -3
- package/dist/dev.d.ts +3 -3
- package/dist/dev.js +1 -1
- package/dist/dev.js.map +1 -1
- package/dist/dev.mjs +1 -1
- package/dist/dev.mjs.map +1 -1
- package/dist/index.browser.js +1 -1
- package/dist/index.d.mts +50 -8
- package/dist/index.d.ts +50 -8
- package/dist/index.es5.js +1 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/walkerOS.json +15 -6
- package/package.json +4 -4
package/dist/walkerOS.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$meta": {
|
|
3
3
|
"package": "@walkeros/web-source-browser",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.0-next-1785239495233",
|
|
5
5
|
"type": "source",
|
|
6
6
|
"platform": [
|
|
7
7
|
"web"
|
|
@@ -38,10 +38,19 @@
|
|
|
38
38
|
},
|
|
39
39
|
"elb": {
|
|
40
40
|
"default": "elb",
|
|
41
|
-
"description": "Name for global elb function",
|
|
42
|
-
"
|
|
43
|
-
|
|
44
|
-
|
|
41
|
+
"description": "Name for global elb function, or false to install none",
|
|
42
|
+
"anyOf": [
|
|
43
|
+
{
|
|
44
|
+
"type": "string",
|
|
45
|
+
"minLength": 1,
|
|
46
|
+
"pattern": "^[a-zA-Z_$][a-zA-Z0-9_$]*$",
|
|
47
|
+
"description": "JavaScript variable name"
|
|
48
|
+
},
|
|
49
|
+
{
|
|
50
|
+
"type": "boolean",
|
|
51
|
+
"const": false
|
|
52
|
+
}
|
|
53
|
+
]
|
|
45
54
|
},
|
|
46
55
|
"name": {
|
|
47
56
|
"type": "string",
|
|
@@ -84,7 +93,7 @@
|
|
|
84
93
|
},
|
|
85
94
|
"examples": {
|
|
86
95
|
"createTrigger": {
|
|
87
|
-
"$code": "async(e,t)=>{const r=(null==t?void 0:t.sourceId)||\"browser\";let o;const n=document,a=window;return{get flow(){return o},trigger:(t,i)=>async s=>{var c;if(\"load\"===t||!t){const e=\"object\"==typeof i&&null!==i?i:{};if(e.url){const t=new URL(e.url);a.history.replaceState({},\"\",t.pathname)}e.title&&(n.title=e.title),e.referrer&&Object.defineProperty(n,\"referrer\",{value:e.referrer,configurable:!0})}if(s&&(n.body.innerHTML=s),!o){const t=await T({...e,run:null==(c=e.run)||c});o={collector:t.collector,elb:t.elb}}if(!t||\"load\"===t)return;const l=\"string\"==typeof i?i:void 0,d=l?n.querySelector(l):null;if(!d)return void console.warn(`Trigger: element not found for selector \"${l}\"`);const u=o.collector.sources[r];if(!u)return void console.warn(`Trigger: source \"${r}\" not found in collector`);const p={elb:o.elb,settings:u.config.settings};await async function(e,t,r){const o=
|
|
96
|
+
"$code": "async(e,t)=>{const r=(null==t?void 0:t.sourceId)||\"browser\";let o;const n=document,a=window;return{get flow(){return o},trigger:(t,i)=>async s=>{var c;if(\"load\"===t||!t){const e=\"object\"==typeof i&&null!==i?i:{};if(e.url){const t=new URL(e.url);a.history.replaceState({},\"\",t.pathname)}e.title&&(n.title=e.title),e.referrer&&Object.defineProperty(n,\"referrer\",{value:e.referrer,configurable:!0})}if(s&&(n.body.innerHTML=s),!o){const t=await T({...e,run:null==(c=e.run)||c});o={collector:t.collector,elb:t.elb}}if(!t||\"load\"===t)return;const l=\"string\"==typeof i?i:void 0,d=l?n.querySelector(l):null;if(!d)return void console.warn(`Trigger: element not found for selector \"${l}\"`);const u=o.collector.sources[r];if(!u)return void console.warn(`Trigger: source \"${r}\" not found in collector`);const p={elb:o.elb,settings:u.config.settings,registry:{scopes:new Map,elements:new WeakMap,visibility:new WeakMap,destroyed:!1}};await async function(e,t,r){const o=I(t,r,e.settings.prefix);return Promise.all(o.map(t=>ie(e,{name:`${t.entity} ${t.action}`,...t,trigger:r})))}(p,d,t)}}}"
|
|
88
97
|
},
|
|
89
98
|
"env": {
|
|
90
99
|
"push": {
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@walkeros/web-source-browser",
|
|
3
3
|
"description": "Browser DOM source for walkerOS",
|
|
4
|
-
"version": "4.
|
|
4
|
+
"version": "4.4.0-next-1785239495233",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"main": "./dist/index.js",
|
|
7
7
|
"module": "./dist/index.mjs",
|
|
@@ -33,9 +33,9 @@
|
|
|
33
33
|
"update": "npx npm-check-updates -u && npm update"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@walkeros/collector": "4.
|
|
37
|
-
"@walkeros/core": "4.
|
|
38
|
-
"@walkeros/web-core": "4.
|
|
36
|
+
"@walkeros/collector": "4.4.0-next-1785239495233",
|
|
37
|
+
"@walkeros/core": "4.4.0-next-1785239495233",
|
|
38
|
+
"@walkeros/web-core": "4.4.0-next-1785239495233"
|
|
39
39
|
},
|
|
40
40
|
"repository": {
|
|
41
41
|
"url": "git+https://github.com/elbwalker/walkerOS.git",
|