@almadar/core 10.61.0 → 10.63.0
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/builders.d.ts +3 -3
- package/dist/builders.js +10 -0
- package/dist/builders.js.map +1 -1
- package/dist/{effect-a1W_hXyG.d.ts → effect-CgDrWfKW.d.ts} +60 -8
- package/dist/{entityAccess-DU_mdtr5.d.ts → entityAccess-Dr7XPoi_.d.ts} +1 -1
- package/dist/factory/index.d.ts +4 -4
- package/dist/factory-runtime/index.d.ts +3 -3
- package/dist/factory-runtime/index.js +10 -0
- package/dist/factory-runtime/index.js.map +1 -1
- package/dist/{index-C-qK6t2U.d.ts → index-D2rQS1PS.d.ts} +4 -4
- package/dist/index.d.ts +11 -11
- package/dist/index.js +855 -15
- package/dist/index.js.map +1 -1
- package/dist/mock/index.d.ts +4 -4
- package/dist/mock/index.js +30 -0
- package/dist/mock/index.js.map +1 -1
- package/dist/patterns/component-mapping.json +11 -1
- package/dist/patterns/event-contracts.json +1 -1
- package/dist/patterns/index.d.ts +1788 -15
- package/dist/patterns/index.js +835 -13
- package/dist/patterns/index.js.map +1 -1
- package/dist/patterns/patterns-registry.json +817 -10
- package/dist/patterns/registry.json +817 -10
- package/dist/{schema-Dj4GC3Vo.d.ts → schema-KdqDOMXm.d.ts} +2 -2
- package/dist/{trait-DgZ5Exel.d.ts → trait-CesmHKZ2.d.ts} +1 -1
- package/dist/types/index.d.ts +5 -5
- package/dist/types/index.js +16 -1
- package/dist/types/index.js.map +1 -1
- package/dist/{types-CGjZ7Odu.d.ts → types-mYXAkmBy.d.ts} +2 -2
- package/package.json +1 -1
|
@@ -1010,16 +1010,16 @@ declare const IdentityLedgerSchema: z.ZodObject<{
|
|
|
1010
1010
|
* { name: 'status', type: 'enum', values: ['draft', 'published'] }
|
|
1011
1011
|
* { name: 'authorId', type: 'relation', relation: { entity: 'User', cardinality: 'one' } }
|
|
1012
1012
|
*/
|
|
1013
|
-
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'array' | 'object' | 'enum' | 'relation' | 'trait' | 'slot' | 'pattern' | 'node';
|
|
1013
|
+
type FieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'money' | 'file' | 'array' | 'object' | 'enum' | 'relation' | 'trait' | 'slot' | 'pattern' | 'node';
|
|
1014
1014
|
/** Every `FieldType`, as a runtime array. Downstream imports this instead of
|
|
1015
1015
|
* re-listing the union — five copies had already drifted apart. */
|
|
1016
|
-
declare const FIELD_TYPES: readonly ["string", "number", "boolean", "date", "timestamp", "datetime", "email", "url", "phone", "uuid", "image", "array", "object", "enum", "relation", "trait", "slot", "pattern", "node"];
|
|
1016
|
+
declare const FIELD_TYPES: readonly ["string", "number", "boolean", "date", "timestamp", "datetime", "email", "url", "phone", "uuid", "image", "money", "file", "array", "object", "enum", "relation", "trait", "slot", "pattern", "node"];
|
|
1017
1017
|
/** The semantic string domains — constrained strings, validatable by value. */
|
|
1018
1018
|
declare const SEMANTIC_STRING_TYPES: readonly ["email", "url", "phone", "uuid", "image"];
|
|
1019
1019
|
type SemanticStringType = (typeof SEMANTIC_STRING_TYPES)[number];
|
|
1020
1020
|
/** Is this a semantic string domain (as opposed to a bare `string`)? */
|
|
1021
1021
|
declare function isSemanticStringType(type: FieldType): type is SemanticStringType;
|
|
1022
|
-
declare const FieldTypeSchema: z.ZodEnum<["string", "number", "boolean", "date", "timestamp", "datetime", "email", "url", "phone", "uuid", "image", "array", "object", "enum", "relation", "trait", "slot", "pattern", "node"]>;
|
|
1022
|
+
declare const FieldTypeSchema: z.ZodEnum<["string", "number", "boolean", "date", "timestamp", "datetime", "email", "url", "phone", "uuid", "image", "money", "file", "array", "object", "enum", "relation", "trait", "slot", "pattern", "node"]>;
|
|
1023
1023
|
/**
|
|
1024
1024
|
* Cardinality for relation fields.
|
|
1025
1025
|
* Matches Rust compiler's Cardinality enum.
|
|
@@ -1100,13 +1100,42 @@ declare function isEmailValue(value: string): boolean;
|
|
|
1100
1100
|
declare function isUrlValue(value: string): boolean;
|
|
1101
1101
|
declare function isPhoneValue(value: string): boolean;
|
|
1102
1102
|
declare function isUuidValue(value: string): boolean;
|
|
1103
|
+
/** The value a `file`-typed entity field holds: an uploaded artifact.
|
|
1104
|
+
* `url` is a `data:` URI in mock/playground mode (size-ceilinged by the
|
|
1105
|
+
* mock adapter) or an object-storage URL in production. */
|
|
1106
|
+
interface FileValue {
|
|
1107
|
+
name: string;
|
|
1108
|
+
url: string;
|
|
1109
|
+
mimeType: string;
|
|
1110
|
+
sizeBytes: number;
|
|
1111
|
+
}
|
|
1112
|
+
/** Zod schema for {@link FileValue}. */
|
|
1113
|
+
declare const FileValueSchema: z.ZodObject<{
|
|
1114
|
+
name: z.ZodString;
|
|
1115
|
+
url: z.ZodString;
|
|
1116
|
+
mimeType: z.ZodString;
|
|
1117
|
+
sizeBytes: z.ZodNumber;
|
|
1118
|
+
}, "strip", z.ZodTypeAny, {
|
|
1119
|
+
url: string;
|
|
1120
|
+
name: string;
|
|
1121
|
+
mimeType: string;
|
|
1122
|
+
sizeBytes: number;
|
|
1123
|
+
}, {
|
|
1124
|
+
url: string;
|
|
1125
|
+
name: string;
|
|
1126
|
+
mimeType: string;
|
|
1127
|
+
sizeBytes: number;
|
|
1128
|
+
}>;
|
|
1129
|
+
/** Is `value` a well-formed {@link FileValue}? The `file` twin of
|
|
1130
|
+
* `isSemanticStringValue` — the seeder's output must satisfy this. */
|
|
1131
|
+
declare function isFileValue(value: unknown): value is FileValue;
|
|
1103
1132
|
/** Does `value` satisfy the declared semantic domain? `image` is a URL. */
|
|
1104
1133
|
declare function isSemanticStringValue(type: SemanticStringType, value: string): boolean;
|
|
1105
1134
|
/**
|
|
1106
1135
|
* Field-type tags that don't carry a type-dependent payload. The base
|
|
1107
1136
|
* `EntityField` shape applies as-is.
|
|
1108
1137
|
*/
|
|
1109
|
-
type ScalarFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'trait' | 'slot' | 'pattern' | 'node';
|
|
1138
|
+
type ScalarFieldType = 'string' | 'number' | 'boolean' | 'date' | 'timestamp' | 'datetime' | 'email' | 'url' | 'phone' | 'uuid' | 'image' | 'money' | 'file' | 'trait' | 'slot' | 'pattern' | 'node';
|
|
1110
1139
|
/** Fields shared across every variant. */
|
|
1111
1140
|
type EntityFieldBase = {
|
|
1112
1141
|
/**
|
|
@@ -2435,8 +2464,8 @@ type EntityData = Record<string, EntityRow[]>;
|
|
|
2435
2464
|
*
|
|
2436
2465
|
* DO NOT EDIT MANUALLY — regenerated by almadar-pattern-sync `patterns` command.
|
|
2437
2466
|
*
|
|
2438
|
-
* Generated: 2026-08-
|
|
2439
|
-
* Pattern count:
|
|
2467
|
+
* Generated: 2026-08-20T23:14:19.798Z
|
|
2468
|
+
* Pattern count: 272
|
|
2440
2469
|
*/
|
|
2441
2470
|
|
|
2442
2471
|
/**
|
|
@@ -2448,7 +2477,7 @@ type PatternPropValue = Record<string, FieldValue | undefined>;
|
|
|
2448
2477
|
* All valid pattern type names from @almadar/core/patterns registry.
|
|
2449
2478
|
* Use this type in render-ui effects for compile-time validation.
|
|
2450
2479
|
*/
|
|
2451
|
-
type PatternType = 'about-page-template' | 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algo-graph-canvas' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'article-section' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'book-chapter-view' | 'book-cover-page' | 'book-nav-bar' | 'book-table-of-contents' | 'book-viewer' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'case-study-card' | 'case-study-organism' | 'center' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'community-links' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'content-section' | 'control-button' | 'control-grid' | 'counter-template' | 'cta-banner' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'document-viewer' | 'draw-group' | 'draw-mesh' | 'draw-shape' | 'draw-shape-layer' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-detail-page-template' | 'feature-grid' | 'feature-grid-organism' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hero-organism' | 'hero-section' | 'hstack' | 'icon' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'install-box' | 'jazari-state-machine' | 'label' | 'landing-page-template' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'marketing-footer' | 'marketing-stat-card' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'pricing-card' | 'pricing-grid' | 'pricing-organism' | 'pricing-page-template' | 'progress-bar' | 'progress-dots' | 'pull-quote' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-block-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'service-catalog' | 'showcase-card' | 'showcase-organism' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'split-section' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'stats-grid' | 'stats-organism' | 'status-dot' | 'step-flow' | 'step-flow-organism' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-cloud' | 'tag-input' | 'team-card' | 'team-organism' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
|
|
2480
|
+
type PatternType = 'about-page-template' | 'accordion' | 'action-palette' | 'action-tile' | 'activation-block' | 'alert' | 'algo-graph-canvas' | 'algorithm-canvas' | 'animated-counter' | 'animated-graphic' | 'animated-reveal' | 'article-section' | 'aside' | 'atlas-image' | 'atlas-panel' | 'auth-layout' | 'avatar' | 'badge' | 'behavior-view' | 'biology-canvas' | 'bloom-quiz-block' | 'book-chapter-view' | 'book-cover-page' | 'book-nav-bar' | 'book-table-of-contents' | 'book-viewer' | 'box' | 'branching-logic-builder' | 'breadcrumb' | 'button' | 'calendar-grid' | 'canvas' | 'canvas-2d' | 'card' | 'carousel' | 'case-study-card' | 'case-study-organism' | 'center' | 'chart' | 'chart-legend' | 'chat-bar' | 'checkbox' | 'chemistry-canvas' | 'choice-button' | 'code-block' | 'code-runner-panel' | 'community-links' | 'conditional-wrapper' | 'confetti-effect' | 'confirm-dialog' | 'connection-block' | 'container' | 'content-renderer' | 'content-section' | 'control-button' | 'control-grid' | 'counter-template' | 'cta-banner' | 'dashboard-grid' | 'dashboard-layout' | 'data-grid' | 'data-list' | 'date-range-picker' | 'date-range-selector' | 'day-cell' | 'detail-panel' | 'dialog' | 'dialogue-bubble' | 'divider' | 'doc-breadcrumb' | 'doc-pagination' | 'doc-search' | 'doc-sidebar' | 'doc-toc' | 'document-viewer' | 'draw-fx-layer' | 'draw-group' | 'draw-mesh' | 'draw-shape' | 'draw-shape-layer' | 'draw-sprite' | 'draw-sprite-layer' | 'draw-text' | 'draw-text-layer' | 'drawer' | 'drawer-slot' | 'edge-decoration' | 'emoji-picker' | 'empty-state' | 'entity-cards' | 'entity-list' | 'entity-table' | 'error-boundary' | 'error-state' | 'feature-card' | 'feature-detail-page-template' | 'feature-grid' | 'feature-grid-organism' | 'file-tree' | 'filter-group' | 'filter-pill' | 'flex' | 'flip-card' | 'flip-container' | 'floating-action-button' | 'form' | 'form-actions' | 'form-field' | 'form-layout' | 'form-section' | 'form-section-header' | 'fx-overlay' | 'game-audio-toggle' | 'game-hud' | 'game-icon' | 'game-menu' | 'game-shell' | 'generic-app-template' | 'geometric-pattern' | 'gradient-divider' | 'graph-canvas' | 'graph-view' | 'grid' | 'header' | 'health-bar' | 'hero-organism' | 'hero-section' | 'hstack' | 'icon' | 'import-preview-tree' | 'import-progress' | 'import-source-picker' | 'infinite-scroll-sentinel' | 'input' | 'input-group' | 'install-box' | 'jazari-state-machine' | 'label' | 'landing-page-template' | 'law-reference-tooltip' | 'learning-canvas' | 'lightbox' | 'likert-scale' | 'line-chart' | 'loading-state' | 'map-view' | 'markdown-content' | 'marketing-footer' | 'marketing-stat-card' | 'master-detail' | 'master-detail-layout' | 'math-canvas' | 'matrix-question' | 'media-gallery' | 'menu' | 'meter' | 'modal' | 'modal-slot' | 'module-card' | 'navigation' | 'notification' | 'number-stepper' | 'option-constraint-group' | 'orbital-visualization' | 'overlay' | 'page-header' | 'page-transition' | 'pagination' | 'pattern-tile' | 'physics-canvas' | 'popover' | 'positioned-canvas' | 'presence' | 'pricing-card' | 'pricing-grid' | 'pricing-organism' | 'pricing-page-template' | 'progress-bar' | 'progress-dots' | 'pull-quote' | 'pull-to-refresh' | 'qr-scanner' | 'quiz-block' | 'radio' | 'range-slider' | 'reflection-block' | 'relation-select' | 'repeatable-form-section' | 'reply-tree' | 'rich-block-editor' | 'runtime-debugger' | 'scaled-diagram' | 'score-display' | 'search-input' | 'section' | 'section-header' | 'segment-renderer' | 'select' | 'sequence-bar' | 'service-catalog' | 'showcase-card' | 'showcase-organism' | 'side-panel' | 'sidebar' | 'signature-pad' | 'simple-grid' | 'skeleton' | 'social-proof' | 'sortable-list' | 'spacer' | 'sparkline' | 'spinner' | 'split' | 'split-pane' | 'split-section' | 'stack' | 'star-rating' | 'stat-badge' | 'stat-card' | 'stat-display' | 'state-graph' | 'state-json-view' | 'state-machine-view' | 'stats-grid' | 'stats-organism' | 'status-dot' | 'step-flow' | 'step-flow-organism' | 'subagent-trace-panel' | 'svg-branch' | 'svg-connection' | 'svg-flow' | 'svg-grid' | 'svg-lobe' | 'svg-mesh' | 'svg-morph' | 'svg-node' | 'svg-pulse' | 'svg-ring' | 'svg-shield' | 'svg-stack' | 'swipeable-row' | 'switch' | 'tabbed-container' | 'table-view' | 'tabs' | 'tag-cloud' | 'tag-input' | 'team-card' | 'team-organism' | 'text-highlight' | 'textarea' | 'theme-toggle' | 'time-slot-cell' | 'timeline' | 'timer-display' | 'toast-slot' | 'tooltip' | 'trait-frame' | 'trait-slot' | 'trend-indicator' | 'typewriter-text' | 'typography' | 'ui-slot-renderer' | 'upload-drop-zone' | 'version-diff' | 'violation-alert' | 'vote-stack' | 'vstack' | 'wizard-container' | 'wizard-navigation' | 'wizard-progress';
|
|
2452
2481
|
/**
|
|
2453
2482
|
* Pattern props map — each pattern type maps to its valid props interface.
|
|
2454
2483
|
*/
|
|
@@ -3394,6 +3423,7 @@ interface PatternPropsMap {
|
|
|
3394
3423
|
avatar?: unknown | string | SExpr;
|
|
3395
3424
|
sections?: unknown[] | string | SExpr;
|
|
3396
3425
|
actions?: unknown[] | string | SExpr;
|
|
3426
|
+
backAction?: PatternPropValue | string | SExpr;
|
|
3397
3427
|
footer?: unknown | string | SExpr;
|
|
3398
3428
|
slideOver?: boolean | string | SExpr;
|
|
3399
3429
|
fields: unknown[] | string | SExpr;
|
|
@@ -3404,6 +3434,7 @@ interface PatternPropsMap {
|
|
|
3404
3434
|
width?: string | SExpr;
|
|
3405
3435
|
displayFields?: unknown[] | string | SExpr;
|
|
3406
3436
|
showActions?: boolean | string | SExpr;
|
|
3437
|
+
relationsData?: PatternPropValue | string | SExpr;
|
|
3407
3438
|
};
|
|
3408
3439
|
'dialog': {
|
|
3409
3440
|
type: 'dialog';
|
|
@@ -3473,6 +3504,16 @@ interface PatternPropsMap {
|
|
|
3473
3504
|
error?: PatternPropValue | string | SExpr;
|
|
3474
3505
|
className?: string | SExpr;
|
|
3475
3506
|
};
|
|
3507
|
+
'draw-fx-layer': {
|
|
3508
|
+
type: 'draw-fx-layer';
|
|
3509
|
+
id?: string | SExpr;
|
|
3510
|
+
items: unknown[] | string | SExpr;
|
|
3511
|
+
presets?: unknown[] | string | SExpr;
|
|
3512
|
+
art?: PatternPropValue | string | SExpr;
|
|
3513
|
+
sprites?: PatternPropValue | string | SExpr;
|
|
3514
|
+
tickMs?: number | string | SExpr;
|
|
3515
|
+
textColor?: string | SExpr;
|
|
3516
|
+
};
|
|
3476
3517
|
'draw-group': {
|
|
3477
3518
|
type: 'draw-group';
|
|
3478
3519
|
id?: string | SExpr;
|
|
@@ -3889,6 +3930,7 @@ interface PatternPropsMap {
|
|
|
3889
3930
|
cancelEvent?: string | SExpr;
|
|
3890
3931
|
relationsData?: PatternPropValue | string | SExpr;
|
|
3891
3932
|
relationsLoading?: PatternPropValue | string | SExpr;
|
|
3933
|
+
fieldOverrides?: unknown[] | string | SExpr;
|
|
3892
3934
|
conditionalFields?: PatternPropValue | boolean | string | SExpr;
|
|
3893
3935
|
hiddenCalculations?: unknown[] | boolean | string | SExpr;
|
|
3894
3936
|
violationTriggers?: unknown[] | boolean | string | SExpr;
|
|
@@ -3958,6 +4000,7 @@ interface PatternPropsMap {
|
|
|
3958
4000
|
cancelEvent?: string | SExpr;
|
|
3959
4001
|
relationsData?: PatternPropValue | string | SExpr;
|
|
3960
4002
|
relationsLoading?: PatternPropValue | string | SExpr;
|
|
4003
|
+
fieldOverrides?: unknown[] | string | SExpr;
|
|
3961
4004
|
conditionalFields?: PatternPropValue | boolean | string | SExpr;
|
|
3962
4005
|
hiddenCalculations?: unknown[] | boolean | string | SExpr;
|
|
3963
4006
|
violationTriggers?: unknown[] | boolean | string | SExpr;
|
|
@@ -3980,6 +4023,13 @@ interface PatternPropsMap {
|
|
|
3980
4023
|
isComplete?: boolean | string | SExpr;
|
|
3981
4024
|
className?: string | SExpr;
|
|
3982
4025
|
};
|
|
4026
|
+
'fx-overlay': {
|
|
4027
|
+
type: 'fx-overlay';
|
|
4028
|
+
items: unknown[] | string | SExpr;
|
|
4029
|
+
tickMs?: number | string | SExpr;
|
|
4030
|
+
children?: unknown | string | SExpr;
|
|
4031
|
+
className?: string | SExpr;
|
|
4032
|
+
};
|
|
3983
4033
|
'game-audio-toggle': {
|
|
3984
4034
|
type: 'game-audio-toggle';
|
|
3985
4035
|
size?: string | SExpr;
|
|
@@ -4485,6 +4535,8 @@ interface PatternPropsMap {
|
|
|
4485
4535
|
interactive?: boolean | string | SExpr;
|
|
4486
4536
|
animate?: boolean | string | SExpr;
|
|
4487
4537
|
onShapeClick?: ((...args: unknown[]) => unknown) | string | SExpr;
|
|
4538
|
+
keyMap?: PatternPropValue | string | SExpr;
|
|
4539
|
+
keyUpMap?: PatternPropValue | string | SExpr;
|
|
4488
4540
|
isLoading?: boolean | string | SExpr;
|
|
4489
4541
|
error?: PatternPropValue | string | SExpr;
|
|
4490
4542
|
};
|
|
@@ -6768,4 +6820,4 @@ interface RenderUINode {
|
|
|
6768
6820
|
renderItem?: RenderUINode;
|
|
6769
6821
|
}
|
|
6770
6822
|
|
|
6771
|
-
export { type ComposeEffect as $, type AnyPatternConfig as A, AssetCatalogEntrySchema as B, AssetCatalogSchema as C, type AssetDimension as D, type EntityField as E, type FieldValue as F, AssetDimensionSchema as G, AssetSchema as H, type IdentityLedger as I, type AssetUrl as J, type AtomicEffect as K, type BehaviorEffect as L, CAMERA_MODES as M, type CallServiceConfig as N, type OrbitalId as O, type PageId as P, type CallServiceEffect as Q, type RelationConfig as R, type ServiceRef as S, type TraitId as T, type UISlot as U, type Camera as V, type CameraMode as W, CameraModeSchema as X, CameraSchema as Y, type CheckpointLoadEffect as Z, type CheckpointSaveEffect as _, type EntityPersistence as a, type
|
|
6823
|
+
export { type ComposeEffect as $, type AnyPatternConfig as A, AssetCatalogEntrySchema as B, AssetCatalogSchema as C, type AssetDimension as D, type EntityField as E, type FieldValue as F, AssetDimensionSchema as G, AssetSchema as H, type IdentityLedger as I, type AssetUrl as J, type AtomicEffect as K, type BehaviorEffect as L, CAMERA_MODES as M, type CallServiceConfig as N, type OrbitalId as O, type PageId as P, type CallServiceEffect as Q, type RelationConfig as R, type ServiceRef as S, type TraitId as T, type UISlot as U, type Camera as V, type CameraMode as W, CameraModeSchema as X, CameraSchema as Y, type CheckpointLoadEffect as Z, type CheckpointSaveEffect as _, type EntityPersistence as a, type PersistData as a$, type DerefEffect as a0, type DespawnEffect as a1, type DoEffect as a2, ENTITY_ROLES as a3, type EffectInput as a4, EffectSchema as a5, type EmitConfig as a6, type EmitEffect as a7, type EntityData as a8, type EntityFieldInput as a9, type LedgerEntry as aA, LedgerEntrySchema as aB, type LedgerKind as aC, LedgerKindSchema as aD, type LlmEffect as aE, type LogEffect as aF, type McpServiceDef as aG, McpServiceDefSchema as aH, type MemoryEffect as aI, type NavigateEffect as aJ, type NnConfig as aK, type NnLayer as aL, type NotifyEffect as aM, type ObjectEntityField as aN, type OrbitalEntity as aO, type OrbitalEntityInput as aP, OrbitalEntitySchema as aQ, OrbitalIdSchema as aR, type OsEffect as aS, PATTERN_TYPES as aT, PageIdSchema as aU, type PaletteEntryId as aV, PaletteEntryIdSchema as aW, type PatternConfig as aX, type PatternProps as aY, type PatternPropsMap as aZ, type PatternType as a_, EntityFieldSchema as aa, EntityIdSchema as ab, EntityPersistenceSchema as ac, type EntityRole as ad, EntityRoleSchema as ae, EntitySchema as af, type EntityWith as ag, type EnumEntityField as ah, type EvaluateConfig as ai, type EvaluateEffect as aj, EventIdSchema as ak, FIELD_TYPES as al, type FetchEffect as am, type FetchOptions as an, type FetchResult as ao, type Field as ap, FieldSchema as aq, type FieldType as ar, FieldTypeSchema as as, type FileValue as at, FileValueSchema as au, type ForwardConfig as av, type ForwardEffect as aw, type IdForKind as ax, type IdKind as ay, IdentityLedgerSchema as az, type EventId as b, UISlotSchema as b$, type PersistEffect as b0, type PersistEmitConfig as b1, type RefEffect as b2, RelationConfigSchema as b3, type RelationEntityField as b4, type RenderChildrenMap as b5, type RenderItemLambda as b6, type RenderUINode as b7, type ResolvedPatternProps as b8, type RestAuthConfig as b9, type SetEffect as bA, type SheetProjection as bB, SheetProjectionSchema as bC, type SocketEvents as bD, SocketEventsSchema as bE, type SocketServiceDef as bF, SocketServiceDefSchema as bG, type SpawnEffect as bH, type SpriteDirection as bI, SpriteDirectionSchema as bJ, type SpriteSheetAtlas as bK, type SpriteSheetAtlasInput as bL, SpriteSheetAtlasSchema as bM, type SubTexture as bN, SubTextureSchema as bO, type SwapEffect as bP, type TextureAtlas as bQ, TextureAtlasSchema as bR, type ThemeId as bS, ThemeIdSchema as bT, type Tilesheet as bU, TilesheetSchema as bV, type TraceEffect as bW, type TrainConfig as bX, type TrainEffect as bY, TraitIdSchema as bZ, type TypedEffect as b_, RestAuthConfigSchema as ba, type RestServiceDef as bb, RestServiceDefSchema as bc, SEMANTIC_STRING_TYPES as bd, SERVICE_TYPES as be, SHEET_PROJECTIONS as bf, SPRITE_DIRECTIONS as bg, type ScalarEntityField as bh, type ScenePos as bi, ScenePosSchema as bj, type SemanticAssetRef as bk, type SemanticAssetRefInput as bl, SemanticAssetRefSchema as bm, type SemanticStringType as bn, ServiceDefinitionSchema as bo, type ServiceId as bp, ServiceIdSchema as bq, type ServiceParams as br, type ServiceParamsValue as bs, type ServiceRefObject as bt, ServiceRefObjectSchema as bu, ServiceRefSchema as bv, ServiceRefStringSchema as bw, type ServiceType as bx, ServiceTypeSchema as by, type SessionEffect as bz, type Effect as c, persistenceModeAllowsOverrides as c$, UI_SLOTS as c0, VISUAL_STYLES as c1, type ValidateEffect as c2, type VisualStyle as c3, VisualStyleSchema as c4, type WatchEffect as c5, type WatchOptions as c6, asEntityId as c7, asEventId as c8, asOrbitalId as c9, isOrbitalId as cA, isPageId as cB, isPaletteEntryId as cC, isPhoneValue as cD, isRestService as cE, isRuntimeEntity as cF, isSExprEffect as cG, isSemanticStringType as cH, isSemanticStringValue as cI, isServiceId as cJ, isServiceReference as cK, isServiceReferenceObject as cL, isSocketService as cM, isThemeId as cN, isTraitId as cO, isUrlValue as cP, isUuidValue as cQ, isValidPatternType as cR, ledgerCurName as cS, ledgerRename as cT, ledgerResolveName as cU, mintId as cV, navigate as cW, notify as cX, parseAssetKey as cY, parseServiceRef as cZ, persist as c_, asPageId as ca, asPaletteEntryId as cb, asServiceId as cc, asThemeId as cd, asTraitId as ce, atomic as cf, callService as cg, createAssetKey as ch, deref as ci, deriveCollection as cj, despawn as ck, doEffects as cl, emit as cm, findService as cn, getDefaultAnimationsForRole as co, getServiceNames as cp, hasService as cq, idKindOf as cr, idPrefix as cs, isEffect as ct, isEmailValue as cu, isEntityId as cv, isEventId as cw, isFieldValue as cx, isFileValue as cy, isMcpService as cz, type EntityId as d, ref as d0, renderUI as d1, set as d2, spawn as d3, swap as d4, validateAssetAnimations as d5, watch as d6, type Entity as e, type EntityRow as f, type ServiceDefinition as g, type RenderBinding as h, type RenderUIEffect as i, ANIMATION_NAMES as j, ASSET_ASPECTS as k, ASSET_DIMENSIONS as l, type AgentEffect as m, type AnimationDef as n, type AnimationDefInput as o, AnimationDefSchema as p, type AnimationName as q, AnimationNameSchema as r, type ApplicationEffect as s, type ArrayEntityField as t, type Asset as u, type AssetAspect as v, AssetAspectSchema as w, type AssetCatalog as x, type AssetCatalogEntry as y, type AssetCatalogEntryInput as z };
|
package/dist/factory/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay } from '../types-
|
|
2
|
-
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-
|
|
3
|
-
import { a as EntityPersistence, E as EntityField } from '../effect-
|
|
4
|
-
import { a as TraitReference } from '../trait-
|
|
1
|
+
import { h as FactoryParamValue, c as FactoryConfigTier, b as FactoryConfigParam, F as FactoryCallSite, j as FactorySignature, R as RuleOverlay, p as RuleOverlayEntry, o as PresentationOverlay, T as TraitOverlay } from '../types-mYXAkmBy.js';
|
|
2
|
+
export { a as FactoryCallSiteParams, d as FactoryEntitySignature, e as FactoryEventSignature, f as FactoryExposure, g as FactoryPageSignature, i as FactoryProvenance, k as FactorySignatureCatalog, l as FactorySignatureEntityField, m as FactoryTraitSignature, J as JsonSchema, n as JsonSchemaType, O as OwnershipOverlayEntry, P as PresentationNavItem, S as SchemaFieldType, q as TraitOverlayEntry, r as TraitOverlayListener } from '../types-mYXAkmBy.js';
|
|
3
|
+
import { a as EntityPersistence, E as EntityField } from '../effect-CgDrWfKW.js';
|
|
4
|
+
import { a as TraitReference } from '../trait-CesmHKZ2.js';
|
|
5
5
|
export { J as JsonValue } from '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-
|
|
2
|
-
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-
|
|
3
|
-
import { E as EntityField, a as EntityPersistence } from '../effect-
|
|
1
|
+
import { O as OrbitalSchema, a as OrbitalDefinition } from '../schema-KdqDOMXm.js';
|
|
2
|
+
import { h as CallSiteConfig, i as CallSiteConfigEntry, g as Trait } from '../trait-CesmHKZ2.js';
|
|
3
|
+
import { E as EntityField, a as EntityPersistence } from '../effect-CgDrWfKW.js';
|
|
4
4
|
import { MakeTraitRefOpts } from '../builders.js';
|
|
5
5
|
import '../expression-Fk8bQWef.js';
|
|
6
6
|
import 'zod';
|
|
@@ -102,6 +102,8 @@ var FIELD_TYPES = [
|
|
|
102
102
|
"phone",
|
|
103
103
|
"uuid",
|
|
104
104
|
"image",
|
|
105
|
+
"money",
|
|
106
|
+
"file",
|
|
105
107
|
"array",
|
|
106
108
|
"object",
|
|
107
109
|
"enum",
|
|
@@ -139,6 +141,12 @@ var RelationConfigSchema = z.object({
|
|
|
139
141
|
};
|
|
140
142
|
return normalized;
|
|
141
143
|
});
|
|
144
|
+
z.object({
|
|
145
|
+
name: z.string(),
|
|
146
|
+
url: z.string(),
|
|
147
|
+
mimeType: z.string(),
|
|
148
|
+
sizeBytes: z.number()
|
|
149
|
+
});
|
|
142
150
|
var FIELD_TYPE_ALIASES = {
|
|
143
151
|
text: "string",
|
|
144
152
|
int: "number",
|
|
@@ -196,6 +204,8 @@ var EntityFieldSchema = z.lazy(() => {
|
|
|
196
204
|
scalarVariant("slot"),
|
|
197
205
|
scalarVariant("pattern"),
|
|
198
206
|
scalarVariant("node"),
|
|
207
|
+
scalarVariant("money"),
|
|
208
|
+
scalarVariant("file"),
|
|
199
209
|
// Enum variant — REQUIRES non-empty values.
|
|
200
210
|
z.object({
|
|
201
211
|
...baseFieldShape,
|