@arch-cadre/modules 0.0.47 → 0.0.48

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 (35) hide show
  1. package/dist/client/extension-point-client.cjs +28 -0
  2. package/dist/client/extension-point-client.d.cts +20 -0
  3. package/dist/client/extension-point-client.d.cts.map +1 -0
  4. package/dist/client/extension-point-client.d.mts +20 -0
  5. package/dist/client/extension-point-client.d.mts.map +1 -0
  6. package/dist/client/extension-point-client.mjs +27 -0
  7. package/dist/client/extension-point-client.mjs.map +1 -0
  8. package/dist/client/extension-point.cjs +19 -0
  9. package/dist/client/extension-point.d.cts +21 -0
  10. package/dist/client/extension-point.d.cts.map +1 -0
  11. package/dist/client/extension-point.d.mts +21 -0
  12. package/dist/client/extension-point.d.mts.map +1 -0
  13. package/dist/client/extension-point.mjs +19 -0
  14. package/dist/client/extension-point.mjs.map +1 -0
  15. package/dist/client/widget-area.cjs +23 -0
  16. package/dist/client/widget-area.d.cts +19 -0
  17. package/dist/client/widget-area.d.cts.map +1 -0
  18. package/dist/client/widget-area.d.mts +19 -0
  19. package/dist/client/widget-area.d.mts.map +1 -0
  20. package/dist/client/widget-area.mjs +22 -0
  21. package/dist/client/widget-area.mjs.map +1 -0
  22. package/dist/index.cjs +7 -1
  23. package/dist/index.d.cts +4 -1
  24. package/dist/index.d.mts +4 -1
  25. package/dist/index.mjs +4 -1
  26. package/dist/server/lifecycle.cjs +3 -3
  27. package/dist/server/lifecycle.mjs +3 -3
  28. package/dist/server/manage.cjs +1 -1
  29. package/dist/server/manage.mjs +1 -1
  30. package/dist/server/registry.cjs +1 -1
  31. package/dist/server/registry.mjs +1 -1
  32. package/dist/server.cjs +1 -1
  33. package/dist/server.mjs +1 -1
  34. package/dist/types.d.mts +1 -1
  35. package/package.json +1 -1
@@ -0,0 +1,28 @@
1
+ "use client";
2
+
3
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
+ const require_ui = require('../server/ui.cjs');
5
+ let react_jsx_runtime = require("react/jsx-runtime");
6
+ let react = require("react");
7
+ react = require_runtime.__toESM(react);
8
+
9
+ //#region src/client/extension-point-client.tsx
10
+ /** biome-ignore-all lint/suspicious/noExplicitAny: <> */
11
+ function ExtensionPointClient({ module, point, className, props, fallback }) {
12
+ const [extensions, setExtensions] = (0, react.useState)([]);
13
+ (0, react.useEffect)(() => {
14
+ require_ui.getExtensions(module, point).then(setExtensions);
15
+ }, [module, point]);
16
+ if (extensions.length === 0) return fallback || null;
17
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
18
+ className,
19
+ children: extensions.map((ext) => {
20
+ const Component = ext.component;
21
+ if (!Component) return null;
22
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, { ...props }, ext.id);
23
+ })
24
+ });
25
+ }
26
+
27
+ //#endregion
28
+ exports.ExtensionPointClient = ExtensionPointClient;
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+
3
+ //#region src/client/extension-point-client.d.ts
4
+ interface ExtensionPointProps {
5
+ module: string;
6
+ point: string;
7
+ className?: string;
8
+ props?: any;
9
+ fallback?: React.ReactNode;
10
+ }
11
+ declare function ExtensionPointClient({
12
+ module,
13
+ point,
14
+ className,
15
+ props,
16
+ fallback
17
+ }: ExtensionPointProps): any;
18
+ //#endregion
19
+ export { ExtensionPointClient };
20
+ //# sourceMappingURL=extension-point-client.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-point-client.d.cts","names":[],"sources":["../../src/client/extension-point-client.tsx"],"mappings":";;;UAOU,mBAAA;EACR,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,iBAGH,oBAAA,CAAA;EACd,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA;AAAA,GACC,mBAAA"}
@@ -0,0 +1,20 @@
1
+ import * as React from "react";
2
+
3
+ //#region src/client/extension-point-client.d.ts
4
+ interface ExtensionPointProps {
5
+ module: string;
6
+ point: string;
7
+ className?: string;
8
+ props?: any;
9
+ fallback?: React.ReactNode;
10
+ }
11
+ declare function ExtensionPointClient({
12
+ module,
13
+ point,
14
+ className,
15
+ props,
16
+ fallback
17
+ }: ExtensionPointProps): any;
18
+ //#endregion
19
+ export { ExtensionPointClient };
20
+ //# sourceMappingURL=extension-point-client.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-point-client.d.mts","names":[],"sources":["../../src/client/extension-point-client.tsx"],"mappings":";;;UAOU,mBAAA;EACR,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,iBAGH,oBAAA,CAAA;EACd,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA;AAAA,GACC,mBAAA"}
@@ -0,0 +1,27 @@
1
+ "use client";
2
+
3
+ import { getExtensions } from "../server/ui.mjs";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import { useEffect, useState } from "react";
6
+
7
+ //#region src/client/extension-point-client.tsx
8
+ /** biome-ignore-all lint/suspicious/noExplicitAny: <> */
9
+ function ExtensionPointClient({ module, point, className, props, fallback }) {
10
+ const [extensions, setExtensions] = useState([]);
11
+ useEffect(() => {
12
+ getExtensions(module, point).then(setExtensions);
13
+ }, [module, point]);
14
+ if (extensions.length === 0) return fallback || null;
15
+ return /* @__PURE__ */ jsx("div", {
16
+ className,
17
+ children: extensions.map((ext) => {
18
+ const Component = ext.component;
19
+ if (!Component) return null;
20
+ return /* @__PURE__ */ jsx(Component, { ...props }, ext.id);
21
+ })
22
+ });
23
+ }
24
+
25
+ //#endregion
26
+ export { ExtensionPointClient };
27
+ //# sourceMappingURL=extension-point-client.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-point-client.mjs","names":[],"sources":["../../src/client/extension-point-client.tsx"],"sourcesContent":["/** biome-ignore-all lint/suspicious/noExplicitAny: <> */\n\"use client\";\nimport * as React from \"react\";\n\nimport { useEffect, useState } from \"react\";\nimport { getExtensions } from \"../server/ui.js\";\n\ninterface ExtensionPointProps {\n module: string;\n point: string;\n className?: string;\n props?: any;\n fallback?: React.ReactNode;\n}\n\nexport function ExtensionPointClient({\n module,\n point,\n className,\n props,\n fallback,\n}: ExtensionPointProps) {\n const [extensions, setExtensions] = useState<any[]>([]);\n\n useEffect(() => {\n getExtensions(module, point).then(setExtensions);\n }, [module, point]);\n\n if (extensions.length === 0) return (fallback as any) || null;\n\n return (\n <div className={className}>\n {extensions.map((ext) => {\n const Component = ext.component;\n if (!Component) return null;\n return <Component key={ext.id} {...props} />;\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;;AAeA,SAAgB,qBAAqB,EACnC,QACA,OACA,WACA,OACA,YACsB;CACtB,MAAM,CAAC,YAAY,iBAAiB,SAAgB,EAAE,CAAC;AAEvD,iBAAgB;AACd,gBAAc,QAAQ,MAAM,CAAC,KAAK,cAAc;IAC/C,CAAC,QAAQ,MAAM,CAAC;AAEnB,KAAI,WAAW,WAAW,EAAG,QAAQ,YAAoB;AAEzD,QACE,oBAAC;EAAe;YACb,WAAW,KAAK,QAAQ;GACvB,MAAM,YAAY,IAAI;AACtB,OAAI,CAAC,UAAW,QAAO;AACvB,UAAO,oBAAC,aAAuB,GAAI,SAAZ,IAAI,GAAiB;IAC5C;GACE"}
@@ -0,0 +1,19 @@
1
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
2
+ const require_ui = require('../server/ui.cjs');
3
+ let react_jsx_runtime = require("react/jsx-runtime");
4
+
5
+ //#region src/client/extension-point.tsx
6
+ async function ExtensionPoint({ module, point, className, props, fallback }) {
7
+ const extensions = await require_ui.getExtensions(module, point);
8
+ if (extensions.length === 0) return fallback || null;
9
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
10
+ className,
11
+ children: extensions.map((ext) => {
12
+ const Component = ext.component;
13
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, { ...props }, ext.id);
14
+ })
15
+ });
16
+ }
17
+
18
+ //#endregion
19
+ exports.ExtensionPoint = ExtensionPoint;
@@ -0,0 +1,21 @@
1
+ import * as react from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/client/extension-point.d.ts
5
+ interface ExtensionPointProps {
6
+ module: string;
7
+ point: string;
8
+ className?: string;
9
+ props?: any;
10
+ fallback?: React.ReactNode;
11
+ }
12
+ declare function ExtensionPoint({
13
+ module,
14
+ point,
15
+ className,
16
+ props,
17
+ fallback
18
+ }: ExtensionPointProps): Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | react_jsx_runtime0.JSX.Element | null | undefined>;
19
+ //#endregion
20
+ export { ExtensionPoint };
21
+ //# sourceMappingURL=extension-point.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-point.d.cts","names":[],"sources":["../../src/client/extension-point.tsx"],"mappings":";;;;UAGU,mBAAA;EACR,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,iBAGG,cAAA,CAAA;EACpB,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA;AAAA,GACC,mBAAA,GAAmB,OAAA,sCAAA,QAAA,CAAA,KAAA,CAAA,SAAA,IAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,21 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as react from "react";
3
+
4
+ //#region src/client/extension-point.d.ts
5
+ interface ExtensionPointProps {
6
+ module: string;
7
+ point: string;
8
+ className?: string;
9
+ props?: any;
10
+ fallback?: React.ReactNode;
11
+ }
12
+ declare function ExtensionPoint({
13
+ module,
14
+ point,
15
+ className,
16
+ props,
17
+ fallback
18
+ }: ExtensionPointProps): Promise<string | number | bigint | boolean | Iterable<react.ReactNode> | react_jsx_runtime0.JSX.Element | null | undefined>;
19
+ //#endregion
20
+ export { ExtensionPoint };
21
+ //# sourceMappingURL=extension-point.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-point.d.mts","names":[],"sources":["../../src/client/extension-point.tsx"],"mappings":";;;;UAGU,mBAAA;EACR,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA,QAAA,GAAW,KAAA,CAAM,SAAA;AAAA;AAAA,iBAGG,cAAA,CAAA;EACpB,MAAA;EACA,KAAA;EACA,SAAA;EACA,KAAA;EACA;AAAA,GACC,mBAAA,GAAmB,OAAA,sCAAA,QAAA,CAAA,KAAA,CAAA,SAAA,IAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,19 @@
1
+ import { getExtensions } from "../server/ui.mjs";
2
+ import { jsx } from "react/jsx-runtime";
3
+
4
+ //#region src/client/extension-point.tsx
5
+ async function ExtensionPoint({ module, point, className, props, fallback }) {
6
+ const extensions = await getExtensions(module, point);
7
+ if (extensions.length === 0) return fallback || null;
8
+ return /* @__PURE__ */ jsx("div", {
9
+ className,
10
+ children: extensions.map((ext) => {
11
+ const Component = ext.component;
12
+ return /* @__PURE__ */ jsx(Component, { ...props }, ext.id);
13
+ })
14
+ });
15
+ }
16
+
17
+ //#endregion
18
+ export { ExtensionPoint };
19
+ //# sourceMappingURL=extension-point.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"extension-point.mjs","names":[],"sources":["../../src/client/extension-point.tsx"],"sourcesContent":["// import * as React from \"react\";\nimport { getExtensions } from \"../server/ui.js\";\n\ninterface ExtensionPointProps {\n module: string;\n point: string;\n className?: string;\n props?: any;\n fallback?: React.ReactNode;\n}\n\nexport async function ExtensionPoint({\n module,\n point,\n className,\n props,\n fallback,\n}: ExtensionPointProps) {\n const extensions = await getExtensions(module, point);\n\n if (extensions.length === 0) return fallback || null;\n\n return (\n <div className={className}>\n {extensions.map((ext) => {\n const Component = ext.component;\n return <Component key={ext.id} {...props} />;\n })}\n </div>\n );\n}\n"],"mappings":";;;;AAWA,eAAsB,eAAe,EACnC,QACA,OACA,WACA,OACA,YACsB;CACtB,MAAM,aAAa,MAAM,cAAc,QAAQ,MAAM;AAErD,KAAI,WAAW,WAAW,EAAG,QAAO,YAAY;AAEhD,QACE,oBAAC;EAAe;YACb,WAAW,KAAK,QAAQ;GACvB,MAAM,YAAY,IAAI;AACtB,UAAO,oBAAC,aAAuB,GAAI,SAAZ,IAAI,GAAiB;IAC5C;GACE"}
@@ -0,0 +1,23 @@
1
+ "use client";
2
+
3
+ const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
+ const require_ui = require('../server/ui.cjs');
5
+ let react_jsx_runtime = require("react/jsx-runtime");
6
+ let react = require("react");
7
+ react = require_runtime.__toESM(react);
8
+
9
+ //#region src/client/widget-area.tsx
10
+ async function WidgetArea({ area, className, fallback, props }) {
11
+ const widgets = await require_ui.getModuleWidgets(area);
12
+ if (widgets.length === 0) return fallback || null;
13
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
14
+ className,
15
+ children: widgets.map((widget) => {
16
+ const Component = widget.component;
17
+ return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(Component, { ...props }, widget.id);
18
+ })
19
+ });
20
+ }
21
+
22
+ //#endregion
23
+ exports.WidgetArea = WidgetArea;
@@ -0,0 +1,19 @@
1
+ import * as React from "react";
2
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
3
+
4
+ //#region src/client/widget-area.d.ts
5
+ interface WidgetAreaProps {
6
+ area: string;
7
+ className?: string;
8
+ fallback?: React.ReactNode;
9
+ props?: any;
10
+ }
11
+ declare function WidgetArea({
12
+ area,
13
+ className,
14
+ fallback,
15
+ props
16
+ }: WidgetAreaProps): Promise<string | number | bigint | boolean | Iterable<React.ReactNode> | react_jsx_runtime0.JSX.Element | null | undefined>;
17
+ //#endregion
18
+ export { WidgetArea };
19
+ //# sourceMappingURL=widget-area.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-area.d.cts","names":[],"sources":["../../src/client/widget-area.tsx"],"mappings":";;;;UAKU,eAAA;EACR,IAAA;EACA,SAAA;EACA,QAAA,GAAW,KAAA,CAAM,SAAA;EAEjB,KAAA;AAAA;AAAA,iBAGoB,UAAA,CAAA;EACpB,IAAA;EACA,SAAA;EACA,QAAA;EACA;AAAA,GACC,eAAA,GAAe,OAAA,sCAAA,QAAA,CAAA,KAAA,CAAA,SAAA,IAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,19 @@
1
+ import * as react_jsx_runtime0 from "react/jsx-runtime";
2
+ import * as React from "react";
3
+
4
+ //#region src/client/widget-area.d.ts
5
+ interface WidgetAreaProps {
6
+ area: string;
7
+ className?: string;
8
+ fallback?: React.ReactNode;
9
+ props?: any;
10
+ }
11
+ declare function WidgetArea({
12
+ area,
13
+ className,
14
+ fallback,
15
+ props
16
+ }: WidgetAreaProps): Promise<string | number | bigint | boolean | Iterable<React.ReactNode> | react_jsx_runtime0.JSX.Element | null | undefined>;
17
+ //#endregion
18
+ export { WidgetArea };
19
+ //# sourceMappingURL=widget-area.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-area.d.mts","names":[],"sources":["../../src/client/widget-area.tsx"],"mappings":";;;;UAKU,eAAA;EACR,IAAA;EACA,SAAA;EACA,QAAA,GAAW,KAAA,CAAM,SAAA;EAEjB,KAAA;AAAA;AAAA,iBAGoB,UAAA,CAAA;EACpB,IAAA;EACA,SAAA;EACA,QAAA;EACA;AAAA,GACC,eAAA,GAAe,OAAA,sCAAA,QAAA,CAAA,KAAA,CAAA,SAAA,IAAA,kBAAA,CAAA,GAAA,CAAA,OAAA"}
@@ -0,0 +1,22 @@
1
+ "use client";
2
+
3
+ import { getModuleWidgets } from "../server/ui.mjs";
4
+ import { jsx } from "react/jsx-runtime";
5
+ import "react";
6
+
7
+ //#region src/client/widget-area.tsx
8
+ async function WidgetArea({ area, className, fallback, props }) {
9
+ const widgets = await getModuleWidgets(area);
10
+ if (widgets.length === 0) return fallback || null;
11
+ return /* @__PURE__ */ jsx("div", {
12
+ className,
13
+ children: widgets.map((widget) => {
14
+ const Component = widget.component;
15
+ return /* @__PURE__ */ jsx(Component, { ...props }, widget.id);
16
+ })
17
+ });
18
+ }
19
+
20
+ //#endregion
21
+ export { WidgetArea };
22
+ //# sourceMappingURL=widget-area.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widget-area.mjs","names":[],"sources":["../../src/client/widget-area.tsx"],"sourcesContent":["\"use client\";\n\nimport * as React from \"react\";\nimport { getModuleWidgets } from \"../server/ui.js\";\n\ninterface WidgetAreaProps {\n area: string;\n className?: string;\n fallback?: React.ReactNode;\n // Przekazywanie dowolnych propsów do widgetów (np. dane użytkownika)\n props?: any;\n}\n\nexport async function WidgetArea({\n area,\n className,\n fallback,\n props,\n}: WidgetAreaProps) {\n const widgets = await getModuleWidgets(area);\n\n if (widgets.length === 0) {\n return fallback || null;\n }\n\n return (\n <div className={className}>\n {widgets.map((widget) => {\n const Component = widget.component;\n return <Component key={widget.id} {...props} />;\n })}\n </div>\n );\n}\n"],"mappings":";;;;;;;AAaA,eAAsB,WAAW,EAC/B,MACA,WACA,UACA,SACkB;CAClB,MAAM,UAAU,MAAM,iBAAiB,KAAK;AAE5C,KAAI,QAAQ,WAAW,EACrB,QAAO,YAAY;AAGrB,QACE,oBAAC;EAAe;YACb,QAAQ,KAAK,WAAW;GACvB,MAAM,YAAY,OAAO;AACzB,UAAO,oBAAC,aAA0B,GAAI,SAAf,OAAO,GAAiB;IAC/C;GACE"}
package/dist/index.cjs CHANGED
@@ -1,4 +1,10 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_types = require('./types.cjs');
3
+ const require_extension_point = require('./client/extension-point.cjs');
4
+ const require_extension_point_client = require('./client/extension-point-client.cjs');
5
+ const require_widget_area = require('./client/widget-area.cjs');
3
6
 
4
- exports.ModuleManifestSchema = require_types.ModuleManifestSchema;
7
+ exports.ExtensionPoint = require_extension_point.ExtensionPoint;
8
+ exports.ExtensionPointClient = require_extension_point_client.ExtensionPointClient;
9
+ exports.ModuleManifestSchema = require_types.ModuleManifestSchema;
10
+ exports.WidgetArea = require_widget_area.WidgetArea;
package/dist/index.d.cts CHANGED
@@ -1,2 +1,5 @@
1
+ import { ExtensionPoint } from "./client/extension-point.cjs";
2
+ import { ExtensionPointClient } from "./client/extension-point-client.cjs";
3
+ import { WidgetArea } from "./client/widget-area.cjs";
1
4
  import { ApiRouteDefinition, IModule, ModuleExtension, ModuleManifest, ModuleManifestSchema, ModuleNavElement, ModuleNavigation, ModuleNavigationGroupMap, ModulePageProps, ModuleRouteDefinition, ModuleWidget, PrivateRouteDefinition, PublicRouteDefinition, SidebarGroupType, SidebarMenuItemType, SidebarMenuType, SystemEvent } from "./types.cjs";
2
- export { ApiRouteDefinition, IModule, ModuleExtension, ModuleManifest, ModuleManifestSchema, ModuleNavElement, ModuleNavigation, ModuleNavigationGroupMap, ModulePageProps, ModuleRouteDefinition, ModuleWidget, PrivateRouteDefinition, PublicRouteDefinition, SidebarGroupType, SidebarMenuItemType, SidebarMenuType, SystemEvent };
5
+ export { ApiRouteDefinition, ExtensionPoint, ExtensionPointClient, IModule, ModuleExtension, ModuleManifest, ModuleManifestSchema, ModuleNavElement, ModuleNavigation, ModuleNavigationGroupMap, ModulePageProps, ModuleRouteDefinition, ModuleWidget, PrivateRouteDefinition, PublicRouteDefinition, SidebarGroupType, SidebarMenuItemType, SidebarMenuType, SystemEvent, WidgetArea };
package/dist/index.d.mts CHANGED
@@ -1,2 +1,5 @@
1
+ import { ExtensionPoint } from "./client/extension-point.mjs";
2
+ import { ExtensionPointClient } from "./client/extension-point-client.mjs";
3
+ import { WidgetArea } from "./client/widget-area.mjs";
1
4
  import { ApiRouteDefinition, IModule, ModuleExtension, ModuleManifest, ModuleManifestSchema, ModuleNavElement, ModuleNavigation, ModuleNavigationGroupMap, ModulePageProps, ModuleRouteDefinition, ModuleWidget, PrivateRouteDefinition, PublicRouteDefinition, SidebarGroupType, SidebarMenuItemType, SidebarMenuType, SystemEvent } from "./types.mjs";
2
- export { ApiRouteDefinition, IModule, ModuleExtension, ModuleManifest, ModuleManifestSchema, ModuleNavElement, ModuleNavigation, ModuleNavigationGroupMap, ModulePageProps, ModuleRouteDefinition, ModuleWidget, PrivateRouteDefinition, PublicRouteDefinition, SidebarGroupType, SidebarMenuItemType, SidebarMenuType, SystemEvent };
5
+ export { ApiRouteDefinition, ExtensionPoint, ExtensionPointClient, IModule, ModuleExtension, ModuleManifest, ModuleManifestSchema, ModuleNavElement, ModuleNavigation, ModuleNavigationGroupMap, ModulePageProps, ModuleRouteDefinition, ModuleWidget, PrivateRouteDefinition, PublicRouteDefinition, SidebarGroupType, SidebarMenuItemType, SidebarMenuType, SystemEvent, WidgetArea };
package/dist/index.mjs CHANGED
@@ -1,3 +1,6 @@
1
1
  import { ModuleManifestSchema } from "./types.mjs";
2
+ import { ExtensionPoint } from "./client/extension-point.mjs";
3
+ import { ExtensionPointClient } from "./client/extension-point-client.mjs";
4
+ import { WidgetArea } from "./client/widget-area.mjs";
2
5
 
3
- export { ModuleManifestSchema };
6
+ export { ExtensionPoint, ExtensionPointClient, ModuleManifestSchema, WidgetArea };
@@ -2,15 +2,15 @@
2
2
 
3
3
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
4
  const require_manage = require('./manage.cjs');
5
- let node_child_process = require("node:child_process");
5
+ let _arch_cadre_core_server = require("@arch-cadre/core/server");
6
6
  let node_fs_promises = require("node:fs/promises");
7
7
  node_fs_promises = require_runtime.__toESM(node_fs_promises);
8
8
  let node_path = require("node:path");
9
9
  node_path = require_runtime.__toESM(node_path);
10
- let node_util = require("node:util");
11
10
  let _arch_cadre_core = require("@arch-cadre/core");
12
- let _arch_cadre_core_server = require("@arch-cadre/core/server");
13
11
  let drizzle_orm = require("drizzle-orm");
12
+ let node_child_process = require("node:child_process");
13
+ let node_util = require("node:util");
14
14
 
15
15
  //#region src/server/lifecycle.ts
16
16
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
@@ -1,13 +1,13 @@
1
1
  "use server";
2
2
 
3
3
  import { getModuleInstance, getModules } from "./manage.mjs";
4
- import { exec } from "node:child_process";
4
+ import { db } from "@arch-cadre/core/server";
5
5
  import fs from "node:fs/promises";
6
6
  import path from "node:path";
7
- import { promisify } from "node:util";
8
7
  import { systemModulesTable } from "@arch-cadre/core";
9
- import { db } from "@arch-cadre/core/server";
10
8
  import { eq } from "drizzle-orm";
9
+ import { exec } from "node:child_process";
10
+ import { promisify } from "node:util";
11
11
 
12
12
  //#region src/server/lifecycle.ts
13
13
  const sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
@@ -2,12 +2,12 @@
2
2
 
3
3
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
4
  const require_types = require('../types.cjs');
5
+ let _arch_cadre_core_server = require("@arch-cadre/core/server");
5
6
  let node_fs_promises = require("node:fs/promises");
6
7
  node_fs_promises = require_runtime.__toESM(node_fs_promises);
7
8
  let node_path = require("node:path");
8
9
  node_path = require_runtime.__toESM(node_path);
9
10
  let _arch_cadre_core = require("@arch-cadre/core");
10
- let _arch_cadre_core_server = require("@arch-cadre/core/server");
11
11
  let drizzle_orm = require("drizzle-orm");
12
12
 
13
13
  //#region src/server/manage.ts
@@ -1,10 +1,10 @@
1
1
  "use server";
2
2
 
3
3
  import { ModuleManifestSchema } from "../types.mjs";
4
+ import { db, getModulesDir } from "@arch-cadre/core/server";
4
5
  import fs from "node:fs/promises";
5
6
  import path from "node:path";
6
7
  import { systemModulesTable } from "@arch-cadre/core";
7
- import { db, getModulesDir } from "@arch-cadre/core/server";
8
8
  import { eq } from "drizzle-orm";
9
9
 
10
10
  //#region src/server/manage.ts
@@ -2,8 +2,8 @@
2
2
 
3
3
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
4
4
  const require_manage = require('./manage.cjs');
5
- let _arch_cadre_core = require("@arch-cadre/core");
6
5
  let _arch_cadre_core_server = require("@arch-cadre/core/server");
6
+ let _arch_cadre_core = require("@arch-cadre/core");
7
7
  let drizzle_orm = require("drizzle-orm");
8
8
 
9
9
  //#region src/server/registry.ts
@@ -1,8 +1,8 @@
1
1
  "use server";
2
2
 
3
3
  import { getModuleInstance, getModules, isModuleEnabled } from "./manage.mjs";
4
- import { eventBus, systemModulesTable } from "@arch-cadre/core";
5
4
  import { db } from "@arch-cadre/core/server";
5
+ import { eventBus, systemModulesTable } from "@arch-cadre/core";
6
6
  import { eq } from "drizzle-orm";
7
7
 
8
8
  //#region src/server/registry.ts
package/dist/server.cjs CHANGED
@@ -1,9 +1,9 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_types = require('./types.cjs');
3
3
  const require_manage = require('./server/manage.cjs');
4
+ const require_ui = require('./server/ui.cjs');
4
5
  const require_lifecycle = require('./server/lifecycle.cjs');
5
6
  const require_registry = require('./server/registry.cjs');
6
- const require_ui = require('./server/ui.cjs');
7
7
 
8
8
  exports.ModuleManifestSchema = require_types.ModuleManifestSchema;
9
9
  exports.getApiModuleRoutes = require_ui.getApiModuleRoutes;
package/dist/server.mjs CHANGED
@@ -1,7 +1,7 @@
1
1
  import { ModuleManifestSchema } from "./types.mjs";
2
2
  import { getModuleConfig, getModuleInstance, getModuleStatus, getModules, isModuleEnabled, registerModules, updateModuleConfig } from "./server/manage.mjs";
3
+ import { getApiModuleRoutes, getExtensions, getKryoModuleNavigationGrouped, getKryoModuleRoutes, getKryoPathPrefix, getModuleNavigation, getModuleNavigationGrouped, getModuleWidgets, getPrivateModuleRoutes, getPublicModuleRoutes, hasExtension } from "./server/ui.mjs";
3
4
  import { initOperationalModules, pushModuleSchema, toggleModuleState } from "./server/lifecycle.mjs";
4
5
  import { initModules } from "./server/registry.mjs";
5
- import { getApiModuleRoutes, getExtensions, getKryoModuleNavigationGrouped, getKryoModuleRoutes, getKryoPathPrefix, getModuleNavigation, getModuleNavigationGrouped, getModuleWidgets, getPrivateModuleRoutes, getPublicModuleRoutes, hasExtension } from "./server/ui.mjs";
6
6
 
7
7
  export { ModuleManifestSchema, getApiModuleRoutes, getExtensions, getKryoModuleNavigationGrouped, getKryoModuleRoutes, getKryoPathPrefix, getModuleConfig, getModuleInstance, getModuleNavigation, getModuleNavigationGrouped, getModuleStatus, getModuleWidgets, getModules, getPrivateModuleRoutes, getPublicModuleRoutes, hasExtension, initModules, initOperationalModules, isModuleEnabled, pushModuleSchema, registerModules, toggleModuleState, updateModuleConfig };
package/dist/types.d.mts CHANGED
@@ -1,5 +1,5 @@
1
- import { z } from "zod";
2
1
  import { SystemEvent, UserPermission, UserRole } from "@arch-cadre/core";
2
+ import { z } from "zod";
3
3
  import { Metadata } from "next";
4
4
 
5
5
  //#region src/types.d.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arch-cadre/modules",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "Core Modules for Kryo framework",
5
5
  "type": "module",
6
6
  "main": "./dist/index.cjs",