waybetter/packages/runtime
CRT 4a294b993a runtime: styles for created roots are constructed sheets (CSP-proof)
- styles.ts: adoptStyles(root, css) adopts a constructed stylesheet into a shadow root or document
  (not governed by a page's CSP, parsed once, stays with the root when its host is moved);
  <style> fallback where constructable sheets are missing or refused.
- UI kit: the kit's shadow root and each dialog's `css` use it (dialog CSS goes with the dialog).
- Plugin API: api.adoptCSS(root, css) and scope.adoptCSS (removed on dispose); injectCSS keeps its
  <style> and, when a CSP leaves it without a sheet, applies the same rules as an adopted sheet.
- tests/styles.test.ts.
2026-09-28 21:09:14 +00:00
..
src runtime: styles for created roots are constructed sheets (CSP-proof) 2026-09-28 21:09:14 +00:00
tests runtime: styles for created roots are constructed sheets (CSP-proof) 2026-09-28 21:09:14 +00:00
package.json npm: publish as one package waybetter (waybetter/runtime/*, waybetter/shell/*); @waybetter scope is taken 2026-09-27 22:54:03 +00:00
README.md npm: publish as one package waybetter (waybetter/runtime/*, waybetter/shell/*); @waybetter scope is taken 2026-09-27 22:54:03 +00:00
tsconfig.build.json packages: make runtime and shell publishable to npm 2026-09-27 22:41:01 +00:00

runtime (internal)

Sources of waybetter/runtime/*. Published as part of the waybetter package; not published on its own.