@xmesh/system-design 0.0.2 → 0.0.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/dist/lit/components/alert/index.d.ts +1 -1
- package/dist/lit/components/alert/index.js +1 -0
- package/dist/lit/components/app-bar/index.d.ts +1 -1
- package/dist/lit/components/app-bar/index.js +1 -0
- package/dist/lit/components/artifact/index.d.ts +1 -1
- package/dist/lit/components/artifact/index.js +16 -2
- package/dist/lit/components/avatar/index.d.ts +1 -1
- package/dist/lit/components/avatar/index.js +1 -0
- package/dist/lit/components/avatar-group/index.d.ts +1 -1
- package/dist/lit/components/avatar-group/index.js +1 -0
- package/dist/lit/components/badge/index.d.ts +1 -2
- package/dist/lit/components/badge/index.js +1 -0
- package/dist/lit/components/brand-mark/index.d.ts +2 -2
- package/dist/lit/components/brand-mark/index.js +14 -0
- package/dist/lit/components/breadcrumbs/index.d.ts +1 -1
- package/dist/lit/components/breadcrumbs/index.js +1 -0
- package/dist/lit/components/bubble/index.d.ts +4 -4
- package/dist/lit/components/bubble/index.js +18 -0
- package/dist/lit/components/button/index.d.ts +1 -1
- package/dist/lit/components/button/index.js +1 -0
- package/dist/lit/components/card/index.d.ts +1 -1
- package/dist/lit/components/card/index.js +1 -0
- package/dist/lit/components/chat/index.d.ts +1 -2
- package/dist/lit/components/chat/index.js +16 -2
- package/dist/lit/components/checkbox/index.d.ts +1 -2
- package/dist/lit/components/checkbox/index.js +1 -0
- package/dist/lit/components/chip/index.d.ts +1 -1
- package/dist/lit/components/chip/index.js +1 -0
- package/dist/lit/components/chip-group/index.d.ts +1 -1
- package/dist/lit/components/chip-group/index.js +1 -0
- package/dist/lit/components/code/index.d.ts +1 -2
- package/dist/lit/components/code/index.js +1 -0
- package/dist/lit/components/composer/index.d.ts +1 -2
- package/dist/lit/components/composer/index.js +14 -0
- package/dist/lit/components/date-range/index.css +324 -0
- package/dist/lit/components/date-range/index.d.ts +57 -0
- package/dist/lit/components/date-range/index.js +702 -0
- package/dist/lit/components/divider/index.d.ts +1 -1
- package/dist/lit/components/divider/index.js +1 -0
- package/dist/lit/components/expansion-panel/index.d.ts +1 -2
- package/dist/lit/components/expansion-panel/index.js +1 -0
- package/dist/lit/components/grid/index.d.ts +1 -1
- package/dist/lit/components/grid/index.js +1 -0
- package/dist/lit/components/kbd/index.d.ts +1 -2
- package/dist/lit/components/kbd/index.js +1 -0
- package/dist/lit/components/list/index.d.ts +1 -1
- package/dist/lit/components/list/index.js +1 -0
- package/dist/lit/components/list-item/index.d.ts +1 -2
- package/dist/lit/components/list-item/index.js +1 -0
- package/dist/lit/components/navigation-drawer/index.d.ts +1 -2
- package/dist/lit/components/navigation-drawer/index.js +1 -0
- package/dist/lit/components/pagination/index.d.ts +1 -1
- package/dist/lit/components/pagination/index.js +1 -0
- package/dist/lit/components/popover/index.css +34 -0
- package/dist/lit/components/popover/index.d.ts +29 -0
- package/dist/lit/components/popover/index.js +204 -0
- package/dist/lit/components/primitives/index.d.ts +2 -2
- package/dist/lit/components/primitives/index.js +14 -0
- package/dist/lit/components/sidebar-item/index.d.ts +1 -1
- package/dist/lit/components/sidebar-item/index.js +13 -0
- package/dist/lit/components/snackbar/index.d.ts +1 -2
- package/dist/lit/components/snackbar/index.js +16 -2
- package/dist/lit/components/stack/index.d.ts +1 -1
- package/dist/lit/components/stack/index.js +1 -0
- package/dist/lit/components/table/index.d.ts +1 -2
- package/dist/lit/components/table/index.js +5 -9
- package/dist/lit/components/tabs/index.d.ts +3 -3
- package/dist/lit/components/tabs/index.js +3 -0
- package/dist/lit/components/validation/index.d.ts +1 -2
- package/dist/lit/components/validation/index.js +16 -1
- package/dist/lit/index.d.ts +2 -0
- package/dist/lit/index.js +2 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@ import { LitElement } from "lit";
|
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
type AlertSeverity = "info" | "success" | "warning" | "critical";
|
|
4
4
|
type AlertVariant = "inline" | "banner";
|
|
5
|
-
declare class XmAlert extends LitElement {
|
|
5
|
+
export declare class XmAlert extends LitElement {
|
|
6
6
|
severity: AlertSeverity;
|
|
7
7
|
heading: string;
|
|
8
8
|
dismissible: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
type AppBarSize = "xs" | "sm" | "md" | "lg";
|
|
4
|
-
declare class XmAppBar extends LitElement {
|
|
4
|
+
export declare class XmAppBar extends LitElement {
|
|
5
5
|
size: AppBarSize;
|
|
6
6
|
sticky: boolean;
|
|
7
7
|
private _mo;
|
|
@@ -2,7 +2,7 @@ import { LitElement } from "lit";
|
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
import "../button/index.js";
|
|
4
4
|
type ArtifactView = "preview" | "code";
|
|
5
|
-
declare class XmArtifact extends LitElement {
|
|
5
|
+
export declare class XmArtifact extends LitElement {
|
|
6
6
|
title: string;
|
|
7
7
|
sub: string[] | null;
|
|
8
8
|
subCsv: string;
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
refresh
|
|
30
30
|
close
|
|
31
31
|
|
|
32
|
-
Light DOM.
|
|
33
|
-
|
|
32
|
+
Light DOM. This module appends its stylesheets (artifact + primitives) to
|
|
33
|
+
document.head on import; <xm-button> brings its own CSS via its shadow root.
|
|
34
34
|
*/
|
|
35
35
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
36
36
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -42,6 +42,19 @@ import { LitElement, html, svg, nothing } from "lit";
|
|
|
42
42
|
import { customElement, property, state } from "lit/decorators.js";
|
|
43
43
|
// Side-effect import: registers <xm-button> for use in the head toolbar.
|
|
44
44
|
import "../button/index.js";
|
|
45
|
+
if (typeof document !== "undefined") {
|
|
46
|
+
for (const href of [
|
|
47
|
+
new URL("../artifact/index.css", import.meta.url).href,
|
|
48
|
+
new URL("../primitives/index.css", import.meta.url).href,
|
|
49
|
+
]) {
|
|
50
|
+
if (document.querySelector(`link[rel="stylesheet"][href="${href}"]`))
|
|
51
|
+
continue;
|
|
52
|
+
const link = document.createElement("link");
|
|
53
|
+
link.rel = "stylesheet";
|
|
54
|
+
link.href = href;
|
|
55
|
+
document.head.appendChild(link);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
45
58
|
const ICON_EYE = (size = 14) => svg `
|
|
46
59
|
<svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none"
|
|
47
60
|
stroke="currentColor" stroke-width="1.8" stroke-linecap="round"
|
|
@@ -292,3 +305,4 @@ __decorate([
|
|
|
292
305
|
XmArtifact = __decorate([
|
|
293
306
|
customElement("xm-artifact")
|
|
294
307
|
], XmArtifact);
|
|
308
|
+
export { XmArtifact };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
type AvatarSize = "xs" | "sm" | "md" | "lg";
|
|
4
|
-
declare class XmAvatar extends LitElement {
|
|
4
|
+
export declare class XmAvatar extends LitElement {
|
|
5
5
|
title: string;
|
|
6
6
|
name: string;
|
|
7
7
|
initials: string;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
type AvatarSize = "xs" | "sm" | "md" | "lg";
|
|
4
|
-
declare class XmAvatarGroup extends LitElement {
|
|
4
|
+
export declare class XmAvatarGroup extends LitElement {
|
|
5
5
|
max: number;
|
|
6
6
|
size: AvatarSize;
|
|
7
7
|
private _overflow;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
|
-
declare class XmBadge extends LitElement {
|
|
3
|
+
export declare class XmBadge extends LitElement {
|
|
4
4
|
count: number | null;
|
|
5
5
|
dot: boolean;
|
|
6
6
|
max: number;
|
|
@@ -15,4 +15,3 @@ declare global {
|
|
|
15
15
|
"xm-badge": XmBadge;
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
|
-
export {};
|
|
@@ -4,10 +4,10 @@ type BrandSize = "sm" | "md" | "lg";
|
|
|
4
4
|
declare class LightElement extends LitElement {
|
|
5
5
|
createRenderRoot(): HTMLElement | DocumentFragment;
|
|
6
6
|
}
|
|
7
|
-
declare class XmBrandGlyph extends LightElement {
|
|
7
|
+
export declare class XmBrandGlyph extends LightElement {
|
|
8
8
|
render(): TemplateResult;
|
|
9
9
|
}
|
|
10
|
-
declare class XmBrandMark extends LightElement {
|
|
10
|
+
export declare class XmBrandMark extends LightElement {
|
|
11
11
|
size: BrandSize;
|
|
12
12
|
showGlyph: boolean;
|
|
13
13
|
showWordmark: boolean;
|
|
@@ -23,6 +23,18 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
23
23
|
};
|
|
24
24
|
import { LitElement, html, nothing } from "lit";
|
|
25
25
|
import { customElement, property } from "lit/decorators.js";
|
|
26
|
+
if (typeof document !== "undefined") {
|
|
27
|
+
for (const href of [
|
|
28
|
+
new URL("../brand-mark/index.css", import.meta.url).href,
|
|
29
|
+
]) {
|
|
30
|
+
if (document.querySelector(`link[rel="stylesheet"][href="${href}"]`))
|
|
31
|
+
continue;
|
|
32
|
+
const link = document.createElement("link");
|
|
33
|
+
link.rel = "stylesheet";
|
|
34
|
+
link.href = href;
|
|
35
|
+
document.head.appendChild(link);
|
|
36
|
+
}
|
|
37
|
+
}
|
|
26
38
|
const DEFAULT_TAGLINE = "Smart-routing AI chat. The mark is an X-mesh — four nodes routing to a single hub through the letterform itself.";
|
|
27
39
|
class LightElement extends LitElement {
|
|
28
40
|
createRenderRoot() {
|
|
@@ -59,6 +71,7 @@ let XmBrandGlyph = class XmBrandGlyph extends LightElement {
|
|
|
59
71
|
XmBrandGlyph = __decorate([
|
|
60
72
|
customElement("xm-brand-glyph")
|
|
61
73
|
], XmBrandGlyph);
|
|
74
|
+
export { XmBrandGlyph };
|
|
62
75
|
let XmBrandMark = class XmBrandMark extends LightElement {
|
|
63
76
|
constructor() {
|
|
64
77
|
super(...arguments);
|
|
@@ -114,3 +127,4 @@ __decorate([
|
|
|
114
127
|
XmBrandMark = __decorate([
|
|
115
128
|
customElement("xm-brand-mark")
|
|
116
129
|
], XmBrandMark);
|
|
130
|
+
export { XmBrandMark };
|
|
@@ -5,7 +5,7 @@ export interface BreadcrumbItem {
|
|
|
5
5
|
href?: string;
|
|
6
6
|
}
|
|
7
7
|
type BreadcrumbSeparator = "chevron" | "slash";
|
|
8
|
-
declare class XmBreadcrumbs extends LitElement {
|
|
8
|
+
export declare class XmBreadcrumbs extends LitElement {
|
|
9
9
|
items: BreadcrumbItem[];
|
|
10
10
|
separator: BreadcrumbSeparator;
|
|
11
11
|
render(): TemplateResult;
|
|
@@ -16,14 +16,14 @@ export interface BubbleArtifact {
|
|
|
16
16
|
declare class LightElement extends LitElement {
|
|
17
17
|
createRenderRoot(): HTMLElement | DocumentFragment;
|
|
18
18
|
}
|
|
19
|
-
declare class XmBubbleGroup extends LightElement {
|
|
19
|
+
export declare class XmBubbleGroup extends LightElement {
|
|
20
20
|
variant: BubbleVariant;
|
|
21
21
|
private _authoredChildren;
|
|
22
22
|
connectedCallback(): void;
|
|
23
23
|
render(): TemplateResult;
|
|
24
24
|
updated(): void;
|
|
25
25
|
}
|
|
26
|
-
declare class XmBubble extends LightElement {
|
|
26
|
+
export declare class XmBubble extends LightElement {
|
|
27
27
|
variant: BubbleVariant;
|
|
28
28
|
attachments: BubbleAttachment[];
|
|
29
29
|
artifact: BubbleArtifact | null;
|
|
@@ -39,7 +39,7 @@ declare class XmBubble extends LightElement {
|
|
|
39
39
|
render(): TemplateResult;
|
|
40
40
|
updated(): void;
|
|
41
41
|
}
|
|
42
|
-
declare class XmBubbleActions extends LightElement {
|
|
42
|
+
export declare class XmBubbleActions extends LightElement {
|
|
43
43
|
ts: string;
|
|
44
44
|
ariaLabel: string;
|
|
45
45
|
private _authored;
|
|
@@ -54,7 +54,7 @@ declare class XmBubbleActions extends LightElement {
|
|
|
54
54
|
render(): TemplateResult;
|
|
55
55
|
updated(): void;
|
|
56
56
|
}
|
|
57
|
-
declare class XmArtifactChip extends LightElement {
|
|
57
|
+
export declare class XmArtifactChip extends LightElement {
|
|
58
58
|
artifact: BubbleArtifact | null;
|
|
59
59
|
download: boolean;
|
|
60
60
|
private _open;
|
|
@@ -36,6 +36,20 @@ import { unsafeHTML } from "lit/directives/unsafe-html.js";
|
|
|
36
36
|
import { customElement, property } from "lit/decorators.js";
|
|
37
37
|
// Register <xm-button> for the artifact "Download" action below.
|
|
38
38
|
import "../button/index.js";
|
|
39
|
+
if (typeof document !== "undefined") {
|
|
40
|
+
for (const href of [
|
|
41
|
+
new URL("../bubble/index.css", import.meta.url).href,
|
|
42
|
+
new URL("../composer/index.css", import.meta.url).href,
|
|
43
|
+
new URL("../primitives/index.css", import.meta.url).href,
|
|
44
|
+
]) {
|
|
45
|
+
if (document.querySelector(`link[rel="stylesheet"][href="${href}"]`))
|
|
46
|
+
continue;
|
|
47
|
+
const link = document.createElement("link");
|
|
48
|
+
link.rel = "stylesheet";
|
|
49
|
+
link.href = href;
|
|
50
|
+
document.head.appendChild(link);
|
|
51
|
+
}
|
|
52
|
+
}
|
|
39
53
|
class LightElement extends LitElement {
|
|
40
54
|
createRenderRoot() {
|
|
41
55
|
return this;
|
|
@@ -143,6 +157,7 @@ __decorate([
|
|
|
143
157
|
XmBubbleGroup = __decorate([
|
|
144
158
|
customElement("xm-bubble-group")
|
|
145
159
|
], XmBubbleGroup);
|
|
160
|
+
export { XmBubbleGroup };
|
|
146
161
|
/* ─────────────────────────────────────────────────────────────
|
|
147
162
|
<xm-bubble> — the message body.
|
|
148
163
|
|
|
@@ -349,6 +364,7 @@ __decorate([
|
|
|
349
364
|
XmBubble = __decorate([
|
|
350
365
|
customElement("xm-bubble")
|
|
351
366
|
], XmBubble);
|
|
367
|
+
export { XmBubble };
|
|
352
368
|
/* ─────────────────────────────────────────────────────────────
|
|
353
369
|
<xm-bubble-actions> — hover-reveal toolbar.
|
|
354
370
|
|
|
@@ -530,6 +546,7 @@ __decorate([
|
|
|
530
546
|
XmBubbleActions = __decorate([
|
|
531
547
|
customElement("xm-bubble-actions")
|
|
532
548
|
], XmBubbleActions);
|
|
549
|
+
export { XmBubbleActions };
|
|
533
550
|
/* ─────────────────────────────────────────────────────────────
|
|
534
551
|
<xm-artifact-chip> — standalone chip for surfaces other than
|
|
535
552
|
xm-bubble (e.g. snackbar, drawer). xm-bubble renders the same
|
|
@@ -615,3 +632,4 @@ __decorate([
|
|
|
615
632
|
XmArtifactChip = __decorate([
|
|
616
633
|
customElement("xm-artifact-chip")
|
|
617
634
|
], XmArtifactChip);
|
|
635
|
+
export { XmArtifactChip };
|
|
@@ -4,7 +4,7 @@ type ButtonVariant = "primary" | "secondary" | "outline" | "ghost" | "ghost-acce
|
|
|
4
4
|
type ButtonSize = "xs" | "sm" | "md" | "lg";
|
|
5
5
|
type ButtonType = "button" | "submit" | "reset";
|
|
6
6
|
type ForceState = "hover" | "active" | "focus" | null;
|
|
7
|
-
declare class XmButton extends LitElement {
|
|
7
|
+
export declare class XmButton extends LitElement {
|
|
8
8
|
static shadowRootOptions: ShadowRootInit;
|
|
9
9
|
variant: ButtonVariant;
|
|
10
10
|
size: ButtonSize;
|
|
@@ -2,7 +2,7 @@ import { LitElement } from "lit";
|
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
type CardSize = "xs" | "sm" | "md" | "lg";
|
|
4
4
|
type CardElevation = 0 | 1 | 2 | 3 | 4 | 5;
|
|
5
|
-
declare class XmCard extends LitElement {
|
|
5
|
+
export declare class XmCard extends LitElement {
|
|
6
6
|
elevation: CardElevation;
|
|
7
7
|
size: CardSize;
|
|
8
8
|
private _mo;
|
|
@@ -25,7 +25,7 @@ export interface ThreadMessage {
|
|
|
25
25
|
atts?: BubbleAttachment[];
|
|
26
26
|
artifact?: BubbleArtifact | null;
|
|
27
27
|
}
|
|
28
|
-
declare class XmChatShell extends LitElement {
|
|
28
|
+
export declare class XmChatShell extends LitElement {
|
|
29
29
|
conversations: ConversationGroup[];
|
|
30
30
|
thread: ThreadMessage[];
|
|
31
31
|
processing: boolean;
|
|
@@ -71,4 +71,3 @@ declare global {
|
|
|
71
71
|
"xm-chat-shell": XmChatShell;
|
|
72
72
|
}
|
|
73
73
|
}
|
|
74
|
-
export {};
|
|
@@ -31,8 +31,8 @@
|
|
|
31
31
|
(opens the artifact slot).
|
|
32
32
|
artifact-close
|
|
33
33
|
|
|
34
|
-
Light DOM.
|
|
35
|
-
|
|
34
|
+
Light DOM. This module and the xm-* elements it composes each append their
|
|
35
|
+
own stylesheets to document.head on import; nothing extra is needed.
|
|
36
36
|
*/
|
|
37
37
|
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
38
38
|
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
@@ -52,6 +52,19 @@ import "../sidebar-item/index.js";
|
|
|
52
52
|
import "../bubble/index.js";
|
|
53
53
|
import "../composer/index.js";
|
|
54
54
|
import "../artifact/index.js";
|
|
55
|
+
if (typeof document !== "undefined") {
|
|
56
|
+
for (const href of [
|
|
57
|
+
new URL("../chat/index.css", import.meta.url).href,
|
|
58
|
+
new URL("../primitives/index.css", import.meta.url).href,
|
|
59
|
+
]) {
|
|
60
|
+
if (document.querySelector(`link[rel="stylesheet"][href="${href}"]`))
|
|
61
|
+
continue;
|
|
62
|
+
const link = document.createElement("link");
|
|
63
|
+
link.rel = "stylesheet";
|
|
64
|
+
link.href = href;
|
|
65
|
+
document.head.appendChild(link);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
55
68
|
/* ---------- Inline icon SVG fragments (used in topbar / sidebar chrome) */
|
|
56
69
|
const I_PANEL = (size = 16) => svg `
|
|
57
70
|
<svg width="${size}" height="${size}" viewBox="0 0 24 24" fill="none"
|
|
@@ -587,3 +600,4 @@ __decorate([
|
|
|
587
600
|
XmChatShell = __decorate([
|
|
588
601
|
customElement("xm-chat-shell")
|
|
589
602
|
], XmChatShell);
|
|
603
|
+
export { XmChatShell };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { TemplateResult } from "lit";
|
|
2
2
|
import { XmField } from "../field/index.js";
|
|
3
|
-
declare class XmCheckbox extends XmField {
|
|
3
|
+
export declare class XmCheckbox extends XmField {
|
|
4
4
|
/** Indeterminate (mixed) state — shows the dash mark on the coral fill and
|
|
5
5
|
reports aria-checked="mixed". Cleared on the first user toggle. */
|
|
6
6
|
indeterminate: boolean;
|
|
@@ -18,4 +18,3 @@ declare global {
|
|
|
18
18
|
"xm-checkbox": XmCheckbox;
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
-
export {};
|
|
@@ -2,7 +2,7 @@ import { LitElement } from "lit";
|
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
type ChipSize = "xs" | "sm" | "md" | "lg";
|
|
4
4
|
type ChipCategory = "get" | "post" | "put" | "delete" | "patch" | "yml" | "json" | "";
|
|
5
|
-
declare class XmChip extends LitElement {
|
|
5
|
+
export declare class XmChip extends LitElement {
|
|
6
6
|
value: string;
|
|
7
7
|
size: ChipSize;
|
|
8
8
|
selected: boolean;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
3
|
type Primitive = string | number;
|
|
4
|
-
declare class XmChipGroup extends LitElement {
|
|
4
|
+
export declare class XmChipGroup extends LitElement {
|
|
5
5
|
multiple: boolean;
|
|
6
6
|
value: Primitive | Primitive[] | null;
|
|
7
7
|
connectedCallback(): void;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { LitElement } from "lit";
|
|
2
2
|
import type { TemplateResult } from "lit";
|
|
3
|
-
declare class XmCode extends LitElement {
|
|
3
|
+
export declare class XmCode extends LitElement {
|
|
4
4
|
block: boolean;
|
|
5
5
|
render(): TemplateResult;
|
|
6
6
|
}
|
|
@@ -9,4 +9,3 @@ declare global {
|
|
|
9
9
|
"xm-code": XmCode;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
export {};
|
|
@@ -12,7 +12,7 @@ export interface ComposerAttachment {
|
|
|
12
12
|
pages?: number;
|
|
13
13
|
dims?: string;
|
|
14
14
|
}
|
|
15
|
-
declare class XmComposer extends LitElement {
|
|
15
|
+
export declare class XmComposer extends LitElement {
|
|
16
16
|
initialValue: string;
|
|
17
17
|
initialFocus: boolean;
|
|
18
18
|
processing: boolean;
|
|
@@ -64,4 +64,3 @@ declare global {
|
|
|
64
64
|
"xm-composer": XmComposer;
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
export {};
|
|
@@ -36,6 +36,19 @@ import { LitElement, html, svg, nothing } from "lit";
|
|
|
36
36
|
import { customElement, property, state } from "lit/decorators.js";
|
|
37
37
|
// Side-effect import: registers <xm-button> for use in the toolbar.
|
|
38
38
|
import "../button/index.js";
|
|
39
|
+
if (typeof document !== "undefined") {
|
|
40
|
+
for (const href of [
|
|
41
|
+
new URL("../composer/index.css", import.meta.url).href,
|
|
42
|
+
new URL("../primitives/index.css", import.meta.url).href,
|
|
43
|
+
]) {
|
|
44
|
+
if (document.querySelector(`link[rel="stylesheet"][href="${href}"]`))
|
|
45
|
+
continue;
|
|
46
|
+
const link = document.createElement("link");
|
|
47
|
+
link.rel = "stylesheet";
|
|
48
|
+
link.href = href;
|
|
49
|
+
document.head.appendChild(link);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
39
52
|
/* ---------- attachment helpers (verbatim from JSX) ---------- */
|
|
40
53
|
const STRIP_LIMIT = 10;
|
|
41
54
|
const HARD_CAP = 50;
|
|
@@ -711,3 +724,4 @@ __decorate([
|
|
|
711
724
|
XmComposer = __decorate([
|
|
712
725
|
customElement("xm-composer")
|
|
713
726
|
], XmComposer);
|
|
727
|
+
export { XmComposer };
|