Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #59 from zarathustra323/pass-dsl-params
Browse files Browse the repository at this point in the history
Pass `targetTag` and `requestFrame` to init components
  • Loading branch information
zarathustra323 authored Mar 24, 2021
2 parents ba66159 + 031485f commit 25846c2
Show file tree
Hide file tree
Showing 8 changed files with 20 additions and 4 deletions.
2 changes: 2 additions & 0 deletions packages/marko-web-gam/components/init.marko
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ $ const { on } = input;
name="googletag"
src=src
on=on
request-frame=input.requestFrame
target-tag=input.targetTag
init="window.googletag = window.googletag || {}; window.googletag.cmd = window.googletag.cmd || [];"
/>
</if>
Expand Down
4 changes: 3 additions & 1 deletion packages/marko-web-gam/components/marko.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
"<marko-web-gam-init>": {
"template": "./init.marko",
"@src": "string",
"@on": "string"
"@on": "string",
"@target-tag": "string",
"@request-frame": "boolean"
},
"<marko-web-gam-head>": {
"template": "./head.marko",
Expand Down
2 changes: 2 additions & 0 deletions packages/marko-web-gtm/components/init.marko
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ $ const start = input.start == null ? false : input.start;
name=`${name}_${containerId}`
src=src
on=on
request-frame=input.requestFrame
target-tag=input.targetTag
init=`var w = window, l = '${name}'; w[l] = w[l] || [];`
/>
</for>
Expand Down
4 changes: 3 additions & 1 deletion packages/marko-web-gtm/components/marko.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
"type": "boolean",
"default-value": false
},
"@on": "string"
"@on": "string",
"@target-tag": "string",
"@request-frame": "boolean"
},
"<marko-web-gtm-start>": {
"template": "./start.marko",
Expand Down
2 changes: 2 additions & 0 deletions packages/marko-web-native-x/components/init.marko
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ $ const src = "https://cdn.parameter1.com/native-x/1.0.0-rc.4.3.js";
name="fortnight"
src=src
on=on
request-frame=input.requestFrame
target-tag=input.targetTag
init="var i = window, r = 'fortnight'; i['FortnightObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments); };"
/>
</if>
Expand Down
4 changes: 3 additions & 1 deletion packages/marko-web-native-x/components/marko.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
"template": "./init.marko",
"@uri": "string",
"@enabled": "boolean",
"@on": "string"
"@on": "string",
"@target-tag": "string",
"@request-frame": "boolean"
},
"<marko-web-native-x-retrieve>": {
"template": "./retrieve.marko",
Expand Down
2 changes: 2 additions & 0 deletions packages/marko-web-p1-events/components/init.marko
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ $ const identityQueryBuilder = `identityQueryBuilder: function(query) { ${input.
name="p1events"
src=scriptSrc
on=on
request-frame=input.requestFrame
target-tag=input.targetTag
init="var i = window, r = 'p1events'; i['__p1e'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments); };"
/>
</if>
Expand Down
4 changes: 3 additions & 1 deletion packages/marko-web-p1-events/components/marko.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@
"@script-src": "string",
"@uri": "string",
"@identity-query-builder": "string",
"@on": "string"
"@on": "string",
"@target-tag": "string",
"@request-frame": "boolean"
},
"<marko-web-p1-events-track-content>": {
"template": "./track-content.marko",
Expand Down

0 comments on commit 25846c2

Please sign in to comment.