@attraccess/plugin-matter 0.4.0 → 0.5.0-nightly.1197.2

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.
@@ -0,0 +1 @@
1
+ export { r as importShared, t as importSharedLocal, n as importSharedRuntime } from "./_virtual___federation_fn_import-D2E5es2p.js";
@@ -1,4 +1,4 @@
1
- //#region ../../../node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/satisfy.mjs
1
+ // ../../../node_modules/.pnpm/@originjs+vite-plugin-federation@1.4.1/node_modules/@originjs/vite-plugin-federation/dist/satisfy.mjs
2
2
  var buildIdentifier = "[0-9A-Za-z-]+";
3
3
  var build = `(?:\\+(${buildIdentifier}(?:\\.${buildIdentifier})*))`;
4
4
  var numericIdentifier = "0|[1-9]\\d*";
@@ -221,8 +221,7 @@ function satisfy(version, range) {
221
221
  }
222
222
  return true;
223
223
  }
224
- //#endregion
225
- //#region \0virtual:__federation_fn_import
224
+ // \0virtual:__federation_fn_import
226
225
  var moduleMap = {};
227
226
  var moduleCache = Object.create(null);
228
227
  async function importShared(name, shareScope = "default") {
@@ -257,5 +256,4 @@ function flattenModule(module, name) {
257
256
  moduleCache[name] = module;
258
257
  return module;
259
258
  }
260
- //#endregion
261
259
  export { getSharedFromRuntime as n, importShared as r, getSharedFromLocal as t };
@@ -1,71 +1,4 @@
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
68
- //#region \0virtual:__remoteEntryHelper__remoteEntry.js
1
+ // \0virtual:__remoteEntryHelper__remoteEntry.js
69
2
  var currentImports = {};
70
3
  var exportSet = /* @__PURE__ */ new Set([
71
4
  "Module",
@@ -75,7 +8,7 @@ var exportSet = /* @__PURE__ */ new Set([
75
8
  ]);
76
9
  var moduleMap = { "./plugin": () => {
77
10
  dynamicLoadingCss(["style.css"], false, "./plugin");
78
- return __federation_import("./__federation_expose_Plugin-AcefbZx2.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
11
+ return __federation_import("./__federation_expose_Plugin-CM-auybV.js").then((module) => Object.keys(module).every((item) => exportSet.has(item)) ? () => module.default : () => module);
79
12
  } };
80
13
  var seen = {};
81
14
  var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) => {
@@ -118,7 +51,7 @@ var dynamicLoadingCss = (cssFilePaths, dontAppendStylesToHead, exposeItemName) =
118
51
  });
119
52
  };
120
53
  async function __federation_import(name) {
121
- currentImports[name] ??= __vitePreload(() => import(name), []);
54
+ currentImports[name] ??= import(name);
122
55
  return currentImports[name];
123
56
  }
124
57
  var get = (module) => {
@@ -136,5 +69,4 @@ var init = (shareScope) => {
136
69
  }
137
70
  });
138
71
  };
139
- //#endregion
140
72
  export { dynamicLoadingCss, get, init };
@@ -1,6 +1,6 @@
1
- /*! tailwindcss v4.3.3 | MIT License | https://tailwindcss.com */
1
+ /*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
2
2
  @layer properties {
3
- @supports (((-webkit-hyphens: none)) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
3
+ @supports (((-webkit-hyphens: none)) and (not (margin-trim: block))) or ((-moz-orient: inline) and (not (color: rgb(from red r g b)))) {
4
4
  *, :before, :after, ::backdrop {
5
5
  --tw-divide-y-reverse: 0;
6
6
  --tw-border-style: solid;
@@ -22,6 +22,8 @@
22
22
  --mt-text-base--line-height: calc(1.5 / 1);
23
23
  --mt-text-lg: 1.125rem;
24
24
  --mt-text-lg--line-height: calc(1.75 / 1.125);
25
+ --mt-text-xl: 1.25rem;
26
+ --mt-text-xl--line-height: calc(1.75 / 1.25);
25
27
  --mt-font-weight-medium: 500;
26
28
  --mt-font-weight-semibold: 600;
27
29
  }
@@ -46,10 +48,18 @@
46
48
  margin-top: var(--mt-spacing);
47
49
  }
48
50
 
51
+ .mt\:mt-2 {
52
+ margin-top: calc(var(--mt-spacing) * 2);
53
+ }
54
+
49
55
  .mt\:mb-1 {
50
56
  margin-bottom: var(--mt-spacing);
51
57
  }
52
58
 
59
+ .mt\:ml-3 {
60
+ margin-left: calc(var(--mt-spacing) * 3);
61
+ }
62
+
53
63
  .mt\:block {
54
64
  display: block;
55
65
  }
@@ -62,6 +72,10 @@
62
72
  display: grid;
63
73
  }
64
74
 
75
+ .mt\:h-4 {
76
+ height: calc(var(--mt-spacing) * 4);
77
+ }
78
+
65
79
  .mt\:h-5 {
66
80
  height: calc(var(--mt-spacing) * 5);
67
81
  }
@@ -70,6 +84,22 @@
70
84
  height: calc(var(--mt-spacing) * 6);
71
85
  }
72
86
 
87
+ .mt\:h-7 {
88
+ height: calc(var(--mt-spacing) * 7);
89
+ }
90
+
91
+ .mt\:h-8 {
92
+ height: calc(var(--mt-spacing) * 8);
93
+ }
94
+
95
+ .mt\:max-h-96 {
96
+ max-height: calc(var(--mt-spacing) * 96);
97
+ }
98
+
99
+ .mt\:w-4 {
100
+ width: calc(var(--mt-spacing) * 4);
101
+ }
102
+
73
103
  .mt\:w-5 {
74
104
  width: calc(var(--mt-spacing) * 5);
75
105
  }
@@ -78,6 +108,14 @@
78
108
  width: calc(var(--mt-spacing) * 6);
79
109
  }
80
110
 
111
+ .mt\:w-7 {
112
+ width: calc(var(--mt-spacing) * 7);
113
+ }
114
+
115
+ .mt\:w-8 {
116
+ width: calc(var(--mt-spacing) * 8);
117
+ }
118
+
81
119
  .mt\:w-full {
82
120
  width: 100%;
83
121
  }
@@ -86,12 +124,20 @@
86
124
  max-width: var(--mt-container-5xl);
87
125
  }
88
126
 
127
+ .mt\:max-w-prose {
128
+ max-width: 65ch;
129
+ }
130
+
131
+ .mt\:min-w-0 {
132
+ min-width: 0;
133
+ }
134
+
89
135
  .mt\:shrink-0 {
90
136
  flex-shrink: 0;
91
137
  }
92
138
 
93
- .mt\:cursor-pointer {
94
- cursor: pointer;
139
+ .mt\:list-decimal {
140
+ list-style-type: decimal;
95
141
  }
96
142
 
97
143
  .mt\:list-disc {
@@ -114,6 +160,10 @@
114
160
  align-items: center;
115
161
  }
116
162
 
163
+ .mt\:items-end {
164
+ align-items: flex-end;
165
+ }
166
+
117
167
  .mt\:justify-between {
118
168
  justify-content: space-between;
119
169
  }
@@ -138,6 +188,18 @@
138
188
  gap: calc(var(--mt-spacing) * 6);
139
189
  }
140
190
 
191
+ .mt\:gap-x-3 {
192
+ column-gap: calc(var(--mt-spacing) * 3);
193
+ }
194
+
195
+ .mt\:gap-x-4 {
196
+ column-gap: calc(var(--mt-spacing) * 4);
197
+ }
198
+
199
+ .mt\:gap-y-1 {
200
+ row-gap: var(--mt-spacing);
201
+ }
202
+
141
203
  :where(.mt\:divide-y > :not(:last-child)) {
142
204
  --tw-divide-y-reverse: 0;
143
205
  border-bottom-style: var(--tw-border-style);
@@ -150,10 +212,32 @@
150
212
  border-color: var(--separator);
151
213
  }
152
214
 
215
+ .mt\:overflow-auto {
216
+ overflow: auto;
217
+ }
218
+
153
219
  .mt\:rounded-lg {
154
220
  border-radius: calc(var(--radius) * 1);
155
221
  }
156
222
 
223
+ .mt\:rounded-xl {
224
+ border-radius: calc(var(--radius) * 1.5);
225
+ }
226
+
227
+ .mt\:border {
228
+ border-style: var(--tw-border-style);
229
+ border-width: 1px;
230
+ }
231
+
232
+ .mt\:border-l {
233
+ border-left-style: var(--tw-border-style);
234
+ border-left-width: 1px;
235
+ }
236
+
237
+ .mt\:border-separator {
238
+ border-color: var(--separator);
239
+ }
240
+
157
241
  .mt\:bg-surface-secondary {
158
242
  background-color: var(--surface-secondary);
159
243
  }
@@ -170,6 +254,14 @@
170
254
  padding-block: calc(var(--mt-spacing) * 2);
171
255
  }
172
256
 
257
+ .mt\:py-6 {
258
+ padding-block: calc(var(--mt-spacing) * 6);
259
+ }
260
+
261
+ .mt\:pl-3 {
262
+ padding-left: calc(var(--mt-spacing) * 3);
263
+ }
264
+
173
265
  .mt\:pl-5 {
174
266
  padding-left: calc(var(--mt-spacing) * 5);
175
267
  }
@@ -197,6 +289,11 @@
197
289
  line-height: var(--tw-leading, var(--mt-text-sm--line-height));
198
290
  }
199
291
 
292
+ .mt\:text-xl {
293
+ font-size: var(--mt-text-xl);
294
+ line-height: var(--tw-leading, var(--mt-text-xl--line-height));
295
+ }
296
+
200
297
  .mt\:text-xs {
201
298
  font-size: var(--mt-text-xs);
202
299
  line-height: var(--tw-leading, var(--mt-text-xs--line-height));
@@ -224,6 +321,10 @@
224
321
  color: var(--accent-soft-foreground);
225
322
  }
226
323
 
324
+ .mt\:text-danger {
325
+ color: var(--danger);
326
+ }
327
+
227
328
  .mt\:text-muted {
228
329
  color: var(--muted);
229
330
  }
@@ -233,50 +334,11 @@
233
334
  user-select: all;
234
335
  }
235
336
 
236
- .mt\:file\:mr-3::file-selector-button {
237
- margin-right: calc(var(--mt-spacing) * 3);
238
- }
239
-
240
- .mt\:file\:cursor-pointer::file-selector-button {
241
- cursor: pointer;
242
- }
243
-
244
- .mt\:file\:rounded-lg::file-selector-button {
245
- border-radius: calc(var(--radius) * 1);
246
- }
247
-
248
- .mt\:file\:border-0::file-selector-button {
249
- border-style: var(--tw-border-style);
250
- border-width: 0;
251
- }
252
-
253
- .mt\:file\:bg-default::file-selector-button {
254
- background-color: var(--default);
255
- }
256
-
257
- .mt\:file\:px-3::file-selector-button {
258
- padding-inline: calc(var(--mt-spacing) * 3);
259
- }
260
-
261
- .mt\:file\:py-1\.5::file-selector-button {
262
- padding-block: calc(var(--mt-spacing) * 1.5);
263
- }
264
-
265
- .mt\:file\:text-sm::file-selector-button {
266
- font-size: var(--mt-text-sm);
267
- line-height: var(--tw-leading, var(--mt-text-sm--line-height));
268
- }
269
-
270
- .mt\:file\:font-medium::file-selector-button {
271
- --tw-font-weight: var(--mt-font-weight-medium);
272
- font-weight: var(--mt-font-weight-medium);
273
- }
274
-
275
- .mt\:file\:text-foreground::file-selector-button {
276
- color: var(--foreground);
277
- }
278
-
279
337
  @media (min-width: 40rem) {
338
+ .mt\:sm\:w-56 {
339
+ width: calc(var(--mt-spacing) * 56);
340
+ }
341
+
280
342
  .mt\:sm\:grid-cols-2 {
281
343
  grid-template-columns: repeat(2, minmax(0, 1fr));
282
344
  }
@@ -299,6 +361,14 @@
299
361
  }
300
362
 
301
363
  @media (min-width: 48rem) {
364
+ .mt\:md\:grid-cols-2 {
365
+ grid-template-columns: repeat(2, minmax(0, 1fr));
366
+ }
367
+
368
+ .mt\:md\:grid-cols-4 {
369
+ grid-template-columns: repeat(4, minmax(0, 1fr));
370
+ }
371
+
302
372
  .mt\:md\:p-6 {
303
373
  padding: calc(var(--mt-spacing) * 6);
304
374
  }
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "@attraccess/plugin-matter",
3
- "version": "0.4.0",
3
+ "version": "0.5.0-nightly.1197.2",
4
4
  "description": "Official Attraccess integration for Matter devices. Connects to the Matter sidecar; no device features yet.",
5
- "license": "AGPL-3.0-only",
5
+ "license": "SEE LICENSE IN LICENSE.md",
6
6
  "repository": {
7
7
  "type": "git",
8
8
  "url": "git+https://github.com/Attraccess/Attraccess.git",
@@ -22,27 +22,29 @@
22
22
  "access": "public"
23
23
  },
24
24
  "peerDependencies": {
25
- "@attraccess/plugins-backend-sdk": "^1.9.0",
26
- "@attraccess/plugins-frontend-sdk": "^1.9.0",
27
- "@attraccess/plugins-frontend-ui": "^1.11.0-0"
25
+ "@attraccess/plugins-backend-sdk": "^2.0.0-0",
26
+ "@attraccess/plugins-frontend-sdk": "^2.0.0-0",
27
+ "@attraccess/plugins-frontend-ui": "^2.0.0-0"
28
28
  },
29
29
  "attraccess": {
30
30
  "displayName": "Matter",
31
31
  "description": "Matter device support for Attraccess. Secure connection to the Matter sidecar; device features follow.",
32
- "host": "^1.11.0-0",
32
+ "host": "^2.0.0-0",
33
33
  "backend": "dist/index.js",
34
34
  "frontend": "frontend/remoteEntry.js",
35
- "migrations": "dist/migrations.js",
36
35
  "styles": "frontend/style.css",
36
+ "dashboardPaths": [
37
+ "/matter"
38
+ ],
37
39
  "permissions": [
38
- "DATABASE_ACCESS",
40
+ "PLUGIN_STORAGE",
39
41
  "MANAGE_SECRETS"
40
42
  ],
41
43
  "sdk": {
42
- "backend": "^1.9.0",
43
- "frontend": "^1.9.0"
44
+ "backend": "^2.0.0-0",
45
+ "frontend": "^2.0.0-0"
44
46
  },
45
- "publishedCommit": "f1a7ce7d2895bbe85e0fc94088a045c7768200be"
47
+ "publishedCommit": "2080d34f3b92ed143ac355d5928ec9ec1e0d1cdd"
46
48
  },
47
- "gitHead": "f1a7ce7d2895bbe85e0fc94088a045c7768200be"
49
+ "gitHead": "2080d34f3b92ed143ac355d5928ec9ec1e0d1cdd"
48
50
  }