@risinghq/lienzo 0.0.0-stage → 0.1.0
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 +82 -2
- package/dist/shell/assets/index-Cna8wlzF.js +4 -0
- package/dist/shell/assets/index-CoJSASvW.css +2 -0
- package/dist/shell/index.html +13 -0
- package/package.json +76 -4
- package/src/bench/bench.ts +132 -0
- package/src/bridge/page.ts +443 -0
- package/src/bridge/protocol.ts +124 -0
- package/src/bridge/record.ts +75 -0
- package/src/bridge/script.ts +24 -0
- package/src/bridge/state.ts +143 -0
- package/src/capture/capture.ts +125 -0
- package/src/capture/compare.ts +46 -0
- package/src/capture/diff.ts +16 -0
- package/src/capture/manifest.ts +60 -0
- package/src/capture/refs.ts +20 -0
- package/src/capture/replay.ts +25 -0
- package/src/capture/review.ts +78 -0
- package/src/capture/serve.ts +32 -0
- package/src/capture/snap.ts +62 -0
- package/src/capture/store.ts +28 -0
- package/src/cli.ts +287 -0
- package/src/cloud/checkout.ts +33 -0
- package/src/cloud/credentials.ts +25 -0
- package/src/cloud/link.ts +60 -0
- package/src/cloud/login.ts +85 -0
- package/src/commands/canvas.ts +46 -0
- package/src/commands/change.ts +218 -0
- package/src/commands/class.ts +66 -0
- package/src/commands/command.ts +27 -0
- package/src/commands/create.ts +95 -0
- package/src/commands/element.ts +118 -0
- package/src/commands/file.ts +96 -0
- package/src/commands/frame.ts +58 -0
- package/src/commands/override.ts +38 -0
- package/src/commands/prop.ts +18 -0
- package/src/commands/registry.ts +76 -0
- package/src/commands/rule.ts +131 -0
- package/src/commands/stage.ts +52 -0
- package/src/commands/story.ts +112 -0
- package/src/commands/style.ts +123 -0
- package/src/commands/text.ts +17 -0
- package/src/commands/token.ts +60 -0
- package/src/commands/transaction.ts +66 -0
- package/src/job/docker.ts +109 -0
- package/src/job/job.ts +125 -0
- package/src/job/server.ts +62 -0
- package/src/mirror/apply.ts +121 -0
- package/src/mirror/entry.ts +7 -0
- package/src/mirror/host.ts +68 -0
- package/src/mirror/observe.ts +271 -0
- package/src/mirror/script.ts +18 -0
- package/src/mirror/transport.ts +7 -0
- package/src/mirror/wire.ts +25 -0
- package/src/project/config.ts +98 -0
- package/src/project/design.ts +59 -0
- package/src/project/detect.ts +184 -0
- package/src/project/files.ts +30 -0
- package/src/project/git.ts +68 -0
- package/src/project/github.ts +42 -0
- package/src/project/history.ts +89 -0
- package/src/project/project.ts +106 -0
- package/src/project/spawn.ts +23 -0
- package/src/project/step.ts +15 -0
- package/src/protocol.ts +125 -0
- package/src/sandbox/forward.ts +73 -0
- package/src/sandbox/install.ts +44 -0
- package/src/sandbox/sandbox.ts +57 -0
- package/src/serve/build.ts +49 -0
- package/src/serve/canvases.ts +65 -0
- package/src/serve/dev.ts +296 -0
- package/src/serve/env.ts +16 -0
- package/src/serve/mcp.ts +65 -0
- package/src/serve/middleware.ts +172 -0
- package/src/serve/next/config.ts +68 -0
- package/src/serve/next/hook.ts +74 -0
- package/src/serve/next/loader.ts +37 -0
- package/src/serve/nuxt.ts +14 -0
- package/src/serve/plugin.ts +95 -0
- package/src/serve/preload.ts +167 -0
- package/src/serve/resend.ts +29 -0
- package/src/serve/running.ts +115 -0
- package/src/serve/screenshot.ts +26 -0
- package/src/serve/sources.ts +46 -0
- package/src/serve/uncached.ts +25 -0
- package/src/serve/vite-build.ts +15 -0
- package/src/serve/vite.ts +19 -0
- package/src/session/session.ts +96 -0
- package/src/share/ask.ts +24 -0
- package/src/share/client.ts +140 -0
- package/src/share/consent.ts +39 -0
- package/src/share/frame.ts +26 -0
- package/src/source/astro/astro.ts +10 -0
- package/src/source/astro/elements.ts +60 -0
- package/src/source/blocks.ts +42 -0
- package/src/source/css.ts +48 -0
- package/src/source/estree.ts +55 -0
- package/src/source/extract.ts +68 -0
- package/src/source/insert.ts +189 -0
- package/src/source/jsx/elements.ts +136 -0
- package/src/source/jsx/jsx.ts +5 -0
- package/src/source/language.ts +176 -0
- package/src/source/location.ts +34 -0
- package/src/source/modules.ts +41 -0
- package/src/source/overrides.ts +35 -0
- package/src/source/page.ts +69 -0
- package/src/source/patch.ts +79 -0
- package/src/source/prop.ts +34 -0
- package/src/source/refusal.ts +7 -0
- package/src/source/rules.ts +298 -0
- package/src/source/stamp.ts +28 -0
- package/src/source/story-file.ts +40 -0
- package/src/source/story.ts +162 -0
- package/src/source/structure.ts +253 -0
- package/src/source/style.ts +143 -0
- package/src/source/svelte/elements.ts +154 -0
- package/src/source/svelte/svelte.ts +11 -0
- package/src/source/tag.ts +99 -0
- package/src/source/tailwind.ts +46 -0
- package/src/source/tokens.ts +56 -0
- package/src/source/vue/elements.ts +236 -0
- package/src/source/vue/vue.ts +11 -0
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { twMerge } from "tailwind-merge";
|
|
2
|
+
|
|
3
|
+
export function classesOf(list: string): string[] {
|
|
4
|
+
return list.split(/\s+/).filter(Boolean);
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
// Tailwind decides which utilities override each other: `p-2` and `p-8`, but
|
|
8
|
+
// not `p-2` and `md:p-8`.
|
|
9
|
+
function overrides(added: string, existing: string): boolean {
|
|
10
|
+
return twMerge(`${existing} ${added}`) === added;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
// The class takes the place of the first one it overrides, so the list keeps
|
|
14
|
+
// its order. With none to override it goes last.
|
|
15
|
+
export function withClass(list: string, added: string): string {
|
|
16
|
+
const out: string[] = [];
|
|
17
|
+
let placed = false;
|
|
18
|
+
|
|
19
|
+
for (const existing of classesOf(list)) {
|
|
20
|
+
const replaced = existing === added || overrides(added, existing);
|
|
21
|
+
|
|
22
|
+
if (!replaced) {
|
|
23
|
+
out.push(existing);
|
|
24
|
+
} else if (!placed) {
|
|
25
|
+
out.push(added);
|
|
26
|
+
placed = true;
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
if (!placed) out.push(added);
|
|
31
|
+
|
|
32
|
+
return out.join(" ");
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// For a project without Tailwind, where no class name says what it overrides.
|
|
36
|
+
export function withPlainClass(list: string, added: string): string {
|
|
37
|
+
const held = classesOf(list);
|
|
38
|
+
|
|
39
|
+
return held.includes(added) ? held.join(" ") : [...held, added].join(" ");
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export function withoutClass(list: string, removed: string): string {
|
|
43
|
+
return classesOf(list)
|
|
44
|
+
.filter((existing) => existing !== removed)
|
|
45
|
+
.join(" ");
|
|
46
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import MagicString from "magic-string";
|
|
2
|
+
import type { AtRule, Declaration, Rule } from "postcss";
|
|
3
|
+
import { cleanValue, conditional, parseCss, valueOf, type Value } from "./css.ts";
|
|
4
|
+
import type { Patch } from "./patch.ts";
|
|
5
|
+
|
|
6
|
+
// A design token: a custom property a stylesheet declares for the whole
|
|
7
|
+
// project. `start` and `end` are the offsets of its value.
|
|
8
|
+
export type Token = Value & { name: string };
|
|
9
|
+
|
|
10
|
+
// Tailwind reads tokens from `@theme`; plain CSS declares them on `:root`.
|
|
11
|
+
// A variable set under any other selector belongs to that selector, and one
|
|
12
|
+
// inside a condition overrides the token for some screens.
|
|
13
|
+
function projectWide(declaration: Declaration): boolean {
|
|
14
|
+
const parent = declaration.parent;
|
|
15
|
+
if (conditional(parent)) return false;
|
|
16
|
+
|
|
17
|
+
if (parent?.type === "atrule") return (parent as AtRule).name === "theme";
|
|
18
|
+
if (parent?.type === "rule") return (parent as Rule).selectors.includes(":root");
|
|
19
|
+
|
|
20
|
+
return false;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
// Every token in a stylesheet, in source order. Throws when the CSS does not
|
|
24
|
+
// parse, with the line that failed.
|
|
25
|
+
export function tokens(file: string, source: string): Token[] {
|
|
26
|
+
const found: Token[] = [];
|
|
27
|
+
|
|
28
|
+
parseCss(file, source).walkDecls((declaration) => {
|
|
29
|
+
// `--color-*: initial` clears a namespace. It is not a token.
|
|
30
|
+
const named = declaration.prop.startsWith("--") && !declaration.prop.includes("*");
|
|
31
|
+
|
|
32
|
+
if (named && projectWide(declaration)) {
|
|
33
|
+
found.push({ name: declaration.prop, ...valueOf(declaration) });
|
|
34
|
+
}
|
|
35
|
+
});
|
|
36
|
+
|
|
37
|
+
return found;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
// Replaces the value of the one declaration of a token.
|
|
41
|
+
export function patchToken(file: string, source: string, name: string, value: string): Patch {
|
|
42
|
+
const held = tokens(file, source).filter((token) => token.name === name);
|
|
43
|
+
|
|
44
|
+
if (held.length === 0) return { ok: false, reason: `${file} declares no token ${name}` };
|
|
45
|
+
if (held.length > 1) {
|
|
46
|
+
return { ok: false, reason: `${file} declares ${name} ${held.length} times` };
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const next = cleanValue(value);
|
|
50
|
+
if (next === undefined) return { ok: false, reason: `"${value}" cannot be a token value` };
|
|
51
|
+
|
|
52
|
+
const out = new MagicString(source);
|
|
53
|
+
out.overwrite(held[0]!.start, held[0]!.end, next);
|
|
54
|
+
|
|
55
|
+
return { ok: true, code: out.toString() };
|
|
56
|
+
}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import { parse as parseSfc } from "@vue/compiler-sfc";
|
|
2
|
+
import { parseSync } from "oxc-parser";
|
|
3
|
+
import { defaultImportsOf, isNode, memberOf, type MemberName, type Node } from "../estree.ts";
|
|
4
|
+
import type { Attribute, Element, StyleBlock } from "../language.ts";
|
|
5
|
+
|
|
6
|
+
// The node and tag types the template AST numbers, from @vue/compiler-core:
|
|
7
|
+
// ELEMENT=1, TEXT=2, ATTRIBUTE=6, DIRECTIVE=7; ElementTypes.ELEMENT=0.
|
|
8
|
+
const KIND = { ELEMENT: 1, TEXT: 2, ATTRIBUTE: 6, DIRECTIVE: 7, PLAIN: 0 };
|
|
9
|
+
|
|
10
|
+
type Span = { offset: number };
|
|
11
|
+
|
|
12
|
+
type Loc = { start: Span; end: Span };
|
|
13
|
+
|
|
14
|
+
type Prop = {
|
|
15
|
+
type: number;
|
|
16
|
+
name: string;
|
|
17
|
+
rawName?: string;
|
|
18
|
+
arg?: { content: string; isStatic: boolean };
|
|
19
|
+
exp?: { content: string; loc: Loc };
|
|
20
|
+
value?: { content: string; loc: Loc };
|
|
21
|
+
loc: Loc;
|
|
22
|
+
};
|
|
23
|
+
|
|
24
|
+
type TemplateNode = {
|
|
25
|
+
type: number;
|
|
26
|
+
tag?: string;
|
|
27
|
+
tagType?: number;
|
|
28
|
+
props?: Prop[];
|
|
29
|
+
children?: TemplateNode[];
|
|
30
|
+
loc: Loc;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
type Block = { content: string; lang?: string };
|
|
34
|
+
|
|
35
|
+
type Descriptor = {
|
|
36
|
+
template?: { ast: { children: TemplateNode[] }; lang?: string };
|
|
37
|
+
script?: Block | null;
|
|
38
|
+
scriptSetup?: Block | null;
|
|
39
|
+
styles: (Block & { loc: Loc })[];
|
|
40
|
+
};
|
|
41
|
+
|
|
42
|
+
function sfc(file: string, source: string): Descriptor {
|
|
43
|
+
const { descriptor, errors } = parseSfc(source, { filename: file });
|
|
44
|
+
|
|
45
|
+
const first = errors[0];
|
|
46
|
+
if (first) throw new Error(`${file}: ${first.message}`);
|
|
47
|
+
|
|
48
|
+
return descriptor as Descriptor;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
// The offset after the `>` that ends the opening tag. Only spaces and a `/`
|
|
52
|
+
// sit between the last prop and it.
|
|
53
|
+
function openingEnd(source: string, nameEnd: number, props: Prop[]): number {
|
|
54
|
+
const last = Math.max(nameEnd, ...props.map((prop) => prop.loc.end.offset));
|
|
55
|
+
|
|
56
|
+
return source.indexOf(">", last) + 1;
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
// The offset of the closing tag, when the element has one. A void element and
|
|
60
|
+
// a self-closing one have none.
|
|
61
|
+
function closingStart(source: string, node: TemplateNode, name: string): number | undefined {
|
|
62
|
+
const closing = `</${name}>`;
|
|
63
|
+
|
|
64
|
+
return source.endsWith(closing, node.loc.end.offset)
|
|
65
|
+
? node.loc.end.offset - closing.length
|
|
66
|
+
: undefined;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
// `:class="styles.card"` and `v-bind:class`: the value is one expression. Its
|
|
70
|
+
// member is read from a program that wraps it in parens, so an object literal
|
|
71
|
+
// reads as an expression too.
|
|
72
|
+
function memberOfBound(content: string): MemberName | undefined {
|
|
73
|
+
const { program, errors } = parseSync("class.ts", `(${content})`);
|
|
74
|
+
const statement = errors.length === 0 ? (program.body[0] as unknown as Node) : undefined;
|
|
75
|
+
|
|
76
|
+
if (!statement || statement.type !== "ExpressionStatement" || !isNode(statement.expression)) {
|
|
77
|
+
return undefined;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
let expression = statement.expression;
|
|
81
|
+
while (expression.type === "ParenthesizedExpression" && isNode(expression.expression)) {
|
|
82
|
+
expression = expression.expression;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
return memberOf(expression);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
// `:x` and `v-bind:x` name the prop or attribute they set, computed. `v-bind`
|
|
89
|
+
// with no argument spreads props. `:x` with no value is Vue's shorthand for
|
|
90
|
+
// `:x="x"`: computed, with no span of its own.
|
|
91
|
+
function bound(source: string, prop: Prop): Attribute | "spread" | undefined {
|
|
92
|
+
if (prop.name !== "bind") return undefined;
|
|
93
|
+
if (prop.arg === undefined) return "spread";
|
|
94
|
+
|
|
95
|
+
const { arg, exp } = prop;
|
|
96
|
+
if (!arg.isStatic) return { name: prop.rawName ?? "v-bind", ...offsets(prop.loc) };
|
|
97
|
+
|
|
98
|
+
const end = prop.loc.end.offset;
|
|
99
|
+
if (exp === undefined)
|
|
100
|
+
return { name: arg.content, ...offsets(prop.loc), value: { start: end, end } };
|
|
101
|
+
|
|
102
|
+
// The value span holds the quotes, as a literal's does.
|
|
103
|
+
const eq = source.indexOf("=", prop.loc.start.offset + (prop.rawName ?? "").length);
|
|
104
|
+
let start = eq + 1;
|
|
105
|
+
while (/\s/.test(source[start] ?? "")) start++;
|
|
106
|
+
|
|
107
|
+
return {
|
|
108
|
+
name: arg.content,
|
|
109
|
+
...offsets(prop.loc),
|
|
110
|
+
value: {
|
|
111
|
+
start,
|
|
112
|
+
end,
|
|
113
|
+
member: arg.content === "class" ? memberOfBound(exp.content) : undefined,
|
|
114
|
+
},
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
function offsets(loc: Loc): { start: number; end: number } {
|
|
119
|
+
return { start: loc.start.offset, end: loc.end.offset };
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
function attribute(source: string, prop: Prop): Attribute | "spread" | undefined {
|
|
123
|
+
if (prop.type === KIND.DIRECTIVE) return bound(source, prop);
|
|
124
|
+
if (prop.type !== KIND.ATTRIBUTE) return undefined;
|
|
125
|
+
|
|
126
|
+
const whole = { name: prop.name, ...offsets(prop.loc) };
|
|
127
|
+
if (prop.value === undefined) return whole;
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
...whole,
|
|
131
|
+
value: { ...offsets(prop.value.loc), literal: prop.value.content },
|
|
132
|
+
};
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
// Directives that chain an element to its neighbours.
|
|
136
|
+
const CHAIN = new Set(["if", "else-if", "else"]);
|
|
137
|
+
|
|
138
|
+
function element(source: string, node: TemplateNode, container: number): Element {
|
|
139
|
+
const name = node.tag!;
|
|
140
|
+
const start = node.loc.start.offset;
|
|
141
|
+
const nameEnd = start + 1 + name.length;
|
|
142
|
+
const props = node.props ?? [];
|
|
143
|
+
|
|
144
|
+
const parts = props.map((prop) => attribute(source, prop));
|
|
145
|
+
const attributes = parts.flatMap((part) => (part === "spread" || !part ? [] : [part]));
|
|
146
|
+
|
|
147
|
+
const children = node.children ?? [];
|
|
148
|
+
const closing = closingStart(source, node, name);
|
|
149
|
+
const computed = props.some(
|
|
150
|
+
(prop) => prop.type === KIND.DIRECTIVE && (prop.name === "text" || prop.name === "html"),
|
|
151
|
+
);
|
|
152
|
+
const onlyText =
|
|
153
|
+
closing !== undefined && !computed && children.every((child) => child.type === KIND.TEXT);
|
|
154
|
+
|
|
155
|
+
return {
|
|
156
|
+
name,
|
|
157
|
+
start,
|
|
158
|
+
nameEnd,
|
|
159
|
+
end: node.loc.end.offset,
|
|
160
|
+
container,
|
|
161
|
+
chained: props.some((prop) => prop.type === KIND.DIRECTIVE && CHAIN.has(prop.name)),
|
|
162
|
+
// tagType ELEMENT is a tag the browser draws. Components, `<slot>`,
|
|
163
|
+
// `<template>`, `<component>` and the built-ins are the other tag types.
|
|
164
|
+
host: node.tagType === KIND.PLAIN,
|
|
165
|
+
attributes,
|
|
166
|
+
spread: parts.includes("spread"),
|
|
167
|
+
text: onlyText ? { start: openingEnd(source, nameEnd, props), end: closing } : undefined,
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
// Every node's children are one list of siblings; `list` numbers the one that
|
|
172
|
+
// holds the node.
|
|
173
|
+
function walk(
|
|
174
|
+
node: TemplateNode,
|
|
175
|
+
list: number,
|
|
176
|
+
next: () => number,
|
|
177
|
+
visit: (node: TemplateNode, list: number) => void,
|
|
178
|
+
) {
|
|
179
|
+
visit(node, list);
|
|
180
|
+
|
|
181
|
+
const children = next();
|
|
182
|
+
for (const child of node.children ?? []) walk(child, children, next, visit);
|
|
183
|
+
}
|
|
184
|
+
|
|
185
|
+
// Every element of the template, in source order. Throws on a syntax error,
|
|
186
|
+
// and on a template in another language, which has no elements to stamp.
|
|
187
|
+
export function elements(file: string, source: string): Element[] {
|
|
188
|
+
const { template } = sfc(file, source);
|
|
189
|
+
if (!template) return [];
|
|
190
|
+
if (template.lang !== undefined && template.lang !== "html") {
|
|
191
|
+
throw new Error(`${file}: the template is ${template.lang}, not html`);
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
const found: Element[] = [];
|
|
195
|
+
let lists = 1;
|
|
196
|
+
const next = () => lists++;
|
|
197
|
+
|
|
198
|
+
// List 0 is the template's top level.
|
|
199
|
+
for (const child of template.ast.children) {
|
|
200
|
+
walk(child, 0, next, (node, list) => {
|
|
201
|
+
if (node.type === KIND.ELEMENT) found.push(element(source, node, list));
|
|
202
|
+
});
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
return found;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
// The default imports of `<script>` and `<script setup>`, which the template
|
|
209
|
+
// both sees.
|
|
210
|
+
export function defaultImports(file: string, source: string): Map<string, string> {
|
|
211
|
+
const { script, scriptSetup } = sfc(file, source);
|
|
212
|
+
const found = new Map<string, string>();
|
|
213
|
+
|
|
214
|
+
for (const block of [script, scriptSetup]) {
|
|
215
|
+
if (!block?.content.trim()) continue;
|
|
216
|
+
|
|
217
|
+
const lang = block.lang ?? "js";
|
|
218
|
+
const { program, errors } = parseSync(`${file}.${lang}`, block.content);
|
|
219
|
+
const first = errors[0];
|
|
220
|
+
if (first) throw new Error(`${file}: ${first.message}`);
|
|
221
|
+
|
|
222
|
+
defaultImportsOf(program as unknown as Node, found);
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
return found;
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
// Every `<style>`, scoped, module or global. A block's content is the text
|
|
229
|
+
// between its tags.
|
|
230
|
+
export function styles(file: string, source: string): StyleBlock[] {
|
|
231
|
+
return sfc(file, source).styles.map((block) => ({
|
|
232
|
+
start: block.loc.start.offset,
|
|
233
|
+
css: block.content,
|
|
234
|
+
lang: block.lang,
|
|
235
|
+
}));
|
|
236
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Language } from "../language.ts";
|
|
2
|
+
import { defaultImports, elements, styles } from "./elements.ts";
|
|
3
|
+
|
|
4
|
+
// Vue components in `.vue` files.
|
|
5
|
+
export const vue: Language = {
|
|
6
|
+
extensions: [".vue"],
|
|
7
|
+
classAttribute: "class",
|
|
8
|
+
elements,
|
|
9
|
+
defaultImports,
|
|
10
|
+
styles,
|
|
11
|
+
};
|