@attraccess/plugin-rabbitmq 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 +14 -0
- package/dist/index.js +54 -19
- package/frontend/{__federation_expose_Plugin-DeRWZl-2.js → __federation_expose_Plugin--VB44ZV_.js} +492 -541
- 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 +2 -2
- package/package.json +10 -10
- 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--VB44ZV_.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-border-style: solid;
|
|
6
6
|
--tw-font-weight: initial;
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@attraccess/plugin-rabbitmq",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.2.0",
|
|
4
4
|
"description": "Official Attraccess integration for RabbitMQ.",
|
|
5
|
-
"license": "
|
|
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,14 +22,14 @@
|
|
|
22
22
|
"access": "public"
|
|
23
23
|
},
|
|
24
24
|
"peerDependencies": {
|
|
25
|
-
"@attraccess/plugins-backend-sdk": "^
|
|
26
|
-
"@attraccess/plugins-frontend-sdk": "^
|
|
27
|
-
"@attraccess/plugins-frontend-ui": "^
|
|
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": "RabbitMQ",
|
|
31
31
|
"description": "Connect Attraccess resources to RabbitMQ.",
|
|
32
|
-
"host": "^
|
|
32
|
+
"host": "^2.0.0-0",
|
|
33
33
|
"backend": "dist/index.js",
|
|
34
34
|
"frontend": "frontend/remoteEntry.js",
|
|
35
35
|
"styles": "frontend/style.css",
|
|
@@ -37,10 +37,10 @@
|
|
|
37
37
|
"ACCESS_MQTT_SERVERS"
|
|
38
38
|
],
|
|
39
39
|
"sdk": {
|
|
40
|
-
"backend": "^
|
|
41
|
-
"frontend": "^
|
|
40
|
+
"backend": "^2.0.0-0",
|
|
41
|
+
"frontend": "^2.0.0-0"
|
|
42
42
|
},
|
|
43
|
-
"publishedCommit": "
|
|
43
|
+
"publishedCommit": "aba5a1a9b7e143c00bc771d59018684546f0f336"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "aba5a1a9b7e143c00bc771d59018684546f0f336"
|
|
46
46
|
}
|