@ai-matrx/records 0.99.16 → 0.99.17
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 +6 -0
- package/dist/forms/index.cjs +1 -1
- package/dist/forms/index.cjs.map +1 -1
- package/dist/forms/index.js +1 -1
- package/dist/forms/index.js.map +1 -1
- package/package.json +4 -4
package/dist/forms/index.js
CHANGED
|
@@ -168,7 +168,7 @@ function formEmbedSnippet(kind, formUrl, options) {
|
|
|
168
168
|
const esc = (v) => v.replace(/&/g, "&").replace(/"/g, """).replace(/</g, "<");
|
|
169
169
|
if (kind === "inline") {
|
|
170
170
|
const height = options?.height && options.height > 0 ? Math.round(options.height) : 640;
|
|
171
|
-
return `<iframe src="${esc(src)}"
|
|
171
|
+
return `<iframe src="${esc(src)}" aria-label="${esc(label)}" style="width:100%;height:${height}px;border:0" loading="lazy" allow="clipboard-write"></iframe>`;
|
|
172
172
|
}
|
|
173
173
|
const script = `${url.origin}/embed/form.js`;
|
|
174
174
|
return `<button type="button" data-matrx-form="${esc(src)}" data-matrx-form-mode="${kind}">${esc(label)}</button>
|