@burdenoff/fe-libs 2026.521.1 → 2026.521.3
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/shared/events/index.d.ts +13 -1
- package/dist/shared/events/index.d.ts.map +1 -1
- package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts +75 -0
- package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/PluginIframe.js +147 -0
- package/dist/shared/plugins/iframe-mount/PluginMount.d.ts +59 -0
- package/dist/shared/plugins/iframe-mount/PluginMount.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/PluginMount.js +129 -0
- package/dist/shared/plugins/iframe-mount/client/index.d.ts +3 -0
- package/dist/shared/plugins/iframe-mount/client/index.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts +71 -0
- package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/client/message-bus.js +65 -0
- package/dist/shared/plugins/iframe-mount/client/rpc.d.ts +25 -0
- package/dist/shared/plugins/iframe-mount/client/rpc.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/client/rpc.js +63 -0
- package/dist/shared/plugins/iframe-mount/index.d.ts +6 -0
- package/dist/shared/plugins/iframe-mount/index.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/index.js +4 -0
- package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts +83 -0
- package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts +136 -0
- package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/protocol/envelope.js +10 -0
- package/dist/shared/plugins/iframe-mount/protocol/index.d.ts +3 -0
- package/dist/shared/plugins/iframe-mount/protocol/index.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/sandbox.d.ts +3 -0
- package/dist/shared/plugins/iframe-mount/sandbox.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/sandbox.js +19 -0
- package/dist/shared/plugins/iframe-mount/types.d.ts +57 -0
- package/dist/shared/plugins/iframe-mount/types.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts +31 -0
- package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts.map +1 -0
- package/dist/shared/plugins/iframe-mount/useFetchContributions.js +68 -0
- package/dist/shared/plugins/index.d.ts +1 -0
- package/dist/shared/plugins/index.d.ts.map +1 -1
- package/dist/shared-events.js +27 -15
- package/dist/shared-plugins.js +6 -1
- package/package.json +1 -1
package/dist/shared-events.js
CHANGED
|
@@ -10,6 +10,7 @@ import { jsx as d } from "react/jsx-runtime";
|
|
|
10
10
|
//#region src/shared/events/index.tsx
|
|
11
11
|
var f = o({
|
|
12
12
|
emit: () => {},
|
|
13
|
+
emitCustom: () => {},
|
|
13
14
|
on: () => () => {},
|
|
14
15
|
once: () => () => {},
|
|
15
16
|
getBuffer: () => [],
|
|
@@ -73,22 +74,33 @@ function _({ appName: e, appVersion: t = "0.0.0", appEnv: n = "dev", sourceMfe:
|
|
|
73
74
|
}
|
|
74
75
|
function v({ appName: e, appVersion: t = "0.0.0", appEnv: n = "dev", sourceMfe: r = e }) {
|
|
75
76
|
let i = /* @__PURE__ */ new Map(), a = /* @__PURE__ */ new Set(), o = [];
|
|
77
|
+
function s(i, a, o) {
|
|
78
|
+
return {
|
|
79
|
+
id: m(),
|
|
80
|
+
name: i,
|
|
81
|
+
version: 1,
|
|
82
|
+
source: {
|
|
83
|
+
mfe: r,
|
|
84
|
+
component: o?.component
|
|
85
|
+
},
|
|
86
|
+
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
87
|
+
monotonic: performance.now(),
|
|
88
|
+
payload: a,
|
|
89
|
+
metadata: g(e, t, n)
|
|
90
|
+
};
|
|
91
|
+
}
|
|
92
|
+
function c(e) {
|
|
93
|
+
o = [...o.slice(-199), e];
|
|
94
|
+
}
|
|
76
95
|
return {
|
|
77
|
-
emit(
|
|
78
|
-
let
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
},
|
|
86
|
-
timestamp: (/* @__PURE__ */ new Date()).toISOString(),
|
|
87
|
-
monotonic: performance.now(),
|
|
88
|
-
payload: c,
|
|
89
|
-
metadata: g(e, t, n)
|
|
90
|
-
};
|
|
91
|
-
o = [...o.slice(-199), u], i.get(s)?.forEach((e) => e(u)), a.forEach((e) => e(u));
|
|
96
|
+
emit(e, t, n) {
|
|
97
|
+
let r = s(e, t, n);
|
|
98
|
+
c(r), i.get(e)?.forEach((e) => e(r)), a.forEach((e) => e(r));
|
|
99
|
+
},
|
|
100
|
+
emitCustom(e, t, n) {
|
|
101
|
+
(typeof globalThis < "u" ? globalThis.process : void 0)?.env?.NODE_ENV === "development" && i.has(e) && (i.get(e)?.size ?? 0) > 0 && console.warn(`[EventBus] emitCustom("${e}") has registered typed on() listeners that will NOT fire. Use emit() for typed BurdenoffEventName events.`);
|
|
102
|
+
let r = s(e, t, n);
|
|
103
|
+
c(r), a.forEach((e) => e(r));
|
|
92
104
|
},
|
|
93
105
|
on(e, t) {
|
|
94
106
|
let n = t, r = i.get(e) ?? /* @__PURE__ */ new Set();
|
package/dist/shared-plugins.js
CHANGED
|
@@ -12,4 +12,9 @@ import { useWidgetRegistryStore as d } from "./shared/plugins/registries/useWidg
|
|
|
12
12
|
import { useToolbarRegistryStore as f } from "./shared/plugins/registries/useToolbarRegistry.js";
|
|
13
13
|
import { useContextMenuRegistryStore as p } from "./shared/plugins/registries/useContextMenuRegistry.js";
|
|
14
14
|
import { PluginRuntimeProvider as m, usePluginRuntime as h } from "./shared/plugins/PluginRuntimeProvider.js";
|
|
15
|
-
|
|
15
|
+
import { deriveSandbox as g } from "./shared/plugins/iframe-mount/sandbox.js";
|
|
16
|
+
import { usePluginContributions as _ } from "./shared/plugins/iframe-mount/useFetchContributions.js";
|
|
17
|
+
import { PluginIframe as v } from "./shared/plugins/iframe-mount/PluginIframe.js";
|
|
18
|
+
import { PluginMount as y } from "./shared/plugins/iframe-mount/PluginMount.js";
|
|
19
|
+
import "./shared/plugins/iframe-mount/index.js";
|
|
20
|
+
export { e as DisposableCollection, t as EventBus, v as PluginIframe, y as PluginMount, i as PluginRuntime, m as PluginRuntimeProvider, a as createContributionRegistry, r as createPluginContext, g as deriveSandbox, o as useCommandRegistryStore, p as useContextMenuRegistryStore, c as usePanelRegistryStore, _ as usePluginContributions, n as usePluginEvent, h as usePluginRuntime, s as useRouteRegistryStore, u as useSettingsRegistryStore, l as useStatusBarRegistryStore, f as useToolbarRegistryStore, d as useWidgetRegistryStore };
|