@mmapp/react 0.1.0-alpha.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 (98) hide show
  1. package/dist/atoms/index.d.mts +424 -0
  2. package/dist/atoms/index.d.ts +424 -0
  3. package/dist/atoms/index.js +195 -0
  4. package/dist/atoms/index.mjs +110 -0
  5. package/dist/chunk-2VJQJM7S.mjs +119 -0
  6. package/dist/index.d.mts +6999 -0
  7. package/dist/index.d.ts +6999 -0
  8. package/dist/index.js +8247 -0
  9. package/dist/index.mjs +8016 -0
  10. package/package.json +37 -0
  11. package/package.json.backup +41 -0
  12. package/src/Blueprint.ts +216 -0
  13. package/src/__tests__/Blueprint.test.ts +106 -0
  14. package/src/__tests__/action-context.test.ts +166 -0
  15. package/src/__tests__/actionCreators.test.ts +179 -0
  16. package/src/__tests__/builders.test.ts +336 -0
  17. package/src/__tests__/defineBlueprint-composition.test.ts +106 -0
  18. package/src/__tests__/factories.test.ts +229 -0
  19. package/src/__tests__/loader.test.ts +159 -0
  20. package/src/__tests__/logger.test.ts +70 -0
  21. package/src/__tests__/type-inference.test.ts +160 -0
  22. package/src/__tests__/typed-transitions.test.ts +126 -0
  23. package/src/__tests__/useModuleConfig.test.ts +61 -0
  24. package/src/actionCreators.ts +132 -0
  25. package/src/actions.ts +547 -0
  26. package/src/atoms/index.ts +600 -0
  27. package/src/authoring.ts +92 -0
  28. package/src/browser-player.ts +783 -0
  29. package/src/builders.ts +1342 -0
  30. package/src/components/ExperienceWorkflowBridge.tsx +123 -0
  31. package/src/components/PlayerProvider.tsx +43 -0
  32. package/src/components/atoms/index.tsx +269 -0
  33. package/src/components/index.ts +36 -0
  34. package/src/conditions.ts +692 -0
  35. package/src/config/defineBlueprint.ts +329 -0
  36. package/src/config/defineModel.ts +753 -0
  37. package/src/config/defineWorkspace.ts +24 -0
  38. package/src/core/WorkflowRuntime.ts +153 -0
  39. package/src/factories.ts +425 -0
  40. package/src/grammar/index.ts +173 -0
  41. package/src/hooks/index.ts +106 -0
  42. package/src/hooks/useAuth.ts +288 -0
  43. package/src/hooks/useChannel.ts +304 -0
  44. package/src/hooks/useComputed.ts +154 -0
  45. package/src/hooks/useDomainSubscription.ts +110 -0
  46. package/src/hooks/useDuringAction.ts +99 -0
  47. package/src/hooks/useExperienceState.ts +59 -0
  48. package/src/hooks/useExpressionLibrary.ts +129 -0
  49. package/src/hooks/useForm.ts +352 -0
  50. package/src/hooks/useGeolocation.ts +207 -0
  51. package/src/hooks/useMapView.ts +259 -0
  52. package/src/hooks/useMiddleware.ts +291 -0
  53. package/src/hooks/useModel.ts +363 -0
  54. package/src/hooks/useModule.ts +59 -0
  55. package/src/hooks/useModuleConfig.ts +61 -0
  56. package/src/hooks/useMutation.ts +237 -0
  57. package/src/hooks/useNotification.ts +151 -0
  58. package/src/hooks/useOnChange.ts +30 -0
  59. package/src/hooks/useOnEnter.ts +59 -0
  60. package/src/hooks/useOnEvent.ts +37 -0
  61. package/src/hooks/useOnExit.ts +27 -0
  62. package/src/hooks/useOnTransition.ts +30 -0
  63. package/src/hooks/usePackage.ts +128 -0
  64. package/src/hooks/useParams.ts +33 -0
  65. package/src/hooks/usePlayer.ts +308 -0
  66. package/src/hooks/useQuery.ts +184 -0
  67. package/src/hooks/useRealtimeQuery.ts +222 -0
  68. package/src/hooks/useRole.ts +191 -0
  69. package/src/hooks/useRouteParams.ts +100 -0
  70. package/src/hooks/useRouter.ts +347 -0
  71. package/src/hooks/useServerAction.ts +178 -0
  72. package/src/hooks/useServerState.ts +284 -0
  73. package/src/hooks/useToast.ts +164 -0
  74. package/src/hooks/useTransition.ts +39 -0
  75. package/src/hooks/useView.ts +102 -0
  76. package/src/hooks/useWhileIn.ts +48 -0
  77. package/src/hooks/useWorkflow.ts +63 -0
  78. package/src/index.ts +465 -0
  79. package/src/loader/experience-workflow-loader.ts +192 -0
  80. package/src/loader/index.ts +6 -0
  81. package/src/local/LocalEngine.ts +388 -0
  82. package/src/local/LocalEngineAdapter.ts +175 -0
  83. package/src/local/LocalEngineContext.ts +30 -0
  84. package/src/logger.ts +37 -0
  85. package/src/mixins.ts +1160 -0
  86. package/src/providers/RuntimeContext.ts +20 -0
  87. package/src/providers/WorkflowProvider.tsx +28 -0
  88. package/src/routing/instance-key.ts +107 -0
  89. package/src/server/transition-context.ts +172 -0
  90. package/src/testing/index.ts +9 -0
  91. package/src/testing/useBlueprintTestRunner.ts +91 -0
  92. package/src/testing/useGraphAnalysis.ts +18 -0
  93. package/src/testing/useTestRunner.ts +77 -0
  94. package/src/testing.ts +995 -0
  95. package/src/types/workflow-inference.ts +158 -0
  96. package/src/types.ts +114 -0
  97. package/tsconfig.json +27 -0
  98. package/vitest.config.ts +8 -0
@@ -0,0 +1,424 @@
1
+ import { FC, ReactNode } from 'react';
2
+
3
+ /**
4
+ * Compile-Time Atom Stubs — markers for the compiler to recognize.
5
+ *
6
+ * These are NOT runtime components — they are compile-time type stubs that
7
+ * the @mindmatrix/react-compiler recognizes in JSX and maps to IRExperienceNode
8
+ * entries. At runtime, the frontend's ComponentTreeRenderer resolves the
9
+ * component name string to the actual registered React component.
10
+ *
11
+ * Usage in .workflow.tsx files:
12
+ * import { Stack, Row, Text, Button, TextInput } from '@mindmatrix/react/atoms';
13
+ *
14
+ * return (
15
+ * <Stack gap={4}>
16
+ * <Text variant="h2">Hello</Text>
17
+ * <Row>
18
+ * <TextInput bind="message" placeholder="Type..." />
19
+ * <Button onClick={send}>Send</Button>
20
+ * </Row>
21
+ * </Stack>
22
+ * );
23
+ *
24
+ * The compiler extracts this JSX into an IRExperienceNode tree.
25
+ * The CTR (ComponentTreeRenderer) renders it at runtime.
26
+ *
27
+ * ALL core atoms + sub-experience components are stubbed here,
28
+ * matching the frontend's component-registry.ts exactly.
29
+ */
30
+
31
+ interface BaseAtomProps {
32
+ children?: ReactNode;
33
+ visible_when?: string;
34
+ 'data-slot'?: string;
35
+ className?: string;
36
+ /** Style object — maps to CSS properties at runtime. */
37
+ sx?: Record<string, unknown>;
38
+ /** Common layout shortcuts — passed through to the CTR renderer. */
39
+ flex?: number | string;
40
+ width?: number | string;
41
+ height?: number | string;
42
+ minWidth?: number | string;
43
+ minHeight?: number | string;
44
+ maxWidth?: number | string;
45
+ maxHeight?: number | string;
46
+ margin?: number | string;
47
+ marginTop?: number | string;
48
+ marginBottom?: number | string;
49
+ marginLeft?: number | string;
50
+ marginRight?: number | string;
51
+ padding?: number | string;
52
+ paddingTop?: number | string;
53
+ paddingBottom?: number | string;
54
+ paddingLeft?: number | string;
55
+ paddingRight?: number | string;
56
+ overflow?: string;
57
+ border?: string;
58
+ borderTop?: string;
59
+ borderBottom?: string;
60
+ borderLeft?: string;
61
+ borderRight?: string;
62
+ borderRadius?: number | string;
63
+ background?: string;
64
+ position?: string;
65
+ display?: string;
66
+ opacity?: number;
67
+ }
68
+ interface StackProps extends BaseAtomProps {
69
+ gap?: number | string;
70
+ align?: 'start' | 'center' | 'end' | 'stretch';
71
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'space-between' | 'space-around';
72
+ }
73
+ interface RowProps extends BaseAtomProps {
74
+ gap?: number | string;
75
+ align?: 'start' | 'center' | 'end' | 'stretch';
76
+ justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'space-between' | 'space-around';
77
+ wrap?: boolean;
78
+ }
79
+ interface GridProps extends BaseAtomProps {
80
+ columns?: number | string;
81
+ gap?: number | string;
82
+ minChildWidth?: string;
83
+ }
84
+ interface DividerProps extends BaseAtomProps {
85
+ orientation?: 'horizontal' | 'vertical';
86
+ }
87
+ interface SpacerProps extends BaseAtomProps {
88
+ size?: number | string;
89
+ }
90
+ interface TextProps extends BaseAtomProps {
91
+ variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'caption' | 'code' | 'label' | 'muted';
92
+ size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
93
+ weight?: 'normal' | 'medium' | 'semibold' | 'bold' | string;
94
+ value?: string;
95
+ bind?: string;
96
+ color?: string;
97
+ align?: 'left' | 'center' | 'right';
98
+ }
99
+ interface HeadingProps extends BaseAtomProps {
100
+ level?: 1 | 2 | 3 | 4;
101
+ value?: string;
102
+ weight?: 'normal' | 'medium' | 'semibold' | 'bold' | string;
103
+ }
104
+ interface FieldProps extends BaseAtomProps {
105
+ name?: string;
106
+ bind?: string;
107
+ label?: string;
108
+ editable?: boolean;
109
+ }
110
+ interface ImageProps extends BaseAtomProps {
111
+ src?: string;
112
+ alt?: string;
113
+ width?: number | string;
114
+ height?: number | string;
115
+ bind?: string;
116
+ }
117
+ interface BadgeProps extends BaseAtomProps {
118
+ value?: string;
119
+ variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
120
+ bind?: string;
121
+ }
122
+ interface ButtonProps extends BaseAtomProps {
123
+ variant?: 'default' | 'primary' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link';
124
+ size?: 'sm' | 'md' | 'lg' | 'icon';
125
+ disabled?: boolean;
126
+ loading?: boolean;
127
+ onClick?: (() => void) | string;
128
+ onPress?: (() => void) | string;
129
+ label?: string;
130
+ icon?: string;
131
+ fullWidth?: boolean;
132
+ }
133
+ interface LinkProps extends BaseAtomProps {
134
+ href?: string;
135
+ to?: string;
136
+ target?: '_blank' | '_self';
137
+ bind?: string;
138
+ }
139
+ interface ShowProps extends BaseAtomProps {
140
+ when?: unknown;
141
+ fallback?: ReactNode;
142
+ }
143
+ interface EachProps<T = unknown> extends BaseAtomProps {
144
+ items?: T[];
145
+ as?: string;
146
+ bind?: string;
147
+ }
148
+ interface CardProps extends BaseAtomProps {
149
+ title?: string;
150
+ collapsible?: boolean;
151
+ defaultCollapsed?: boolean;
152
+ onClick?: (() => void) | string;
153
+ }
154
+ interface TabsProps extends BaseAtomProps {
155
+ defaultTab?: string;
156
+ tabs?: Array<{
157
+ id: string;
158
+ label: string;
159
+ }>;
160
+ }
161
+ interface AccordionProps extends BaseAtomProps {
162
+ type?: 'single' | 'multiple';
163
+ defaultValue?: string;
164
+ }
165
+ interface SectionProps extends BaseAtomProps {
166
+ title?: string;
167
+ description?: string;
168
+ }
169
+ interface ModalProps extends BaseAtomProps {
170
+ title?: string;
171
+ open?: boolean;
172
+ onClose?: (() => void) | string;
173
+ }
174
+ interface TextInputProps extends BaseAtomProps {
175
+ bind?: string;
176
+ value?: string;
177
+ onChange?: ((value: string) => void) | string;
178
+ placeholder?: string;
179
+ label?: string;
180
+ multiline?: boolean;
181
+ rows?: number;
182
+ maxLength?: number;
183
+ submitOnEnter?: boolean;
184
+ onSubmit?: (() => void) | string;
185
+ disabled?: boolean;
186
+ }
187
+ interface SelectProps extends BaseAtomProps {
188
+ bind?: string;
189
+ value?: string;
190
+ onChange?: ((value: string) => void) | string;
191
+ options?: Array<{
192
+ value: string;
193
+ label: string;
194
+ }> | string[];
195
+ placeholder?: string;
196
+ label?: string;
197
+ disabled?: boolean;
198
+ }
199
+ interface MarkdownProps extends BaseAtomProps {
200
+ content?: string;
201
+ bind?: string;
202
+ }
203
+ interface ScrollAreaProps extends BaseAtomProps {
204
+ maxHeight?: number | string;
205
+ }
206
+ interface Canvas3DProps extends BaseAtomProps {
207
+ shape?: 'cube' | 'sphere' | 'torus' | 'torusKnot';
208
+ color?: string;
209
+ wireframe?: boolean;
210
+ autoRotate?: boolean;
211
+ }
212
+ interface DataGridProps extends BaseAtomProps {
213
+ bind?: string;
214
+ /** Model definition or slug to query data from. */
215
+ source?: unknown;
216
+ columns?: Array<{
217
+ field: string;
218
+ header: string;
219
+ editable?: boolean;
220
+ }>;
221
+ /** Filter params for the data query. */
222
+ filters?: Record<string, unknown>;
223
+ }
224
+ interface AnimatedBoxProps extends BaseAtomProps {
225
+ animation?: 'pulse' | 'bounce' | 'spin' | 'slide-in' | 'fade-in' | 'scale-up' | 'glow' | 'shake' | 'flip' | 'morph';
226
+ duration?: number;
227
+ }
228
+ interface ServerGridProps extends BaseAtomProps {
229
+ bind?: string;
230
+ endpoint?: string;
231
+ columns?: Array<{
232
+ field: string;
233
+ header: string;
234
+ sortable?: boolean;
235
+ }>;
236
+ pageSize?: number;
237
+ }
238
+ interface ChartProps extends BaseAtomProps {
239
+ type?: 'bar' | 'line' | 'area' | 'pie' | 'sparkline';
240
+ bind?: string;
241
+ data?: unknown[];
242
+ xField?: string;
243
+ yField?: string;
244
+ color?: string;
245
+ }
246
+ interface MetricCardProps extends BaseAtomProps {
247
+ value?: number | string;
248
+ label?: string;
249
+ format?: 'currency' | 'number' | 'percentage';
250
+ trend?: 'up' | 'down' | 'flat';
251
+ sparkline?: boolean;
252
+ bind?: string;
253
+ }
254
+ interface SlotProps extends BaseAtomProps {
255
+ name: string;
256
+ fallback?: ReactNode;
257
+ }
258
+ interface ModuleOutletProps extends BaseAtomProps {
259
+ /** Module slug to render views from. */
260
+ module: string;
261
+ /** Base path for the module's routes within this outlet. */
262
+ basePath?: string;
263
+ /** Fallback content when no module route matches. */
264
+ fallback?: ReactNode;
265
+ }
266
+ interface MetricsGridProps extends BaseAtomProps {
267
+ bind?: string;
268
+ }
269
+ interface AdaptiveCardGridProps extends BaseAtomProps {
270
+ bind?: string;
271
+ }
272
+ interface AdaptiveFiltersProps extends BaseAtomProps {
273
+ bind?: string;
274
+ fields?: string[];
275
+ }
276
+ interface PaginationProps extends BaseAtomProps {
277
+ bind?: string;
278
+ pageSize?: number;
279
+ }
280
+ interface EntityHeaderProps extends BaseAtomProps {
281
+ bind?: string;
282
+ }
283
+ interface ProgressTrackerProps extends BaseAtomProps {
284
+ bind?: string;
285
+ steps?: string[];
286
+ }
287
+ interface RatingWidgetProps extends BaseAtomProps {
288
+ bind?: string;
289
+ max?: number;
290
+ }
291
+ interface FieldSectionProps extends BaseAtomProps {
292
+ title?: string;
293
+ fields?: string[];
294
+ }
295
+ interface TransitionActionsProps extends BaseAtomProps {
296
+ bind?: string;
297
+ }
298
+ interface ChildInstanceListProps extends BaseAtomProps {
299
+ bind?: string;
300
+ }
301
+ interface BreakdownChartsProps extends BaseAtomProps {
302
+ bind?: string;
303
+ }
304
+ interface TabbedLayoutProps extends BaseAtomProps {
305
+ tabs?: Array<{
306
+ id: string;
307
+ label: string;
308
+ }>;
309
+ }
310
+ interface HierarchyBreadcrumbProps extends BaseAtomProps {
311
+ bind?: string;
312
+ }
313
+ interface SearchInputProps extends BaseAtomProps {
314
+ bind?: string;
315
+ placeholder?: string;
316
+ }
317
+ interface SortControlProps extends BaseAtomProps {
318
+ bind?: string;
319
+ fields?: string[];
320
+ }
321
+ interface AggregateStatsProps extends BaseAtomProps {
322
+ bind?: string;
323
+ }
324
+ declare const Stack: FC<StackProps>;
325
+ declare const Row: FC<RowProps>;
326
+ declare const Column: FC<RowProps>;
327
+ declare const Grid: FC<GridProps>;
328
+ declare const Divider: FC<DividerProps>;
329
+ declare const Spacer: FC<SpacerProps>;
330
+ declare const Text: FC<TextProps>;
331
+ declare const Heading: FC<HeadingProps>;
332
+ declare const Field: FC<FieldProps>;
333
+ declare const Image: FC<ImageProps>;
334
+ declare const Badge: FC<BadgeProps>;
335
+ declare const Icon: FC<BaseAtomProps & {
336
+ name?: string;
337
+ size?: number | string;
338
+ color?: string;
339
+ }>;
340
+ declare const Button: FC<ButtonProps>;
341
+ declare const Link: FC<LinkProps>;
342
+ declare const Show: FC<ShowProps>;
343
+ declare const Each: FC<EachProps<unknown>>;
344
+ declare const Card: FC<CardProps>;
345
+ declare const Tabs: FC<TabsProps>;
346
+ declare const Accordion: FC<AccordionProps>;
347
+ declare const Section: FC<SectionProps>;
348
+ declare const Modal: FC<ModalProps>;
349
+ declare const TextInput: FC<TextInputProps>;
350
+ declare const Select: FC<SelectProps>;
351
+ declare const Markdown: FC<MarkdownProps>;
352
+ declare const ScrollArea: FC<ScrollAreaProps>;
353
+ declare const Canvas3D: FC<Canvas3DProps>;
354
+ declare const DataGrid: FC<DataGridProps>;
355
+ declare const AnimatedBox: FC<AnimatedBoxProps>;
356
+ declare const ServerGrid: FC<ServerGridProps>;
357
+ declare const Chart: FC<ChartProps>;
358
+ declare const MetricCard: FC<MetricCardProps>;
359
+ declare const Slot: FC<SlotProps>;
360
+ declare const ModuleOutlet: FC<ModuleOutletProps>;
361
+ declare const MetricsGrid: FC<MetricsGridProps>;
362
+ declare const AdaptiveCardGrid: FC<AdaptiveCardGridProps>;
363
+ declare const AdaptiveFilters: FC<AdaptiveFiltersProps>;
364
+ declare const Pagination: FC<PaginationProps>;
365
+ declare const EntityHeader: FC<EntityHeaderProps>;
366
+ declare const ProgressTracker: FC<ProgressTrackerProps>;
367
+ declare const RatingWidget: FC<RatingWidgetProps>;
368
+ declare const FieldSection: FC<FieldSectionProps>;
369
+ declare const TransitionActions: FC<TransitionActionsProps>;
370
+ declare const ChildInstanceList: FC<ChildInstanceListProps>;
371
+ declare const BreakdownCharts: FC<BreakdownChartsProps>;
372
+ declare const TabbedLayout: FC<TabbedLayoutProps>;
373
+ declare const HierarchyBreadcrumb: FC<HierarchyBreadcrumbProps>;
374
+ declare const SearchInput: FC<SearchInputProps>;
375
+ declare const SortControl: FC<SortControlProps>;
376
+ declare const AggregateStats: FC<AggregateStatsProps>;
377
+ interface RouterProps extends BaseAtomProps {
378
+ /** Base path prefix for all child routes. */
379
+ basePath?: string;
380
+ /** Default/initial route path. */
381
+ defaultRoute?: string;
382
+ }
383
+ interface RouteProps extends BaseAtomProps {
384
+ /** Route path pattern (e.g., '/rides/:id'). */
385
+ path: string;
386
+ /** Route guard — expression that must be truthy for route to render. */
387
+ guard?: string;
388
+ /** Redirect path if guard fails. */
389
+ redirect?: string;
390
+ /** Route metadata. */
391
+ meta?: Record<string, unknown>;
392
+ /** Whether this is a catch-all/fallback route. */
393
+ fallback?: boolean;
394
+ }
395
+ interface NavLinkProps extends BaseAtomProps {
396
+ /** Target route path. */
397
+ to: string;
398
+ /** Link label text. */
399
+ label?: string;
400
+ /** Icon name (lucide icon). */
401
+ icon?: string;
402
+ /** Visual variant. */
403
+ variant?: 'default' | 'tab' | 'pill' | string;
404
+ /** Route guard expression. */
405
+ guard?: string;
406
+ /** Active class name override. */
407
+ activeClassName?: string;
408
+ }
409
+ interface RoleGuardProps extends BaseAtomProps {
410
+ /** Role name required to render children. */
411
+ role: string;
412
+ /** Role hierarchy for comparison (highest to lowest). */
413
+ hierarchy?: string[];
414
+ /** Whether to include higher roles (default: true). */
415
+ includeHigher?: boolean;
416
+ /** Fallback content when role check fails. */
417
+ fallback?: ReactNode;
418
+ }
419
+ declare const Router: FC<RouterProps>;
420
+ declare const Route: FC<RouteProps>;
421
+ declare const NavLink: FC<NavLinkProps>;
422
+ declare const RoleGuard: FC<RoleGuardProps>;
423
+
424
+ export { Accordion, type AccordionProps, AdaptiveCardGrid, AdaptiveFilters, AggregateStats, AnimatedBox, type AnimatedBoxProps, Badge, type BadgeProps, type BaseAtomProps, BreakdownCharts, Button, type ButtonProps, Canvas3D, type Canvas3DProps, Card, type CardProps, Chart, type ChartProps, ChildInstanceList, Column, DataGrid, type DataGridProps, Divider, type DividerProps, Each, type EachProps, EntityHeader, Field, type FieldProps, FieldSection, Grid, type GridProps, Heading, type HeadingProps, HierarchyBreadcrumb, Icon, Image, type ImageProps, Link, type LinkProps, Markdown, type MarkdownProps, MetricCard, type MetricCardProps, MetricsGrid, Modal, type ModalProps, ModuleOutlet, type ModuleOutletProps, NavLink, type NavLinkProps, Pagination, ProgressTracker, RatingWidget, RoleGuard, type RoleGuardProps, Route, type RouteProps, Router, type RouterProps, Row, type RowProps, ScrollArea, type ScrollAreaProps, SearchInput, Section, type SectionProps, Select, type SelectProps, ServerGrid, type ServerGridProps, Show, type ShowProps, Slot, type SlotProps, SortControl, Spacer, type SpacerProps, Stack, type StackProps, TabbedLayout, Tabs, type TabsProps, Text, TextInput, type TextInputProps, type TextProps, TransitionActions };
@@ -0,0 +1,195 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/atoms/index.ts
21
+ var atoms_exports = {};
22
+ __export(atoms_exports, {
23
+ Accordion: () => Accordion,
24
+ AdaptiveCardGrid: () => AdaptiveCardGrid,
25
+ AdaptiveFilters: () => AdaptiveFilters,
26
+ AggregateStats: () => AggregateStats,
27
+ AnimatedBox: () => AnimatedBox,
28
+ Badge: () => Badge,
29
+ BreakdownCharts: () => BreakdownCharts,
30
+ Button: () => Button,
31
+ Canvas3D: () => Canvas3D,
32
+ Card: () => Card,
33
+ Chart: () => Chart,
34
+ ChildInstanceList: () => ChildInstanceList,
35
+ Column: () => Column,
36
+ DataGrid: () => DataGrid,
37
+ Divider: () => Divider,
38
+ Each: () => Each,
39
+ EntityHeader: () => EntityHeader,
40
+ Field: () => Field,
41
+ FieldSection: () => FieldSection,
42
+ Grid: () => Grid,
43
+ Heading: () => Heading,
44
+ HierarchyBreadcrumb: () => HierarchyBreadcrumb,
45
+ Icon: () => Icon,
46
+ Image: () => Image,
47
+ Link: () => Link,
48
+ Markdown: () => Markdown,
49
+ MetricCard: () => MetricCard,
50
+ MetricsGrid: () => MetricsGrid,
51
+ Modal: () => Modal,
52
+ ModuleOutlet: () => ModuleOutlet,
53
+ NavLink: () => NavLink,
54
+ Pagination: () => Pagination,
55
+ ProgressTracker: () => ProgressTracker,
56
+ RatingWidget: () => RatingWidget,
57
+ RoleGuard: () => RoleGuard,
58
+ Route: () => Route,
59
+ Router: () => Router,
60
+ Row: () => Row,
61
+ ScrollArea: () => ScrollArea,
62
+ SearchInput: () => SearchInput,
63
+ Section: () => Section,
64
+ Select: () => Select,
65
+ ServerGrid: () => ServerGrid,
66
+ Show: () => Show,
67
+ Slot: () => Slot,
68
+ SortControl: () => SortControl,
69
+ Spacer: () => Spacer,
70
+ Stack: () => Stack,
71
+ TabbedLayout: () => TabbedLayout,
72
+ Tabs: () => Tabs,
73
+ Text: () => Text,
74
+ TextInput: () => TextInput,
75
+ TransitionActions: () => TransitionActions
76
+ });
77
+ module.exports = __toCommonJS(atoms_exports);
78
+ function stub(displayName) {
79
+ const Component = () => {
80
+ throw new Error(
81
+ `<${displayName}> is a compile-time stub from @mindmatrix/react/atoms. It should only appear in .workflow.tsx files processed by the compiler. At runtime, use the ComponentTreeRenderer which resolves "${displayName}" from the component registry.`
82
+ );
83
+ };
84
+ Component.displayName = displayName;
85
+ return Component;
86
+ }
87
+ var Stack = stub("Stack");
88
+ var Row = stub("Row");
89
+ var Column = stub("Column");
90
+ var Grid = stub("Grid");
91
+ var Divider = stub("Divider");
92
+ var Spacer = stub("Spacer");
93
+ var Text = stub("Text");
94
+ var Heading = stub("Heading");
95
+ var Field = stub("Field");
96
+ var Image = stub("Image");
97
+ var Badge = stub("Badge");
98
+ var Icon = stub("Icon");
99
+ var Button = stub("Button");
100
+ var Link = stub("Link");
101
+ var Show = stub("Show");
102
+ var Each = stub("Each");
103
+ var Card = stub("Card");
104
+ var Tabs = stub("Tabs");
105
+ var Accordion = stub("Accordion");
106
+ var Section = stub("Section");
107
+ var Modal = stub("Modal");
108
+ var TextInput = stub("TextInput");
109
+ var Select = stub("Select");
110
+ var Markdown = stub("Markdown");
111
+ var ScrollArea = stub("ScrollArea");
112
+ var Canvas3D = stub("Canvas3D");
113
+ var DataGrid = stub("DataGrid");
114
+ var AnimatedBox = stub("AnimatedBox");
115
+ var ServerGrid = stub("ServerGrid");
116
+ var Chart = stub("Chart");
117
+ var MetricCard = stub("MetricCard");
118
+ var Slot = stub("Slot");
119
+ var ModuleOutlet = stub("ModuleOutlet");
120
+ var MetricsGrid = stub("MetricsGrid");
121
+ var AdaptiveCardGrid = stub("AdaptiveCardGrid");
122
+ var AdaptiveFilters = stub("AdaptiveFilters");
123
+ var Pagination = stub("Pagination");
124
+ var EntityHeader = stub("EntityHeader");
125
+ var ProgressTracker = stub("ProgressTracker");
126
+ var RatingWidget = stub("RatingWidget");
127
+ var FieldSection = stub("FieldSection");
128
+ var TransitionActions = stub("TransitionActions");
129
+ var ChildInstanceList = stub("ChildInstanceList");
130
+ var BreakdownCharts = stub("BreakdownCharts");
131
+ var TabbedLayout = stub("TabbedLayout");
132
+ var HierarchyBreadcrumb = stub("HierarchyBreadcrumb");
133
+ var SearchInput = stub("SearchInput");
134
+ var SortControl = stub("SortControl");
135
+ var AggregateStats = stub("AggregateStats");
136
+ var Router = stub("Router");
137
+ var Route = stub("Route");
138
+ var NavLink = stub("NavLink");
139
+ var RoleGuard = stub("RoleGuard");
140
+ // Annotate the CommonJS export names for ESM import in node:
141
+ 0 && (module.exports = {
142
+ Accordion,
143
+ AdaptiveCardGrid,
144
+ AdaptiveFilters,
145
+ AggregateStats,
146
+ AnimatedBox,
147
+ Badge,
148
+ BreakdownCharts,
149
+ Button,
150
+ Canvas3D,
151
+ Card,
152
+ Chart,
153
+ ChildInstanceList,
154
+ Column,
155
+ DataGrid,
156
+ Divider,
157
+ Each,
158
+ EntityHeader,
159
+ Field,
160
+ FieldSection,
161
+ Grid,
162
+ Heading,
163
+ HierarchyBreadcrumb,
164
+ Icon,
165
+ Image,
166
+ Link,
167
+ Markdown,
168
+ MetricCard,
169
+ MetricsGrid,
170
+ Modal,
171
+ ModuleOutlet,
172
+ NavLink,
173
+ Pagination,
174
+ ProgressTracker,
175
+ RatingWidget,
176
+ RoleGuard,
177
+ Route,
178
+ Router,
179
+ Row,
180
+ ScrollArea,
181
+ SearchInput,
182
+ Section,
183
+ Select,
184
+ ServerGrid,
185
+ Show,
186
+ Slot,
187
+ SortControl,
188
+ Spacer,
189
+ Stack,
190
+ TabbedLayout,
191
+ Tabs,
192
+ Text,
193
+ TextInput,
194
+ TransitionActions
195
+ });