@salla.sa/twilight-bundles 0.1.38 → 0.1.39
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.
|
@@ -47,6 +47,14 @@
|
|
|
47
47
|
<\/script>
|
|
48
48
|
<link rel="icon" type="image/png" media="(prefers-color-scheme: light)" href="https://cdn.salla.network/images/logo/logo-square.png" />
|
|
49
49
|
<link rel="icon" type="image/png" media="(prefers-color-scheme: dark)" href="https://cdn.salla.network/images/logo/logo-light-square.png" />
|
|
50
|
+
<script type="importmap">
|
|
51
|
+
{
|
|
52
|
+
"imports": {
|
|
53
|
+
"lit": "https://esm.run/lit",
|
|
54
|
+
"lit/": "https://esm.run/lit/"
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
<\/script>
|
|
50
58
|
<script type="module" src="https://cdn.salla.network/js/twilight/latest/twilight.esm.js" async><\/script>
|
|
51
59
|
<script type="module" src="${x}" demo-mode defer><\/script>
|
|
52
60
|
<link rel="stylesheet" href="https://cdn.salla.network/fonts/pingarlt.css">
|
|
@@ -80,6 +80,14 @@ function _(e, t) {
|
|
|
80
80
|
<\/script>
|
|
81
81
|
<link rel="icon" type="image/png" media="(prefers-color-scheme: light)" href="https://cdn.salla.network/images/logo/logo-square.png" />
|
|
82
82
|
<link rel="icon" type="image/png" media="(prefers-color-scheme: dark)" href="https://cdn.salla.network/images/logo/logo-light-square.png" />
|
|
83
|
+
<script type="importmap">
|
|
84
|
+
{
|
|
85
|
+
"imports": {
|
|
86
|
+
"lit": "https://esm.run/lit",
|
|
87
|
+
"lit/": "https://esm.run/lit/"
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
<\/script>
|
|
83
91
|
<script type="module" src="https://cdn.salla.network/js/twilight/latest/twilight.esm.js" async><\/script>
|
|
84
92
|
<script type="module" src="${$}" demo-mode defer><\/script>
|
|
85
93
|
<link rel="stylesheet" href="https://cdn.salla.network/fonts/pingarlt.css">
|
|
@@ -170,11 +178,11 @@ function L(e = {}) {
|
|
|
170
178
|
let C = e.components ? Object.fromEntries(
|
|
171
179
|
Object.entries(s).filter(([n]) => e.components.includes(n))
|
|
172
180
|
) : s;
|
|
173
|
-
const p = ".salla-temp",
|
|
174
|
-
const T = `/@fs${
|
|
175
|
-
return { name: n, path:
|
|
176
|
-
}).sort((n,
|
|
177
|
-
i.existsSync(
|
|
181
|
+
const p = ".salla-temp", l = a.resolve(r.root, "node_modules", p), d = x(), k = Object.entries(C).map(function([n, o]) {
|
|
182
|
+
const T = `/@fs${o}`, v = d.components.find((m) => m.name === n), j = R(v), D = d.components.findIndex((m) => m.name === n);
|
|
183
|
+
return { name: n, path: o, url: T, schema: j, rawComponent: v, order: D };
|
|
184
|
+
}).sort((n, o) => n.order - o.order);
|
|
185
|
+
i.existsSync(l) || i.mkdirSync(l, { recursive: !0 }), t = a.resolve(l, "index.html"), i.writeFileSync(t, _(k, {
|
|
178
186
|
grid: {
|
|
179
187
|
columns: ((f = e.grid) == null ? void 0 : f.columns) || "repeat(1, 1fr)",
|
|
180
188
|
gap: ((h = e.grid) == null ? void 0 : h.gap) || "1rem",
|
|
@@ -191,7 +199,7 @@ function L(e = {}) {
|
|
|
191
199
|
const c = () => {
|
|
192
200
|
b(t);
|
|
193
201
|
try {
|
|
194
|
-
i.rmdirSync(
|
|
202
|
+
i.rmdirSync(l);
|
|
195
203
|
} catch {
|
|
196
204
|
}
|
|
197
205
|
};
|
package/package.json
CHANGED