@pageboard/html 0.14.2 → 0.14.4
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/elements/form.js +1 -1
- package/elements/media.js +1 -1
- package/package.json +1 -1
- package/ui/embed.js +5 -1
package/elements/form.js
CHANGED
|
@@ -180,7 +180,7 @@ exports.api_form = {
|
|
|
180
180
|
tag: 'form[method="post"]',
|
|
181
181
|
html: `<form is="element-form" method="post" name="[name]" masked="[masked]"
|
|
182
182
|
action="/.api/form/[$id]"
|
|
183
|
-
parameters="[$expr?.action?.parameters|
|
|
183
|
+
parameters="[$expr?.action?.parameters|as:expressions]"
|
|
184
184
|
success="[redirection.url][redirection.parameters|as:query]"
|
|
185
185
|
badrequest="[badrequest.url][badrequest.parameters|as:query]"
|
|
186
186
|
unauthorized="[unauthorized.url][unauthorized.parameters|as:query]"
|
package/elements/media.js
CHANGED
|
@@ -67,7 +67,7 @@ exports.video = {
|
|
|
67
67
|
},
|
|
68
68
|
html: `<video is="element-video" data-src="[url]" class="[display.fit|or:none]"
|
|
69
69
|
preload="metadata" autoplay="[autoplay]" loop="[loop]"
|
|
70
|
-
muted="[muted]" controls="[controls]"></video>`,
|
|
70
|
+
muted="[muted]" controls="[controls]" playsinline></video>`,
|
|
71
71
|
scripts: [
|
|
72
72
|
'../ui/media.js'
|
|
73
73
|
],
|
package/package.json
CHANGED
package/ui/embed.js
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
class HTMLElementEmbed extends Page.Element {
|
|
2
2
|
static defaults = {
|
|
3
3
|
src: null,
|
|
4
|
+
query: null,
|
|
4
5
|
hash: null
|
|
5
6
|
};
|
|
6
7
|
static revealRatio = 0.2;
|
|
@@ -34,7 +35,10 @@ class HTMLElementEmbed extends Page.Element {
|
|
|
34
35
|
const opts = this.options;
|
|
35
36
|
const prev = Page.parse(this.currentSrc);
|
|
36
37
|
const cur = Page.parse(this.dataset.source || this.options.src || "about:blank");
|
|
37
|
-
|
|
38
|
+
if (opts.query) {
|
|
39
|
+
cur.query = Object.assign(cur.query, Page.parse(opts.query).query);
|
|
40
|
+
}
|
|
41
|
+
if (opts.hash) cur.hash = opts.hash;
|
|
38
42
|
const curSrc = cur.toString();
|
|
39
43
|
|
|
40
44
|
if (cur.samePath(prev) == false) {
|