Pulls the attachShadow-plus-plain-<style>-tag boilerplate that hive-dialog and hive-toast already build per component into one shared helper, so the next shadow-DOM custom element (the agent context menu, next commit) can reuse it instead of re-deriving the same few lines. A plain <style> element rather than a constructed CSSStyleSheet with adoptedStyleSheets -- each component instance builds its own fresh stylesheet per connect with no sharing across instances, so adoptedStyleSheets buys nothing here over the plain, universally-understood <style> tag.
26 lines
858 B
JSON
26 lines
858 B
JSON
{
|
|
"name": "@hive/shared",
|
|
"version": "0.0.0",
|
|
"private": true,
|
|
"description": "Shared frontend modules used by both the dashboard and the per-agent UI: terminal log pane, Catppuccin palette, base typography. Imported by sibling workspaces; not bundled standalone.",
|
|
"type": "module",
|
|
"main": "./src/index.js",
|
|
"exports": {
|
|
".": "./src/index.js",
|
|
"./terminal.js": "./src/terminal.js",
|
|
"./tabs.js": "./src/tabs.js",
|
|
"./tabs.css": "./src/tabs.css",
|
|
"./colors.css": "./src/colors.css",
|
|
"./theme.css": "./src/theme.css",
|
|
"./base.css": "./src/base.css",
|
|
"./terminal.css": "./src/terminal.css",
|
|
"./chrome.css": "./src/chrome.css",
|
|
"./forms.js": "./src/forms.js",
|
|
"./dom.js": "./src/dom.js",
|
|
"./modal.js": "./src/modal.js",
|
|
"./shadow-css.js": "./src/shadow-css.js"
|
|
},
|
|
"files": [
|
|
"src/"
|
|
]
|
|
}
|