@burdenoff/microfe-workflows 2026.1108.1 → 2026.1109.1

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 (37) hide show
  1. package/dist/WorkflowsRoot.d.ts +30 -0
  2. package/dist/WorkflowsRoot.d.ts.map +1 -0
  3. package/dist/WorkflowsRoot.js +7 -5
  4. package/dist/WorkflowsRoutes.d.ts +12 -0
  5. package/dist/WorkflowsRoutes.d.ts.map +1 -0
  6. package/dist/components/RouteTransition.d.ts +29 -0
  7. package/dist/components/RouteTransition.d.ts.map +1 -0
  8. package/dist/config/index.d.ts +24 -0
  9. package/dist/config/index.d.ts.map +1 -0
  10. package/dist/constants/permissions.d.ts +11 -0
  11. package/dist/constants/permissions.d.ts.map +1 -0
  12. package/dist/i18n.d.ts +18 -0
  13. package/dist/i18n.d.ts.map +1 -0
  14. package/dist/index.d.ts +15 -0
  15. package/dist/index.d.ts.map +1 -0
  16. package/dist/plugin.d.ts +36 -0
  17. package/dist/plugin.d.ts.map +1 -0
  18. package/dist/plugin.js +1 -1
  19. package/dist/providers/WorkflowsProvider.d.ts +7 -0
  20. package/dist/providers/WorkflowsProvider.d.ts.map +1 -0
  21. package/dist/providers/WorkspaceRequiredGuidance.d.ts +17 -0
  22. package/dist/providers/WorkspaceRequiredGuidance.d.ts.map +1 -0
  23. package/dist/providers/WorkspaceRequiredGuidance.js +1 -1
  24. package/dist/switchRedirectRules.d.ts +26 -0
  25. package/dist/switchRedirectRules.d.ts.map +1 -0
  26. package/dist/test-support/happyDomEnv.d.ts +2 -0
  27. package/dist/test-support/happyDomEnv.d.ts.map +1 -0
  28. package/dist/test-support/moduleMocks.d.ts +13 -0
  29. package/dist/test-support/moduleMocks.d.ts.map +1 -0
  30. package/dist/test-support/render.d.ts +9 -0
  31. package/dist/test-support/render.d.ts.map +1 -0
  32. package/dist/translations/en.d.ts +69 -0
  33. package/dist/translations/en.d.ts.map +1 -0
  34. package/dist/utils/nativeBridge.d.ts +3 -0
  35. package/dist/utils/nativeBridge.d.ts.map +1 -0
  36. package/dist/workflows.d.ts +2 -0
  37. package/package.json +32 -28
@@ -0,0 +1,30 @@
1
+ import { NavItem, FooterItem } from '@burdenoff/fe-libs/shared/hooks/shell';
2
+ import { MicrofrontendRootProps } from '@burdenoff/fe-libs/shared/types';
3
+ export type { NavItem, FooterItem };
4
+ /**
5
+ * Props for the WorkflowsRoot component
6
+ */
7
+ export interface WorkflowsRootProps extends MicrofrontendRootProps {
8
+ /** Workspace JWT supplied by the host after context selection. */
9
+ workspaceToken: string;
10
+ /**
11
+ * Optional capabilities flags
12
+ */
13
+ capabilities?: Record<string, boolean>;
14
+ /**
15
+ * Optional callback functions
16
+ */
17
+ callbacks?: Record<string, (...args: unknown[]) => unknown>;
18
+ /**
19
+ * Optional function to register navigation items with the shell
20
+ * Injected by the shell app
21
+ */
22
+ registerNavItems?: (items: NavItem | NavItem[]) => () => void;
23
+ /**
24
+ * Optional function to register footer items with the shell
25
+ * Injected by the shell app
26
+ */
27
+ registerFooterItems?: (items: FooterItem | FooterItem[]) => () => void;
28
+ }
29
+ export declare function WorkflowsRoot(props: WorkflowsRootProps): import("react").JSX.Element;
30
+ //# sourceMappingURL=WorkflowsRoot.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowsRoot.d.ts","sourceRoot":"","sources":["../src/WorkflowsRoot.tsx"],"names":[],"mappings":"AAuBA,OAAO,KAAK,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,uCAAuC,CAAC;AACjF,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,iCAAiC,CAAC;AAE9E,YAAY,EAAE,OAAO,EAAE,UAAU,EAAE,CAAC;AAEpC;;GAEG;AACH,MAAM,WAAW,kBAAmB,SAAQ,sBAAsB;IAChE,kEAAkE;IAClE,cAAc,EAAE,MAAM,CAAC;IACvB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAEvC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,CAAC,GAAG,IAAI,EAAE,OAAO,EAAE,KAAK,OAAO,CAAC,CAAC;IAE5D;;;OAGG;IACH,gBAAgB,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,GAAG,OAAO,EAAE,KAAK,MAAM,IAAI,CAAC;IAE9D;;;OAGG;IACH,mBAAmB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,GAAG,UAAU,EAAE,KAAK,MAAM,IAAI,CAAC;CACxE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,+BAgLtD"}
@@ -103,8 +103,7 @@ function T(T) {
103
103
  icon: /* @__PURE__ */ C(v, { size: 18 }),
104
104
  order: 12
105
105
  }
106
- ];
107
- return D([{
106
+ ], n = [{
108
107
  id: "workflows",
109
108
  label: k("workflows.nav.title", "Workflows"),
110
109
  path: E,
@@ -112,19 +111,22 @@ function T(T) {
112
111
  order: 200,
113
112
  group: "workflows",
114
113
  children: t
115
- }]);
114
+ }];
115
+ return D(n);
116
116
  }, [
117
117
  D,
118
118
  E,
119
119
  k
120
120
  ]), r(() => {
121
- if (O) return O([{
121
+ if (!O) return;
122
+ let e = [{
122
123
  id: "workflows-status",
123
124
  label: k("workflows.footer.status", "Workflows Ready"),
124
125
  type: "status",
125
126
  order: 10,
126
127
  section: "left"
127
- }]);
128
+ }];
129
+ return O(e);
128
130
  }, [O, k]), /* @__PURE__ */ C(i, {
129
131
  fallback: /* @__PURE__ */ w("div", {
130
132
  className: "relative flex min-h-[60vh] w-full items-center justify-center overflow-hidden px-4 py-10",
@@ -0,0 +1,12 @@
1
+ /**
2
+ * Internal router for the Workflows microfrontend.
3
+ * Uses relative paths - parent route handles base path (/workflows/*).
4
+ *
5
+ * Workflows is a core module — all pages are always available.
6
+ *
7
+ * NOTE: /credentials and /oauth/callback routes have been removed.
8
+ * Connection management is now handled by microfe-integrations at /integrations/connections.
9
+ * OAuth callbacks are handled by the integrations service REST endpoint.
10
+ */
11
+ export declare function WorkflowsRoutes(): import("react").JSX.Element;
12
+ //# sourceMappingURL=WorkflowsRoutes.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowsRoutes.d.ts","sourceRoot":"","sources":["../src/WorkflowsRoutes.tsx"],"names":[],"mappings":"AAgJA;;;;;;;;;GASG;AACH,wBAAgB,eAAe,gCAqP9B"}
@@ -0,0 +1,29 @@
1
+ import { ReactNode } from 'react';
2
+ /**
3
+ * How a routed page enters:
4
+ *
5
+ * - `page`: list, runs, run detail, templates and the other scrolling pages.
6
+ * Boff UI `fadeUp` (fade plus a short rise), wrapper takes the page's width
7
+ * and leaves its height alone, so tall pages still push the shell footer
8
+ * down.
9
+ * - `canvas`: the workflow builder. Opacity only, so no transform is ever set
10
+ * on an ancestor of the canvas (a transformed ancestor would become the
11
+ * containing block of the builder's fixed-position popovers while the entry
12
+ * plays), and `h-full` keeps the canvas' full-height chain intact.
13
+ */
14
+ export type RouteTransitionKind = 'page' | 'canvas';
15
+ export interface RouteTransitionProps {
16
+ children: ReactNode;
17
+ kind?: RouteTransitionKind;
18
+ }
19
+ /**
20
+ * Entry motion for one Workflows route, built on the shared fe-libs motion
21
+ * primitives (Boff UI durations and easings, reduced-motion aware).
22
+ *
23
+ * It is keyed on the route, never on data: the wrapper mounts with the route
24
+ * element, so a refetch, a poll or a status change re-renders the page inside
25
+ * it without replaying the entry. `MotionPage` also plays at most once per
26
+ * pathname in a session, so a loading-state remount does not replay it either.
27
+ */
28
+ export declare function RouteTransition({ children, kind }: RouteTransitionProps): import("react").JSX.Element;
29
+ //# sourceMappingURL=RouteTransition.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"RouteTransition.d.ts","sourceRoot":"","sources":["../../src/components/RouteTransition.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAGvC;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,mBAAmB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAYpD,MAAM,WAAW,oBAAoB;IACnC,QAAQ,EAAE,SAAS,CAAC;IACpB,IAAI,CAAC,EAAE,mBAAmB,CAAC;CAC5B;AAED;;;;;;;;GAQG;AACH,wBAAgB,eAAe,CAAC,EAAE,QAAQ,EAAE,IAAa,EAAE,EAAE,oBAAoB,+BAMhF"}
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Configuration module for workflows microfrontend
3
+ * This config is typically injected by the shell application at runtime
4
+ */
5
+ export interface WorkflowsConfig {
6
+ workflowSvcUrl: string;
7
+ fluidgridBackendUrlToken?: string;
8
+ fluidgridBackendUrl?: string;
9
+ apiGatewayUrl?: string;
10
+ }
11
+ /**
12
+ * Get current configuration
13
+ */
14
+ export declare const config: WorkflowsConfig;
15
+ /**
16
+ * Set runtime configuration (called by shell app)
17
+ * @param newConfig - Configuration object
18
+ */
19
+ export declare function setWorkflowsConfig(newConfig: Partial<WorkflowsConfig>): void;
20
+ /**
21
+ * Reset configuration to defaults
22
+ */
23
+ export declare function resetWorkflowsConfig(): void;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/config/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,MAAM,CAAC;IACvB,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAUD;;GAEG;AACH,eAAO,MAAM,MAAM,iBAIjB,CAAC;AAEH;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAE5E;AAED;;GAEG;AACH,wBAAgB,oBAAoB,IAAI,IAAI,CAO3C"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Workflows Permission Constants
3
+ *
4
+ * Re-exported from @burdenoff/fluidgrids-fe-sdk so the SDK and this shell
5
+ * share one canonical list (matching the backend @rbac resource/action
6
+ * pairs). Use with the fe-libs usePermissions hook:
7
+ * hasPermission(WORKFLOW_PERMISSIONS.WORKFLOW_CREATE)
8
+ */
9
+ export { FLUIDGRIDS_PERMISSIONS as WORKFLOW_PERMISSIONS } from '@burdenoff/fluidgrids-fe-sdk';
10
+ export type { FluidGridsPermission as WorkflowPermission } from '@burdenoff/fluidgrids-fe-sdk';
11
+ //# sourceMappingURL=permissions.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../src/constants/permissions.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAE,sBAAsB,IAAI,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAC9F,YAAY,EAAE,oBAAoB,IAAI,kBAAkB,EAAE,MAAM,8BAA8B,CAAC"}
package/dist/i18n.d.ts ADDED
@@ -0,0 +1,18 @@
1
+ /**
2
+ * useWorkflowsTranslation — MFE translation hook with inline English fallback.
3
+ *
4
+ * Wraps `useI18n().t()` so that when a key has no translation (i.e. the
5
+ * provider returns the key itself), the caller's English fallback is used
6
+ * instead. This keeps consumer call sites consistent and avoids leaking
7
+ * untranslated keys into the UI.
8
+ *
9
+ * Supports optional interpolation params using `{{key}}` placeholders so the
10
+ * same hook can be passed into the FluidGrids SDK's translation provider.
11
+ *
12
+ * @example
13
+ * const tr = useWorkflowsTranslation();
14
+ * return <h1>{tr('workflows.nav.title', 'Workflows')}</h1>;
15
+ * return <p>{tr('workflows.items.selected', '{{count}} items selected', { count: 5 })}</p>;
16
+ */
17
+ export declare function useWorkflowsTranslation(): (key: string, fallback: string, params?: Record<string, string | number>) => string;
18
+ //# sourceMappingURL=i18n.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"i18n.d.ts","sourceRoot":"","sources":["../src/i18n.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;GAeG;AACH,wBAAgB,uBAAuB,IAAI,CACzC,GAAG,EAAE,MAAM,EACX,QAAQ,EAAE,MAAM,EAChB,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC,KACrC,MAAM,CAeV"}
@@ -0,0 +1,15 @@
1
+ export { WorkflowsRoot } from './WorkflowsRoot';
2
+ export type { WorkflowsRootProps } from './WorkflowsRoot';
3
+ export { workflowsSwitchRedirectRules } from './switchRedirectRules';
4
+ export { fluidGridsPlugin, createFluidGridsPlugin, FLUIDGRIDS_PLUGIN_ID, FLUIDGRIDS_PLUGIN_COMMANDS, FLUIDGRIDS_ASSISTANT_TOGGLE_EVENT, } from './plugin';
5
+ export type { FluidGridsPluginOptions } from './plugin';
6
+ export { config, setWorkflowsConfig, resetWorkflowsConfig } from './config';
7
+ export type { WorkflowsConfig } from './config';
8
+ export { enTranslations } from './translations/en';
9
+ export { FluidGridsProvider as EmbeddableWorkflowProvider, FluidGridsRoot as EmbeddableWorkflowRoot, WorkflowBuilder as EmbeddableWorkflowBuilder, WorkflowBuilderCore as EmbeddableWorkflowBuilderCore, useFluidGridsContext as useEmbeddableContext, createFluidGridsClient as createEmbeddableClient, setFluidGridsClient as setEmbeddableClient, getFluidGridsClient as getEmbeddableClient, setFluidGridsConfig as setEmbeddableConfig, useFlowStore as useEmbeddableFlowStore, cn, } from '@burdenoff/fluidgrids-fe-sdk';
10
+ export type { WorkflowBuilderProps as EmbeddableWorkflowBuilderProps, WorkflowBuilderCoreProps as EmbeddableWorkflowBuilderCoreProps, FluidGridsProviderProps as EmbeddableWorkflowProviderProps, FluidGridsRootProps as EmbeddableWorkflowRootProps, FluidGridsClientConfig as EmbeddableClientConfig, FluidGridsConfig as EmbeddableConfig, WorkflowDefinition, WorkflowData, FlowNode, FlowEdge, NodeManifest, } from '@burdenoff/fluidgrids-fe-sdk';
11
+ export { useNodeEndpoints, useNodeEndpoint, useNodeManifest, useLazyNodeManifest, fetchAllNodesWithManifests, useWorkflowDefinitions, useWorkflowDefinition, useLazyWorkflowDefinition, useWorkflowVersions, useCreateWorkflow, useUpdateWorkflow, useCreateWorkflowVersion, useDeleteWorkflow, useDuplicateWorkflow, useTriggerWorkflow, useWorkflowRuns, useWorkflowRun, useDashboardSummary, setFluidGridsClient, getFluidGridsClient, getFluidGridsClientSafe, isFluidGridsClientReady, waitForFluidGridsClient, resetFluidGridsClient, } from '@burdenoff/fluidgrids-fe-sdk';
12
+ export { ExecutionsListPage, ExecutionDetailPage, HistoryPage, NodesPage, SettingsPage, TemplatesPage, TemplatePreview, WorkflowBuilderPage, WorkflowSearchRedirect, WorkflowsList, } from '@burdenoff/fluidgrids-fe-sdk';
13
+ export { FLUIDGRIDS_FLAGS, useFluidGridsFlag } from '@burdenoff/fluidgrids-fe-sdk';
14
+ export type { FluidGridsFlagKey } from '@burdenoff/fluidgrids-fe-sdk';
15
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,YAAY,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAI1D,OAAO,EAAE,4BAA4B,EAAE,MAAM,uBAAuB,CAAC;AAKrE,OAAO,EACL,gBAAgB,EAChB,sBAAsB,EACtB,oBAAoB,EACpB,0BAA0B,EAC1B,iCAAiC,GAClC,MAAM,UAAU,CAAC;AAClB,YAAY,EAAE,uBAAuB,EAAE,MAAM,UAAU,CAAC;AAGxD,OAAO,EAAE,MAAM,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,UAAU,CAAC;AAC5E,YAAY,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AAGhD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAWnD,OAAO,EACL,kBAAkB,IAAI,0BAA0B,EAChD,cAAc,IAAI,sBAAsB,EACxC,eAAe,IAAI,yBAAyB,EAC5C,mBAAmB,IAAI,6BAA6B,EACpD,oBAAoB,IAAI,oBAAoB,EAC5C,sBAAsB,IAAI,sBAAsB,EAChD,mBAAmB,IAAI,mBAAmB,EAC1C,mBAAmB,IAAI,mBAAmB,EAC1C,mBAAmB,IAAI,mBAAmB,EAC1C,YAAY,IAAI,sBAAsB,EACtC,EAAE,GACH,MAAM,8BAA8B,CAAC;AAGtC,YAAY,EACV,oBAAoB,IAAI,8BAA8B,EACtD,wBAAwB,IAAI,kCAAkC,EAC9D,uBAAuB,IAAI,+BAA+B,EAC1D,mBAAmB,IAAI,2BAA2B,EAClD,sBAAsB,IAAI,sBAAsB,EAChD,gBAAgB,IAAI,gBAAgB,EACpC,kBAAkB,EAClB,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,YAAY,GACb,MAAM,8BAA8B,CAAC;AAStC,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,eAAe,EACf,mBAAmB,EACnB,0BAA0B,EAC1B,sBAAsB,EACtB,qBAAqB,EACrB,yBAAyB,EACzB,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,wBAAwB,EACxB,iBAAiB,EACjB,oBAAoB,EACpB,kBAAkB,EAClB,eAAe,EACf,cAAc,EACd,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,uBAAuB,EACvB,uBAAuB,EACvB,uBAAuB,EACvB,qBAAqB,GACtB,MAAM,8BAA8B,CAAC;AAMtC,OAAO,EACL,kBAAkB,EAClB,mBAAmB,EACnB,WAAW,EACX,SAAS,EACT,YAAY,EACZ,aAAa,EACb,eAAe,EACf,mBAAmB,EACnB,sBAAsB,EACtB,aAAa,GACd,MAAM,8BAA8B,CAAC;AAKtC,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACnF,YAAY,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC"}
@@ -0,0 +1,36 @@
1
+ import { UIPlugin } from '@burdenoff/fe-libs/shared/plugins';
2
+ /** Plugin id, also the `pluginId` of every contribution. */
3
+ export declare const FLUIDGRIDS_PLUGIN_ID = "fluidgrids";
4
+ /** Command ids contributed by the plugin. */
5
+ export declare const FLUIDGRIDS_PLUGIN_COMMANDS: {
6
+ readonly goToWorkflows: "fg:go-to-workflows";
7
+ readonly goToRuns: "fg:go-to-runs";
8
+ readonly goToCredentials: "fg:go-to-credentials";
9
+ readonly toggleAssistant: "fg:toggle-ai-assistant";
10
+ };
11
+ /**
12
+ * The window event fluidgrids-app's assistant listens for. fe-libs'
13
+ * `AssistantOverlayProvider keyPrefix="fg"` subscribes to
14
+ * `<prefix>:toggle-ai-assistant`.
15
+ */
16
+ export declare const FLUIDGRIDS_ASSISTANT_TOGGLE_EVENT = "fg:toggle-ai-assistant";
17
+ export interface FluidGridsPluginOptions {
18
+ /** Where the shell mounts `WorkflowsRoot` (default `/workflows`). */
19
+ readonly basePath?: string;
20
+ /**
21
+ * Where workflow credentials live. They moved to the integrations module
22
+ * (BOFF-1906), and `/workflows/credentials` only redirects there.
23
+ */
24
+ readonly credentialsPath?: string;
25
+ /** Window event that toggles the shell's AI assistant. */
26
+ readonly assistantToggleEvent?: string;
27
+ }
28
+ /**
29
+ * Build the FluidGrids plugin for a shell. Every option has the FluidGrids app
30
+ * shell's value as its default; a shell that mounts the Workflows module
31
+ * elsewhere passes its own.
32
+ */
33
+ export declare function createFluidGridsPlugin(options?: FluidGridsPluginOptions): UIPlugin;
34
+ /** The plugin as fluidgrids-app registers it (Workflows at `/workflows`). */
35
+ export declare const fluidGridsPlugin: UIPlugin;
36
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../src/plugin.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAuB,QAAQ,EAAE,MAAM,mCAAmC,CAAC;AAGvF,4DAA4D;AAC5D,eAAO,MAAM,oBAAoB,eAAe,CAAC;AAEjD,6CAA6C;AAC7C,eAAO,MAAM,0BAA0B;;;;;CAK7B,CAAC;AAEX;;;;GAIG;AACH,eAAO,MAAM,iCAAiC,2BAA2B,CAAC;AAE1E,MAAM,WAAW,uBAAuB;IACtC,qEAAqE;IACrE,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B;;;OAGG;IACH,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,0DAA0D;IAC1D,QAAQ,CAAC,oBAAoB,CAAC,EAAE,MAAM,CAAC;CACxC;AAmED;;;;GAIG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,GAAE,uBAA4B,GAAG,QAAQ,CAoDtF;AAED,6EAA6E;AAC7E,eAAO,MAAM,gBAAgB,EAAE,QAAmC,CAAC"}
package/dist/plugin.js CHANGED
@@ -92,7 +92,7 @@ function u(e = {}) {
92
92
  contributes: { commands: o }
93
93
  },
94
94
  activate(e) {
95
- let i = new Map([
95
+ let i = /* @__PURE__ */ new Map([
96
96
  [a.goToWorkflows, () => e.shell.navigate(`${t}/list`)],
97
97
  [a.goToRuns, () => e.shell.navigate(`${t}/runs`)],
98
98
  [a.goToCredentials, () => e.shell.navigate(n)],
@@ -0,0 +1,7 @@
1
+ import { ReactNode } from 'react';
2
+ import { WorkflowsRootProps } from '../WorkflowsRoot';
3
+ export declare function WorkflowsProvider({ children, ...props }: WorkflowsRootProps & {
4
+ children: ReactNode;
5
+ }): import("react").JSX.Element;
6
+ export declare function useWorkflowsContext(): WorkflowsRootProps;
7
+ //# sourceMappingURL=WorkflowsProvider.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkflowsProvider.d.ts","sourceRoot":"","sources":["../../src/providers/WorkflowsProvider.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,SAAS,EACV,MAAM,OAAO,CAAC;AACf,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAmD3D,wBAAgB,iBAAiB,CAAC,EAChC,QAAQ,EACR,GAAG,KAAK,EACT,EAAE,kBAAkB,GAAG;IAAE,QAAQ,EAAE,SAAS,CAAA;CAAE,+BAsI9C;AAED,wBAAgB,mBAAmB,uBAMlC"}
@@ -0,0 +1,17 @@
1
+ import { WorkflowsRootProps } from '../WorkflowsRoot';
2
+ /**
3
+ * The FluidGrids user guide's first page (parity G91). The link is pinned to
4
+ * the fluidgrids product, so it opens the FluidGrids guide in every host shell
5
+ * (VibeControls' Workflows module included); fe-libs resolves
6
+ * docs.fluidgrids.ai in production and alphadocs.fluidgrids.ai in alpha.
7
+ */
8
+ export declare const GETTING_STARTED_DOCS_PATH = "/users/getting-started";
9
+ export declare const WORKFLOWS_DOCS_PRODUCT = "fluidgrids";
10
+ export type WorkspaceRequiredGuidanceProps = Pick<WorkflowsRootProps, 'basePath' | 'navigate'>;
11
+ /**
12
+ * What the Workflows module shows before a workspace is active: the module's
13
+ * purpose (with a link to the user guide), the workspace callout and the
14
+ * next steps, wired to real routes.
15
+ */
16
+ export declare function WorkspaceRequiredGuidance({ basePath, navigate }: WorkspaceRequiredGuidanceProps): import("react").JSX.Element;
17
+ //# sourceMappingURL=WorkspaceRequiredGuidance.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WorkspaceRequiredGuidance.d.ts","sourceRoot":"","sources":["../../src/providers/WorkspaceRequiredGuidance.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAG3D;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,2BAA2B,CAAC;AAClE,eAAO,MAAM,sBAAsB,eAAe,CAAC;AAEnD,MAAM,MAAM,8BAA8B,GAAG,IAAI,CAAC,kBAAkB,EAAE,UAAU,GAAG,UAAU,CAAC,CAAC;AAE/F;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,EAAE,QAAQ,EAAE,QAAQ,EAAE,EAAE,8BAA8B,+BAmF/F"}
@@ -67,4 +67,4 @@ function p({ basePath: p, navigate: m }) {
67
67
  });
68
68
  }
69
69
  //#endregion
70
- export { p as WorkspaceRequiredGuidance };
70
+ export { d as GETTING_STARTED_DOCS_PATH, f as WORKFLOWS_DOCS_PRODUCT, p as WorkspaceRequiredGuidance };
@@ -0,0 +1,26 @@
1
+ import { ContextSwitchRedirectRule } from '@burdenoff/fe-libs/chrome/contextSwitcher/resolveSwitchTarget';
2
+ /**
3
+ * Context-switch redirect rules for the Workflows routes (BOFF-2821, G14).
4
+ *
5
+ * After a header org / workspace switch the workspace token is re-issued, so a
6
+ * Workflows route that carries a resource id of the OLD workspace (a workflow,
7
+ * a run, a workflow's settings) would load that record under the new context.
8
+ * Pass these rules to fe-libs `useContextSwitchController({ redirectRules })`
9
+ * and the shell replace-navigates such a route to the section's list instead:
10
+ *
11
+ * - `workflow/:id/:version`, legacy `builder/:id/:version`, `resolve/:id` → `list`
12
+ * - `runs/:runId`, legacy `executions/:runId` → `runs`
13
+ * - `settings/:workflowKey` → `settings`
14
+ *
15
+ * Pages that hold no workspace resource id (`list`, `new`, `runs`, `insights`,
16
+ * `settings`, the store's `templates/:productId/preview`, …) stay in place and
17
+ * re-scope through the new selection.
18
+ *
19
+ * The route shapes are owned by `WorkflowsRoutes`, so they are kept next to it
20
+ * and every shell that mounts `WorkflowsRoot` uses the same table.
21
+ *
22
+ * @param basePath where the shell mounts `WorkflowsRoot` — a rooted path without
23
+ * a trailing slash (default `/workflows`).
24
+ */
25
+ export declare function workflowsSwitchRedirectRules(basePath?: string): ReadonlyArray<ContextSwitchRedirectRule>;
26
+ //# sourceMappingURL=switchRedirectRules.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"switchRedirectRules.d.ts","sourceRoot":"","sources":["../src/switchRedirectRules.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,+DAA+D,CAAC;AAE/G;;;;;;;;;;;;;;;;;;;;;;GAsBG;AACH,wBAAgB,4BAA4B,CAC1C,QAAQ,SAAe,GACtB,aAAa,CAAC,yBAAyB,CAAC,CAe1C"}
@@ -0,0 +1,2 @@
1
+ export declare function installDom(url?: string): () => void;
2
+ //# sourceMappingURL=happyDomEnv.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"happyDomEnv.d.ts","sourceRoot":"","sources":["../../src/test-support/happyDomEnv.ts"],"names":[],"mappings":"AAgDA,wBAAgB,UAAU,CAAC,GAAG,SAAsB,GAAG,MAAM,IAAI,CAkDhE"}
@@ -0,0 +1,13 @@
1
+ export declare const mockState: {
2
+ granted: Set<string>;
3
+ permissionsLoading: boolean;
4
+ /** When set, every page suspends on it (as a lazily loaded SDK page does). */
5
+ pendingPage: Promise<void> | null;
6
+ /** fluidgrids.self-hosted-workers (with its prerequisites) for the workspace. */
7
+ selfHostedWorkers: boolean;
8
+ /** Whether the workspace's flags have settled (false during the first load). */
9
+ flagsSettled: boolean;
10
+ };
11
+ export declare const SDK_PAGES: readonly ["AiStudioPage", "ApprovalInboxPage", "DataSinkDashboardPage", "DataTablesPage", "ErrorAnalyticsPage", "ExecutionsListPage", "ExecutionDetailPage", "HistoryPage", "InsightsPage", "NodesPage", "RunnersPage", "SettingsPage", "TaskQueuesPage", "TemplatesPage", "TemplatePreview", "VariablesPage", "WorkflowBuilderPage", "WorkflowSearchRedirect", "WorkflowsList"];
12
+ export declare function installModuleMocks(): Promise<void>;
13
+ //# sourceMappingURL=moduleMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleMocks.d.ts","sourceRoot":"","sources":["../../src/test-support/moduleMocks.tsx"],"names":[],"mappings":"AAqBA,eAAO,MAAM,SAAS,EAAE;IACtB,OAAO,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,kBAAkB,EAAE,OAAO,CAAC;IAC5B,8EAA8E;IAC9E,WAAW,EAAE,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC;IAClC,iFAAiF;IACjF,iBAAiB,EAAE,OAAO,CAAC;IAC3B,gFAAgF;IAChF,YAAY,EAAE,OAAO,CAAC;CAOvB,CAAC;AAEF,eAAO,MAAM,SAAS,kXAoBZ,CAAC;AA8BX,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,IAAI,CAAC,CA2BxD"}
@@ -0,0 +1,9 @@
1
+ import { ReactNode } from 'react';
2
+ export interface Mounted {
3
+ container: HTMLElement;
4
+ text: () => string;
5
+ rerender: (node: ReactNode) => Promise<void>;
6
+ unmount: () => Promise<void>;
7
+ }
8
+ export declare function mount(node: ReactNode): Promise<Mounted>;
9
+ //# sourceMappingURL=render.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"render.d.ts","sourceRoot":"","sources":["../../src/test-support/render.tsx"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAO,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAG5C,MAAM,WAAW,OAAO;IACtB,SAAS,EAAE,WAAW,CAAC;IACvB,IAAI,EAAE,MAAM,MAAM,CAAC;IACnB,QAAQ,EAAE,CAAC,IAAI,EAAE,SAAS,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7C,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B;AAED,wBAAsB,KAAK,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,OAAO,CAAC,CA6B7D"}
@@ -0,0 +1,69 @@
1
+ /**
2
+ * Bundled English translations for microfe-workflows.
3
+ *
4
+ * These serve as a fallback when the platform i18n API is unavailable or
5
+ * has not yet returned translations for the selected locale. Host shells can
6
+ * merge this bundle into their AppShellConfig.fallbackTranslations.
7
+ */
8
+ export declare const enTranslations: {
9
+ workflows: {
10
+ nav: {
11
+ title: string;
12
+ myWorkflows: string;
13
+ aiStudio: string;
14
+ builder: string;
15
+ runs: string;
16
+ insights: string;
17
+ dataSinks: string;
18
+ dataTables: string;
19
+ history: string;
20
+ templates: string;
21
+ nodes: string;
22
+ variables: string;
23
+ runners: string;
24
+ settings: string;
25
+ };
26
+ footer: {
27
+ status: string;
28
+ };
29
+ error: {
30
+ title: string;
31
+ loadFailed: string;
32
+ refresh: string;
33
+ };
34
+ routes: {
35
+ loading: {
36
+ ariaLabel: string;
37
+ message: string;
38
+ };
39
+ };
40
+ provider: {
41
+ learnMore: string;
42
+ purpose: string;
43
+ workspaceRequired: {
44
+ title: string;
45
+ description: string;
46
+ };
47
+ nextSteps: {
48
+ title: string;
49
+ open: {
50
+ label: string;
51
+ description: string;
52
+ };
53
+ template: {
54
+ label: string;
55
+ description: string;
56
+ };
57
+ build: {
58
+ label: string;
59
+ description: string;
60
+ };
61
+ };
62
+ loading: {
63
+ ariaLabel: string;
64
+ message: string;
65
+ };
66
+ };
67
+ };
68
+ };
69
+ //# sourceMappingURL=en.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"en.d.ts","sourceRoot":"","sources":["../../src/translations/en.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA8D1B,CAAC"}
@@ -0,0 +1,3 @@
1
+ export { getPlatform, isNative, isIOS, isAndroid, isWeb, nativeImpact, nativeNotify, nativeToast, nativeConfirm, nativeCopyText, nativeShare, nativeOpenUrl, useNativePlatform, useSafeArea, useNativeKeyboard, useAppState, useDeviceInfo, useHaptics, useStatusBar, } from '@burdenoff/fe-libs/shared/native';
2
+ export type { BurdenoffNativePlatform, BurdenoffNativeBridge, SafeAreaInsets, DeviceInfo, HapticImpactStyle, HapticNotificationType, ToastDuration, ConfirmOptions, ShareOptions, AppState, StatusBarTheme, } from '@burdenoff/fe-libs/shared/native';
3
+ //# sourceMappingURL=nativeBridge.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"nativeBridge.d.ts","sourceRoot":"","sources":["../../src/utils/nativeBridge.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,QAAQ,EACR,KAAK,EACL,SAAS,EACT,KAAK,EACL,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,aAAa,EACb,cAAc,EACd,WAAW,EACX,aAAa,EACb,iBAAiB,EACjB,WAAW,EACX,iBAAiB,EACjB,WAAW,EACX,aAAa,EACb,UAAU,EACV,YAAY,GACb,MAAM,kCAAkC,CAAC;AAE1C,YAAY,EACV,uBAAuB,EACvB,qBAAqB,EACrB,cAAc,EACd,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,cAAc,EACd,YAAY,EACZ,QAAQ,EACR,cAAc,GACf,MAAM,kCAAkC,CAAC"}
@@ -0,0 +1,2 @@
1
+ export * from './index'
2
+ export {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@burdenoff/microfe-workflows",
3
- "version": "2026.1108.1",
3
+ "version": "2026.1109.1",
4
4
  "description": "Workflows microfrontend for Burdenoff products - thin shell over @burdenoff/fluidgrids-fe-sdk",
5
5
  "type": "module",
6
6
  "exports": {
@@ -9,6 +9,7 @@
9
9
  "import": "./dist/workflows.js"
10
10
  },
11
11
  "./switch-redirect-rules": {
12
+ "types": "./dist/switchRedirectRules.d.ts",
12
13
  "import": "./dist/switchRedirectRules.js"
13
14
  },
14
15
  "./plugin": {
@@ -23,8 +24,8 @@
23
24
  "lint:sanity": "if [ \"${CI:-}\" = \"true\" ]; then bun run lint; else bun run lint -- --cache --cache-location .eslintcache; fi",
24
25
  "format": "prettier --write \"src/**/*.{ts,tsx}\"",
25
26
  "type:check": "bash scripts/build-limits.sh tsc --noEmit",
26
- "test": "bun test ./src",
27
- "sanity": "bash scripts/build-limits.sh --gate bash -c 'bun run codegen && bun run lint:sanity && bun run format && bun run type:check && bun run test && bun run build'",
27
+ "test": "bun test ./src && bun run test:release-package",
28
+ "sanity": "bash scripts/build-limits.sh --gate bash -c 'bun run codegen && bun run lint:sanity && bun run format && bun run type:check && bun run test && MFE_DTS=1 bun run build && bun run verify:package'",
28
29
  "schema:pull": "echo \"No GraphQL operations — skipping schema:pull\"",
29
30
  "codegen": "echo \"No GraphQL operations — skipping codegen\"",
30
31
  "codegen:all": "echo \"No GraphQL operations — skipping codegen:all\"",
@@ -33,40 +34,43 @@
33
34
  "switch:local": "bun scripts/deps-mode.ts local",
34
35
  "switch:check": "bun scripts/deps-mode.ts check",
35
36
  "prepare": "lefthook install || true",
36
- "format:check": "prettier --check \"src/**/*.{ts,tsx}\""
37
+ "format:check": "prettier --check \"src/**/*.{ts,tsx}\"",
38
+ "test:release-package": "bun test scripts/check-release-package.test.ts scripts/declaration-importer.test.ts",
39
+ "verify:package": "mkdir -p node_modules/.cache/release-package && npm pack --dry-run --json --ignore-scripts > node_modules/.cache/release-package/pack.json && bun scripts/check-release-package.ts node_modules/.cache/release-package/pack.json"
37
40
  },
38
41
  "dependencies": {
39
42
  "@burdenoff/fe-libs": "2026.1106.1",
40
43
  "lucide-react": "^0.468.0",
41
- "react": "^19.0.0",
42
- "react-dom": "^19.0.0",
43
- "react-router": "^8.3.0"
44
+ "react": "^19.3.1",
45
+ "react-dom": "^19.3.1",
46
+ "react-router": "^8.5.1"
44
47
  },
45
48
  "devDependencies": {
46
- "@burdenoff/fluidgrids-fe-sdk": "2026.1108.2",
47
- "@eslint/js": "^9.39.2",
48
- "@types/bun": "^1.3.9",
49
- "@types/react": "^19.0.2",
50
- "@types/react-dom": "^19.0.2",
51
- "@vitejs/plugin-react": "^4.3.4",
52
- "autoprefixer": "^10.4.20",
53
- "eslint": "^9.18.0",
49
+ "@burdenoff/fluidgrids-fe-sdk": "2026.1109.1",
50
+ "@eslint/js": "^9.39.5",
51
+ "@types/bun": "^1.4.4",
52
+ "@types/react": "^19.3.0",
53
+ "@types/react-dom": "^19.3.0",
54
+ "@vitejs/plugin-react": "6.0.1",
55
+ "autoprefixer": "^10.6.2",
56
+ "eslint": "^9.39.5",
54
57
  "eslint-plugin-react": "^7.37.5",
55
- "eslint-plugin-react-hooks": "^7.0.1",
56
- "framer-motion": "^12.23.26",
57
- "globals": "^17.3.0",
58
- "happy-dom": "20.14.5",
59
- "lefthook": "^2.1.1",
60
- "postcss": "^8.4.49",
61
- "prettier": "^3.4.2",
62
- "tailwindcss": "^4.0.0",
63
- "typescript": "^5.9.0",
64
- "typescript-eslint": "^8.54.0",
65
- "vite": "8.0.8",
66
- "vite-plugin-dts": "3.9.1"
58
+ "eslint-plugin-react-hooks": "^7.1.1",
59
+ "framer-motion": "^12.43.0",
60
+ "globals": "^17.14.0",
61
+ "happy-dom": "21.0.4",
62
+ "lefthook": "^2.2.2",
63
+ "postcss": "^8.5.32",
64
+ "prettier": "^3.9.10",
65
+ "tailwindcss": "^4.3.5",
66
+ "typescript": "^5.9.3",
67
+ "typescript-eslint": "^8.72.1",
68
+ "vite": "8.1.6",
69
+ "vite-plugin-dts": "4.5.4",
70
+ "ajv": "8.20.0"
67
71
  },
68
72
  "peerDependencies": {
69
- "@burdenoff/fluidgrids-fe-sdk": "2026.1108.2",
73
+ "@burdenoff/fluidgrids-fe-sdk": "2026.1109.1",
70
74
  "framer-motion": "^12.0.0",
71
75
  "react": "^19.0.0",
72
76
  "react-dom": "^19.0.0"