@burdenoff/ui-engine 2026.1127.1 → 2026.1127.3
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/README.md +68 -3
- package/dist/capture.js +3 -2
- package/dist/dom-runtime/actions.d.ts +65 -0
- package/dist/dom-runtime/iife.d.ts +1 -0
- package/dist/dom-runtime/index.d.ts +7 -0
- package/dist/dom-runtime/runtime.d.ts +79 -0
- package/dist/dom-runtime.d.ts +2 -0
- package/dist/dom-runtime.iife.js +1 -0
- package/dist/dom-runtime.js +535 -0
- package/dist/{index-05zgh18g.js → index-2kgsgn1c.js} +1 -1
- package/dist/{index-phd8yhyg.js → index-bnvmt4wf.js} +7 -5
- package/dist/{index-c6pmt2rg.js → index-cs6acyjn.js} +6 -59
- package/dist/index-mgztm37r.js +57 -0
- package/dist/index-q1b0j9yr.js +1349 -0
- package/dist/index-zwrxw3zp.js +1988 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +180 -6
- package/dist/recording.js +1 -1
- package/dist/replay.js +2 -2
- package/dist/script/adapters/browser-action-contract.d.ts +22 -0
- package/dist/script/adapters/from-browser-action.d.ts +7 -0
- package/dist/script/adapters/from-remote-browser.d.ts +7 -0
- package/dist/script/adapters/recording.d.ts +25 -0
- package/dist/script/adapters/to-browser-action.d.ts +8 -0
- package/dist/script/canonical.d.ts +6 -0
- package/dist/script/capabilities.d.ts +29 -0
- package/dist/script/describe.d.ts +83 -0
- package/dist/script/fingerprint.d.ts +9 -0
- package/dist/script/hash.d.ts +3 -0
- package/dist/script/index.d.ts +22 -0
- package/dist/script/json-schema.d.ts +4 -0
- package/dist/script/limits.d.ts +61 -0
- package/dist/script/parse.d.ts +31 -0
- package/dist/script/schema.d.ts +87 -0
- package/dist/script/types.d.ts +489 -0
- package/dist/script/walk.d.ts +29 -0
- package/dist/script.d.ts +2 -0
- package/dist/script.js +175 -0
- package/dist/target/aria.d.ts +31 -0
- package/dist/target/dom.d.ts +35 -0
- package/dist/target/index.d.ts +13 -0
- package/dist/target/markers.d.ts +18 -0
- package/dist/target/methods.d.ts +52 -0
- package/dist/target/resolve.d.ts +46 -0
- package/dist/target/snapshot.d.ts +57 -0
- package/dist/target/text.d.ts +23 -0
- package/dist/target/types.d.ts +88 -0
- package/dist/target.d.ts +2 -0
- package/dist/target.js +92 -0
- package/dist/testing/fixtures/ambiguous.d.ts +7 -0
- package/dist/testing/fixtures/iframe.d.ts +6 -0
- package/dist/testing/fixtures/index.d.ts +26 -0
- package/dist/testing/fixtures/invoices-v2.d.ts +8 -0
- package/dist/testing/fixtures/invoices-v3.d.ts +7 -0
- package/dist/testing/fixtures/invoices.d.ts +6 -0
- package/dist/testing/fixtures/login.d.ts +6 -0
- package/dist/testing/fixtures/shadow.d.ts +7 -0
- package/dist/testing/index.d.ts +6 -0
- package/dist/testing/mount.d.ts +18 -0
- package/dist/testing.d.ts +2 -0
- package/dist/testing.js +324 -0
- package/package.json +28 -5
- package/schema/ui-script-v1.schema.json +8199 -0
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Copies of the RPA playground fixture pages (plan P0-08, "Fixtures"), for
|
|
3
|
+
* tests that run the resolver, the DOM runtime or the interpreter against the
|
|
4
|
+
* same pages the live suites use. The live copies are served at
|
|
5
|
+
* `https://www.fluidgrids.ai/playground/rpa/<name>.html`.
|
|
6
|
+
*/
|
|
7
|
+
import { AMBIGUOUS_HTML } from './ambiguous.js';
|
|
8
|
+
import { IFRAME_HTML, IFRAME_INNER_HTML } from './iframe.js';
|
|
9
|
+
import { INVOICES_V2_HTML } from './invoices-v2.js';
|
|
10
|
+
import { INVOICES_V3_HTML } from './invoices-v3.js';
|
|
11
|
+
import { INVOICES_HTML } from './invoices.js';
|
|
12
|
+
import { LOGIN_HTML } from './login.js';
|
|
13
|
+
import { SHADOW_HTML } from './shadow.js';
|
|
14
|
+
export { AMBIGUOUS_HTML, IFRAME_HTML, IFRAME_INNER_HTML, INVOICES_HTML, INVOICES_V2_HTML, INVOICES_V3_HTML, LOGIN_HTML, SHADOW_HTML, };
|
|
15
|
+
/** The fixture pages by name (the file name on the playground, without `.html`). */
|
|
16
|
+
export declare const RPA_FIXTURES: {
|
|
17
|
+
readonly invoices: "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Invoices - RPA playground</title>\n</head>\n<body>\n<header>\n <nav aria-label=\"Portal menu\">\n <a id=\"nav-home\" href=\"/playground/rpa/\">Home</a>\n <a id=\"nav-invoices\" href=\"/playground/rpa/invoices.html\" aria-current=\"page\">Invoices</a>\n <a id=\"nav-settings\" href=\"/playground/rpa/settings.html\">Settings</a>\n </nav>\n</header>\n<main>\n <h1>Invoices</h1>\n <form id=\"invoice-search\" aria-label=\"Invoice search\" action=\"/playground/rpa/invoices.html\">\n <label for=\"invoice-number\">Invoice number</label>\n <input id=\"invoice-number\" name=\"invoiceNumber\" data-testid=\"invoice-number\" type=\"text\">\n <label for=\"invoice-status\">Status</label>\n <select id=\"invoice-status\" name=\"status\" data-testid=\"invoice-status\">\n <option value=\"\">Any</option>\n <option value=\"paid\">Paid</option>\n <option value=\"due\">Due</option>\n </select>\n <button id=\"search-btn\" class=\"btn search\" data-testid=\"search\" type=\"submit\">Search</button>\n </form>\n <table id=\"results\" aria-label=\"Results\">\n <caption>Results</caption>\n <thead><tr><th>Invoice</th><th>Status</th><th>Amount</th><th>File</th></tr></thead>\n <tbody>\n <tr data-invoice=\"INV-1041\"><td>INV-1041</td><td class=\"status\">Paid</td><td>120.00</td><td><a class=\"download\" href=\"/playground/rpa/files/INV-1041.pdf\">Download</a></td></tr>\n <tr data-invoice=\"INV-1042\"><td>INV-1042</td><td class=\"status\">Due</td><td>87.50</td><td><a class=\"download\" href=\"/playground/rpa/files/INV-1042.pdf\">Download</a></td></tr>\n </tbody>\n </table>\n</main>\n</body>\n</html>\n";
|
|
18
|
+
readonly 'invoices-v2': "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Invoices - RPA playground (v2)</title>\n</head>\n<body>\n<div class=\"shell\">\n <aside class=\"side\">\n <ul class=\"menu\" role=\"list\">\n <li><span class=\"menu-entry\" role=\"link\" tabindex=\"0\" data-qa=\"menu-invoices\">Invoices</span></li>\n <li><a class=\"menu-link\" href=\"/playground/rpa/\">Home</a></li>\n <li><a class=\"menu-link\" href=\"/playground/rpa/settings.html\">Settings</a></li>\n </ul>\n </aside>\n <section class=\"content\">\n <h1 class=\"page-title\">Invoices</h1>\n <form class=\"filters\" aria-label=\"Invoice search\" action=\"/playground/rpa/invoices-v2.html\">\n <div class=\"toolbar\">\n <button class=\"primary-action\" data-qa=\"run-search\" type=\"submit\">Search</button>\n </div>\n <div class=\"field\">\n <label for=\"f-ref\">Invoice number</label>\n <input id=\"f-ref\" name=\"ref\" data-qa=\"ref\" type=\"text\">\n </div>\n <div class=\"field\">\n <label for=\"f-state\">Status</label>\n <select id=\"f-state\" name=\"state\">\n <option value=\"\">Any</option>\n <option value=\"paid\">Paid</option>\n <option value=\"due\">Due</option>\n </select>\n </div>\n </form>\n <table class=\"grid\" aria-label=\"Results\">\n <thead><tr><th>Invoice</th><th>Amount</th><th>Status</th><th>File</th></tr></thead>\n <tbody>\n <tr><td>INV-1041</td><td>120.00</td><td>Paid</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1041.pdf\">Download</a></td></tr>\n <tr><td>INV-1042</td><td>87.50</td><td>Due</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1042.pdf\">Download</a></td></tr>\n </tbody>\n </table>\n </section>\n</div>\n</body>\n</html>\n";
|
|
19
|
+
readonly 'invoices-v3': "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Invoices - RPA playground (v3)</title>\n</head>\n<body>\n<div class=\"shell\">\n <aside class=\"side\">\n <ul class=\"menu\" role=\"list\">\n <li><a class=\"menu-link\" href=\"/playground/rpa/\">Home</a></li>\n <li><span class=\"menu-entry\" role=\"link\" tabindex=\"0\" data-qa=\"menu-invoices\">All invoices</span></li>\n <li><a class=\"menu-link\" href=\"/playground/rpa/settings.html\">Settings</a></li>\n </ul>\n </aside>\n <section class=\"content\">\n <h1 class=\"page-title\">Invoices</h1>\n <form class=\"filters\" aria-label=\"Invoice search\" action=\"/playground/rpa/invoices-v3.html\">\n <div class=\"toolbar\">\n <button class=\"primary-action\" data-qa=\"run-search\" type=\"submit\">Search…</button>\n <button class=\"secondary-action\" data-qa=\"reset-search\" type=\"reset\">Reset filters</button>\n </div>\n <div class=\"field\">\n <label for=\"f-ref\">Invoice number *</label>\n <input id=\"f-ref\" name=\"ref\" data-qa=\"ref\" type=\"text\" required>\n </div>\n <div class=\"field\">\n <label for=\"f-date\">Invoice date</label>\n <input id=\"f-date\" name=\"date\" type=\"text\">\n </div>\n </form>\n <table class=\"grid\" aria-label=\"Results\">\n <thead><tr><th>Invoice</th><th>Amount</th><th>Status</th><th>File</th></tr></thead>\n <tbody>\n <tr><td>INV-1041</td><td>120.00</td><td>Paid</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1041.pdf\">Download</a></td></tr>\n <tr><td>INV-1042</td><td>87.50</td><td>Due</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1042.pdf\">Download</a></td></tr>\n </tbody>\n </table>\n </section>\n</div>\n</body>\n</html>\n";
|
|
20
|
+
readonly ambiguous: "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Invoice editor - RPA playground</title>\n</head>\n<body>\n<main>\n <h1>Invoice editor</h1>\n <section id=\"header-section\">\n <h2>Invoice header</h2>\n <label for=\"customer\">Customer</label>\n <input id=\"customer\" name=\"customer\" type=\"text\">\n <button class=\"save\" type=\"button\">Save</button>\n </section>\n <section id=\"lines-section\">\n <h2>Line items</h2>\n <label for=\"line-1\">Line 1</label>\n <input id=\"line-1\" name=\"line1\" type=\"text\">\n <button class=\"save\" type=\"button\">Save</button>\n </section>\n <p>Saved changes: <output id=\"saved-count\" aria-label=\"Saved changes\">0</output></p>\n</main>\n<script>\n for (const button of document.querySelectorAll('button.save')) {\n button.addEventListener('click', () => {\n const counter = document.getElementById('saved-count');\n counter.textContent = String(Number(counter.textContent) + 1);\n });\n }\n</script>\n</body>\n</html>\n";
|
|
21
|
+
readonly iframe: string;
|
|
22
|
+
readonly shadow: "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Shadow DOM - RPA playground</title>\n</head>\n<body>\n<main>\n <h1>Invoice card</h1>\n <button type=\"button\">Approve</button>\n <invoice-card id=\"card\">\n <template shadowrootmode=\"open\">\n <h2>INV-1042</h2>\n <label for=\"note\">Note</label>\n <input id=\"note\" name=\"note\" type=\"text\">\n <button type=\"button\" part=\"approve\">Approve</button>\n </template>\n </invoice-card>\n</main>\n</body>\n</html>\n";
|
|
23
|
+
readonly login: "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Sign in - RPA playground</title>\n</head>\n<body>\n<main>\n <h1>Sign in</h1>\n <form aria-label=\"Sign in\" action=\"/playground/rpa/invoices.html\">\n <label for=\"username\">Email</label>\n <input id=\"username\" name=\"username\" type=\"email\" autocomplete=\"username\">\n <label for=\"password\">Password</label>\n <input id=\"password\" name=\"password\" type=\"password\" autocomplete=\"current-password\">\n <label for=\"otp\">One-time code</label>\n <input id=\"otp\" name=\"otp\" type=\"text\" autocomplete=\"one-time-code\" inputmode=\"numeric\">\n <label for=\"comment\">Comment</label>\n <textarea id=\"comment\" name=\"comment\"></textarea>\n <button id=\"sign-in\" type=\"submit\">Sign in</button>\n </form>\n <p data-sensitive>Recovery phrase: <span id=\"phrase\">apple banana cherry</span></p>\n</main>\n</body>\n</html>\n";
|
|
24
|
+
};
|
|
25
|
+
export type RpaFixtureName = keyof typeof RPA_FIXTURES;
|
|
26
|
+
export declare const RPA_FIXTURE_NAMES: RpaFixtureName[];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPA playground fixture `invoices-v2`: the invoice page after a redesign.
|
|
3
|
+
* Every id, test id and class changed and the elements moved (the search
|
|
4
|
+
* button now sits before the field, inside a toolbar), but roles, names and
|
|
5
|
+
* texts are the same. Strict CSS and test-id methods recorded on `invoices`
|
|
6
|
+
* fail here; the role and text methods still find each element.
|
|
7
|
+
*/
|
|
8
|
+
export declare const INVOICES_V2_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Invoices - RPA playground (v2)</title>\n</head>\n<body>\n<div class=\"shell\">\n <aside class=\"side\">\n <ul class=\"menu\" role=\"list\">\n <li><span class=\"menu-entry\" role=\"link\" tabindex=\"0\" data-qa=\"menu-invoices\">Invoices</span></li>\n <li><a class=\"menu-link\" href=\"/playground/rpa/\">Home</a></li>\n <li><a class=\"menu-link\" href=\"/playground/rpa/settings.html\">Settings</a></li>\n </ul>\n </aside>\n <section class=\"content\">\n <h1 class=\"page-title\">Invoices</h1>\n <form class=\"filters\" aria-label=\"Invoice search\" action=\"/playground/rpa/invoices-v2.html\">\n <div class=\"toolbar\">\n <button class=\"primary-action\" data-qa=\"run-search\" type=\"submit\">Search</button>\n </div>\n <div class=\"field\">\n <label for=\"f-ref\">Invoice number</label>\n <input id=\"f-ref\" name=\"ref\" data-qa=\"ref\" type=\"text\">\n </div>\n <div class=\"field\">\n <label for=\"f-state\">Status</label>\n <select id=\"f-state\" name=\"state\">\n <option value=\"\">Any</option>\n <option value=\"paid\">Paid</option>\n <option value=\"due\">Due</option>\n </select>\n </div>\n </form>\n <table class=\"grid\" aria-label=\"Results\">\n <thead><tr><th>Invoice</th><th>Amount</th><th>Status</th><th>File</th></tr></thead>\n <tbody>\n <tr><td>INV-1041</td><td>120.00</td><td>Paid</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1041.pdf\">Download</a></td></tr>\n <tr><td>INV-1042</td><td>87.50</td><td>Due</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1042.pdf\">Download</a></td></tr>\n </tbody>\n </table>\n </section>\n</div>\n</body>\n</html>\n";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPA playground fixture `invoices-v3`: the redesigned page (`invoices-v2`
|
|
3
|
+
* markup) with slightly changed wording. The field label gained a
|
|
4
|
+
* required-field marker ("Invoice number *") and the button reads "Search…",
|
|
5
|
+
* so exact role and name matches fail and the fuzzy method finds them.
|
|
6
|
+
*/
|
|
7
|
+
export declare const INVOICES_V3_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Invoices - RPA playground (v3)</title>\n</head>\n<body>\n<div class=\"shell\">\n <aside class=\"side\">\n <ul class=\"menu\" role=\"list\">\n <li><a class=\"menu-link\" href=\"/playground/rpa/\">Home</a></li>\n <li><span class=\"menu-entry\" role=\"link\" tabindex=\"0\" data-qa=\"menu-invoices\">All invoices</span></li>\n <li><a class=\"menu-link\" href=\"/playground/rpa/settings.html\">Settings</a></li>\n </ul>\n </aside>\n <section class=\"content\">\n <h1 class=\"page-title\">Invoices</h1>\n <form class=\"filters\" aria-label=\"Invoice search\" action=\"/playground/rpa/invoices-v3.html\">\n <div class=\"toolbar\">\n <button class=\"primary-action\" data-qa=\"run-search\" type=\"submit\">Search\u2026</button>\n <button class=\"secondary-action\" data-qa=\"reset-search\" type=\"reset\">Reset filters</button>\n </div>\n <div class=\"field\">\n <label for=\"f-ref\">Invoice number *</label>\n <input id=\"f-ref\" name=\"ref\" data-qa=\"ref\" type=\"text\" required>\n </div>\n <div class=\"field\">\n <label for=\"f-date\">Invoice date</label>\n <input id=\"f-date\" name=\"date\" type=\"text\">\n </div>\n </form>\n <table class=\"grid\" aria-label=\"Results\">\n <thead><tr><th>Invoice</th><th>Amount</th><th>Status</th><th>File</th></tr></thead>\n <tbody>\n <tr><td>INV-1041</td><td>120.00</td><td>Paid</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1041.pdf\">Download</a></td></tr>\n <tr><td>INV-1042</td><td>87.50</td><td>Due</td><td><a class=\"dl\" href=\"/playground/rpa/files/INV-1042.pdf\">Download</a></td></tr>\n </tbody>\n </table>\n </section>\n</div>\n</body>\n</html>\n";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPA playground fixture `invoices` (the baseline invoice search page). Copy of
|
|
3
|
+
* the page planned at `https://www.fluidgrids.ai/playground/rpa/invoices.html`
|
|
4
|
+
* (plan P0-08); keep the two in step.
|
|
5
|
+
*/
|
|
6
|
+
export declare const INVOICES_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Invoices - RPA playground</title>\n</head>\n<body>\n<header>\n <nav aria-label=\"Portal menu\">\n <a id=\"nav-home\" href=\"/playground/rpa/\">Home</a>\n <a id=\"nav-invoices\" href=\"/playground/rpa/invoices.html\" aria-current=\"page\">Invoices</a>\n <a id=\"nav-settings\" href=\"/playground/rpa/settings.html\">Settings</a>\n </nav>\n</header>\n<main>\n <h1>Invoices</h1>\n <form id=\"invoice-search\" aria-label=\"Invoice search\" action=\"/playground/rpa/invoices.html\">\n <label for=\"invoice-number\">Invoice number</label>\n <input id=\"invoice-number\" name=\"invoiceNumber\" data-testid=\"invoice-number\" type=\"text\">\n <label for=\"invoice-status\">Status</label>\n <select id=\"invoice-status\" name=\"status\" data-testid=\"invoice-status\">\n <option value=\"\">Any</option>\n <option value=\"paid\">Paid</option>\n <option value=\"due\">Due</option>\n </select>\n <button id=\"search-btn\" class=\"btn search\" data-testid=\"search\" type=\"submit\">Search</button>\n </form>\n <table id=\"results\" aria-label=\"Results\">\n <caption>Results</caption>\n <thead><tr><th>Invoice</th><th>Status</th><th>Amount</th><th>File</th></tr></thead>\n <tbody>\n <tr data-invoice=\"INV-1041\"><td>INV-1041</td><td class=\"status\">Paid</td><td>120.00</td><td><a class=\"download\" href=\"/playground/rpa/files/INV-1041.pdf\">Download</a></td></tr>\n <tr data-invoice=\"INV-1042\"><td>INV-1042</td><td class=\"status\">Due</td><td>87.50</td><td><a class=\"download\" href=\"/playground/rpa/files/INV-1042.pdf\">Download</a></td></tr>\n </tbody>\n </table>\n</main>\n</body>\n</html>\n";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPA playground fixture `login`: a sign-in form with a user name, a password
|
|
3
|
+
* and a one-time code, plus an element the page marks sensitive. Used to prove
|
|
4
|
+
* that tree snapshots and reads never carry field values or sensitive text.
|
|
5
|
+
*/
|
|
6
|
+
export declare const LOGIN_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Sign in - RPA playground</title>\n</head>\n<body>\n<main>\n <h1>Sign in</h1>\n <form aria-label=\"Sign in\" action=\"/playground/rpa/invoices.html\">\n <label for=\"username\">Email</label>\n <input id=\"username\" name=\"username\" type=\"email\" autocomplete=\"username\">\n <label for=\"password\">Password</label>\n <input id=\"password\" name=\"password\" type=\"password\" autocomplete=\"current-password\">\n <label for=\"otp\">One-time code</label>\n <input id=\"otp\" name=\"otp\" type=\"text\" autocomplete=\"one-time-code\" inputmode=\"numeric\">\n <label for=\"comment\">Comment</label>\n <textarea id=\"comment\" name=\"comment\"></textarea>\n <button id=\"sign-in\" type=\"submit\">Sign in</button>\n </form>\n <p data-sensitive>Recovery phrase: <span id=\"phrase\">apple banana cherry</span></p>\n</main>\n</body>\n</html>\n";
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* RPA playground fixture `shadow`: a card component whose controls live in an
|
|
3
|
+
* open shadow root (declarative shadow DOM). Targets reach them through
|
|
4
|
+
* `frame: ['invoice-card']`. `mountFixture` attaches the shadow root in test
|
|
5
|
+
* DOMs that do not parse declarative shadow DOM.
|
|
6
|
+
*/
|
|
7
|
+
export declare const SHADOW_HTML = "<!doctype html>\n<html lang=\"en\">\n<head>\n<meta charset=\"utf-8\">\n<meta name=\"robots\" content=\"noindex, nofollow\">\n<title>Shadow DOM - RPA playground</title>\n</head>\n<body>\n<main>\n <h1>Invoice card</h1>\n <button type=\"button\">Approve</button>\n <invoice-card id=\"card\">\n <template shadowrootmode=\"open\">\n <h2>INV-1042</h2>\n <label for=\"note\">Note</label>\n <input id=\"note\" name=\"note\" type=\"text\">\n <button type=\"button\" part=\"approve\">Approve</button>\n </template>\n </invoice-card>\n</main>\n</body>\n</html>\n";
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Load a fixture page into a test document (happy-dom, jsdom or a browser
|
|
3
|
+
* document) the way a browser would parse it, for DOMs that lack two parser
|
|
4
|
+
* features the fixtures use:
|
|
5
|
+
*
|
|
6
|
+
* - declarative shadow DOM: each `<template shadowrootmode>` becomes its
|
|
7
|
+
* parent's shadow root;
|
|
8
|
+
* - `srcdoc` frames: when a frame's document is still empty, the `srcdoc`
|
|
9
|
+
* markup is written into it.
|
|
10
|
+
*
|
|
11
|
+
* Scripts are not run by this helper; a test that needs a page behaviour (the
|
|
12
|
+
* counter of the `ambiguous` page, for example) wires it itself.
|
|
13
|
+
*/
|
|
14
|
+
import { type RpaFixtureName } from './fixtures/index.js';
|
|
15
|
+
/** Write markup into a document and apply the two parser fixes above. */
|
|
16
|
+
export declare function mountHtml(document: Document, html: string): Document;
|
|
17
|
+
/** Load a named fixture page into a document. */
|
|
18
|
+
export declare function mountFixture(document: Document, name: RpaFixtureName): Document;
|
package/dist/testing.js
ADDED
|
@@ -0,0 +1,324 @@
|
|
|
1
|
+
// src/testing/fixtures/ambiguous.ts
|
|
2
|
+
var AMBIGUOUS_HTML = `<!doctype html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8">
|
|
6
|
+
<meta name="robots" content="noindex, nofollow">
|
|
7
|
+
<title>Invoice editor - RPA playground</title>
|
|
8
|
+
</head>
|
|
9
|
+
<body>
|
|
10
|
+
<main>
|
|
11
|
+
<h1>Invoice editor</h1>
|
|
12
|
+
<section id="header-section">
|
|
13
|
+
<h2>Invoice header</h2>
|
|
14
|
+
<label for="customer">Customer</label>
|
|
15
|
+
<input id="customer" name="customer" type="text">
|
|
16
|
+
<button class="save" type="button">Save</button>
|
|
17
|
+
</section>
|
|
18
|
+
<section id="lines-section">
|
|
19
|
+
<h2>Line items</h2>
|
|
20
|
+
<label for="line-1">Line 1</label>
|
|
21
|
+
<input id="line-1" name="line1" type="text">
|
|
22
|
+
<button class="save" type="button">Save</button>
|
|
23
|
+
</section>
|
|
24
|
+
<p>Saved changes: <output id="saved-count" aria-label="Saved changes">0</output></p>
|
|
25
|
+
</main>
|
|
26
|
+
<script>
|
|
27
|
+
for (const button of document.querySelectorAll('button.save')) {
|
|
28
|
+
button.addEventListener('click', () => {
|
|
29
|
+
const counter = document.getElementById('saved-count');
|
|
30
|
+
counter.textContent = String(Number(counter.textContent) + 1);
|
|
31
|
+
});
|
|
32
|
+
}
|
|
33
|
+
</script>
|
|
34
|
+
</body>
|
|
35
|
+
</html>
|
|
36
|
+
`;
|
|
37
|
+
|
|
38
|
+
// src/testing/fixtures/iframe.ts
|
|
39
|
+
var IFRAME_INNER_HTML = `<!doctype html>
|
|
40
|
+
<html lang="en">
|
|
41
|
+
<head><meta charset="utf-8"><title>Payment</title></head>
|
|
42
|
+
<body>
|
|
43
|
+
<form aria-label="Payment">
|
|
44
|
+
<label for="amount">Amount</label>
|
|
45
|
+
<input id="amount" name="amount" type="text">
|
|
46
|
+
<button id="pay" type="button">Pay now</button>
|
|
47
|
+
</form>
|
|
48
|
+
</body>
|
|
49
|
+
</html>
|
|
50
|
+
`;
|
|
51
|
+
var IFRAME_HTML = `<!doctype html>
|
|
52
|
+
<html lang="en">
|
|
53
|
+
<head>
|
|
54
|
+
<meta charset="utf-8">
|
|
55
|
+
<meta name="robots" content="noindex, nofollow">
|
|
56
|
+
<title>Checkout - RPA playground</title>
|
|
57
|
+
</head>
|
|
58
|
+
<body>
|
|
59
|
+
<main>
|
|
60
|
+
<h1>Checkout</h1>
|
|
61
|
+
<button id="pay" type="button">Pay later</button>
|
|
62
|
+
<iframe id="payment-frame" title="Payment" srcdoc="${IFRAME_INNER_HTML.replace(/&/g, "&").replace(/"/g, """)}"></iframe>
|
|
63
|
+
</main>
|
|
64
|
+
</body>
|
|
65
|
+
</html>
|
|
66
|
+
`;
|
|
67
|
+
|
|
68
|
+
// src/testing/fixtures/invoices-v2.ts
|
|
69
|
+
var INVOICES_V2_HTML = `<!doctype html>
|
|
70
|
+
<html lang="en">
|
|
71
|
+
<head>
|
|
72
|
+
<meta charset="utf-8">
|
|
73
|
+
<meta name="robots" content="noindex, nofollow">
|
|
74
|
+
<title>Invoices - RPA playground (v2)</title>
|
|
75
|
+
</head>
|
|
76
|
+
<body>
|
|
77
|
+
<div class="shell">
|
|
78
|
+
<aside class="side">
|
|
79
|
+
<ul class="menu" role="list">
|
|
80
|
+
<li><span class="menu-entry" role="link" tabindex="0" data-qa="menu-invoices">Invoices</span></li>
|
|
81
|
+
<li><a class="menu-link" href="/playground/rpa/">Home</a></li>
|
|
82
|
+
<li><a class="menu-link" href="/playground/rpa/settings.html">Settings</a></li>
|
|
83
|
+
</ul>
|
|
84
|
+
</aside>
|
|
85
|
+
<section class="content">
|
|
86
|
+
<h1 class="page-title">Invoices</h1>
|
|
87
|
+
<form class="filters" aria-label="Invoice search" action="/playground/rpa/invoices-v2.html">
|
|
88
|
+
<div class="toolbar">
|
|
89
|
+
<button class="primary-action" data-qa="run-search" type="submit">Search</button>
|
|
90
|
+
</div>
|
|
91
|
+
<div class="field">
|
|
92
|
+
<label for="f-ref">Invoice number</label>
|
|
93
|
+
<input id="f-ref" name="ref" data-qa="ref" type="text">
|
|
94
|
+
</div>
|
|
95
|
+
<div class="field">
|
|
96
|
+
<label for="f-state">Status</label>
|
|
97
|
+
<select id="f-state" name="state">
|
|
98
|
+
<option value="">Any</option>
|
|
99
|
+
<option value="paid">Paid</option>
|
|
100
|
+
<option value="due">Due</option>
|
|
101
|
+
</select>
|
|
102
|
+
</div>
|
|
103
|
+
</form>
|
|
104
|
+
<table class="grid" aria-label="Results">
|
|
105
|
+
<thead><tr><th>Invoice</th><th>Amount</th><th>Status</th><th>File</th></tr></thead>
|
|
106
|
+
<tbody>
|
|
107
|
+
<tr><td>INV-1041</td><td>120.00</td><td>Paid</td><td><a class="dl" href="/playground/rpa/files/INV-1041.pdf">Download</a></td></tr>
|
|
108
|
+
<tr><td>INV-1042</td><td>87.50</td><td>Due</td><td><a class="dl" href="/playground/rpa/files/INV-1042.pdf">Download</a></td></tr>
|
|
109
|
+
</tbody>
|
|
110
|
+
</table>
|
|
111
|
+
</section>
|
|
112
|
+
</div>
|
|
113
|
+
</body>
|
|
114
|
+
</html>
|
|
115
|
+
`;
|
|
116
|
+
|
|
117
|
+
// src/testing/fixtures/invoices-v3.ts
|
|
118
|
+
var INVOICES_V3_HTML = `<!doctype html>
|
|
119
|
+
<html lang="en">
|
|
120
|
+
<head>
|
|
121
|
+
<meta charset="utf-8">
|
|
122
|
+
<meta name="robots" content="noindex, nofollow">
|
|
123
|
+
<title>Invoices - RPA playground (v3)</title>
|
|
124
|
+
</head>
|
|
125
|
+
<body>
|
|
126
|
+
<div class="shell">
|
|
127
|
+
<aside class="side">
|
|
128
|
+
<ul class="menu" role="list">
|
|
129
|
+
<li><a class="menu-link" href="/playground/rpa/">Home</a></li>
|
|
130
|
+
<li><span class="menu-entry" role="link" tabindex="0" data-qa="menu-invoices">All invoices</span></li>
|
|
131
|
+
<li><a class="menu-link" href="/playground/rpa/settings.html">Settings</a></li>
|
|
132
|
+
</ul>
|
|
133
|
+
</aside>
|
|
134
|
+
<section class="content">
|
|
135
|
+
<h1 class="page-title">Invoices</h1>
|
|
136
|
+
<form class="filters" aria-label="Invoice search" action="/playground/rpa/invoices-v3.html">
|
|
137
|
+
<div class="toolbar">
|
|
138
|
+
<button class="primary-action" data-qa="run-search" type="submit">Search…</button>
|
|
139
|
+
<button class="secondary-action" data-qa="reset-search" type="reset">Reset filters</button>
|
|
140
|
+
</div>
|
|
141
|
+
<div class="field">
|
|
142
|
+
<label for="f-ref">Invoice number *</label>
|
|
143
|
+
<input id="f-ref" name="ref" data-qa="ref" type="text" required>
|
|
144
|
+
</div>
|
|
145
|
+
<div class="field">
|
|
146
|
+
<label for="f-date">Invoice date</label>
|
|
147
|
+
<input id="f-date" name="date" type="text">
|
|
148
|
+
</div>
|
|
149
|
+
</form>
|
|
150
|
+
<table class="grid" aria-label="Results">
|
|
151
|
+
<thead><tr><th>Invoice</th><th>Amount</th><th>Status</th><th>File</th></tr></thead>
|
|
152
|
+
<tbody>
|
|
153
|
+
<tr><td>INV-1041</td><td>120.00</td><td>Paid</td><td><a class="dl" href="/playground/rpa/files/INV-1041.pdf">Download</a></td></tr>
|
|
154
|
+
<tr><td>INV-1042</td><td>87.50</td><td>Due</td><td><a class="dl" href="/playground/rpa/files/INV-1042.pdf">Download</a></td></tr>
|
|
155
|
+
</tbody>
|
|
156
|
+
</table>
|
|
157
|
+
</section>
|
|
158
|
+
</div>
|
|
159
|
+
</body>
|
|
160
|
+
</html>
|
|
161
|
+
`;
|
|
162
|
+
|
|
163
|
+
// src/testing/fixtures/invoices.ts
|
|
164
|
+
var INVOICES_HTML = `<!doctype html>
|
|
165
|
+
<html lang="en">
|
|
166
|
+
<head>
|
|
167
|
+
<meta charset="utf-8">
|
|
168
|
+
<meta name="robots" content="noindex, nofollow">
|
|
169
|
+
<title>Invoices - RPA playground</title>
|
|
170
|
+
</head>
|
|
171
|
+
<body>
|
|
172
|
+
<header>
|
|
173
|
+
<nav aria-label="Portal menu">
|
|
174
|
+
<a id="nav-home" href="/playground/rpa/">Home</a>
|
|
175
|
+
<a id="nav-invoices" href="/playground/rpa/invoices.html" aria-current="page">Invoices</a>
|
|
176
|
+
<a id="nav-settings" href="/playground/rpa/settings.html">Settings</a>
|
|
177
|
+
</nav>
|
|
178
|
+
</header>
|
|
179
|
+
<main>
|
|
180
|
+
<h1>Invoices</h1>
|
|
181
|
+
<form id="invoice-search" aria-label="Invoice search" action="/playground/rpa/invoices.html">
|
|
182
|
+
<label for="invoice-number">Invoice number</label>
|
|
183
|
+
<input id="invoice-number" name="invoiceNumber" data-testid="invoice-number" type="text">
|
|
184
|
+
<label for="invoice-status">Status</label>
|
|
185
|
+
<select id="invoice-status" name="status" data-testid="invoice-status">
|
|
186
|
+
<option value="">Any</option>
|
|
187
|
+
<option value="paid">Paid</option>
|
|
188
|
+
<option value="due">Due</option>
|
|
189
|
+
</select>
|
|
190
|
+
<button id="search-btn" class="btn search" data-testid="search" type="submit">Search</button>
|
|
191
|
+
</form>
|
|
192
|
+
<table id="results" aria-label="Results">
|
|
193
|
+
<caption>Results</caption>
|
|
194
|
+
<thead><tr><th>Invoice</th><th>Status</th><th>Amount</th><th>File</th></tr></thead>
|
|
195
|
+
<tbody>
|
|
196
|
+
<tr data-invoice="INV-1041"><td>INV-1041</td><td class="status">Paid</td><td>120.00</td><td><a class="download" href="/playground/rpa/files/INV-1041.pdf">Download</a></td></tr>
|
|
197
|
+
<tr data-invoice="INV-1042"><td>INV-1042</td><td class="status">Due</td><td>87.50</td><td><a class="download" href="/playground/rpa/files/INV-1042.pdf">Download</a></td></tr>
|
|
198
|
+
</tbody>
|
|
199
|
+
</table>
|
|
200
|
+
</main>
|
|
201
|
+
</body>
|
|
202
|
+
</html>
|
|
203
|
+
`;
|
|
204
|
+
|
|
205
|
+
// src/testing/fixtures/login.ts
|
|
206
|
+
var LOGIN_HTML = `<!doctype html>
|
|
207
|
+
<html lang="en">
|
|
208
|
+
<head>
|
|
209
|
+
<meta charset="utf-8">
|
|
210
|
+
<meta name="robots" content="noindex, nofollow">
|
|
211
|
+
<title>Sign in - RPA playground</title>
|
|
212
|
+
</head>
|
|
213
|
+
<body>
|
|
214
|
+
<main>
|
|
215
|
+
<h1>Sign in</h1>
|
|
216
|
+
<form aria-label="Sign in" action="/playground/rpa/invoices.html">
|
|
217
|
+
<label for="username">Email</label>
|
|
218
|
+
<input id="username" name="username" type="email" autocomplete="username">
|
|
219
|
+
<label for="password">Password</label>
|
|
220
|
+
<input id="password" name="password" type="password" autocomplete="current-password">
|
|
221
|
+
<label for="otp">One-time code</label>
|
|
222
|
+
<input id="otp" name="otp" type="text" autocomplete="one-time-code" inputmode="numeric">
|
|
223
|
+
<label for="comment">Comment</label>
|
|
224
|
+
<textarea id="comment" name="comment"></textarea>
|
|
225
|
+
<button id="sign-in" type="submit">Sign in</button>
|
|
226
|
+
</form>
|
|
227
|
+
<p data-sensitive>Recovery phrase: <span id="phrase">apple banana cherry</span></p>
|
|
228
|
+
</main>
|
|
229
|
+
</body>
|
|
230
|
+
</html>
|
|
231
|
+
`;
|
|
232
|
+
|
|
233
|
+
// src/testing/fixtures/shadow.ts
|
|
234
|
+
var SHADOW_HTML = `<!doctype html>
|
|
235
|
+
<html lang="en">
|
|
236
|
+
<head>
|
|
237
|
+
<meta charset="utf-8">
|
|
238
|
+
<meta name="robots" content="noindex, nofollow">
|
|
239
|
+
<title>Shadow DOM - RPA playground</title>
|
|
240
|
+
</head>
|
|
241
|
+
<body>
|
|
242
|
+
<main>
|
|
243
|
+
<h1>Invoice card</h1>
|
|
244
|
+
<button type="button">Approve</button>
|
|
245
|
+
<invoice-card id="card">
|
|
246
|
+
<template shadowrootmode="open">
|
|
247
|
+
<h2>INV-1042</h2>
|
|
248
|
+
<label for="note">Note</label>
|
|
249
|
+
<input id="note" name="note" type="text">
|
|
250
|
+
<button type="button" part="approve">Approve</button>
|
|
251
|
+
</template>
|
|
252
|
+
</invoice-card>
|
|
253
|
+
</main>
|
|
254
|
+
</body>
|
|
255
|
+
</html>
|
|
256
|
+
`;
|
|
257
|
+
|
|
258
|
+
// src/testing/fixtures/index.ts
|
|
259
|
+
var RPA_FIXTURES = {
|
|
260
|
+
invoices: INVOICES_HTML,
|
|
261
|
+
"invoices-v2": INVOICES_V2_HTML,
|
|
262
|
+
"invoices-v3": INVOICES_V3_HTML,
|
|
263
|
+
ambiguous: AMBIGUOUS_HTML,
|
|
264
|
+
iframe: IFRAME_HTML,
|
|
265
|
+
shadow: SHADOW_HTML,
|
|
266
|
+
login: LOGIN_HTML
|
|
267
|
+
};
|
|
268
|
+
var RPA_FIXTURE_NAMES = Object.keys(RPA_FIXTURES);
|
|
269
|
+
// src/testing/mount.ts
|
|
270
|
+
function attachDeclarativeShadowRoots(root) {
|
|
271
|
+
for (const template of Array.from(root.querySelectorAll("template[shadowrootmode]"))) {
|
|
272
|
+
const host = template.parentElement;
|
|
273
|
+
const mode = template.getAttribute("shadowrootmode") === "closed" ? "closed" : "open";
|
|
274
|
+
if (!host || host.shadowRoot)
|
|
275
|
+
continue;
|
|
276
|
+
let shadow;
|
|
277
|
+
try {
|
|
278
|
+
shadow = host.attachShadow({ mode });
|
|
279
|
+
} catch {
|
|
280
|
+
continue;
|
|
281
|
+
}
|
|
282
|
+
const content = template.content;
|
|
283
|
+
shadow.appendChild(content.cloneNode(true));
|
|
284
|
+
template.remove();
|
|
285
|
+
attachDeclarativeShadowRoots(shadow);
|
|
286
|
+
}
|
|
287
|
+
}
|
|
288
|
+
function fillSrcdocFrames(document) {
|
|
289
|
+
for (const frame of Array.from(document.querySelectorAll("iframe[srcdoc]"))) {
|
|
290
|
+
const inner = frame.contentDocument;
|
|
291
|
+
const markup = frame.getAttribute("srcdoc") ?? "";
|
|
292
|
+
if (!inner || inner.body?.childElementCount)
|
|
293
|
+
continue;
|
|
294
|
+
inner.open();
|
|
295
|
+
inner.write(markup);
|
|
296
|
+
inner.close();
|
|
297
|
+
attachDeclarativeShadowRoots(inner);
|
|
298
|
+
}
|
|
299
|
+
}
|
|
300
|
+
function mountHtml(document, html) {
|
|
301
|
+
document.open();
|
|
302
|
+
document.write(html);
|
|
303
|
+
document.close();
|
|
304
|
+
attachDeclarativeShadowRoots(document);
|
|
305
|
+
fillSrcdocFrames(document);
|
|
306
|
+
return document;
|
|
307
|
+
}
|
|
308
|
+
function mountFixture(document, name) {
|
|
309
|
+
return mountHtml(document, RPA_FIXTURES[name]);
|
|
310
|
+
}
|
|
311
|
+
export {
|
|
312
|
+
AMBIGUOUS_HTML,
|
|
313
|
+
IFRAME_HTML,
|
|
314
|
+
IFRAME_INNER_HTML,
|
|
315
|
+
INVOICES_HTML,
|
|
316
|
+
INVOICES_V2_HTML,
|
|
317
|
+
INVOICES_V3_HTML,
|
|
318
|
+
LOGIN_HTML,
|
|
319
|
+
RPA_FIXTURES,
|
|
320
|
+
RPA_FIXTURE_NAMES,
|
|
321
|
+
SHADOW_HTML,
|
|
322
|
+
mountFixture,
|
|
323
|
+
mountHtml
|
|
324
|
+
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@burdenoff/ui-engine",
|
|
3
|
-
"version": "2026.1127.
|
|
4
|
-
"description": "Shared, browser-safe UI automation engine: recordings, capture-time masking, target resolution and
|
|
3
|
+
"version": "2026.1127.3",
|
|
4
|
+
"description": "Shared, browser-safe UI automation engine: recordings, capture-time masking, target resolution, replay, the UI script v1 contract and the multi-method web target resolver and DOM runtime for FluidGrids RPA and BotManor Stewards.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Burdenoff Consultancy Services Pvt. Ltd.",
|
|
7
7
|
"repository": {
|
|
@@ -33,15 +33,34 @@
|
|
|
33
33
|
"types": "./dist/replay.d.ts",
|
|
34
34
|
"import": "./dist/replay.js"
|
|
35
35
|
},
|
|
36
|
+
"./script": {
|
|
37
|
+
"types": "./dist/script.d.ts",
|
|
38
|
+
"import": "./dist/script.js"
|
|
39
|
+
},
|
|
40
|
+
"./target": {
|
|
41
|
+
"types": "./dist/target.d.ts",
|
|
42
|
+
"import": "./dist/target.js"
|
|
43
|
+
},
|
|
44
|
+
"./dom-runtime": {
|
|
45
|
+
"types": "./dist/dom-runtime.d.ts",
|
|
46
|
+
"import": "./dist/dom-runtime.js"
|
|
47
|
+
},
|
|
48
|
+
"./dom-runtime.iife.js": "./dist/dom-runtime.iife.js",
|
|
49
|
+
"./testing": {
|
|
50
|
+
"types": "./dist/testing.d.ts",
|
|
51
|
+
"import": "./dist/testing.js"
|
|
52
|
+
},
|
|
53
|
+
"./schema/ui-script-v1.schema.json": "./schema/ui-script-v1.schema.json",
|
|
36
54
|
"./package.json": "./package.json"
|
|
37
55
|
},
|
|
38
56
|
"files": [
|
|
39
57
|
"dist",
|
|
58
|
+
"schema",
|
|
40
59
|
"README.md",
|
|
41
60
|
"LICENSE"
|
|
42
61
|
],
|
|
43
62
|
"scripts": {
|
|
44
|
-
"build": "rm -rf dist && bun build src/index.ts src/recording.ts src/capture.ts src/resolve.ts src/replay.ts --outdir dist --target browser --format esm --splitting --packages external && tsc -p tsconfig.build.json",
|
|
63
|
+
"build": "rm -rf dist && bun build src/index.ts src/recording.ts src/capture.ts src/resolve.ts src/replay.ts src/script.ts src/target.ts src/dom-runtime.ts src/testing.ts --outdir dist --root src --target browser --format esm --splitting --packages external && bun build src/dom-runtime/iife.ts --outfile dist/dom-runtime.iife.js --target browser --format iife --minify && tsc -p tsconfig.build.json",
|
|
45
64
|
"type:check": "boff gate -- bun check --no-pretty",
|
|
46
65
|
"lint": "eslint .",
|
|
47
66
|
"lint:fix": "eslint . --fix",
|
|
@@ -51,7 +70,9 @@
|
|
|
51
70
|
"sanity": "boff sanity",
|
|
52
71
|
"sanity:force": "boff sanity --force",
|
|
53
72
|
"audit": "bun audit --audit-level=high",
|
|
54
|
-
"check:browser-safe": "bun run scripts/check-browser-safe.ts"
|
|
73
|
+
"check:browser-safe": "bun run scripts/check-browser-safe.ts",
|
|
74
|
+
"schema:write": "bun run scripts/write-ui-script-schema.ts",
|
|
75
|
+
"check:runtime-size": "bun run scripts/check-runtime-size.ts"
|
|
55
76
|
},
|
|
56
77
|
"dependencies": {
|
|
57
78
|
"@noble/hashes": "2.4.0"
|
|
@@ -63,6 +84,7 @@
|
|
|
63
84
|
"@burdenoff/toolchain": "2026.1123.1",
|
|
64
85
|
"@types/bun": "^1.4.4",
|
|
65
86
|
"eslint": "^9.39.5",
|
|
87
|
+
"happy-dom": "21.0.4",
|
|
66
88
|
"typescript": "6.0.3",
|
|
67
89
|
"zod": "4.6.7"
|
|
68
90
|
},
|
|
@@ -83,7 +105,8 @@
|
|
|
83
105
|
"scripts"
|
|
84
106
|
],
|
|
85
107
|
"extra": [
|
|
86
|
-
"check:browser-safe"
|
|
108
|
+
"check:browser-safe",
|
|
109
|
+
"check:runtime-size"
|
|
87
110
|
]
|
|
88
111
|
},
|
|
89
112
|
"coverage": {
|