@attraccess/plugin-shelly 0.1.0-nightly.990.1 → 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.
File without changes
@@ -1,4 +1,70 @@
1
- import { t as __vitePreload } from "./preload-helper-DxWiKyOd.js";
1
+ //#region \0vite/preload-helper.js
2
+ var scriptRel = "modulepreload";
3
+ var assetsURL = function(dep) {
4
+ return "/" + dep;
5
+ };
6
+ var seen$1 = {};
7
+ var __vitePreload = function preload(baseModule, deps, importerUrl) {
8
+ let promise = Promise.resolve();
9
+ if (deps && deps.length > 0) {
10
+ const links = document.getElementsByTagName("link");
11
+ const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
12
+ const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
13
+ function allSettled(promises) {
14
+ return Promise.all(promises.map((p) => Promise.resolve(p).then((value) => ({
15
+ status: "fulfilled",
16
+ value
17
+ }), (reason) => ({
18
+ status: "rejected",
19
+ reason
20
+ }))));
21
+ }
22
+ function importMetaResolve(specifier) {
23
+ if (import.meta.resolve) return import.meta.resolve(specifier);
24
+ return new URL(
25
+ specifier,
26
+ /** #__KEEP__ */
27
+ import.meta.url
28
+ ).href;
29
+ }
30
+ promise = allSettled(deps.map((dep) => {
31
+ dep = assetsURL(dep, importerUrl);
32
+ dep = importMetaResolve(dep);
33
+ if (dep in seen$1) return;
34
+ seen$1[dep] = true;
35
+ const isCss = dep.endsWith(".css");
36
+ for (let i = links.length - 1; i >= 0; i--) {
37
+ const link = links[i];
38
+ if (link.href === dep && (!isCss || link.rel === "stylesheet")) return;
39
+ }
40
+ const link = document.createElement("link");
41
+ link.rel = isCss ? "stylesheet" : scriptRel;
42
+ if (!isCss) link.as = "script";
43
+ link.crossOrigin = "";
44
+ link.href = dep;
45
+ if (cspNonce) link.setAttribute("nonce", cspNonce);
46
+ document.head.appendChild(link);
47
+ if (isCss) return new Promise((res, rej) => {
48
+ link.addEventListener("load", res);
49
+ link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
50
+ });
51
+ }));
52
+ }
53
+ function handlePreloadError(err) {
54
+ const e = new Event("vite:preloadError", { cancelable: true });
55
+ e.payload = err;
56
+ window.dispatchEvent(e);
57
+ if (!e.defaultPrevented) throw err;
58
+ }
59
+ return promise.then((res) => {
60
+ for (const item of res || []) {
61
+ if (item.status !== "rejected") continue;
62
+ handlePreloadError(item.reason);
63
+ }
64
+ return baseModule().catch(handlePreloadError);
65
+ });
66
+ };
67
+ //#endregion
2
68
  //#region \0virtual:__remoteEntryHelper__remoteEntry.js
3
69
  var currentImports = {};
4
70
  var exportSet = /* @__PURE__ */ new Set([
@@ -9,7 +75,7 @@ var exportSet = /* @__PURE__ */ new Set([
9
75
  ]);
10
76
  var moduleMap = { "./plugin": () => {
11
77
  dynamicLoadingCss(["style.css"], false, "./plugin");
12
- return __federation_import("./__federation_expose_Plugin-Dd1Vs4iR.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
78
+ return __federation_import("./__federation_expose_Plugin-CLiHEWPT.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
13
79
  } };
14
80
  var seen = {};
15
81
  var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
@@ -11,7 +11,6 @@
11
11
 
12
12
  :root, :host {
13
13
  --sh-spacing: .25rem;
14
- --sh-container-2xl: 42rem;
15
14
  --sh-container-5xl: 64rem;
16
15
  --sh-text-xs: .75rem;
17
16
  --sh-text-xs--line-height: calc(1 / .75);
@@ -19,30 +18,11 @@
19
18
  --sh-text-sm--line-height: calc(1.25 / .875);
20
19
  --sh-text-lg: 1.125rem;
21
20
  --sh-text-lg--line-height: calc(1.75 / 1.125);
22
- --sh-text-2xl: 1.5rem;
23
- --sh-text-2xl--line-height: calc(2 / 1.5);
24
21
  --sh-font-weight-medium: 500;
25
22
  --sh-font-weight-semibold: 600;
26
- --sh-font-weight-bold: 700;
27
23
  --sh-tracking-wide: .025em;
28
24
  }
29
25
 
30
- .sh\:absolute {
31
- position: absolute;
32
- }
33
-
34
- .sh\:relative {
35
- position: relative;
36
- }
37
-
38
- .sh\:top-6 {
39
- top: calc(var(--sh-spacing) * 6);
40
- }
41
-
42
- .sh\:right-1 {
43
- right: var(--sh-spacing);
44
- }
45
-
46
26
  .sh\:mx-auto {
47
27
  margin-inline: auto;
48
28
  }
@@ -195,10 +175,6 @@
195
175
  gap: calc(var(--sh-spacing) * 6);
196
176
  }
197
177
 
198
- .sh\:gap-y-4 {
199
- row-gap: calc(var(--sh-spacing) * 4);
200
- }
201
-
202
178
  .sh\:truncate {
203
179
  text-overflow: ellipsis;
204
180
  white-space: nowrap;
@@ -232,11 +208,6 @@
232
208
  border-left-width: 4px;
233
209
  }
234
210
 
235
- .sh\:border-dashed {
236
- --tw-border-style: dashed;
237
- border-style: dashed;
238
- }
239
-
240
211
  .sh\:border-l-warning {
241
212
  border-left-color: var(--warning);
242
213
  }
@@ -245,10 +216,6 @@
245
216
  background-color: var(--surface);
246
217
  }
247
218
 
248
- .sh\:bg-surface-secondary {
249
- background-color: var(--surface-secondary);
250
- }
251
-
252
219
  .sh\:bg-warning\/5 {
253
220
  background-color: var(--warning);
254
221
  }
@@ -263,26 +230,14 @@
263
230
  padding: calc(var(--sh-spacing) * 4);
264
231
  }
265
232
 
266
- .sh\:p-6 {
267
- padding: calc(var(--sh-spacing) * 6);
268
- }
269
-
270
233
  .sh\:px-3 {
271
234
  padding-inline: calc(var(--sh-spacing) * 3);
272
235
  }
273
236
 
274
- .sh\:px-4 {
275
- padding-inline: calc(var(--sh-spacing) * 4);
276
- }
277
-
278
237
  .sh\:py-2 {
279
238
  padding-block: calc(var(--sh-spacing) * 2);
280
239
  }
281
240
 
282
- .sh\:py-12 {
283
- padding-block: calc(var(--sh-spacing) * 12);
284
- }
285
-
286
241
  .sh\:pt-2 {
287
242
  padding-top: calc(var(--sh-spacing) * 2);
288
243
  }
@@ -291,13 +246,12 @@
291
246
  padding-bottom: 0;
292
247
  }
293
248
 
294
- .sh\:text-end {
295
- text-align: end;
249
+ .sh\:pb-6 {
250
+ padding-bottom: calc(var(--sh-spacing) * 6);
296
251
  }
297
252
 
298
- .sh\:text-2xl {
299
- font-size: var(--sh-text-2xl);
300
- line-height: var(--tw-leading, var(--sh-text-2xl--line-height));
253
+ .sh\:text-end {
254
+ text-align: end;
301
255
  }
302
256
 
303
257
  .sh\:text-lg {
@@ -315,11 +269,6 @@
315
269
  line-height: var(--tw-leading, var(--sh-text-xs--line-height));
316
270
  }
317
271
 
318
- .sh\:font-bold {
319
- --tw-font-weight: var(--sh-font-weight-bold);
320
- font-weight: var(--sh-font-weight-bold);
321
- }
322
-
323
272
  .sh\:font-medium {
324
273
  --tw-font-weight: var(--sh-font-weight-medium);
325
274
  font-weight: var(--sh-font-weight-medium);
@@ -387,10 +336,6 @@
387
336
  }
388
337
 
389
338
  @media (min-width: 48rem) {
390
- .sh\:md\:mx-auto {
391
- margin-inline: auto;
392
- }
393
-
394
339
  .sh\:md\:block {
395
340
  display: block;
396
341
  }
@@ -399,10 +344,6 @@
399
344
  display: none;
400
345
  }
401
346
 
402
- .sh\:md\:max-w-2xl {
403
- max-width: var(--sh-container-2xl);
404
- }
405
-
406
347
  .sh\:md\:p-6 {
407
348
  padding: calc(var(--sh-spacing) * 6);
408
349
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@attraccess/plugin-shelly",
3
- "version": "0.1.0-nightly.990.1",
3
+ "version": "0.1.0",
4
4
  "description": "Official Attraccess integration for Shelly devices.",
5
5
  "license": "AGPL-3.0-only",
6
6
  "repository": {
@@ -23,12 +23,13 @@
23
23
  },
24
24
  "peerDependencies": {
25
25
  "@attraccess/plugins-backend-sdk": "^1.9.0",
26
- "@attraccess/plugins-frontend-sdk": "^1.9.0"
26
+ "@attraccess/plugins-frontend-sdk": "^1.9.0",
27
+ "@attraccess/plugins-frontend-ui": "^1.11.0-0"
27
28
  },
28
29
  "attraccess": {
29
30
  "displayName": "Shelly",
30
31
  "description": "Control and monitor Shelly devices from Attraccess.",
31
- "host": "^1.9.0",
32
+ "host": "^1.11.0-0",
32
33
  "backend": "dist/index.js",
33
34
  "frontend": "frontend/remoteEntry.js",
34
35
  "migrations": "dist/migrations.js",
@@ -39,6 +40,8 @@
39
40
  "sdk": {
40
41
  "backend": "^1.9.0",
41
42
  "frontend": "^1.9.0"
42
- }
43
- }
43
+ },
44
+ "publishedCommit": "f1a7ce7d2895bbe85e0fc94088a045c7768200be"
45
+ },
46
+ "gitHead": "f1a7ce7d2895bbe85e0fc94088a045c7768200be"
44
47
  }
@@ -1,42 +0,0 @@
1
- import { t as __commonJSMin } from "./rolldown-runtime-EAsCxrDo.js";
2
- //#region ../../../node_modules/.pnpm/react@19.2.8/node_modules/react/cjs/react-jsx-runtime.production.js
3
- /**
4
- * @license React
5
- * react-jsx-runtime.production.js
6
- *
7
- * Copyright (c) Meta Platforms, Inc. and affiliates.
8
- *
9
- * This source code is licensed under the MIT license found in the
10
- * LICENSE file in the root directory of this source tree.
11
- */
12
- var require_react_jsx_runtime_production = /* @__PURE__ */ __commonJSMin(((exports) => {
13
- var REACT_ELEMENT_TYPE = Symbol.for("react.transitional.element");
14
- var REACT_FRAGMENT_TYPE = Symbol.for("react.fragment");
15
- function jsxProd(type, config, maybeKey) {
16
- var key = null;
17
- void 0 !== maybeKey && (key = "" + maybeKey);
18
- void 0 !== config.key && (key = "" + config.key);
19
- if ("key" in config) {
20
- maybeKey = {};
21
- for (var propName in config) "key" !== propName && (maybeKey[propName] = config[propName]);
22
- } else maybeKey = config;
23
- config = maybeKey.ref;
24
- return {
25
- $$typeof: REACT_ELEMENT_TYPE,
26
- type,
27
- key,
28
- ref: void 0 !== config ? config : null,
29
- props: maybeKey
30
- };
31
- }
32
- exports.Fragment = REACT_FRAGMENT_TYPE;
33
- exports.jsx = jsxProd;
34
- exports.jsxs = jsxProd;
35
- }));
36
- //#endregion
37
- //#region ../../../node_modules/.pnpm/react@19.2.8/node_modules/react/jsx-runtime.js
38
- var require_jsx_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
39
- module.exports = require_react_jsx_runtime_production();
40
- }));
41
- //#endregion
42
- export { require_jsx_runtime as t };
@@ -1,68 +0,0 @@
1
- //#region \0vite/preload-helper.js
2
- var scriptRel = "modulepreload";
3
- var assetsURL = function(dep) {
4
- return "/" + dep;
5
- };
6
- var seen = {};
7
- var __vitePreload = function preload(baseModule, deps, importerUrl) {
8
- let promise = Promise.resolve();
9
- if (deps && deps.length > 0) {
10
- const links = document.getElementsByTagName("link");
11
- const cspNonceMeta = document.querySelector("meta[property=csp-nonce]");
12
- const cspNonce = cspNonceMeta?.nonce || cspNonceMeta?.getAttribute("nonce");
13
- function allSettled(promises) {
14
- return Promise.all(promises.map((p) => Promise.resolve(p).then((value) => ({
15
- status: "fulfilled",
16
- value
17
- }), (reason) => ({
18
- status: "rejected",
19
- reason
20
- }))));
21
- }
22
- function importMetaResolve(specifier) {
23
- if (import.meta.resolve) return import.meta.resolve(specifier);
24
- return new URL(
25
- specifier,
26
- /** #__KEEP__ */
27
- import.meta.url
28
- ).href;
29
- }
30
- promise = allSettled(deps.map((dep) => {
31
- dep = assetsURL(dep, importerUrl);
32
- dep = importMetaResolve(dep);
33
- if (dep in seen) return;
34
- seen[dep] = true;
35
- const isCss = dep.endsWith(".css");
36
- for (let i = links.length - 1; i >= 0; i--) {
37
- const link = links[i];
38
- if (link.href === dep && (!isCss || link.rel === "stylesheet")) return;
39
- }
40
- const link = document.createElement("link");
41
- link.rel = isCss ? "stylesheet" : scriptRel;
42
- if (!isCss) link.as = "script";
43
- link.crossOrigin = "";
44
- link.href = dep;
45
- if (cspNonce) link.setAttribute("nonce", cspNonce);
46
- document.head.appendChild(link);
47
- if (isCss) return new Promise((res, rej) => {
48
- link.addEventListener("load", res);
49
- link.addEventListener("error", () => rej(/* @__PURE__ */ new Error(`Unable to preload CSS for ${dep}`)));
50
- });
51
- }));
52
- }
53
- function handlePreloadError(err) {
54
- const e = new Event("vite:preloadError", { cancelable: true });
55
- e.payload = err;
56
- window.dispatchEvent(e);
57
- if (!e.defaultPrevented) throw err;
58
- }
59
- return promise.then((res) => {
60
- for (const item of res || []) {
61
- if (item.status !== "rejected") continue;
62
- handlePreloadError(item.reason);
63
- }
64
- return baseModule().catch(handlePreloadError);
65
- });
66
- };
67
- //#endregion
68
- export { __vitePreload as t };