@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.
Files changed (39) hide show
  1. package/dist/shared/events/index.d.ts +13 -1
  2. package/dist/shared/events/index.d.ts.map +1 -1
  3. package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts +75 -0
  4. package/dist/shared/plugins/iframe-mount/PluginIframe.d.ts.map +1 -0
  5. package/dist/shared/plugins/iframe-mount/PluginIframe.js +147 -0
  6. package/dist/shared/plugins/iframe-mount/PluginMount.d.ts +59 -0
  7. package/dist/shared/plugins/iframe-mount/PluginMount.d.ts.map +1 -0
  8. package/dist/shared/plugins/iframe-mount/PluginMount.js +129 -0
  9. package/dist/shared/plugins/iframe-mount/client/index.d.ts +3 -0
  10. package/dist/shared/plugins/iframe-mount/client/index.d.ts.map +1 -0
  11. package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts +71 -0
  12. package/dist/shared/plugins/iframe-mount/client/message-bus.d.ts.map +1 -0
  13. package/dist/shared/plugins/iframe-mount/client/message-bus.js +65 -0
  14. package/dist/shared/plugins/iframe-mount/client/rpc.d.ts +25 -0
  15. package/dist/shared/plugins/iframe-mount/client/rpc.d.ts.map +1 -0
  16. package/dist/shared/plugins/iframe-mount/client/rpc.js +63 -0
  17. package/dist/shared/plugins/iframe-mount/index.d.ts +6 -0
  18. package/dist/shared/plugins/iframe-mount/index.d.ts.map +1 -0
  19. package/dist/shared/plugins/iframe-mount/index.js +4 -0
  20. package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts +83 -0
  21. package/dist/shared/plugins/iframe-mount/protocol/contribution.d.ts.map +1 -0
  22. package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts +136 -0
  23. package/dist/shared/plugins/iframe-mount/protocol/envelope.d.ts.map +1 -0
  24. package/dist/shared/plugins/iframe-mount/protocol/envelope.js +10 -0
  25. package/dist/shared/plugins/iframe-mount/protocol/index.d.ts +3 -0
  26. package/dist/shared/plugins/iframe-mount/protocol/index.d.ts.map +1 -0
  27. package/dist/shared/plugins/iframe-mount/sandbox.d.ts +3 -0
  28. package/dist/shared/plugins/iframe-mount/sandbox.d.ts.map +1 -0
  29. package/dist/shared/plugins/iframe-mount/sandbox.js +19 -0
  30. package/dist/shared/plugins/iframe-mount/types.d.ts +57 -0
  31. package/dist/shared/plugins/iframe-mount/types.d.ts.map +1 -0
  32. package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts +31 -0
  33. package/dist/shared/plugins/iframe-mount/useFetchContributions.d.ts.map +1 -0
  34. package/dist/shared/plugins/iframe-mount/useFetchContributions.js +68 -0
  35. package/dist/shared/plugins/index.d.ts +1 -0
  36. package/dist/shared/plugins/index.d.ts.map +1 -1
  37. package/dist/shared-events.js +27 -15
  38. package/dist/shared-plugins.js +6 -1
  39. package/package.json +1 -1
@@ -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(s, c, l) {
78
- let u = {
79
- id: m(),
80
- name: s,
81
- version: 1,
82
- source: {
83
- mfe: r,
84
- component: l?.component
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();
@@ -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
- export { e as DisposableCollection, t as EventBus, i as PluginRuntime, m as PluginRuntimeProvider, a as createContributionRegistry, r as createPluginContext, o as useCommandRegistryStore, p as useContextMenuRegistryStore, c as usePanelRegistryStore, n as usePluginEvent, h as usePluginRuntime, s as useRouteRegistryStore, u as useSettingsRegistryStore, l as useStatusBarRegistryStore, f as useToolbarRegistryStore, d as useWidgetRegistryStore };
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 };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/fe-libs",
3
- "version": "2026.521.1",
3
+ "version": "2026.521.3",
4
4
  "description": "Burdenoff frontend primitives and domain libraries",
5
5
  "type": "module",
6
6
  "imports": {