@mmapp/react 0.1.0-alpha.18 → 0.1.0-alpha.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/actions-MFI2V4DX.mjs +116 -0
- package/dist/atoms/index.d.mts +2 -2
- package/dist/atoms/index.d.ts +2 -2
- package/dist/atoms/index.js +1 -1
- package/dist/atoms/index.mjs +1 -1
- package/dist/builtin-atoms-C-sNyYJl.d.mts +647 -0
- package/dist/builtin-atoms-C-sNyYJl.d.ts +647 -0
- package/dist/builtin-atoms-DCKrjG7i.d.mts +96 -0
- package/dist/builtin-atoms-DCKrjG7i.d.ts +96 -0
- package/dist/builtin-atoms-DRD3EwG6.d.mts +648 -0
- package/dist/builtin-atoms-DRD3EwG6.d.ts +648 -0
- package/dist/builtin-atoms-jt04b7Rw.d.mts +643 -0
- package/dist/builtin-atoms-jt04b7Rw.d.ts +643 -0
- package/dist/chunk-247T4GDJ.mjs +677 -0
- package/dist/chunk-3H6CR7E7.mjs +1924 -0
- package/dist/chunk-3PL6FL6I.mjs +96 -0
- package/dist/chunk-3SJSW3C4.mjs +2039 -0
- package/dist/chunk-5OI2VI57.mjs +1964 -0
- package/dist/chunk-CL6FYZ43.mjs +105 -0
- package/dist/chunk-ENQOCZI5.mjs +1938 -0
- package/dist/chunk-FB3WCZAU.mjs +512 -0
- package/dist/chunk-GLJ7VC7Z.mjs +684 -0
- package/dist/chunk-HHMWR6NA.mjs +504 -0
- package/dist/chunk-HULEMSN2.mjs +120 -0
- package/dist/chunk-J5MW6CRU.mjs +1938 -0
- package/dist/chunk-PNTTKNYU.mjs +677 -0
- package/dist/chunk-TY5OTJP4.mjs +684 -0
- package/dist/chunk-WV7DVCP6.mjs +513 -0
- package/dist/chunk-YFMPTGUF.mjs +677 -0
- package/dist/{chunk-2VJQJM7S.mjs → chunk-ZDWACXZN.mjs} +1 -1
- package/dist/composition-BJ6QQTWT.mjs +12 -0
- package/dist/composition-XBGKKCI7.mjs +57 -0
- package/dist/content-QVPFUG4P.mjs +246 -0
- package/dist/control-flow-CBREHWJW.mjs +35 -0
- package/dist/control-flow-FWBOI6SM.mjs +35 -0
- package/dist/control-flow-ZWUGCDSP.mjs +35 -0
- package/dist/data-WCMIZYKD.mjs +97 -0
- package/dist/grouping-E6F377VZ.mjs +204 -0
- package/dist/grouping-FRPOEXO3.mjs +233 -0
- package/dist/index.d.mts +4 -433
- package/dist/index.d.ts +4 -433
- package/dist/index.js +3648 -581
- package/dist/index.mjs +335 -1040
- package/dist/input-PUOZDNSI.mjs +222 -0
- package/dist/layout-RATDMCLP.mjs +106 -0
- package/dist/navigation-VCT7ZBMA.mjs +15 -0
- package/dist/navigation-WFV7YWOU.mjs +14 -0
- package/dist/player/index.d.mts +37 -11
- package/dist/player/index.d.ts +37 -11
- package/dist/player/index.js +3280 -174
- package/dist/player/index.mjs +55 -5
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -3,7 +3,9 @@ export { ExpressionContext, IRStateHome, PlayerWorkflowDefinition, RuntimeProfil
|
|
|
3
3
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
4
4
|
import { QueryClient } from '@tanstack/react-query';
|
|
5
5
|
import * as React$1 from 'react';
|
|
6
|
-
import React__default
|
|
6
|
+
import React__default from 'react';
|
|
7
|
+
export { J as ActionScope, A as ApiResolverConfig, x as AtomComponent, y as AtomRegistry, n as AtomRegistryImpl, K as AtomRegistryInterface, M as BindingClass, v as ComponentNode, w as ComponentTree, C as ComponentTreeRenderer, q as ComponentTreeRendererProps, D as DevPlayer, s as DevPlayerProps, z as ExperienceNode, E as ExperienceRenderer, a as ExperienceRendererProps, L as ExprClass, F as PlayerAuth, c as PlayerContextValue, I as PlayerInstanceData, P as PlayerProvider, b as PlayerProviderProps, B as PlayerResolver, G as PlayerRouter, S as ScopeContext, H as ScopeData, h as buildActionScope, i as buildEvalContext, l as buildLoopScope, k as buildScope, t as builtinAtoms, f as builtinFunctions, d as createApiResolver, o as createCoreAtomRegistry, p as mergeRegistries, m as mergeScope, e as playerEvaluateExpression, g as resolveAllBindings, r as resolveBinding, u as usePlayerContext, j as useScope } from './builtin-atoms-C-sNyYJl.js';
|
|
8
|
+
export { Accordion, AnimatedBox, Badge, Button, Canvas3D, Card, Chart, Column, DataGrid, Divider, Each, Field, Grid, Heading, Icon, Image, Link, Markdown, MetricCard, Modal, NavLink, RoleGuard, Route, Router, Row, ScrollArea, Section, Select, ServerGrid, Show, Slot, Spacer, Stack, Tabs, Text, TextInput } from './atoms/index.js';
|
|
7
9
|
|
|
8
10
|
/**
|
|
9
11
|
* WorkflowRuntime — Class-based runtime for MindMatrix workflows
|
|
@@ -4328,427 +4330,6 @@ interface UseCollectionOptions extends QueryParams$1 {
|
|
|
4328
4330
|
*/
|
|
4329
4331
|
declare function useCollection<D extends ModelDefinition>(definition: D, options?: UseCollectionOptions): CollectionHandle<InferFields<D>, InferStates<D> & string, InferTransitions<D> & string>;
|
|
4330
4332
|
|
|
4331
|
-
/** Minimal types for the standalone player CTR. */
|
|
4332
|
-
interface ComponentNode {
|
|
4333
|
-
type: string;
|
|
4334
|
-
props?: Record<string, unknown>;
|
|
4335
|
-
children?: ComponentNode[] | string;
|
|
4336
|
-
$if?: string;
|
|
4337
|
-
$for?: {
|
|
4338
|
-
each: string;
|
|
4339
|
-
as: string;
|
|
4340
|
-
key?: string;
|
|
4341
|
-
};
|
|
4342
|
-
}
|
|
4343
|
-
type ComponentTree = ComponentNode | ComponentNode[];
|
|
4344
|
-
interface ScopeData {
|
|
4345
|
-
state_data?: Record<string, unknown>;
|
|
4346
|
-
memory?: Record<string, unknown>;
|
|
4347
|
-
context?: Record<string, unknown>;
|
|
4348
|
-
[key: string]: unknown;
|
|
4349
|
-
}
|
|
4350
|
-
type AtomComponent = React.ComponentType<Record<string, unknown>>;
|
|
4351
|
-
type AtomRegistry = Record<string, AtomComponent>;
|
|
4352
|
-
|
|
4353
|
-
/**
|
|
4354
|
-
* Standalone ComponentTreeRenderer for the dev player.
|
|
4355
|
-
*
|
|
4356
|
-
* Renders a JSON component tree (IR experience nodes) to React elements.
|
|
4357
|
-
* Uses the minimal evaluator and accepts an AtomRegistry for component resolution.
|
|
4358
|
-
*/
|
|
4359
|
-
|
|
4360
|
-
interface ComponentTreeRendererProps {
|
|
4361
|
-
/** The component tree to render */
|
|
4362
|
-
tree: ComponentTree;
|
|
4363
|
-
/** Data scopes for expression evaluation */
|
|
4364
|
-
scopes: Partial<ScopeData>;
|
|
4365
|
-
/** Runtime atom registry — maps type names to React components */
|
|
4366
|
-
atoms?: AtomRegistry;
|
|
4367
|
-
/** Event handlers */
|
|
4368
|
-
onEvent?: (eventName: string, payload?: unknown) => void;
|
|
4369
|
-
/** Error boundary fallback */
|
|
4370
|
-
fallback?: React__default.ReactNode;
|
|
4371
|
-
}
|
|
4372
|
-
declare const ComponentTreeRenderer: React__default.FC<ComponentTreeRendererProps>;
|
|
4373
|
-
|
|
4374
|
-
/**
|
|
4375
|
-
* DevPlayer — Development shell for previewing workflow component trees.
|
|
4376
|
-
*
|
|
4377
|
-
* Provides:
|
|
4378
|
-
* - ComponentTreeRenderer with built-in atoms
|
|
4379
|
-
* - Scope inspector panel (collapsible)
|
|
4380
|
-
* - Event log
|
|
4381
|
-
* - HMR integration (listens to __mm_dev WebSocket for live reload)
|
|
4382
|
-
* - Error boundary with dev-friendly error display
|
|
4383
|
-
*/
|
|
4384
|
-
|
|
4385
|
-
interface DevPlayerProps {
|
|
4386
|
-
/** The component tree to render */
|
|
4387
|
-
tree: ComponentTree;
|
|
4388
|
-
/** Data scopes for expression evaluation */
|
|
4389
|
-
scopes?: Partial<ScopeData>;
|
|
4390
|
-
/** Additional atoms (merged with built-ins; overrides win) */
|
|
4391
|
-
atoms?: AtomRegistry;
|
|
4392
|
-
/** Title shown in the dev chrome */
|
|
4393
|
-
title?: string;
|
|
4394
|
-
/** Hide the dev toolbar (render tree only) */
|
|
4395
|
-
bare?: boolean;
|
|
4396
|
-
/** WebSocket URL for HMR (default: auto-detect from window.location) */
|
|
4397
|
-
wsUrl?: string;
|
|
4398
|
-
/** Called when the tree is reloaded via HMR */
|
|
4399
|
-
onReload?: () => void;
|
|
4400
|
-
/** Called on every atom event */
|
|
4401
|
-
onEvent?: (eventName: string, payload?: unknown) => void;
|
|
4402
|
-
}
|
|
4403
|
-
declare const DevPlayer: React__default.FC<DevPlayerProps>;
|
|
4404
|
-
|
|
4405
|
-
/**
|
|
4406
|
-
* Built-in atom components for the standalone player.
|
|
4407
|
-
*
|
|
4408
|
-
* These are minimal HTML-based implementations of the core layout and
|
|
4409
|
-
* display atoms. Projects can override any of these via the AtomRegistry.
|
|
4410
|
-
*/
|
|
4411
|
-
|
|
4412
|
-
declare const builtinAtoms: AtomRegistry;
|
|
4413
|
-
|
|
4414
|
-
/**
|
|
4415
|
-
* Compile-Time Atom Stubs — markers for the compiler to recognize.
|
|
4416
|
-
*
|
|
4417
|
-
* These are NOT runtime components — they are compile-time type stubs that
|
|
4418
|
-
* the @mmapp/react-compiler recognizes in JSX and maps to IRExperienceNode
|
|
4419
|
-
* entries. At runtime, the frontend's ComponentTreeRenderer resolves the
|
|
4420
|
-
* component name string to the actual registered React component.
|
|
4421
|
-
*
|
|
4422
|
-
* Usage in .workflow.tsx files:
|
|
4423
|
-
* import { Stack, Row, Text, Button, TextInput } from '@mmapp/react/atoms';
|
|
4424
|
-
*
|
|
4425
|
-
* return (
|
|
4426
|
-
* <Stack gap={4}>
|
|
4427
|
-
* <Text variant="h2">Hello</Text>
|
|
4428
|
-
* <Row>
|
|
4429
|
-
* <TextInput bind="message" placeholder="Type..." />
|
|
4430
|
-
* <Button onClick={send}>Send</Button>
|
|
4431
|
-
* </Row>
|
|
4432
|
-
* </Stack>
|
|
4433
|
-
* );
|
|
4434
|
-
*
|
|
4435
|
-
* The compiler extracts this JSX into an IRExperienceNode tree.
|
|
4436
|
-
* The CTR (ComponentTreeRenderer) renders it at runtime.
|
|
4437
|
-
*
|
|
4438
|
-
* ALL core atoms + sub-experience components are stubbed here,
|
|
4439
|
-
* matching the frontend's component-registry.ts exactly.
|
|
4440
|
-
*/
|
|
4441
|
-
|
|
4442
|
-
interface BaseAtomProps {
|
|
4443
|
-
children?: ReactNode;
|
|
4444
|
-
visible_when?: string;
|
|
4445
|
-
'data-slot'?: string;
|
|
4446
|
-
className?: string;
|
|
4447
|
-
/** Style object — maps to CSS properties at runtime. */
|
|
4448
|
-
sx?: Record<string, unknown>;
|
|
4449
|
-
/** Common layout shortcuts — passed through to the CTR renderer. */
|
|
4450
|
-
flex?: number | string;
|
|
4451
|
-
width?: number | string;
|
|
4452
|
-
height?: number | string;
|
|
4453
|
-
minWidth?: number | string;
|
|
4454
|
-
minHeight?: number | string;
|
|
4455
|
-
maxWidth?: number | string;
|
|
4456
|
-
maxHeight?: number | string;
|
|
4457
|
-
margin?: number | string;
|
|
4458
|
-
marginTop?: number | string;
|
|
4459
|
-
marginBottom?: number | string;
|
|
4460
|
-
marginLeft?: number | string;
|
|
4461
|
-
marginRight?: number | string;
|
|
4462
|
-
padding?: number | string;
|
|
4463
|
-
paddingTop?: number | string;
|
|
4464
|
-
paddingBottom?: number | string;
|
|
4465
|
-
paddingLeft?: number | string;
|
|
4466
|
-
paddingRight?: number | string;
|
|
4467
|
-
overflow?: string;
|
|
4468
|
-
border?: string;
|
|
4469
|
-
borderTop?: string;
|
|
4470
|
-
borderBottom?: string;
|
|
4471
|
-
borderLeft?: string;
|
|
4472
|
-
borderRight?: string;
|
|
4473
|
-
borderRadius?: number | string;
|
|
4474
|
-
background?: string;
|
|
4475
|
-
position?: string;
|
|
4476
|
-
display?: string;
|
|
4477
|
-
opacity?: number;
|
|
4478
|
-
}
|
|
4479
|
-
interface StackProps$1 extends BaseAtomProps {
|
|
4480
|
-
gap?: number | string;
|
|
4481
|
-
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
4482
|
-
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'space-between' | 'space-around';
|
|
4483
|
-
}
|
|
4484
|
-
interface RowProps$1 extends BaseAtomProps {
|
|
4485
|
-
gap?: number | string;
|
|
4486
|
-
align?: 'start' | 'center' | 'end' | 'stretch';
|
|
4487
|
-
justify?: 'start' | 'center' | 'end' | 'between' | 'around' | 'space-between' | 'space-around';
|
|
4488
|
-
wrap?: boolean;
|
|
4489
|
-
}
|
|
4490
|
-
interface GridProps extends BaseAtomProps {
|
|
4491
|
-
columns?: number | string;
|
|
4492
|
-
gap?: number | string;
|
|
4493
|
-
minChildWidth?: string;
|
|
4494
|
-
}
|
|
4495
|
-
interface DividerProps$1 extends BaseAtomProps {
|
|
4496
|
-
orientation?: 'horizontal' | 'vertical';
|
|
4497
|
-
}
|
|
4498
|
-
interface SpacerProps extends BaseAtomProps {
|
|
4499
|
-
size?: number | string;
|
|
4500
|
-
}
|
|
4501
|
-
interface TextProps$1 extends BaseAtomProps {
|
|
4502
|
-
variant?: 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'caption' | 'code' | 'label' | 'muted';
|
|
4503
|
-
size?: 'xs' | 'sm' | 'md' | 'lg' | 'xl';
|
|
4504
|
-
weight?: 'normal' | 'medium' | 'semibold' | 'bold' | string;
|
|
4505
|
-
value?: string;
|
|
4506
|
-
bind?: string;
|
|
4507
|
-
color?: string;
|
|
4508
|
-
align?: 'left' | 'center' | 'right';
|
|
4509
|
-
}
|
|
4510
|
-
interface HeadingProps$1 extends BaseAtomProps {
|
|
4511
|
-
level?: 1 | 2 | 3 | 4;
|
|
4512
|
-
value?: string;
|
|
4513
|
-
weight?: 'normal' | 'medium' | 'semibold' | 'bold' | string;
|
|
4514
|
-
}
|
|
4515
|
-
interface FieldProps extends BaseAtomProps {
|
|
4516
|
-
name?: string;
|
|
4517
|
-
bind?: string;
|
|
4518
|
-
label?: string;
|
|
4519
|
-
editable?: boolean;
|
|
4520
|
-
}
|
|
4521
|
-
interface ImageProps extends BaseAtomProps {
|
|
4522
|
-
src?: string;
|
|
4523
|
-
alt?: string;
|
|
4524
|
-
width?: number | string;
|
|
4525
|
-
height?: number | string;
|
|
4526
|
-
bind?: string;
|
|
4527
|
-
}
|
|
4528
|
-
interface BadgeProps$1 extends BaseAtomProps {
|
|
4529
|
-
value?: string;
|
|
4530
|
-
variant?: 'default' | 'success' | 'warning' | 'error' | 'info';
|
|
4531
|
-
bind?: string;
|
|
4532
|
-
}
|
|
4533
|
-
interface ButtonProps$1 extends BaseAtomProps {
|
|
4534
|
-
variant?: 'default' | 'primary' | 'secondary' | 'destructive' | 'outline' | 'ghost' | 'link';
|
|
4535
|
-
size?: 'sm' | 'md' | 'lg' | 'icon';
|
|
4536
|
-
disabled?: boolean;
|
|
4537
|
-
loading?: boolean;
|
|
4538
|
-
onClick?: (() => void) | string;
|
|
4539
|
-
onPress?: (() => void) | string;
|
|
4540
|
-
label?: string;
|
|
4541
|
-
icon?: string;
|
|
4542
|
-
fullWidth?: boolean;
|
|
4543
|
-
}
|
|
4544
|
-
interface LinkProps extends BaseAtomProps {
|
|
4545
|
-
href?: string;
|
|
4546
|
-
to?: string;
|
|
4547
|
-
target?: '_blank' | '_self';
|
|
4548
|
-
bind?: string;
|
|
4549
|
-
}
|
|
4550
|
-
interface ShowProps$1 extends BaseAtomProps {
|
|
4551
|
-
when?: unknown;
|
|
4552
|
-
fallback?: ReactNode;
|
|
4553
|
-
}
|
|
4554
|
-
interface EachProps$1<T = unknown> extends BaseAtomProps {
|
|
4555
|
-
items?: T[];
|
|
4556
|
-
as?: string;
|
|
4557
|
-
bind?: string;
|
|
4558
|
-
}
|
|
4559
|
-
interface CardProps$1 extends BaseAtomProps {
|
|
4560
|
-
title?: string;
|
|
4561
|
-
collapsible?: boolean;
|
|
4562
|
-
defaultCollapsed?: boolean;
|
|
4563
|
-
onClick?: (() => void) | string;
|
|
4564
|
-
}
|
|
4565
|
-
interface TabsProps extends BaseAtomProps {
|
|
4566
|
-
defaultTab?: string;
|
|
4567
|
-
tabs?: Array<{
|
|
4568
|
-
id: string;
|
|
4569
|
-
label: string;
|
|
4570
|
-
}>;
|
|
4571
|
-
}
|
|
4572
|
-
interface AccordionProps extends BaseAtomProps {
|
|
4573
|
-
type?: 'single' | 'multiple';
|
|
4574
|
-
defaultValue?: string;
|
|
4575
|
-
}
|
|
4576
|
-
interface SectionProps extends BaseAtomProps {
|
|
4577
|
-
title?: string;
|
|
4578
|
-
description?: string;
|
|
4579
|
-
}
|
|
4580
|
-
interface ModalProps extends BaseAtomProps {
|
|
4581
|
-
title?: string;
|
|
4582
|
-
open?: boolean;
|
|
4583
|
-
onClose?: (() => void) | string;
|
|
4584
|
-
}
|
|
4585
|
-
interface TextInputProps$1 extends BaseAtomProps {
|
|
4586
|
-
bind?: string;
|
|
4587
|
-
value?: string;
|
|
4588
|
-
onChange?: ((value: string) => void) | string;
|
|
4589
|
-
placeholder?: string;
|
|
4590
|
-
label?: string;
|
|
4591
|
-
multiline?: boolean;
|
|
4592
|
-
rows?: number;
|
|
4593
|
-
maxLength?: number;
|
|
4594
|
-
submitOnEnter?: boolean;
|
|
4595
|
-
onSubmit?: (() => void) | string;
|
|
4596
|
-
disabled?: boolean;
|
|
4597
|
-
}
|
|
4598
|
-
interface SelectProps extends BaseAtomProps {
|
|
4599
|
-
bind?: string;
|
|
4600
|
-
value?: string;
|
|
4601
|
-
onChange?: ((value: string) => void) | string;
|
|
4602
|
-
options?: Array<{
|
|
4603
|
-
value: string;
|
|
4604
|
-
label: string;
|
|
4605
|
-
}> | string[];
|
|
4606
|
-
placeholder?: string;
|
|
4607
|
-
label?: string;
|
|
4608
|
-
disabled?: boolean;
|
|
4609
|
-
}
|
|
4610
|
-
interface MarkdownProps extends BaseAtomProps {
|
|
4611
|
-
content?: string;
|
|
4612
|
-
bind?: string;
|
|
4613
|
-
}
|
|
4614
|
-
interface ScrollAreaProps extends BaseAtomProps {
|
|
4615
|
-
maxHeight?: number | string;
|
|
4616
|
-
}
|
|
4617
|
-
interface Canvas3DProps extends BaseAtomProps {
|
|
4618
|
-
shape?: 'cube' | 'sphere' | 'torus' | 'torusKnot';
|
|
4619
|
-
color?: string;
|
|
4620
|
-
wireframe?: boolean;
|
|
4621
|
-
autoRotate?: boolean;
|
|
4622
|
-
}
|
|
4623
|
-
interface DataGridProps extends BaseAtomProps {
|
|
4624
|
-
bind?: string;
|
|
4625
|
-
/** Model definition or slug to query data from. */
|
|
4626
|
-
source?: unknown;
|
|
4627
|
-
columns?: Array<{
|
|
4628
|
-
field: string;
|
|
4629
|
-
header: string;
|
|
4630
|
-
editable?: boolean;
|
|
4631
|
-
}>;
|
|
4632
|
-
/** Filter params for the data query. */
|
|
4633
|
-
filters?: Record<string, unknown>;
|
|
4634
|
-
}
|
|
4635
|
-
interface AnimatedBoxProps extends BaseAtomProps {
|
|
4636
|
-
animation?: 'pulse' | 'bounce' | 'spin' | 'slide-in' | 'fade-in' | 'scale-up' | 'glow' | 'shake' | 'flip' | 'morph';
|
|
4637
|
-
duration?: number;
|
|
4638
|
-
}
|
|
4639
|
-
interface ServerGridProps extends BaseAtomProps {
|
|
4640
|
-
bind?: string;
|
|
4641
|
-
endpoint?: string;
|
|
4642
|
-
columns?: Array<{
|
|
4643
|
-
field: string;
|
|
4644
|
-
header: string;
|
|
4645
|
-
sortable?: boolean;
|
|
4646
|
-
}>;
|
|
4647
|
-
pageSize?: number;
|
|
4648
|
-
}
|
|
4649
|
-
interface ChartProps extends BaseAtomProps {
|
|
4650
|
-
type?: 'bar' | 'line' | 'area' | 'pie' | 'sparkline';
|
|
4651
|
-
bind?: string;
|
|
4652
|
-
data?: unknown[];
|
|
4653
|
-
xField?: string;
|
|
4654
|
-
yField?: string;
|
|
4655
|
-
color?: string;
|
|
4656
|
-
}
|
|
4657
|
-
interface MetricCardProps extends BaseAtomProps {
|
|
4658
|
-
value?: number | string;
|
|
4659
|
-
label?: string;
|
|
4660
|
-
format?: 'currency' | 'number' | 'percentage';
|
|
4661
|
-
trend?: 'up' | 'down' | 'flat';
|
|
4662
|
-
sparkline?: boolean;
|
|
4663
|
-
bind?: string;
|
|
4664
|
-
}
|
|
4665
|
-
interface SlotProps$1 extends BaseAtomProps {
|
|
4666
|
-
name: string;
|
|
4667
|
-
fallback?: ReactNode;
|
|
4668
|
-
}
|
|
4669
|
-
declare const Stack: FC<StackProps$1>;
|
|
4670
|
-
declare const Row: FC<RowProps$1>;
|
|
4671
|
-
declare const Column: FC<RowProps$1>;
|
|
4672
|
-
declare const Grid: FC<GridProps>;
|
|
4673
|
-
declare const Divider: FC<DividerProps$1>;
|
|
4674
|
-
declare const Spacer: FC<SpacerProps>;
|
|
4675
|
-
declare const Text: FC<TextProps$1>;
|
|
4676
|
-
declare const Heading: FC<HeadingProps$1>;
|
|
4677
|
-
declare const Field: FC<FieldProps>;
|
|
4678
|
-
declare const Image: FC<ImageProps>;
|
|
4679
|
-
declare const Badge: FC<BadgeProps$1>;
|
|
4680
|
-
declare const Icon: FC<BaseAtomProps & {
|
|
4681
|
-
name?: string;
|
|
4682
|
-
size?: number | string;
|
|
4683
|
-
color?: string;
|
|
4684
|
-
}>;
|
|
4685
|
-
declare const Button: FC<ButtonProps$1>;
|
|
4686
|
-
declare const Link: FC<LinkProps>;
|
|
4687
|
-
declare const Show: FC<ShowProps$1>;
|
|
4688
|
-
declare const Each: FC<EachProps$1<unknown>>;
|
|
4689
|
-
declare const Card: FC<CardProps$1>;
|
|
4690
|
-
declare const Tabs: FC<TabsProps>;
|
|
4691
|
-
declare const Accordion: FC<AccordionProps>;
|
|
4692
|
-
declare const Section: FC<SectionProps>;
|
|
4693
|
-
declare const Modal: FC<ModalProps>;
|
|
4694
|
-
declare const TextInput: FC<TextInputProps$1>;
|
|
4695
|
-
declare const Select: FC<SelectProps>;
|
|
4696
|
-
declare const Markdown: FC<MarkdownProps>;
|
|
4697
|
-
declare const ScrollArea: FC<ScrollAreaProps>;
|
|
4698
|
-
declare const Canvas3D: FC<Canvas3DProps>;
|
|
4699
|
-
declare const DataGrid: FC<DataGridProps>;
|
|
4700
|
-
declare const AnimatedBox: FC<AnimatedBoxProps>;
|
|
4701
|
-
declare const ServerGrid: FC<ServerGridProps>;
|
|
4702
|
-
declare const Chart: FC<ChartProps>;
|
|
4703
|
-
declare const MetricCard: FC<MetricCardProps>;
|
|
4704
|
-
declare const Slot: FC<SlotProps$1>;
|
|
4705
|
-
interface RouterProps extends BaseAtomProps {
|
|
4706
|
-
/** Base path prefix for all child routes. */
|
|
4707
|
-
basePath?: string;
|
|
4708
|
-
/** Default/initial route path. */
|
|
4709
|
-
defaultRoute?: string;
|
|
4710
|
-
}
|
|
4711
|
-
interface RouteProps extends BaseAtomProps {
|
|
4712
|
-
/** Route path pattern (e.g., '/rides/:id'). */
|
|
4713
|
-
path: string;
|
|
4714
|
-
/** Route guard — expression that must be truthy for route to render. */
|
|
4715
|
-
guard?: string;
|
|
4716
|
-
/** Redirect path if guard fails. */
|
|
4717
|
-
redirect?: string;
|
|
4718
|
-
/** Route metadata. */
|
|
4719
|
-
meta?: Record<string, unknown>;
|
|
4720
|
-
/** Whether this is a catch-all/fallback route. */
|
|
4721
|
-
fallback?: boolean;
|
|
4722
|
-
}
|
|
4723
|
-
interface NavLinkProps extends BaseAtomProps {
|
|
4724
|
-
/** Target route path. */
|
|
4725
|
-
to: string;
|
|
4726
|
-
/** Link label text. */
|
|
4727
|
-
label?: string;
|
|
4728
|
-
/** Icon name (lucide icon). */
|
|
4729
|
-
icon?: string;
|
|
4730
|
-
/** Visual variant. */
|
|
4731
|
-
variant?: 'default' | 'tab' | 'pill' | string;
|
|
4732
|
-
/** Route guard expression. */
|
|
4733
|
-
guard?: string;
|
|
4734
|
-
/** Active class name override. */
|
|
4735
|
-
activeClassName?: string;
|
|
4736
|
-
}
|
|
4737
|
-
interface RoleGuardProps extends BaseAtomProps {
|
|
4738
|
-
/** Role name required to render children. */
|
|
4739
|
-
role: string;
|
|
4740
|
-
/** Role hierarchy for comparison (highest to lowest). */
|
|
4741
|
-
hierarchy?: string[];
|
|
4742
|
-
/** Whether to include higher roles (default: true). */
|
|
4743
|
-
includeHigher?: boolean;
|
|
4744
|
-
/** Fallback content when role check fails. */
|
|
4745
|
-
fallback?: ReactNode;
|
|
4746
|
-
}
|
|
4747
|
-
declare const Router: FC<RouterProps>;
|
|
4748
|
-
declare const Route: FC<RouteProps>;
|
|
4749
|
-
declare const NavLink: FC<NavLinkProps>;
|
|
4750
|
-
declare const RoleGuard: FC<RoleGuardProps>;
|
|
4751
|
-
|
|
4752
4333
|
/**
|
|
4753
4334
|
* Grammar Islands — tagged template functions for domain-specific languages.
|
|
4754
4335
|
*
|
|
@@ -7443,16 +7024,6 @@ declare function useComputed<T = unknown>(_name: string, compute: () => T, optio
|
|
|
7443
7024
|
*/
|
|
7444
7025
|
declare function useComputedWithMeta<T = unknown>(name: string, compute: () => T, options?: UseComputedOptions): ComputedFieldResult<T>;
|
|
7445
7026
|
|
|
7446
|
-
interface PlayerProviderProps {
|
|
7447
|
-
player: PlayerHandle;
|
|
7448
|
-
children: React.ReactNode;
|
|
7449
|
-
}
|
|
7450
|
-
declare function PlayerProvider({ player, children }: PlayerProviderProps): react_jsx_runtime.JSX.Element;
|
|
7451
|
-
/**
|
|
7452
|
-
* Access the PlayerHandle from context.
|
|
7453
|
-
* Must be used within a <PlayerProvider>.
|
|
7454
|
-
*/
|
|
7455
|
-
declare function usePlayerContext(): PlayerHandle;
|
|
7456
7027
|
/**
|
|
7457
7028
|
* Optionally access the PlayerHandle (returns null if not in provider).
|
|
7458
7029
|
*/
|
|
@@ -8363,4 +7934,4 @@ declare const instance: {
|
|
|
8363
7934
|
slug: string;
|
|
8364
7935
|
};
|
|
8365
7936
|
|
|
8366
|
-
export {
|
|
7937
|
+
export { type ActionContext, type ActionCreator, type ActionCreators, type ActionDefinition, type ActionEnvironment, type ActionHandler, type ActionManifest, type ActionManifestEntry, type ActionNotifyOptions, type ActionOptions, type ActionResult, type ActionRoutingRule, type ActorConfig, type ActorHierarchy, type ActorMailbox, type ActorSupervision, type ApprovalConfig, type AuthOptions, type AuthResolver, type AuthResult, type AuthUser, BUILT_IN_CONSTRAINTS, type BadgeProps, Blueprint, type BlueprintAction, type BlueprintConfig, type BlueprintConfigSchema, type BlueprintDependency, type BlueprintManifest, type BlueprintRoute, type BlueprintServerActionDeclaration, type BlueprintSlotContribution, type BlueprintViewDeclaration, BrowserPlayer, type BrowserPlayerConfig, type TransitionResult as BrowserTransitionResult, type BuiltInConstraint, type ButtonProps, type CRUDConfig, type CardProps, type CedarPolicy, type ChannelHandle, type ChannelMessage, type ChannelOptions, type ChannelTransport, type CollectionHandle, type ColumnProps, type ComposedWorkflowMetadata, type ComputedFieldMode, type ComputedFieldResult, type ConflictStrategy, type Constraint, type ConstraintDeclaration, type CronFields, type CrudConfig, type DataSource, type DataSourceResult, type DividerProps, type DmnRule, type DomainEvent, type DomainSubscriptionConfig, type DomainSubscriptionTransport, type DuringAction, type DuringActionConfig, type EachProps, type EngineMiddlewareContext, type EscalationConfig, type EventPayload, type EventSubscription, type ExecutionPoint, type ExperienceViewConfig, ExperienceWorkflowBridge, type ExperienceWorkflowBridgeProps, type ExperienceWorkflowDefinition, type ExpressionLibraryRecord, type ExpressionLibraryResolver, type ExpressionLibraryResult, type ExtendOptions, type ExtendRoleDefinition, FieldBuilder, type FieldConfig, type FieldConflictConfig, type FieldRegistration, type FieldShorthand, type FieldTypeMap, type FieldValidation, type FieldValidator, type FormConfig, type FormHandle, type FormValidator, type GeoPosition, type GeolocationError, type GeolocationOptions, type GeolocationResult, type GrammarIsland, type HeadingProps, type InferFieldNames, type InferFields, type InferSlug, type InferStates, type InferTransitions, type InsertConfig, type InstalledModuleRef, type InstanceData, type InstanceKeyParams, type InstanceRef, type LatLng, type LatLngBounds, type LibraryParam, type LocalDataResolver, type LocalEngineAdapter, type LocalEngineContextValue, LocalEngineProvider, type LocalEngineStore, LocalWorkflowEngine, type LoginCredentials, type MapMarker, type MapViewHandle, type MapViewOptions, type MiddlewareContext, type MiddlewareDefinition, type MiddlewareFn, type MiddlewareHandle, type MiddlewareIntroduce, type MiddlewareOptions, type MiddlewareResult, type MmWasmModule, ModelBuilder, type ModelDefinition, type ModelHandle, type ModelMixin, type ModelTestContext, type ModuleAction, type ModuleConfigSchema, type ModuleDependency, type ModuleHandle, type ModuleManifest, type ModuleRoute, type ModuleRouteConfig, type MutationHandle, type MutationResolver, type NotificationResult, type NotifyOptions, ORCHESTRATION_PRESETS, type OrchestrationConfig, type OrchestrationStrategy, type PackageChild, type PackageManifest, type PackageResult, type PipelineConfig, type PipelineStage, type PlayerConfig, type PlayerEvent, type PlayerEventCallback, type PlayerEventListener, type PlayerHandle, type PlayerInstance, type PlayerLogEntry, type PlayerVisibility, type PresenceConfig, type PresenceEditor, type PresenceHandle, type PresenceOptions, type PresenceViewer, type QueryParams$1 as QueryParams, type QueryResolver, type QueryResult, type RealtimeQueryParams, type RealtimeQueryResult, type ResolvedOrchestrationConfig, type ReviewConfig, type RoleDefinition, type RoleOptions, type RoleResult, type RoleVisibility, type RouteDefinition, type RouteGuard, type RouteLocation, type RouteParamsOptions, type RouterHandle, type RouterOptions, type RowProps, type RuntimeConfig, RuntimeContext, type RuntimeSnapshot, type RuntimeTarget, type ServerActionFn, type ServerActionHandle, type ServerActionOptions, type ServerActionResolver, type ServerActionResult, type ServerStateOptions, type ServerStateResolver, type ServerStateResult, type ServerStateSnapshot, type ServiceConfig, type SetupWizard, type SetupWizardStep, type ShowProps, type SlotContribution, type SlotContributions, type SlotProps, type SpawnActionOptions, type SpawnOptions, type StackProps, StateBuilder, type StateDescriptor, type StateHome, type Subscription, type SupervisionStrategy, type TestChain, type TestStep, type TextInputProps, type TextProps, type ToastConfig, type ToastHandle, type ToastInstance, type ToastVariant, TransitionBuilder, type TransitionCondition, type TransitionConfig, type TransitionContext, type TransitionDescriptor, type TransitionHandle, type TransitionOverride, type TypedMutationHandle, TypedTransitionBuilder, type UseCollectionOptions, type UseComputedOptions, type UseModelOptions, type UseModuleOptions, type UseOnEventOptions, type UseWorkflowOptions, type ValidationIssue, type ValidationResult, type ValidationRule, type ViewDefinitionResult, type ViewRecord, type ViewResolver, type VisibilityResult, type WithAuditTrailOptions, type WithOwnershipOptions, type WithRBACOptions, type WithSearchOptions, type WithSlugOptions, type WithSoftDeleteOptions, type WithVersioningOptions, type WorkflowDataSource, type WorkflowDefinition, type WorkflowEvent, type WorkflowEventHandler, type WorkflowFieldDef, type WorkflowFieldDescriptor, type WorkflowHandle, type WorkflowInstance, type WorkflowInstanceWithEvents, type WorkflowMixin, WorkflowProvider, type WorkflowProviderProps, WorkflowRuntime, type WorkflowState, type WorkflowTransition, action, actor, after, allowTransition, and, applyMixins, approval, assertModelValid, cedar, compose, computeVisibility, configureActor, connector, constraints, createActions, createCRUD, createLocalDataResolver, createLocalEngineAdapter, createPipeline, cron$1 as cron, crud, defineBlueprint, blueprint as defineImperativeBlueprint, defineMiddleware, defineModel, defineModule, defineRoles, defineWorkspace, delay, deriveInstanceKey, deriveInstanceKeySync, describeModel, deviceAction, dmn, editableBy, editableIn, emit, escalation, every, expr, extend, extendMiddleware, field, fieldContains, fieldEquals, fieldGreaterThan, fieldIn, fieldIsEmpty, fieldIsSet, fieldLessThan, fieldMatches, fieldNotEquals, fieldNotIn, getInstalledModule, getInstalledModules, graphql, guard, hasAnyRole, hasRole, cron as imperativeCron, log as imperativeLog, notify as imperativeNotify, requireRole as imperativeRequireRole, inState, inputEquals, inputRequired, instance, isActor, isActorConfig, isBuiltInConstraint, isConstraintDeclaration, isCreator, isOwner, isPlayerDebug, isSender, jsonpath, llm, loadExperienceWorkflow, logEvent, model, named, normalizeDefinition, not, notInState, notify$1 as notify, on, or, orchestration, patch, pipe, playerLog, prefetchData, refHasAnyRole, refHasRole, requireAuth, requireField, requireRole$1 as requireRole, resolveOrchestration, restrict, review, runtime, sendMessage, serverAction, setAuthResolver, setChannelTransport, setConfigContext, setExpressionLibraryResolver, setField, setFields, setInstalledModules, setModuleConfigDefaults, setMutationResolver, setPersistedModuleConfig, setPlayerDebug, setQueryResolver, setRealtimeQueryResolver, setRoleHierarchy, setServerActionResolver, setServerStateResolver, setViewResolver, spawn, spawnActor, sql, state, syncConfigDefaults, testModel, timeout, transition, updateDefinitionConfig, useAuth, useChannel, useCollection, useComputed, useComputedWithMeta, useDomainSubscription, useDuringAction, useExperienceState, useExpressionLibrary, useForm, useGeolocation, useLocalEngine, useMapView, useMiddleware, useModel, useModule, useModuleConfig, useModuleConfigWithMutation, useMutation, useNotification, useOnChange, useOnEnter, useOnEvent, useOnExit, useOnTransition, usePackage, useParams, usePlayer, usePlayerContextSafe, usePresence, useQuery, useRealtimeQuery, useRole, useRouteParams, useRouter, useRuntimeContext, useServerAction, useServerState, useStateField, useToast, useTransition, useView, useVisibility, useWhileIn, useWorkflow, useState as useWorkflowState, userAction, userChoice, validate, validateExperienceWorkflow, validateModel, visibleTo, when, withAuditLog, withAuditTrail, withAuth, withMetrics, withOwnership, withPagination, withRBAC, withRateLimit, withSearch, withSlug, withSoftDelete, withTags, withTimestamps, withValidation, withVersioning };
|