@fluid-app/fluid-cli-theme-dev 0.1.173 → 0.1.175
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/dist-cli-preview/.vite/manifest.json +94 -68
- package/dist/dist-cli-preview/account-screens.js +1 -1
- package/dist/dist-cli-preview/chunks/MediaScreen-DlrLPYRf.js +8 -0
- package/dist/dist-cli-preview/chunks/{MediaScreen-1akMnH12.js → MemberShareablesScreen-D-5-JyQq.js} +5086 -5039
- package/dist/dist-cli-preview/chunks/PlaylistsScreen-DgYA1qcv.js +8 -0
- package/dist/dist-cli-preview/chunks/{cli-preview-HAt0Lt-9.js → cli-preview-CMcquUEN.js} +19 -12
- package/dist/dist-cli-preview/chunks/{mount-account-screen--gdc5WO_.js → mount-account-screen-BuQhxURX.js} +2138 -2112
- package/dist/dist-cli-preview/chunks/{navigate-account-screen-AVNopuIP.js → navigate-account-screen-mT0rqVLT.js} +1 -1
- package/dist/dist-cli-preview/chunks/playlists-vkLeBb90.js +4 -0
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
var g = Object.defineProperty;
|
|
2
2
|
var b = (t, e, s) => e in t ? g(t, e, { enumerable: !0, configurable: !0, writable: !0, value: s }) : t[e] = s;
|
|
3
|
-
var
|
|
3
|
+
var l = (t, e, s) => b(t, typeof e != "symbol" ? e + "" : e, s);
|
|
4
4
|
const p = {
|
|
5
5
|
subscriptions: async () => {
|
|
6
6
|
const [t, e] = await Promise.all([
|
|
@@ -18,11 +18,18 @@ const p = {
|
|
|
18
18
|
},
|
|
19
19
|
media: async () => {
|
|
20
20
|
const [t, e] = await Promise.all([
|
|
21
|
-
import("./MediaScreen-
|
|
21
|
+
import("./MediaScreen-DlrLPYRf.js"),
|
|
22
22
|
import("./media-vkLeBb90.js")
|
|
23
23
|
]);
|
|
24
24
|
return { Component: t.MediaScreen, styles: e.default };
|
|
25
25
|
},
|
|
26
|
+
playlists: async () => {
|
|
27
|
+
const [t, e] = await Promise.all([
|
|
28
|
+
import("./PlaylistsScreen-DgYA1qcv.js"),
|
|
29
|
+
import("./playlists-vkLeBb90.js")
|
|
30
|
+
]);
|
|
31
|
+
return { Component: t.PlaylistsScreen, styles: e.default };
|
|
32
|
+
},
|
|
26
33
|
profile: async () => {
|
|
27
34
|
const [t, e] = await Promise.all([
|
|
28
35
|
import("./ProfileScreen-CCWM6TBs.js"),
|
|
@@ -81,8 +88,8 @@ function f(t, e) {
|
|
|
81
88
|
for (const [s, o] of Object.entries(y)) {
|
|
82
89
|
if (s !== e && !t.hasAttribute(s))
|
|
83
90
|
continue;
|
|
84
|
-
const
|
|
85
|
-
|
|
91
|
+
const c = t.getAttribute(s)?.trim(), u = `--fluid-account-default-${o}`, n = s.endsWith("font-family") ? "font-family" : "color";
|
|
92
|
+
c && CSS.supports(n, c) ? t.style.setProperty(u, c) : t.style.removeProperty(u);
|
|
86
93
|
}
|
|
87
94
|
}
|
|
88
95
|
function h(t = "fluid-account-screen", e, s = !1) {
|
|
@@ -90,8 +97,8 @@ function h(t = "fluid-account-screen", e, s = !1) {
|
|
|
90
97
|
class o extends HTMLElement {
|
|
91
98
|
constructor() {
|
|
92
99
|
super(...arguments);
|
|
93
|
-
|
|
94
|
-
|
|
100
|
+
l(this, "generation", 0);
|
|
101
|
+
l(this, "mounted");
|
|
95
102
|
}
|
|
96
103
|
connectedCallback() {
|
|
97
104
|
f(this), this.mount();
|
|
@@ -107,8 +114,8 @@ function h(t = "fluid-account-screen", e, s = !1) {
|
|
|
107
114
|
this.generation += 1, this.mounted?.unmount(), this.mounted = void 0;
|
|
108
115
|
}
|
|
109
116
|
status(n) {
|
|
110
|
-
const r = this.shadowRoot ?? this.attachShadow({ mode: "open" }),
|
|
111
|
-
if (
|
|
117
|
+
const r = this.shadowRoot ?? this.attachShadow({ mode: "open" }), a = document.createElement("p");
|
|
118
|
+
if (a.setAttribute("role", n ? "alert" : "status"), a.textContent = n ? this.getAttribute("error-label") ?? "This screen couldn't load." : this.getAttribute("loading-label") ?? "Loading…", r.replaceChildren(a), n) {
|
|
112
119
|
const i = document.createElement("button");
|
|
113
120
|
i.type = "button", i.textContent = this.getAttribute("retry-label") ?? "Try again", i.addEventListener("click", () => {
|
|
114
121
|
this.mount();
|
|
@@ -124,12 +131,12 @@ function h(t = "fluid-account-screen", e, s = !1) {
|
|
|
124
131
|
}
|
|
125
132
|
this.status(!1);
|
|
126
133
|
try {
|
|
127
|
-
const [
|
|
128
|
-
import("./mount-account-screen
|
|
134
|
+
const [a, i] = await Promise.all([
|
|
135
|
+
import("./mount-account-screen-BuQhxURX.js"),
|
|
129
136
|
w(r)
|
|
130
137
|
]);
|
|
131
138
|
if (!this.isConnected || this.generation !== n) return;
|
|
132
|
-
this.mounted =
|
|
139
|
+
this.mounted = a.mountAccountScreen(
|
|
133
140
|
this,
|
|
134
141
|
r,
|
|
135
142
|
i,
|
|
@@ -143,7 +150,7 @@ function h(t = "fluid-account-screen", e, s = !1) {
|
|
|
143
150
|
}
|
|
144
151
|
}
|
|
145
152
|
}
|
|
146
|
-
|
|
153
|
+
l(o, "observedAttributes", [
|
|
147
154
|
"screen",
|
|
148
155
|
"path",
|
|
149
156
|
"preview",
|