@attraccess/plugin-wago 0.1.0 → 0.2.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/LICENSE.md +32 -0
- package/dist/index.js +1251 -1236
- package/frontend/{__federation_expose_Plugin-CWwloVtB.js → __federation_expose_Plugin-BLl9hrTn.js} +3443 -3592
- package/frontend/__federation_fn_import-BHGw2mzr.js +1 -0
- package/frontend/{_virtual___federation_fn_import-BXODRNto.js → _virtual___federation_fn_import-D2E5es2p.js} +2 -4
- package/frontend/remoteEntry.js +3 -71
- package/frontend/style.css +3 -98
- package/package.json +20 -12
- package/dist/migrations.js +0 -466
- package/frontend/__federation_fn_import-DAGm_xmC.js +0 -2
|
@@ -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
|
-
|
|
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
|
-
|
|
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 };
|
package/frontend/remoteEntry.js
CHANGED
|
@@ -1,71 +1,4 @@
|
|
|
1
|
-
|
|
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-
|
|
11
|
+
return __federation_import("./__federation_expose_Plugin-BLl9hrTn.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] ??=
|
|
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 };
|
package/frontend/style.css
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
/*! tailwindcss v4.3.
|
|
1
|
+
/*! tailwindcss v4.3.5 | MIT License | https://tailwindcss.com */
|
|
2
2
|
@layer properties {
|
|
3
|
-
@supports (((-webkit-hyphens: none)) and (not (margin-trim:
|
|
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-space-y-reverse: 0;
|
|
6
6
|
--tw-border-style: solid;
|
|
@@ -18,9 +18,7 @@
|
|
|
18
18
|
:root, :host {
|
|
19
19
|
--wg-spacing: .25rem;
|
|
20
20
|
--wg-container-sm: 24rem;
|
|
21
|
-
--wg-container-md: 28rem;
|
|
22
21
|
--wg-container-xl: 36rem;
|
|
23
|
-
--wg-container-3xl: 48rem;
|
|
24
22
|
--wg-container-6xl: 72rem;
|
|
25
23
|
--wg-text-xs: .75rem;
|
|
26
24
|
--wg-text-xs--line-height: calc(1 / .75);
|
|
@@ -30,7 +28,6 @@
|
|
|
30
28
|
--wg-text-lg--line-height: calc(1.75 / 1.125);
|
|
31
29
|
--wg-text-xl: 1.25rem;
|
|
32
30
|
--wg-text-xl--line-height: calc(1.75 / 1.25);
|
|
33
|
-
--wg-font-weight-normal: 400;
|
|
34
31
|
--wg-font-weight-medium: 500;
|
|
35
32
|
--wg-font-weight-semibold: 600;
|
|
36
33
|
--wg-tracking-wider: .05em;
|
|
@@ -64,18 +61,10 @@
|
|
|
64
61
|
position: relative;
|
|
65
62
|
}
|
|
66
63
|
|
|
67
|
-
.wg\:sticky {
|
|
68
|
-
position: sticky;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
64
|
.wg\:inset-0 {
|
|
72
65
|
inset: 0;
|
|
73
66
|
}
|
|
74
67
|
|
|
75
|
-
.wg\:top-0 {
|
|
76
|
-
top: 0;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
68
|
.wg\:top-3 {
|
|
80
69
|
top: calc(var(--wg-spacing) * 3);
|
|
81
70
|
}
|
|
@@ -84,10 +73,6 @@
|
|
|
84
73
|
right: calc(var(--wg-spacing) * 3);
|
|
85
74
|
}
|
|
86
75
|
|
|
87
|
-
.wg\:z-10 {
|
|
88
|
-
z-index: 10;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
76
|
.wg\:mx-auto {
|
|
92
77
|
margin-inline: auto;
|
|
93
78
|
}
|
|
@@ -112,18 +97,10 @@
|
|
|
112
97
|
margin-top: calc(var(--wg-spacing) * 4);
|
|
113
98
|
}
|
|
114
99
|
|
|
115
|
-
.wg\:mt-5 {
|
|
116
|
-
margin-top: calc(var(--wg-spacing) * 5);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
100
|
.wg\:mt-auto {
|
|
120
101
|
margin-top: auto;
|
|
121
102
|
}
|
|
122
103
|
|
|
123
|
-
.wg\:mb-2 {
|
|
124
|
-
margin-bottom: calc(var(--wg-spacing) * 2);
|
|
125
|
-
}
|
|
126
|
-
|
|
127
104
|
.wg\:mb-3 {
|
|
128
105
|
margin-bottom: calc(var(--wg-spacing) * 3);
|
|
129
106
|
}
|
|
@@ -154,16 +131,6 @@
|
|
|
154
131
|
height: calc(var(--wg-spacing) * 4);
|
|
155
132
|
}
|
|
156
133
|
|
|
157
|
-
.wg\:size-5 {
|
|
158
|
-
width: calc(var(--wg-spacing) * 5);
|
|
159
|
-
height: calc(var(--wg-spacing) * 5);
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
.wg\:size-8 {
|
|
163
|
-
width: calc(var(--wg-spacing) * 8);
|
|
164
|
-
height: calc(var(--wg-spacing) * 8);
|
|
165
|
-
}
|
|
166
|
-
|
|
167
134
|
.wg\:h-4 {
|
|
168
135
|
height: calc(var(--wg-spacing) * 4);
|
|
169
136
|
}
|
|
@@ -188,22 +155,10 @@
|
|
|
188
155
|
min-height: calc(var(--wg-spacing) * 8);
|
|
189
156
|
}
|
|
190
157
|
|
|
191
|
-
.wg\:min-h-10 {
|
|
192
|
-
min-height: calc(var(--wg-spacing) * 10);
|
|
193
|
-
}
|
|
194
|
-
|
|
195
158
|
.wg\:min-h-12 {
|
|
196
159
|
min-height: calc(var(--wg-spacing) * 12);
|
|
197
160
|
}
|
|
198
161
|
|
|
199
|
-
.wg\:min-h-16 {
|
|
200
|
-
min-height: calc(var(--wg-spacing) * 16);
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
.wg\:min-h-20 {
|
|
204
|
-
min-height: calc(var(--wg-spacing) * 20);
|
|
205
|
-
}
|
|
206
|
-
|
|
207
162
|
.wg\:min-h-36 {
|
|
208
163
|
min-height: calc(var(--wg-spacing) * 36);
|
|
209
164
|
}
|
|
@@ -224,10 +179,6 @@
|
|
|
224
179
|
width: 100%;
|
|
225
180
|
}
|
|
226
181
|
|
|
227
|
-
.wg\:max-w-3xl {
|
|
228
|
-
max-width: var(--wg-container-3xl);
|
|
229
|
-
}
|
|
230
|
-
|
|
231
182
|
.wg\:max-w-6xl {
|
|
232
183
|
max-width: var(--wg-container-6xl);
|
|
233
184
|
}
|
|
@@ -252,10 +203,6 @@
|
|
|
252
203
|
max-width: 100%;
|
|
253
204
|
}
|
|
254
205
|
|
|
255
|
-
.wg\:max-w-md {
|
|
256
|
-
max-width: var(--wg-container-md);
|
|
257
|
-
}
|
|
258
|
-
|
|
259
206
|
.wg\:max-w-sm {
|
|
260
207
|
max-width: var(--wg-container-sm);
|
|
261
208
|
}
|
|
@@ -397,7 +344,7 @@
|
|
|
397
344
|
}
|
|
398
345
|
|
|
399
346
|
.wg\:rounded-full {
|
|
400
|
-
border-radius:
|
|
347
|
+
border-radius: 2147483647px;
|
|
401
348
|
}
|
|
402
349
|
|
|
403
350
|
.wg\:rounded-lg {
|
|
@@ -418,11 +365,6 @@
|
|
|
418
365
|
border-top-width: 1px;
|
|
419
366
|
}
|
|
420
367
|
|
|
421
|
-
.wg\:border-b {
|
|
422
|
-
border-bottom-style: var(--tw-border-style);
|
|
423
|
-
border-bottom-width: 1px;
|
|
424
|
-
}
|
|
425
|
-
|
|
426
368
|
.wg\:border-border {
|
|
427
369
|
border-color: var(--border);
|
|
428
370
|
}
|
|
@@ -443,10 +385,6 @@
|
|
|
443
385
|
background-color: var(--success);
|
|
444
386
|
}
|
|
445
387
|
|
|
446
|
-
.wg\:bg-surface {
|
|
447
|
-
background-color: var(--surface);
|
|
448
|
-
}
|
|
449
|
-
|
|
450
388
|
.wg\:bg-surface-secondary {
|
|
451
389
|
background-color: var(--surface-secondary);
|
|
452
390
|
}
|
|
@@ -471,14 +409,6 @@
|
|
|
471
409
|
padding-block: calc(var(--wg-spacing) * 3);
|
|
472
410
|
}
|
|
473
411
|
|
|
474
|
-
.wg\:py-4 {
|
|
475
|
-
padding-block: calc(var(--wg-spacing) * 4);
|
|
476
|
-
}
|
|
477
|
-
|
|
478
|
-
.wg\:py-10 {
|
|
479
|
-
padding-block: calc(var(--wg-spacing) * 10);
|
|
480
|
-
}
|
|
481
|
-
|
|
482
412
|
.wg\:pt-3 {
|
|
483
413
|
padding-top: calc(var(--wg-spacing) * 3);
|
|
484
414
|
}
|
|
@@ -487,14 +417,6 @@
|
|
|
487
417
|
padding-right: calc(var(--wg-spacing) * 7);
|
|
488
418
|
}
|
|
489
419
|
|
|
490
|
-
.wg\:pb-3 {
|
|
491
|
-
padding-bottom: calc(var(--wg-spacing) * 3);
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
.wg\:text-end {
|
|
495
|
-
text-align: end;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
420
|
.wg\:text-left {
|
|
499
421
|
text-align: left;
|
|
500
422
|
}
|
|
@@ -528,11 +450,6 @@
|
|
|
528
450
|
font-weight: var(--wg-font-weight-medium);
|
|
529
451
|
}
|
|
530
452
|
|
|
531
|
-
.wg\:font-normal {
|
|
532
|
-
--tw-font-weight: var(--wg-font-weight-normal);
|
|
533
|
-
font-weight: var(--wg-font-weight-normal);
|
|
534
|
-
}
|
|
535
|
-
|
|
536
453
|
.wg\:font-semibold {
|
|
537
454
|
--tw-font-weight: var(--wg-font-weight-semibold);
|
|
538
455
|
font-weight: var(--wg-font-weight-semibold);
|
|
@@ -543,10 +460,6 @@
|
|
|
543
460
|
letter-spacing: var(--wg-tracking-wider);
|
|
544
461
|
}
|
|
545
462
|
|
|
546
|
-
.wg\:\[overflow-wrap\:anywhere\] {
|
|
547
|
-
overflow-wrap: anywhere;
|
|
548
|
-
}
|
|
549
|
-
|
|
550
463
|
.wg\:break-words {
|
|
551
464
|
overflow-wrap: break-word;
|
|
552
465
|
}
|
|
@@ -567,10 +480,6 @@
|
|
|
567
480
|
white-space: pre-wrap;
|
|
568
481
|
}
|
|
569
482
|
|
|
570
|
-
.wg\:text-accent {
|
|
571
|
-
color: var(--accent);
|
|
572
|
-
}
|
|
573
|
-
|
|
574
483
|
.wg\:text-danger {
|
|
575
484
|
color: var(--danger);
|
|
576
485
|
}
|
|
@@ -640,10 +549,6 @@
|
|
|
640
549
|
.wg\:lg\:grid-cols-2 {
|
|
641
550
|
grid-template-columns: repeat(2, minmax(0, 1fr));
|
|
642
551
|
}
|
|
643
|
-
|
|
644
|
-
.wg\:lg\:grid-cols-\[minmax\(220px\,1fr\)_minmax\(0\,2fr\)\] {
|
|
645
|
-
grid-template-columns: minmax(220px, 1fr) minmax(0, 2fr);
|
|
646
|
-
}
|
|
647
552
|
}
|
|
648
553
|
|
|
649
554
|
@media (min-width: 80rem) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attraccess/plugin-wago",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Attraccess integration for WAGO CC100 controllers. Operational control only: not a safety function, and not yet qualified for physical use.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"attraccess-plugin",
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
"wago",
|
|
9
9
|
"cc100"
|
|
10
10
|
],
|
|
11
|
-
"license": "
|
|
11
|
+
"license": "SEE LICENSE IN LICENSE.md",
|
|
12
12
|
"repository": {
|
|
13
13
|
"type": "git",
|
|
14
14
|
"url": "git+https://github.com/Attraccess/Attraccess.git",
|
|
@@ -23,29 +23,37 @@
|
|
|
23
23
|
"access": "public"
|
|
24
24
|
},
|
|
25
25
|
"peerDependencies": {
|
|
26
|
-
"@attraccess/plugins-backend-sdk": "^
|
|
27
|
-
"@attraccess/plugins-frontend-sdk": "^
|
|
28
|
-
"@attraccess/plugins-frontend-ui": "^
|
|
26
|
+
"@attraccess/plugins-backend-sdk": "^2.0.0-0",
|
|
27
|
+
"@attraccess/plugins-frontend-sdk": "^2.0.0-0",
|
|
28
|
+
"@attraccess/plugins-frontend-ui": "^2.0.0-0"
|
|
29
29
|
},
|
|
30
30
|
"attraccess": {
|
|
31
31
|
"displayName": "WAGO CC100",
|
|
32
32
|
"description": "Discover, claim, and monitor WAGO CC100 controllers.",
|
|
33
|
-
"host": "^
|
|
33
|
+
"host": "^2.0.0-0",
|
|
34
34
|
"backend": "dist/index.js",
|
|
35
35
|
"frontend": "frontend/remoteEntry.js",
|
|
36
|
-
"migrations": "dist/migrations.js",
|
|
37
36
|
"styles": "frontend/style.css",
|
|
37
|
+
"license": {
|
|
38
|
+
"required": true,
|
|
39
|
+
"modules": [
|
|
40
|
+
"wago"
|
|
41
|
+
]
|
|
42
|
+
},
|
|
43
|
+
"dashboardPaths": [
|
|
44
|
+
"/wago"
|
|
45
|
+
],
|
|
38
46
|
"permissions": [
|
|
39
|
-
"
|
|
47
|
+
"PLUGIN_STORAGE",
|
|
40
48
|
"ACCESS_MQTT_SERVERS",
|
|
41
49
|
"TRIGGER_FLOWS",
|
|
42
50
|
"MANAGE_SECRETS"
|
|
43
51
|
],
|
|
44
52
|
"sdk": {
|
|
45
|
-
"backend": "^
|
|
46
|
-
"frontend": "^
|
|
53
|
+
"backend": "^2.0.0-0",
|
|
54
|
+
"frontend": "^2.0.0-0"
|
|
47
55
|
},
|
|
48
|
-
"publishedCommit": "
|
|
56
|
+
"publishedCommit": "aba5a1a9b7e143c00bc771d59018684546f0f336"
|
|
49
57
|
},
|
|
50
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "aba5a1a9b7e143c00bc771d59018684546f0f336"
|
|
51
59
|
}
|