@almadar/ui 6.56.0 → 6.58.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/{ArbitraryClassCompiler-DvzdeHxc.d.ts → ArbitraryClassCompiler-tChQ3nVq.d.ts} +15 -1
- package/dist/{AwaitingSkeletonContext-DPgW__WV.d.ts → AwaitingSkeletonContext-Bh399p1x.d.ts} +1 -3
- package/dist/{Canvas3DHost-DfAhg6EH.d.ts → Canvas3DHost-BTvRPfsr.d.ts} +1 -1
- package/dist/{FileTree-DUi7e7Z8.d.ts → FileTree-BSfgp-HH.d.ts} +29 -2
- package/dist/{GameAudioProvider-DyBvYP2c.d.ts → GameAudioProvider-kXbonWTv.d.ts} +1 -1
- package/dist/Typography-LZTP72Y4.js +5 -0
- package/dist/{UISlotRenderer-QTHFT6Z4.js → UISlotRenderer-N5DFYE6K.js} +8 -8
- package/dist/avl/index.cjs +4940 -4265
- package/dist/avl/index.d.ts +74 -5
- package/dist/avl/index.js +68 -711
- package/dist/{avl-schema-parser-C0wnAp5x.d.ts → avl-schema-parser-CH1QoZw1.d.ts} +1 -1
- package/dist/{chunk-HCSJHRC4.js → chunk-4ZGXIW3B.js} +1 -1
- package/dist/{chunk-RNY5LJXJ.js → chunk-723MJUU3.js} +1 -1
- package/dist/{chunk-6EV3OEBQ.js → chunk-CHNC4UYE.js} +3 -2
- package/dist/{chunk-SGJHVPHC.js → chunk-GZGDBS4S.js} +2 -2
- package/dist/{chunk-Y53Q55H5.js → chunk-HA7CJWQX.js} +1123 -1121
- package/dist/{chunk-FQM37C56.js → chunk-HB3D3HUJ.js} +129 -79
- package/dist/{chunk-XZKGRSIO.js → chunk-I2ZNE5TD.js} +2522 -1188
- package/dist/{chunk-JRW33U35.js → chunk-I5QOYW2Z.js} +1 -1
- package/dist/{chunk-KQXXO42S.js → chunk-KJGVLXEN.js} +78 -1
- package/dist/{chunk-HRCR53OW.js → chunk-LZRW6GXG.js} +18 -3
- package/dist/{chunk-2LFBQ4IS.js → chunk-MZIDOJMD.js} +2 -2
- package/dist/{chunk-QGH4NAQO.js → chunk-N7JIG57B.js} +9 -4
- package/dist/chunk-YYYHH5BA.js +2519 -0
- package/dist/{cn-ClXGlIOY.d.ts → cn-DIql5232.d.ts} +152 -24
- package/dist/components/index.cjs +6917 -3102
- package/dist/components/index.d.ts +54 -101
- package/dist/components/index.js +14 -16
- package/dist/context/index.cjs +23 -0
- package/dist/context/index.d.ts +2 -2
- package/dist/context/index.js +20 -1
- package/dist/hooks/index.cjs +2544 -7
- package/dist/hooks/index.d.ts +4 -1
- package/dist/hooks/index.js +7 -6
- package/dist/lib/drawable/three/index.cjs +22 -6
- package/dist/lib/drawable/three/index.d.ts +4 -4
- package/dist/lib/drawable/three/index.js +7 -7
- package/dist/lib/index.cjs +18 -3
- package/dist/lib/index.d.ts +3 -3
- package/dist/lib/index.js +4 -5
- package/dist/locales/index.cjs +54 -9
- package/dist/locales/index.js +2 -2489
- package/dist/{paintDispatch-_6EhJCiL.d.ts → paintDispatch-BN8Vbzgs.d.ts} +1 -1
- package/dist/providers/index.cjs +4075 -2415
- package/dist/providers/index.d.ts +6 -6
- package/dist/providers/index.js +26 -18
- package/dist/runtime/index.cjs +4198 -2498
- package/dist/runtime/index.d.ts +4 -17
- package/dist/runtime/index.js +11 -10
- package/dist/ssr/index.cjs +23 -6
- package/dist/ssr/index.js +23 -6
- package/dist/{useEventBus-JUAH3EFW.js → useEventBus-SWRN475O.js} +1 -1
- package/dist/{verificationRegistry-CD7Xb40L.d.ts → verificationRegistry-CK76GUfH.d.ts} +1 -1
- package/locales/ar.json +18 -3
- package/locales/en.json +18 -3
- package/locales/sl.json +18 -3
- package/package.json +9 -8
- package/tailwind-preset.cjs +3 -0
- package/themes/_fonts.css +1 -1
- package/themes/_presets.css +1 -0
- package/themes/kflow.css +299 -0
- package/dist/Typography-7PDT62PG.js +0 -5
- package/dist/chunk-F4ZTPKZL.js +0 -284
- package/dist/chunk-OKWD7LPO.js +0 -80
|
@@ -2,23 +2,23 @@ import { A11yProps, Asset, EventKey, EventPayload, EventEmit, AssetUrl, FieldVal
|
|
|
2
2
|
export { AnimationDef, AnimationName, AudioManifest, BusEvent, BusEventListener, BusEventSource, BusEventListener as EventListener, SkeletonVariant, SoundEntry, SpriteDirection, UISlot, Unsubscribe } from '@almadar/core';
|
|
3
3
|
import * as React$1 from 'react';
|
|
4
4
|
import React__default, { ReactNode, ErrorInfo } from 'react';
|
|
5
|
-
import { I as IconInput, U as UiError, D as DrawableNode, P as Projector, F as FxOverlayItem, B as BadgeColor, M as MeshShapeKind, a as MeshMaterial, b as DrawGroupProps, c as DrawTextProps, d as DrawMeshProps, e as DisplayField, f as BadgeVariant, C as ColorToken } from '../paintDispatch-
|
|
6
|
-
export {
|
|
5
|
+
import { I as IconInput, U as UiError, D as DrawableNode, P as Projector, F as FxOverlayItem, B as BadgeColor, M as MeshShapeKind, a as MeshMaterial, b as DrawGroupProps, c as DrawTextProps, d as DrawMeshProps, e as DisplayField, f as DisplayFieldFormat, g as BadgeVariant, C as ColorToken } from '../paintDispatch-BN8Vbzgs.js';
|
|
6
|
+
export { h as Badge, i as BadgeProps, j as FxOverlayKind, k as Icon, l as IconAnimation, m as IconProps, n as IconSize, o as ImageSource, L as LinkAction, p as Point, R as Rect } from '../paintDispatch-BN8Vbzgs.js';
|
|
7
7
|
import { SExpr } from '@almadar/evaluator';
|
|
8
|
-
import { U as UnitAnimationState, F as FacingDirection, S as SpriteSheetUrls, f as SpriteFrameDims, R as ResolvedFrame, g as CanvasLighting, h as CanvasPost, a as IsometricUnit, i as CameraState } from '../Canvas3DHost-
|
|
9
|
-
export { B as BoardTile, G as GameAction, j as GamePhase, k as GameState, l as GameUnit, b as IsometricFeature, I as IsometricTile, P as Position, m as UnitTrait, n as calculateAttackTargets, o as calculateValidMoves, p as createInitialGameState } from '../Canvas3DHost-
|
|
10
|
-
export { G as GameAudioContext, a as GameAudioContextValue, e as GameAudioControls, b as GameAudioProvider, c as GameAudioProviderProps, U as UseGameAudioOptions, f as useGameAudio, u as useGameAudioContext } from '../GameAudioProvider-
|
|
11
|
-
import {
|
|
12
|
-
export { B as BehaviorView,
|
|
8
|
+
import { U as UnitAnimationState, F as FacingDirection, S as SpriteSheetUrls, f as SpriteFrameDims, R as ResolvedFrame, g as CanvasLighting, h as CanvasPost, a as IsometricUnit, i as CameraState } from '../Canvas3DHost-BTvRPfsr.js';
|
|
9
|
+
export { B as BoardTile, G as GameAction, j as GamePhase, k as GameState, l as GameUnit, b as IsometricFeature, I as IsometricTile, P as Position, m as UnitTrait, n as calculateAttackTargets, o as calculateValidMoves, p as createInitialGameState } from '../Canvas3DHost-BTvRPfsr.js';
|
|
10
|
+
export { G as GameAudioContext, a as GameAudioContextValue, e as GameAudioControls, b as GameAudioProvider, c as GameAudioProviderProps, U as UseGameAudioOptions, f as useGameAudio, u as useGameAudioContext } from '../GameAudioProvider-kXbonWTv.js';
|
|
11
|
+
import { e as AvlStateMachineProps } from '../FileTree-BSfgp-HH.js';
|
|
12
|
+
export { B as BehaviorView, f as BehaviorViewProps, g as FileTree, F as FileTreeItem, h as FileTreeNode, i as FileTreeProps, M as ModuleCard, j as ModuleCardProps } from '../FileTree-BSfgp-HH.js';
|
|
13
13
|
import { LucideIcon } from 'lucide-react';
|
|
14
|
-
import { c as EditorMotion, d as EditorOperator, C as ContentSegment, L as LessonSegment
|
|
15
|
-
export { B as BloomLevel, n as BloomQuizBlock, o as BloomQuizBlockProps,
|
|
14
|
+
import { l as ContentAnnotation, c as EditorMotion, d as EditorOperator, C as ContentSegment, L as LessonSegment } from '../cn-DIql5232.js';
|
|
15
|
+
export { B as BloomLevel, n as BloomQuizBlock, o as BloomQuizBlockProps, q as CodeRunnerPanel, r as CodeRunnerPanelProps, s as CodeSimulationOutput, t as LessonUserProgress, S as SegmentRenderer, u as SegmentRendererProps, g as cn, j as parseLessonSegments } from '../cn-DIql5232.js';
|
|
16
16
|
import { LanguageCode } from '@almadar/core/i18n';
|
|
17
17
|
import { EmojiPickPayload, ItemActionPayload, SelectionChangePayload } from '@almadar/core/patterns';
|
|
18
|
-
import { T as TraitLevelData } from '../avl-schema-parser-
|
|
18
|
+
import { T as TraitLevelData } from '../avl-schema-parser-CH1QoZw1.js';
|
|
19
19
|
import { a as SlotContent, c as SlotPropValue } from '../useUISlots-1dk2TR4j.js';
|
|
20
20
|
export { D as DEFAULT_SLOTS, S as SlotChangeCallback, b as SlotRenderConfig, U as UISlotManager, u as useUISlotManager } from '../useUISlots-1dk2TR4j.js';
|
|
21
|
-
import '../verificationRegistry-
|
|
21
|
+
import '../verificationRegistry-CK76GUfH.js';
|
|
22
22
|
export { ALMADAR_DND_MIME, AuthContextValue, AuthUser, CanvasGestureCallbacks, CanvasGestureHandlers, CompileResult, CompileStage, DragReorderResult, DraggablePayload, Extension, ExtensionManifest, FileSystemFile, FileSystemStatus, GitHubRepo, GitHubStatus, I18nContextValue, I18nProvider, InfiniteScrollOptions, InfiniteScrollResult, LongPressHandlers, LongPressOptions, OpenFile, Positioned, PullToRefreshOptions, PullToRefreshResult, QuerySingletonEntity, QuerySingletonResult, QuerySingletonState, QueryState, RenderI18n, RenderInterpolationHandle, RenderInterpolationOptions, SelectedFile, SharedEntityStore, SharedEntityStoreContext, SharedEntitySubscriber, SharedEntityWriter, SwipeGestureOptions, SwipeGestureResult, SwipeHandlers, TapRevealOptions, TapRevealResult, TraitListenSpec, TranslateFunction, UseCanvasGesturesOptions, UseCompileResult, UseDraggableOptions, UseDraggableResult, UseDropZoneOptions, UseDropZoneResult, UseExtensionsOptions, UseExtensionsResult, UseFileEditorOptions, UseFileEditorResult, UseFileSystemResult, createSharedEntityStore, createTranslate, parseQueryBinding, runTickFrame, useAgentChat, useAuthContext, useCanvasGestures, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useDragReorder, useDraggable, useDropZone, useEmitEvent, useEventBus, useEventListener, useExtensions, useFileEditor, useFileSystem, useFormatContext, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useInfiniteScroll, useLongPress, useMediaQuery, usePrefersReducedMotion, usePreview, usePullToRefresh, useQuerySingleton, useRenderI18n, useRenderInterpolation, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useSwipeGesture, useTapReveal, useTraitListens, useTranslate, useUIEvents, useValidation } from '../hooks/index.js';
|
|
23
23
|
export { E as EventBusContextType, a as NavStackApi, u as useNavStack } from '../NavStackContext-04NLdXsY.js';
|
|
24
24
|
export { E as EditorKeyEvent, a as KeyCaptureEntry, K as KeyCaptureTable, U as UseKeyboardRouterOptions, k as keyChord, m as mergeCaptureTables, u as useKeyboardRouter } from '../useKeyboardRouter-BW3rThep.js';
|
|
@@ -5401,6 +5401,28 @@ interface MarkdownContentProps extends A11yProps {
|
|
|
5401
5401
|
content: string;
|
|
5402
5402
|
/** Text direction (defaults to ltr; `ltr` is first so the generated config seeds it) */
|
|
5403
5403
|
direction?: 'ltr' | 'rtl';
|
|
5404
|
+
/** Event emitted when the reader picks Ask on selected text (as `UI:<askEvent>`) */
|
|
5405
|
+
askEvent?: EventEmit<{
|
|
5406
|
+
selectedText: string;
|
|
5407
|
+
}>;
|
|
5408
|
+
/** Event emitted when the reader picks Note on selected text (as `UI:<noteEvent>`) */
|
|
5409
|
+
noteEvent?: EventEmit<{
|
|
5410
|
+
selectedText: string;
|
|
5411
|
+
}>;
|
|
5412
|
+
/** Ask action label (default: translated) */
|
|
5413
|
+
askLabel?: string;
|
|
5414
|
+
/** Note action label (default: translated) */
|
|
5415
|
+
noteLabel?: string;
|
|
5416
|
+
/**
|
|
5417
|
+
* Passages to highlight. Each `text` is matched exactly, first occurrence in
|
|
5418
|
+
* document order inside a single rendered text node (outside code); a passage
|
|
5419
|
+
* that spans formatting boundaries is not highlighted.
|
|
5420
|
+
*/
|
|
5421
|
+
annotations?: ContentAnnotation[];
|
|
5422
|
+
/** Event emitted when a highlighted passage is clicked (as `UI:<annotationEvent>`) */
|
|
5423
|
+
annotationEvent?: EventEmit<{
|
|
5424
|
+
annotationId?: string;
|
|
5425
|
+
}>;
|
|
5404
5426
|
/** Additional CSS classes */
|
|
5405
5427
|
className?: string;
|
|
5406
5428
|
}
|
|
@@ -7851,6 +7873,8 @@ interface UploadDropZoneProps extends A11yProps {
|
|
|
7851
7873
|
icon?: IconInput;
|
|
7852
7874
|
/** Disabled state */
|
|
7853
7875
|
disabled?: boolean;
|
|
7876
|
+
/** How the file is read into `content`: a base64 data URL (default) or its UTF-8 text */
|
|
7877
|
+
readAs?: "dataUrl" | "text";
|
|
7854
7878
|
/** Declarative event name for file selection */
|
|
7855
7879
|
action?: EventEmit<{
|
|
7856
7880
|
files: {
|
|
@@ -8166,6 +8190,8 @@ interface DataListProps extends DataDndProps, EmptyStateSlotProps, A11yProps {
|
|
|
8166
8190
|
variant?: 'default' | 'card' | 'compact' | 'message';
|
|
8167
8191
|
/** Group items by a field value (renders section headers between groups) */
|
|
8168
8192
|
groupBy?: string;
|
|
8193
|
+
/** How a `groupBy` value is bucketed and labelled (`date` = one section per day) */
|
|
8194
|
+
groupFormat?: DisplayFieldFormat;
|
|
8169
8195
|
/** Field name identifying the sender (used with variant: "message") */
|
|
8170
8196
|
senderField?: string;
|
|
8171
8197
|
/**
|
|
@@ -8251,7 +8277,7 @@ interface DataListProps extends DataDndProps, EmptyStateSlotProps, A11yProps {
|
|
|
8251
8277
|
* field whose type is relation. Same contract DetailPanel takes. */
|
|
8252
8278
|
relationsData?: Record<string, readonly RelationOption[]>;
|
|
8253
8279
|
}
|
|
8254
|
-
declare function DataList({ entity, fields, columns, itemActions, maxInlineActions, itemClickEvent, gap, variant, groupBy, senderField, senderLabelField, currentUser, emptyMessage, emptyIcon, emptyTitle, emptyDescription, emptyAction, className, isLoading, skeleton, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, sortBy, sortDirection, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, look, surface, relationsData, ...rest }: DataListProps): React__default.JSX.Element;
|
|
8280
|
+
declare function DataList({ entity, fields, columns, itemActions, maxInlineActions, itemClickEvent, gap, variant, groupBy, groupFormat, senderField, senderLabelField, currentUser, emptyMessage, emptyIcon, emptyTitle, emptyDescription, emptyAction, className, isLoading, skeleton, error, reorderable: _reorderable, reorderEvent: _reorderEvent, swipeLeftEvent: _swipeLeftEvent, swipeLeftActions: _swipeLeftActions, swipeRightEvent: _swipeRightEvent, swipeRightActions: _swipeRightActions, longPressEvent: _longPressEvent, infiniteScroll, loadMoreEvent, hasMore, children, pageSize, sortBy, sortDirection, renderItem: schemaRenderItem, dragGroup, accepts, sortable: sortableProp, dropEvent, reorderEvent: dndReorderEvent, positionEvent, dndItemIdField, dndRoot, look, surface, relationsData, ...rest }: DataListProps): React__default.JSX.Element;
|
|
8255
8281
|
declare namespace DataList {
|
|
8256
8282
|
var displayName: string;
|
|
8257
8283
|
}
|
|
@@ -10954,94 +10980,20 @@ interface ConnectionBlockProps extends A11yProps {
|
|
|
10954
10980
|
declare const ConnectionBlock: React__default.FC<ConnectionBlockProps>;
|
|
10955
10981
|
|
|
10956
10982
|
/**
|
|
10957
|
-
*
|
|
10958
|
-
*
|
|
10959
|
-
*
|
|
10960
|
-
* Real execution is a future concern; callers supply a simulation function via
|
|
10961
|
-
* `onRun`. Emits `UI:RUN_CODE { language, exitCode }` on every run attempt.
|
|
10962
|
-
*
|
|
10963
|
-
* Event Contract:
|
|
10964
|
-
* - Emits: UI:RUN_CODE { language, exitCode, error? }
|
|
10965
|
-
* - entityAware: false
|
|
10983
|
+
* Utility for lesson-segment parsing: splits a markdown string into alternating
|
|
10984
|
+
* markdown and fenced-code-block segments. Exported so SegmentRenderer and
|
|
10985
|
+
* BloomQuizBlock can reuse without circular imports.
|
|
10966
10986
|
*/
|
|
10967
10987
|
|
|
10968
|
-
|
|
10969
|
-
|
|
10970
|
-
|
|
10971
|
-
|
|
10972
|
-
|
|
10973
|
-
|
|
10974
|
-
|
|
10975
|
-
|
|
10976
|
-
|
|
10977
|
-
}>;
|
|
10978
|
-
}
|
|
10979
|
-
interface CodeRunnerPanelProps extends Omit<React__default.AriaAttributes, keyof A11yProps>, A11yProps {
|
|
10980
|
-
/** Initial code content */
|
|
10981
|
-
code: string;
|
|
10982
|
-
/** Programming language for syntax highlighting */
|
|
10983
|
-
language: string;
|
|
10984
|
-
/** Whether the panel allows running (false = read-only code block) */
|
|
10985
|
-
runnable?: boolean;
|
|
10986
|
-
/**
|
|
10987
|
-
* Simulate executing the code. Omit to render a read-only block.
|
|
10988
|
-
* Real execution is a separate future track — this callback supplies
|
|
10989
|
-
* deterministic simulated output for UI feedback.
|
|
10990
|
-
*/
|
|
10991
|
-
onRun?: (code: string) => Promise<CodeSimulationOutput>;
|
|
10992
|
-
/** Event name to emit on run (emitted as `UI:<runEvent>`). Defaults to 'RUN_CODE'. */
|
|
10993
|
-
runEvent?: string;
|
|
10994
|
-
/** Additional CSS classes */
|
|
10995
|
-
className?: string;
|
|
10996
|
-
}
|
|
10997
|
-
declare const CodeRunnerPanel: React__default.FC<CodeRunnerPanelProps>;
|
|
10998
|
-
|
|
10999
|
-
/**
|
|
11000
|
-
* SegmentRenderer Organism Component
|
|
11001
|
-
*
|
|
11002
|
-
* Renders a parsed array of LessonSegments — markdown, code, quizzes,
|
|
11003
|
-
* activation prompts, connections, reflections, Bloom questions.
|
|
11004
|
-
* The `visualization` segment type is passed through as a no-op unless the
|
|
11005
|
-
* caller provides `onRenderVisualization` (future extensibility hook).
|
|
11006
|
-
*
|
|
11007
|
-
* Event Contract:
|
|
11008
|
-
* - Delegates to child molecules: UI:SAVE_ACTIVATION, UI:SAVE_REFLECTION, UI:ANSWER_BLOOM
|
|
11009
|
-
* - entityAware: false
|
|
11010
|
-
*/
|
|
11011
|
-
|
|
11012
|
-
/**
|
|
11013
|
-
* User progress state passed into SegmentRenderer. Declared here (rather than
|
|
11014
|
-
* alongside `LessonSegment` in `lib/parseLessonSegments.ts`) so the
|
|
11015
|
-
* pattern-sync scanner — which only indexes types under `components/**` —
|
|
11016
|
-
* can resolve it to a concrete `.lolo` object shape instead of `json`.
|
|
11017
|
-
*/
|
|
11018
|
-
interface LessonUserProgress {
|
|
11019
|
-
activationResponse?: string;
|
|
11020
|
-
reflectionNotes?: string[];
|
|
11021
|
-
bloomAnswered?: Record<number, boolean>;
|
|
11022
|
-
}
|
|
11023
|
-
interface SegmentRendererProps extends Omit<React__default.AriaAttributes, keyof A11yProps>, A11yProps {
|
|
11024
|
-
/** Parsed lesson segments (see `parseLessonSegments`) */
|
|
11025
|
-
segments: LessonSegment[];
|
|
11026
|
-
/** Additional CSS classes for the root container */
|
|
11027
|
-
className?: string;
|
|
11028
|
-
/** CSS classes for the outer wrapping div */
|
|
11029
|
-
containerClassName?: string;
|
|
11030
|
-
/** User progress for restoring activation/reflection state */
|
|
11031
|
-
userProgress?: LessonUserProgress;
|
|
11032
|
-
/**
|
|
11033
|
-
* Simulate executing runnable code blocks. Omit to render runnable blocks
|
|
11034
|
-
* as read-only. Real execution is a future track.
|
|
11035
|
-
*/
|
|
11036
|
-
onRunCodeSimulation?: (code: string, language: string) => Promise<CodeSimulationOutput>;
|
|
11037
|
-
/**
|
|
11038
|
-
* Optional render slot for `visualization` segment types. When not provided,
|
|
11039
|
-
* visualization segments are silently skipped. Callers can wire this to any
|
|
11040
|
-
* custom component or orbital generator.
|
|
11041
|
-
*/
|
|
11042
|
-
onRenderVisualization?: (type: InteractiveOrbitalType, description: string, index: number) => React__default.ReactNode;
|
|
11043
|
-
}
|
|
11044
|
-
declare const SegmentRenderer: React__default.FC<SegmentRendererProps>;
|
|
10988
|
+
type MarkdownSegment = Extract<LessonSegment, {
|
|
10989
|
+
type: 'markdown';
|
|
10990
|
+
}>;
|
|
10991
|
+
type CodeSegment = Extract<LessonSegment, {
|
|
10992
|
+
type: 'code';
|
|
10993
|
+
}>;
|
|
10994
|
+
type MixedSegment = MarkdownSegment | CodeSegment;
|
|
10995
|
+
/** Splits markdown content into markdown and fenced-code-block segments. */
|
|
10996
|
+
declare function parseMarkdownWithCodeBlocks(content: string): MixedSegment[];
|
|
11045
10997
|
|
|
11046
10998
|
/**
|
|
11047
10999
|
* FloatingToolbar Molecule Component
|
|
@@ -12673,8 +12625,9 @@ interface DashboardLayoutProps {
|
|
|
12673
12625
|
* - `sidebar`: Left sidebar nav + top header (classic dashboard)
|
|
12674
12626
|
* - `topnav`: Horizontal nav in header, no sidebar
|
|
12675
12627
|
* - `bottomnav`: Bottom tab bar, no sidebar
|
|
12676
|
-
* - `minimal`: No nav chrome, content only
|
|
12677
|
-
|
|
12628
|
+
* - `minimal`: No nav chrome, content only
|
|
12629
|
+
* - `drawer`: Sidebar nav behind a menu button at every width; content gets the full width */
|
|
12630
|
+
layoutMode?: "sidebar" | "topnav" | "bottomnav" | "minimal" | "drawer";
|
|
12678
12631
|
/** Page content rendered inside the main area */
|
|
12679
12632
|
children?: React__default.ReactNode;
|
|
12680
12633
|
}
|
|
@@ -12767,4 +12720,4 @@ interface GenericAppTemplateProps extends TemplateProps, Omit<React__default.Ari
|
|
|
12767
12720
|
}
|
|
12768
12721
|
declare const GenericAppTemplate: React__default.FC<GenericAppTemplateProps>;
|
|
12769
12722
|
|
|
12770
|
-
export { ALL_PRESETS, Accordion, type AccordionItem, type AccordionProps, Card as ActionCard, type CardProps as ActionCardProps, ActionPalette, type ActionPaletteProps, ActionTile, type ActionTileProps, ActivationBlock, type ActivationBlockProps, AgentActivityFeed, type AgentActivityFeedProps, type AgentActivityJumpTarget, AgentActivityRow, type AgentActivityRowProps, AgentChatFeed, type AgentChatFeedProps, type AgentConversation, AgentThinkingRow, Alert, type AlertProps, type AlertVariant, AlgoGraphCanvas, type AlgoGraphCanvasProps, type AlgoGraphEdge, type AlgoGraphEdgeState, type AlgoGraphLayout, type AlgoGraphNode, type AlgoGraphNodeBadge, type AlgoGraphNodeState, type AlgorithmBar, AlgorithmCanvas, type AlgorithmCanvasProps, type AlgorithmCell, type AlgorithmPointer, AnimatedCounter, type AnimatedCounterProps, AnimatedGraphic, type AnimatedGraphicProps, AnimatedReveal, type AnimatedRevealProps, Aside, type AsideProps, AssetPicker, type AssetPickerProps, AtlasImage, type AtlasImageAsset, type AtlasImageProps, AtlasPanel, type AtlasPanelProps, AuthLayout, type AuthLayoutProps, Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, BadgeVariant, BiologyCanvas, type BiologyCanvasProps, type BiologyEdge, type BiologyNode, Box, type BoxBg, type BoxMargin, type BoxPadding, type BoxProps, type BoxRounded, type BoxShadow, BranchingLogicBuilder, type BranchingLogicBuilderProps, type BranchingQuestion, type BranchingRule, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COMPACT_MEDIA_QUERY, CalendarGrid, type CalendarGridProps, type CameraMode, CameraState, Canvas, Canvas2D, type Canvas2DProps, type CanvasItemShape, type CanvasItemStatus, type CanvasMode, type CanvasProps, Card$1 as Card, type CardAction, CardBody, CardContent, CardFooter, CardHeader, type CardProps$1 as CardProps, CardTitle, Carousel, type CarouselProps, Center, type CenterProps, ChangeList, type ChangeListItem, type ChangeListProps, type ChangeType, Chart, type ChartDataPoint, ChartLegend, type ChartLegendItem, type ChartLegendProps, type ChartProps, type ChartSeries, type ChartType, ChatBar, type ChatBarProps, type ChatBarStatus, Checkbox, type CheckboxProps, type ChemistryArrow, type ChemistryAtom, type ChemistryBond, ChemistryCanvas, type ChemistryCanvasProps, ChoiceButton, type ChoiceButtonProps, Coachmark, type CoachmarkAnchor, type CoachmarkPlacement, type CoachmarkProps, type CodeAssistProvider, type CodeAssistRequest, type CodeAssistResult, CodeBlock, type CodeBlockProps, type CodeCompletion, type CodeCompletionProvider, type CodeCompletionResult, type CodeDiagnostic, type CodeLanguage, type CodeLanguageLoader, CodeRunnerPanel, type CodeRunnerPanelProps, type CodeSimulationOutput, type CodeSuggestion, type CodeViewerAction, type CodeViewerFile, type CodeViewerMode, CollapsibleSection, type CollapsibleSectionProps, CommandPalette, type CommandPaletteCommand, type CommandPaletteProps, type CommitKind, CommitRow, type CommitRowProps, type ConditionalContext, ConditionalWrapper, type ConditionalWrapperProps, ConfettiEffect, type ConfettiEffectProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, ConnectionBlock, type ConnectionBlockProps, Container, type ContainerProps, ContentRenderer, type ContentRendererProps, ControlButton, type ControlButtonProps, ControlGrid, type ControlGridButton, type ControlGridKind, type ControlGridProps, type CounterSize, CounterTemplate, type CounterTemplateProps, type CounterVariant, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, type DPadDirection, DashboardGrid, type DashboardGridCell, type DashboardGridProps, DashboardLayout, type DashboardLayoutProps, DataGrid, type DataGridField, type DataGridItemAction, type DataGridProps, DataList, type DataListField, type DataListItemAction, type DataListProps, DateRangePicker, type DateRangePickerPreset, type DateRangePickerProps, DateRangeSelector, type DateRangeSelectorOption, type DateRangeSelectorProps, DayCell, type DayCellProps, type DetailField, DetailPanel, type DetailPanelProps, type DetailSection, Dialog, type DialogProps, DialogueBubble, type DialogueBubbleProps, type DiffHunk, type DiffLine$1 as DiffLine, type DiffLineType, type DiffRevision, type DispatchCommandPaletteCommandDeps, type DisplayStateProps, Divider, type DividerOrientation, type DividerProps, DocBreadcrumb, type DocBreadcrumbItem, type DocBreadcrumbProps, DocPagination, type DocPaginationLink, type DocPaginationProps, DocSearch, type DocSearchProps, type DocSearchResult, DocSidebar, type DocSidebarItem, type DocSidebarProps, DocTOC, type DocTOCItem, type DocTOCProps, DockLayout, type DockLayoutContextValue, type DockLayoutProps, DocumentDetails, type DocumentDetailsField, type DocumentDetailsProps, DocumentPanel, type DocumentPanelAction, type DocumentPanelProps, type DocumentType, DocumentViewer, type DocumentViewerProps, StateMachineView as DomStateMachineVisualizer, type DotSize, type DotState, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, DrawerSlot, type DrawerSlotProps, ELEMENT_SELECTED_EVENT, EdgeDecoration, type EdgeDecorationProps, type EdgeSide, type EdgeVariant, EditorCheckbox, type EditorCheckboxProps, type EditorMode, EditorSelect, type EditorSelectProps, EditorSlider, type EditorSliderProps, EditorTextInput, type EditorTextInputProps, EditorToolbar, type EditorToolbarProps, EmojiPicker, type EmojiPickerPosition, type EmojiPickerProps, EmptyState, type EmptyStateProps, EntityDisplayEvents, ErrorBoundary, type ErrorBoundaryProps, ErrorState, type ErrorStateProps, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FacingDirection, FeatureCard, type FeatureCardProps, FeatureGrid, type FeatureGridProps, type FilterDefinition, FilterGroup, type FilterGroupProps, type FilterPayload, FilterPill, type FilterPillProps, type FilterPillSize, type FilterPillVariant, Flex, type FlexProps, FlipCard, type FlipCardProps, FlipContainer, type FlipContainerProps, type FloatingAction, FloatingActionButton, type FloatingActionButtonProps, FloatingToolbar, type FloatingToolbarItem, type FloatingToolbarPosition, type FloatingToolbarProps, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, type FormProps, FormSection$1 as FormSection, FormSectionHeader, type FormSectionHeaderProps, type FormSectionProps, FxOverlay, FxOverlayItem, type FxOverlayProps, GameAudioCue, type GameAudioCueProps, GameAudioToggle, type GameAudioToggleProps, GameHud, type GameHudElement, type GameHudProps, type GameHudStat, GameIcon, type GameIconProps, GameMenu, type GameMenuProps, GameShell, type GameShellProps, Gantt, type GanttLink, type GanttProps, GenericAppTemplate, type GenericAppTemplateProps, GeometricPattern, type GeometricPatternProps, GradientDivider, type GradientDividerProps, GraphCanvas, type GraphCanvasProps, type GraphEdge, type GraphNode, type GraphSimilarity, GraphView, type GraphViewEdge, type GraphViewNode, type GraphViewProps, type GraphicAnimation, Grid, GridPicker, type GridPickerCellSize, type GridPickerProps, type GridProps, HStack, type HStackProps, Header, type HeaderProps, HealthBar, type HealthBarProps, type HighlightType, IconButton, type IconButtonProps, IconInput, IconPicker, type IconPickerProps, Image, type ImageAspect, type ImageFit, type ImageProps, type ImageRounded, type ImportEntityDisplay, ImportPreviewTree, type ImportPreviewTreeProps, type ImportPreviewUnit, ImportProgress, type ImportProgressCounts, type ImportProgressProps, type ImportProgressStep, type ImportSkippedElement, type ImportSourceOption, ImportSourcePicker, type ImportSourcePickerProps, InfiniteScrollSentinel, type InfiniteScrollSentinelProps, Input, InputGroup, type InputGroupProps, type InputProps, IsometricUnit, JazariStateMachine, type JazariStateMachineProps, JsonTreeEditor, type JsonTreeEditorProps, Label, type LabelProps, type LawReference, LawReferenceTooltip, type LawReferenceTooltipProps, type Learning3DPoint, LearningCanvas, type LearningCanvasProps, type LearningPhysicsBody, type LearningPhysicsConstraint, type LearningPoint, LearningScene3D, type LearningScene3DProps, type LearningShape, type LearningShapeType, LessonSegment, type LessonUserProgress, Lightbox, type LightboxImage, type LightboxProps, type LikertOption, LikertScale, type LikertScaleProps, LineChart, type LineChartProps, LoadingState, type LoadingStateProps, type MapMarkerData, type MapRouteData, type MapRouteWaypoint, MapView, type MapViewProps, MarkdownContent, type MarkdownContentProps, MasterDetailLayout, type MasterDetailLayoutProps, MathCanvas, type MathCanvasProps, type MathCurve, type MathPoint, type MathVector, type MatrixColumn, MatrixQuestion, type MatrixQuestionProps, type MatrixRow, MediaGallery, type MediaGalleryProps, type MediaItem, Menu, type MenuItem, type MenuOption, type MenuProps, type MeshSphereOpts, Meter, type MeterAction, type MeterProps, type MeterThreshold, type MeterVariant, Modal, type ModalProps, type ModalSize, ModalSlot, type ModalSlotProps, type NavItem, Navigation, type NavigationItem, type NavigationProps, NodeSlotEditor, type NodeSlotEditorProps, NumberStepper, type NumberStepperProps, type NumberStepperSize, OnboardingSpotlight, type OnboardingSpotlightProps, type OptionConstraint, OptionConstraintGroup, type OptionConstraintGroupProps, type OptionConstraintOption, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, type OrbitalVisualizationProps, Overlay, type OverlayProps, type PageBreadcrumb, PageHeader, type PageHeaderProps, PageTransition, type PageTransitionProps, type PaginatePayload, Pagination, type PaginationProps, PatternTile, type PatternTileProps, type PatternVariant, PhysicsCanvas, type PhysicsCanvasProps, type PickerItem, type Platform, Popover, type PopoverProps, PositionedCanvas, type PositionedCanvasProps, Presence, type PresenceAnimation, type PresenceProps, type PresenceResult, type PrismLanguageGrammar, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarVariant, ProgressDots, type ProgressDotsProps, type Projection, PropertyInspector, type PropertyInspectorProps, PullToRefresh, type PullToRefreshProps, type QrScanResult, QrScanner, type QrScannerProps, QuizBlock, type QuizBlockProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, type RangeSliderSize, ReflectionBlock, type ReflectionBlockProps, type RelationOption, RelationSelect, type RelationSelectProps, RepeatableFormSection, type RepeatableFormSectionProps, type RepeatableItem, ReplyTree, type ReplyTreeProps, ResolvedFrame, type RevealAnimation, type RevealTrigger, RichTextEditor, type RichTextEditorProps, type RowFacts, type RuleDefinition, type RuleOption, RuntimeDebugger, type RuntimeDebuggerProps, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, type ScaledDiagramProps, ScoreDisplay, type ScoreDisplayProps, SearchInput, type SearchInputProps, type SearchPayload, Section, SectionHeader, type SectionHeaderProps, type SectionProps, SegmentRenderer, type SegmentRendererProps, Select, type SelectOption, type SelectOptionGroup, type SelectPayload, type SelectProps, SequenceBar, type SequenceBarProps, SidePanel, type SidePanelProps, type SidePlayer, Sidebar, type SidebarItem, type SidebarProps, SignaturePad, type SignaturePadProps, SimpleGrid, type SimpleGridProps, Skeleton, type SkeletonProps, SkeletonTree, SlotContent, SlotContentRenderer, type SlotItemData, SocialProof, type SocialProofItem, type SocialProofProps, type SortPayload, SortableList, type SortableListProps, Spacer, type SpacerProps, type SpacerSize, Sparkline, type SparklineColor, type SparklineProps, Spinner, type SpinnerProps, Split, SplitPane, type SplitPaneProps, type SplitProps, type SpotlightStep, SpriteFrameDims, SpriteSheetUrls, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, StarRating, type StarRatingPrecision, type StarRatingProps, type StarRatingSize, StatBadge, type StatBadgeProps, StatCard, type StatCardProps, StatDisplay, type StatDisplayProps, StateGraph, type StateGraphProps, type StateGraphTransition, StateJsonView, type StateJsonViewProps, StateMachineView, type StateMachineViewProps, StatusBar, type StatusBarProps, StatusDot, type StatusDotProps, type StatusDotSize, type StatusDotStatus, SubagentTracePanel, type SubagentTracePanelProps, SvgBranch, type SvgBranchProps, SvgConnection, type SvgConnectionProps, SvgFlow, type SvgFlowProps, SvgGrid, type SvgGridProps, SvgLobe, type SvgLobeProps, SvgMesh, type SvgMeshProps, SvgMorph, type SvgMorphProps, SvgNode, type SvgNodeProps, SvgPulse, type SvgPulseProps, SvgRing, type SvgRingProps, SvgShield, type SvgShieldProps, SvgStack, type SvgStackProps, type SwipeAction, SwipeableRow, type SwipeableRowProps, Switch, type SwitchProps, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, type TabDefinition, type TabItem, TabbedContainer, type TabbedContainerProps, TableView, type TableViewColumn, type TableViewProps, Tabs, type TabsProps, TagInput, type TagInputProps, type TeamUnitTraits, type TemplateProps, TerrainPalette, type TerrainPaletteProps, TextHighlight, type TextHighlightProps, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, type TileCoord, type TileLayout, TimeSlotCell, type TimeSlotCellProps, Timeline, type TimelineItem, type TimelineItemStatus, type TimelineProps, TimerDisplay, type TimerDisplayProps, Toast, type ToastProps, ToastSlot, type ToastSlotProps, type ToastVariant, Tooltip, type TooltipProps, TopNavItem, type TopNavItemData, type TopNavItemProps, type TraceDisclosureLevel, TraitFrame, type TraitFrameProps, TraitSlot, type TraitSlotProps, type TraitStateMachineDefinition, TraitStateViewer, type TraitStateViewerProps, type TraitTransition, type TrendDirection, TrendIndicator, type TrendIndicatorProps, type TrendIndicatorSize, TypewriterText, type TypewriterTextProps, Typography, type TypographyProps, type TypographyVariant, UISlotComponent, type UISlotComponentProps, UISlotRenderer, type UISlotRendererProps, UiError, UnitAnimationState, UploadDropZone, type UploadDropZoneProps, type UsePresenceOptions, VStack, type VStackProps, type Vec2, VersionDiff, type DiffLine as VersionDiffLine, type VersionDiffProps, ViolationAlert, type ViolationAlertProps, type ViolationRecord, VoteStack, type VoteStackProps, WizardContainer, type WizardContainerProps, WizardNavigation, type WizardNavigationProps, WizardProgress, type WizardProgressProps, type WizardProgressStep, type WizardStep, activityRowFacts, applyCompletion, applySuggestions, arrowBetween, billboardLabel, boardEntity, bool, createUnitAnimationState, cylinderBetween, dispatchCommandPaletteCommand, get3DClickPayload, getCurrentFrame, getTileDimensions, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, meshSphere, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, pendulum, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAnchorRect, useAtlasSliceDataUrl, useCamera, useCompactLayout, useDockLayout, useImageCache, usePresence, useUnitSpriteAtlas, vec2 };
|
|
12723
|
+
export { ALL_PRESETS, Accordion, type AccordionItem, type AccordionProps, Card as ActionCard, type CardProps as ActionCardProps, ActionPalette, type ActionPaletteProps, ActionTile, type ActionTileProps, ActivationBlock, type ActivationBlockProps, AgentActivityFeed, type AgentActivityFeedProps, type AgentActivityJumpTarget, AgentActivityRow, type AgentActivityRowProps, AgentChatFeed, type AgentChatFeedProps, type AgentConversation, AgentThinkingRow, Alert, type AlertProps, type AlertVariant, AlgoGraphCanvas, type AlgoGraphCanvasProps, type AlgoGraphEdge, type AlgoGraphEdgeState, type AlgoGraphLayout, type AlgoGraphNode, type AlgoGraphNodeBadge, type AlgoGraphNodeState, type AlgorithmBar, AlgorithmCanvas, type AlgorithmCanvasProps, type AlgorithmCell, type AlgorithmPointer, AnimatedCounter, type AnimatedCounterProps, AnimatedGraphic, type AnimatedGraphicProps, AnimatedReveal, type AnimatedRevealProps, Aside, type AsideProps, AssetPicker, type AssetPickerProps, AtlasImage, type AtlasImageAsset, type AtlasImageProps, AtlasPanel, type AtlasPanelProps, AuthLayout, type AuthLayoutProps, Avatar, type AvatarProps, type AvatarSize, type AvatarStatus, BadgeVariant, BiologyCanvas, type BiologyCanvasProps, type BiologyEdge, type BiologyNode, Box, type BoxBg, type BoxMargin, type BoxPadding, type BoxProps, type BoxRounded, type BoxShadow, BranchingLogicBuilder, type BranchingLogicBuilderProps, type BranchingQuestion, type BranchingRule, Breadcrumb, type BreadcrumbItem, type BreadcrumbProps, Button, ButtonGroup, type ButtonGroupProps, type ButtonProps, COMPACT_MEDIA_QUERY, CalendarGrid, type CalendarGridProps, type CameraMode, CameraState, Canvas, Canvas2D, type Canvas2DProps, type CanvasItemShape, type CanvasItemStatus, type CanvasMode, type CanvasProps, Card$1 as Card, type CardAction, CardBody, CardContent, CardFooter, CardHeader, type CardProps$1 as CardProps, CardTitle, Carousel, type CarouselProps, Center, type CenterProps, ChangeList, type ChangeListItem, type ChangeListProps, type ChangeType, Chart, type ChartDataPoint, ChartLegend, type ChartLegendItem, type ChartLegendProps, type ChartProps, type ChartSeries, type ChartType, ChatBar, type ChatBarProps, type ChatBarStatus, Checkbox, type CheckboxProps, type ChemistryArrow, type ChemistryAtom, type ChemistryBond, ChemistryCanvas, type ChemistryCanvasProps, ChoiceButton, type ChoiceButtonProps, Coachmark, type CoachmarkAnchor, type CoachmarkPlacement, type CoachmarkProps, type CodeAssistProvider, type CodeAssistRequest, type CodeAssistResult, CodeBlock, type CodeBlockProps, type CodeCompletion, type CodeCompletionProvider, type CodeCompletionResult, type CodeDiagnostic, type CodeLanguage, type CodeLanguageLoader, type CodeSuggestion, type CodeViewerAction, type CodeViewerFile, type CodeViewerMode, CollapsibleSection, type CollapsibleSectionProps, CommandPalette, type CommandPaletteCommand, type CommandPaletteProps, type CommitKind, CommitRow, type CommitRowProps, type ConditionalContext, ConditionalWrapper, type ConditionalWrapperProps, ConfettiEffect, type ConfettiEffectProps, ConfirmDialog, type ConfirmDialogProps, type ConfirmDialogVariant, ConnectionBlock, type ConnectionBlockProps, Container, type ContainerProps, ContentRenderer, type ContentRendererProps, ControlButton, type ControlButtonProps, ControlGrid, type ControlGridButton, type ControlGridKind, type ControlGridProps, type CounterSize, CounterTemplate, type CounterTemplateProps, type CounterVariant, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, type DPadDirection, DashboardGrid, type DashboardGridCell, type DashboardGridProps, DashboardLayout, type DashboardLayoutProps, DataGrid, type DataGridField, type DataGridItemAction, type DataGridProps, DataList, type DataListField, type DataListItemAction, type DataListProps, DateRangePicker, type DateRangePickerPreset, type DateRangePickerProps, DateRangeSelector, type DateRangeSelectorOption, type DateRangeSelectorProps, DayCell, type DayCellProps, type DetailField, DetailPanel, type DetailPanelProps, type DetailSection, Dialog, type DialogProps, DialogueBubble, type DialogueBubbleProps, type DiffHunk, type DiffLine$1 as DiffLine, type DiffLineType, type DiffRevision, type DispatchCommandPaletteCommandDeps, type DisplayStateProps, Divider, type DividerOrientation, type DividerProps, DocBreadcrumb, type DocBreadcrumbItem, type DocBreadcrumbProps, DocPagination, type DocPaginationLink, type DocPaginationProps, DocSearch, type DocSearchProps, type DocSearchResult, DocSidebar, type DocSidebarItem, type DocSidebarProps, DocTOC, type DocTOCItem, type DocTOCProps, DockLayout, type DockLayoutContextValue, type DockLayoutProps, DocumentDetails, type DocumentDetailsField, type DocumentDetailsProps, DocumentPanel, type DocumentPanelAction, type DocumentPanelProps, type DocumentType, DocumentViewer, type DocumentViewerProps, StateMachineView as DomStateMachineVisualizer, type DotSize, type DotState, Drawer, type DrawerPosition, type DrawerProps, type DrawerSize, DrawerSlot, type DrawerSlotProps, ELEMENT_SELECTED_EVENT, EdgeDecoration, type EdgeDecorationProps, type EdgeSide, type EdgeVariant, EditorCheckbox, type EditorCheckboxProps, type EditorMode, EditorSelect, type EditorSelectProps, EditorSlider, type EditorSliderProps, EditorTextInput, type EditorTextInputProps, EditorToolbar, type EditorToolbarProps, EmojiPicker, type EmojiPickerPosition, type EmojiPickerProps, EmptyState, type EmptyStateProps, EntityDisplayEvents, ErrorBoundary, type ErrorBoundaryProps, ErrorState, type ErrorStateProps, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FacingDirection, FeatureCard, type FeatureCardProps, FeatureGrid, type FeatureGridProps, type FilterDefinition, FilterGroup, type FilterGroupProps, type FilterPayload, FilterPill, type FilterPillProps, type FilterPillSize, type FilterPillVariant, Flex, type FlexProps, FlipCard, type FlipCardProps, FlipContainer, type FlipContainerProps, type FloatingAction, FloatingActionButton, type FloatingActionButtonProps, FloatingToolbar, type FloatingToolbarItem, type FloatingToolbarPosition, type FloatingToolbarProps, Form, FormActions, type FormActionsProps, FormField, type FormFieldProps, FormLayout, type FormLayoutProps, type FormProps, FormSection$1 as FormSection, FormSectionHeader, type FormSectionHeaderProps, type FormSectionProps, FxOverlay, FxOverlayItem, type FxOverlayProps, GameAudioCue, type GameAudioCueProps, GameAudioToggle, type GameAudioToggleProps, GameHud, type GameHudElement, type GameHudProps, type GameHudStat, GameIcon, type GameIconProps, GameMenu, type GameMenuProps, GameShell, type GameShellProps, Gantt, type GanttLink, type GanttProps, GenericAppTemplate, type GenericAppTemplateProps, GeometricPattern, type GeometricPatternProps, GradientDivider, type GradientDividerProps, GraphCanvas, type GraphCanvasProps, type GraphEdge, type GraphNode, type GraphSimilarity, GraphView, type GraphViewEdge, type GraphViewNode, type GraphViewProps, type GraphicAnimation, Grid, GridPicker, type GridPickerCellSize, type GridPickerProps, type GridProps, HStack, type HStackProps, Header, type HeaderProps, HealthBar, type HealthBarProps, type HighlightType, IconButton, type IconButtonProps, IconInput, IconPicker, type IconPickerProps, Image, type ImageAspect, type ImageFit, type ImageProps, type ImageRounded, type ImportEntityDisplay, ImportPreviewTree, type ImportPreviewTreeProps, type ImportPreviewUnit, ImportProgress, type ImportProgressCounts, type ImportProgressProps, type ImportProgressStep, type ImportSkippedElement, type ImportSourceOption, ImportSourcePicker, type ImportSourcePickerProps, InfiniteScrollSentinel, type InfiniteScrollSentinelProps, Input, InputGroup, type InputGroupProps, type InputProps, IsometricUnit, JazariStateMachine, type JazariStateMachineProps, JsonTreeEditor, type JsonTreeEditorProps, Label, type LabelProps, type LawReference, LawReferenceTooltip, type LawReferenceTooltipProps, type Learning3DPoint, LearningCanvas, type LearningCanvasProps, type LearningPhysicsBody, type LearningPhysicsConstraint, type LearningPoint, LearningScene3D, type LearningScene3DProps, type LearningShape, type LearningShapeType, LessonSegment, Lightbox, type LightboxImage, type LightboxProps, type LikertOption, LikertScale, type LikertScaleProps, LineChart, type LineChartProps, LoadingState, type LoadingStateProps, type MapMarkerData, type MapRouteData, type MapRouteWaypoint, MapView, type MapViewProps, MarkdownContent, type MarkdownContentProps, MasterDetailLayout, type MasterDetailLayoutProps, MathCanvas, type MathCanvasProps, type MathCurve, type MathPoint, type MathVector, type MatrixColumn, MatrixQuestion, type MatrixQuestionProps, type MatrixRow, MediaGallery, type MediaGalleryProps, type MediaItem, Menu, type MenuItem, type MenuOption, type MenuProps, type MeshSphereOpts, Meter, type MeterAction, type MeterProps, type MeterThreshold, type MeterVariant, type MixedSegment, Modal, type ModalProps, type ModalSize, ModalSlot, type ModalSlotProps, type NavItem, Navigation, type NavigationItem, type NavigationProps, NodeSlotEditor, type NodeSlotEditorProps, NumberStepper, type NumberStepperProps, type NumberStepperSize, OnboardingSpotlight, type OnboardingSpotlightProps, type OptionConstraint, OptionConstraintGroup, type OptionConstraintGroupProps, type OptionConstraintOption, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, type OrbitalVisualizationProps, Overlay, type OverlayProps, type PageBreadcrumb, PageHeader, type PageHeaderProps, PageTransition, type PageTransitionProps, type PaginatePayload, Pagination, type PaginationProps, PatternTile, type PatternTileProps, type PatternVariant, PhysicsCanvas, type PhysicsCanvasProps, type PickerItem, type Platform, Popover, type PopoverProps, PositionedCanvas, type PositionedCanvasProps, Presence, type PresenceAnimation, type PresenceProps, type PresenceResult, type PrismLanguageGrammar, ProgressBar, type ProgressBarColor, type ProgressBarProps, type ProgressBarVariant, ProgressDots, type ProgressDotsProps, type Projection, PropertyInspector, type PropertyInspectorProps, PullToRefresh, type PullToRefreshProps, type QrScanResult, QrScanner, type QrScannerProps, QuizBlock, type QuizBlockProps, Radio, type RadioProps, RangeSlider, type RangeSliderProps, type RangeSliderSize, ReflectionBlock, type ReflectionBlockProps, type RelationOption, RelationSelect, type RelationSelectProps, RepeatableFormSection, type RepeatableFormSectionProps, type RepeatableItem, ReplyTree, type ReplyTreeProps, ResolvedFrame, type RevealAnimation, type RevealTrigger, RichTextEditor, type RichTextEditorProps, type RowFacts, type RuleDefinition, type RuleOption, RuntimeDebugger, type RuntimeDebuggerProps, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, type ScaledDiagramProps, ScoreDisplay, type ScoreDisplayProps, SearchInput, type SearchInputProps, type SearchPayload, Section, SectionHeader, type SectionHeaderProps, type SectionProps, Select, type SelectOption, type SelectOptionGroup, type SelectPayload, type SelectProps, SequenceBar, type SequenceBarProps, SidePanel, type SidePanelProps, type SidePlayer, Sidebar, type SidebarItem, type SidebarProps, SignaturePad, type SignaturePadProps, SimpleGrid, type SimpleGridProps, Skeleton, type SkeletonProps, SkeletonTree, SlotContent, SlotContentRenderer, type SlotItemData, SocialProof, type SocialProofItem, type SocialProofProps, type SortPayload, SortableList, type SortableListProps, Spacer, type SpacerProps, type SpacerSize, Sparkline, type SparklineColor, type SparklineProps, Spinner, type SpinnerProps, Split, SplitPane, type SplitPaneProps, type SplitProps, type SpotlightStep, SpriteFrameDims, SpriteSheetUrls, Stack, type StackAlign, type StackDirection, type StackGap, type StackJustify, type StackProps, StarRating, type StarRatingPrecision, type StarRatingProps, type StarRatingSize, StatBadge, type StatBadgeProps, StatCard, type StatCardProps, StatDisplay, type StatDisplayProps, StateGraph, type StateGraphProps, type StateGraphTransition, StateJsonView, type StateJsonViewProps, StateMachineView, type StateMachineViewProps, StatusBar, type StatusBarProps, StatusDot, type StatusDotProps, type StatusDotSize, type StatusDotStatus, SubagentTracePanel, type SubagentTracePanelProps, SvgBranch, type SvgBranchProps, SvgConnection, type SvgConnectionProps, SvgFlow, type SvgFlowProps, SvgGrid, type SvgGridProps, SvgLobe, type SvgLobeProps, SvgMesh, type SvgMeshProps, SvgMorph, type SvgMorphProps, SvgNode, type SvgNodeProps, SvgPulse, type SvgPulseProps, SvgRing, type SvgRingProps, SvgShield, type SvgShieldProps, SvgStack, type SvgStackProps, type SwipeAction, SwipeableRow, type SwipeableRowProps, Switch, type SwitchProps, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, type TabDefinition, type TabItem, TabbedContainer, type TabbedContainerProps, TableView, type TableViewColumn, type TableViewProps, Tabs, type TabsProps, TagInput, type TagInputProps, type TeamUnitTraits, type TemplateProps, TerrainPalette, type TerrainPaletteProps, TextHighlight, type TextHighlightProps, Textarea, type TextareaProps, ThemeToggle, type ThemeToggleProps, type TileCoord, type TileLayout, TimeSlotCell, type TimeSlotCellProps, Timeline, type TimelineItem, type TimelineItemStatus, type TimelineProps, TimerDisplay, type TimerDisplayProps, Toast, type ToastProps, ToastSlot, type ToastSlotProps, type ToastVariant, Tooltip, type TooltipProps, TopNavItem, type TopNavItemData, type TopNavItemProps, type TraceDisclosureLevel, TraitFrame, type TraitFrameProps, TraitSlot, type TraitSlotProps, type TraitStateMachineDefinition, TraitStateViewer, type TraitStateViewerProps, type TraitTransition, type TrendDirection, TrendIndicator, type TrendIndicatorProps, type TrendIndicatorSize, TypewriterText, type TypewriterTextProps, Typography, type TypographyProps, type TypographyVariant, UISlotComponent, type UISlotComponentProps, UISlotRenderer, type UISlotRendererProps, UiError, UnitAnimationState, UploadDropZone, type UploadDropZoneProps, type UsePresenceOptions, VStack, type VStackProps, type Vec2, VersionDiff, type DiffLine as VersionDiffLine, type VersionDiffProps, ViolationAlert, type ViolationAlertProps, type ViolationRecord, VoteStack, type VoteStackProps, WizardContainer, type WizardContainerProps, WizardNavigation, type WizardNavigationProps, WizardProgress, type WizardProgressProps, type WizardProgressStep, type WizardStep, activityRowFacts, applyCompletion, applySuggestions, arrowBetween, billboardLabel, boardEntity, bool, createUnitAnimationState, cylinderBetween, dispatchCommandPaletteCommand, get3DClickPayload, getCurrentFrame, getTileDimensions, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, meshSphere, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, parseMarkdownWithCodeBlocks, pendulum, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAnchorRect, useAtlasSliceDataUrl, useCamera, useCompactLayout, useDockLayout, useImageCache, usePresence, useUnitSpriteAtlas, vec2 };
|
package/dist/components/index.js
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
export { assertUniqueSlotsPerHost } from '../chunk-O2EIWXWE.js';
|
|
2
|
-
|
|
3
|
-
export {
|
|
4
|
-
export { keyChord, mergeCaptureTables, useAgentChat, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useKeyboardRouter, useNavStack, usePreview, useRenderInterpolation, useTraitListens, useUIEvents, useValidation } from '../chunk-2LFBQ4IS.js';
|
|
5
|
-
export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-QGH4NAQO.js';
|
|
2
|
+
export { keyChord, mergeCaptureTables, useAgentChat, useCompile, useConnectGitHub, useDeepAgentGeneration, useDisconnectGitHub, useExtensions, useFileEditor, useFileSystem, useGitHubBranches, useGitHubRepo, useGitHubRepos, useGitHubStatus, useKeyboardRouter, useNavStack, usePreview, useRenderInterpolation, useTraitListens, useUIEvents, useValidation } from '../chunk-MZIDOJMD.js';
|
|
3
|
+
export { I18nProvider, SharedEntityStoreContext, createSharedEntityStore, createTranslate, runTickFrame, useFormatContext, useRenderI18n, useSharedEntitySnapshot, useSharedEntityStore, useSharedEntityStoreContext, useTranslate } from '../chunk-N7JIG57B.js';
|
|
6
4
|
export { DEFAULT_SLOTS, useUISlotManager } from '../chunk-VHTJRS2N.js';
|
|
7
|
-
import
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
export {
|
|
5
|
+
import '../chunk-YYYHH5BA.js';
|
|
6
|
+
import { GridPicker, Icon, Button, FormSection, Select, JsonTreeEditor, ThemedPortal, Switch, Input } from '../chunk-I2ZNE5TD.js';
|
|
7
|
+
export { ALL_PRESETS, Accordion, Card2 as ActionCard, ActionPalette, ActionTile, ActivationBlock, AgentActivityFeed, AgentActivityRow, AgentChatFeed, AgentThinkingRow, Alert, AlgoGraphCanvas, AlgorithmCanvas, AnimatedCounter, AnimatedGraphic, AnimatedReveal, Aside, AtlasImage, AtlasPanel, AuthLayout, Avatar, Badge, BehaviorView, BiologyCanvas, BloomQuizBlock, BranchingLogicBuilder, Breadcrumb, Button, ButtonGroup, COMPACT_MEDIA_QUERY, CalendarGrid, Canvas, Canvas2D, Card, CardBody, CardContent, CardFooter, CardHeader, CardTitle, Carousel, Center, ChangeList, Chart, ChartLegend, ChatBar, Checkbox, ChemistryCanvas, ChoiceButton, CodeBlock, CodeRunnerPanel, CollapsibleSection, CommandPalette, CommitRow, ConditionalWrapper, ConfettiEffect, ConfirmDialog, ConnectionBlock, Container, ContentRenderer, ControlButton, ControlGrid, CounterTemplate, DEFAULT_LIKERT_OPTION_KEYS, DEFAULT_MATRIX_COLUMN_KEYS, DIAMOND_TOP_Y, DashboardGrid, DashboardLayout, DataGrid, DataList, DateRangePicker, DateRangeSelector, DayCell, DetailPanel, Dialog, DialogueBubble, Divider, DocBreadcrumb, DocPagination, DocSearch, DocSidebar, DocTOC, DockLayout, DocumentDetails, DocumentPanel, DocumentViewer, StateMachineView as DomStateMachineVisualizer, Drawer, DrawerSlot, ELEMENT_SELECTED_EVENT, EdgeDecoration, EditorCheckbox, EditorSelect, EditorSlider, EditorTextInput, EditorToolbar, EmojiPicker, EmptyState, ErrorBoundary, ErrorState, FEATURE_COLORS, FEATURE_TYPES, FLOOR_HEIGHT, FeatureCard, FeatureGrid, FileTree, FilterGroup, FilterPill, Flex, FlipCard, FlipContainer, FloatingActionButton, FloatingToolbar, Form, FormActions, FormField, FormLayout, FormSection, FormSectionHeader, FxOverlay, GameAudioContext, GameAudioCue, GameAudioProvider, GameAudioToggle, GameHud, GameIcon, GameMenu, GameShell, Gantt, GenericAppTemplate, GeometricPattern, GradientDivider, GraphCanvas, GraphView, Grid, GridPicker, Header, HealthBar, Icon, IconButton, Image, ImportPreviewTree, ImportProgress, ImportSourcePicker, InfiniteScrollSentinel, Input, InputGroup, JazariStateMachine, JsonTreeEditor, Label, LawReferenceTooltip, LearningCanvas, LearningScene3D, Lightbox, LikertScale, LineChart, LoadingState, MapView, MarkdownContent, MasterDetailLayout, MathCanvas, MatrixQuestion, MediaGallery, Menu, Meter, Modal, ModalSlot, ModuleCard, Navigation, NumberStepper, OptionConstraintGroup, StateMachineView as OrbitalStateMachineView, OrbitalVisualization, Overlay, PageHeader, PageTransition, Pagination, PatternTile, PhysicsCanvas, Popover, PositionedCanvas, ProgressBar, ProgressDots, PullToRefresh, QrScanner, QuizBlock, Radio, RangeSlider, ReflectionBlock, RelationSelect, RepeatableFormSection, ReplyTree, RichTextEditor, RuntimeDebugger, SHEET_COLUMNS, SPRITE_SHEET_LAYOUT, ScaledDiagram, ScoreDisplay, SearchInput, Section, SectionHeader, SegmentRenderer, Select, SequenceBar, SidePanel, Sidebar, SignaturePad, SimpleGrid, Skeleton, SkeletonTree, SlotContentRenderer, SocialProof, SortableList, Spacer, Sparkline, Spinner, Split, SplitPane, StarRating, StatBadge, StatCard, StatDisplay, StateGraph, StateJsonView, StateMachineView, StatusBar, StatusDot, SubagentTracePanel, SvgBranch, SvgConnection, SvgFlow, SvgGrid, SvgLobe, SvgMesh, SvgMorph, SvgNode, SvgPulse, SvgRing, SvgShield, SvgStack, SwipeableRow, Switch, TERRAIN_COLORS, TILE_HEIGHT, TILE_WIDTH, TabbedContainer, TableView, Tabs, TagInput, TerrainPalette, TextHighlight, Textarea, ThemeToggle, TimeSlotCell, Timeline, TimerDisplay, Toast, ToastSlot, Tooltip, TopNavItem, TraitFrame, TraitSlot, TraitStateViewer, TrendIndicator, TypewriterText, UISlotComponent, UISlotRenderer, UploadDropZone, VersionDiff, ViolationAlert, VoteStack, WizardContainer, WizardNavigation, WizardProgress, activityRowFacts, applyCompletion, applySuggestions, arrowBetween, billboardLabel, boardEntity, bool, calculateAttackTargets, calculateValidMoves, createInitialGameState, createUnitAnimationState, cylinderBetween, dispatchCommandPaletteCommand, get3DClickPayload, getCurrentFrame, getTileDimensions, groupIntoConversations, inferDirection, isoToScreen, makeAsset, makeAssetMap, meshSphere, num, objAvailableActions, objAvailableEvents, objCurrentState, objIcon, objId, objMaxRules, objName, objRules, objStates, parseEditFocus, pendulum, projectileMotion, registerCodeLanguageLoader, renderPatternValue, resolveFrame, resolveSheetDirection, rows, sanitizeRichHtml, screenToIso, springOscillator, str, tickAnimationState, toCodeLanguage, transitionAnimation, unitHealth, unitPosition, unitTeam, useAtlasSliceDataUrl, useCamera, useCompactLayout, useDockLayout, useGameAudio, useGameAudioContext, useImageCache, useUnitSpriteAtlas, vec2 } from '../chunk-I2ZNE5TD.js';
|
|
8
|
+
import { VStack, HStack, Box } from '../chunk-HA7CJWQX.js';
|
|
9
|
+
export { Box, HStack, Stack, VStack } from '../chunk-HA7CJWQX.js';
|
|
10
|
+
import { Typography } from '../chunk-4ZGXIW3B.js';
|
|
11
|
+
export { Typography } from '../chunk-4ZGXIW3B.js';
|
|
12
|
+
export { ALMADAR_DND_MIME, parseQueryBinding, useAuthContext, useCanvasGestures, useDragReorder, useDraggable, useDropZone, useInfiniteScroll, useLongPress, useMediaQuery, usePrefersReducedMotion, usePullToRefresh, useQuerySingleton, useSwipeGesture } from '../chunk-I5QOYW2Z.js';
|
|
14
13
|
export { useTapReveal } from '../chunk-XJTHMW4G.js';
|
|
15
|
-
export { useEmitEvent, useEventBus, useEventListener } from '../chunk-
|
|
16
|
-
export { parseLessonSegments } from '../chunk-
|
|
17
|
-
export { Presence, parseMarkdownWithCodeBlocks, usePresence } from '../chunk-KQXXO42S.js';
|
|
14
|
+
export { useEmitEvent, useEventBus, useEventListener } from '../chunk-CHNC4UYE.js';
|
|
15
|
+
export { Presence, parseLessonSegments, parseMarkdownWithCodeBlocks, usePresence } from '../chunk-KJGVLXEN.js';
|
|
18
16
|
import '../chunk-Q47ZN2DW.js';
|
|
19
17
|
import { cn, domPassthrough } from '../chunk-64WACXM7.js';
|
|
20
18
|
export { cn } from '../chunk-64WACXM7.js';
|
|
21
|
-
import '../chunk-
|
|
22
|
-
import '../chunk-
|
|
19
|
+
import '../chunk-723MJUU3.js';
|
|
20
|
+
import '../chunk-LZRW6GXG.js';
|
|
23
21
|
import { getKnownPatterns, getPatternDefinition } from '../chunk-PQKU62LK.js';
|
|
24
22
|
import '../chunk-PEST66PN.js';
|
|
25
23
|
import '../chunk-QPXIAUJD.js';
|
package/dist/context/index.cjs
CHANGED
|
@@ -582,6 +582,7 @@ var BUILT_IN_THEMES = [
|
|
|
582
582
|
{ name: "gothic", displayName: "Gothic Manuscript", hasLightMode: true, hasDarkMode: true },
|
|
583
583
|
{ name: "ink-wash", displayName: "Ink Wash", hasLightMode: true, hasDarkMode: true },
|
|
584
584
|
{ name: "kawaii", displayName: "Kawaii", hasLightMode: true, hasDarkMode: true },
|
|
585
|
+
{ name: "kflow", displayName: "KFlow", hasLightMode: true, hasDarkMode: true },
|
|
585
586
|
{ name: "kiosk", displayName: "Kiosk", hasLightMode: true, hasDarkMode: true },
|
|
586
587
|
{ name: "linear-clean", displayName: "Linear Clean", hasLightMode: true, hasDarkMode: true },
|
|
587
588
|
{ name: "luxury", displayName: "Haute Luxe", hasLightMode: true, hasDarkMode: true },
|
|
@@ -621,6 +622,24 @@ var ThemeScopeContext = React.createContext({});
|
|
|
621
622
|
function useThemeScope() {
|
|
622
623
|
return React.useContext(ThemeScopeContext);
|
|
623
624
|
}
|
|
625
|
+
function registryKeyMode(key, themes) {
|
|
626
|
+
return registryKeyTheme(key, themes)?.mode;
|
|
627
|
+
}
|
|
628
|
+
function registryKeyTheme(key, themes) {
|
|
629
|
+
for (const t of themes) {
|
|
630
|
+
if (key === `${t.name}-light` && themeHasMode(t, "light")) return { theme: t, mode: "light" };
|
|
631
|
+
if (key === `${t.name}-dark` && themeHasMode(t, "dark")) return { theme: t, mode: "dark" };
|
|
632
|
+
}
|
|
633
|
+
return void 0;
|
|
634
|
+
}
|
|
635
|
+
function themeHasMode(theme, mode) {
|
|
636
|
+
return mode === "light" ? theme.hasLightMode !== false : theme.hasDarkMode !== false;
|
|
637
|
+
}
|
|
638
|
+
function useScopedMode() {
|
|
639
|
+
const scope = useThemeScope();
|
|
640
|
+
const { resolvedMode } = useTheme();
|
|
641
|
+
return scope.mode ?? resolvedMode;
|
|
642
|
+
}
|
|
624
643
|
var THEME_STORAGE_KEY = "theme";
|
|
625
644
|
var MODE_STORAGE_KEY = "theme-mode";
|
|
626
645
|
function getSystemMode() {
|
|
@@ -1171,9 +1190,13 @@ exports.ThemeProvider = ThemeProvider;
|
|
|
1171
1190
|
exports.ThemeScopeContext = ThemeScopeContext;
|
|
1172
1191
|
exports.UISlotContext = UISlotContext;
|
|
1173
1192
|
exports.UISlotProvider = UISlotProvider;
|
|
1193
|
+
exports.registryKeyMode = registryKeyMode;
|
|
1194
|
+
exports.registryKeyTheme = registryKeyTheme;
|
|
1174
1195
|
exports.resolveThemeForRuntime = resolveThemeForRuntime;
|
|
1196
|
+
exports.themeHasMode = themeHasMode;
|
|
1175
1197
|
exports.themeTokensToCssVars = themeTokensToCssVars;
|
|
1176
1198
|
exports.useDesignTheme = useDesignTheme;
|
|
1199
|
+
exports.useScopedMode = useScopedMode;
|
|
1177
1200
|
exports.useSlotContent = useSlotContent;
|
|
1178
1201
|
exports.useSlotHasContent = useSlotHasContent;
|
|
1179
1202
|
exports.useTheme = useTheme;
|
package/dist/context/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { U as UISlotContext, a as UISlotProvider, u as useSlotContent, b as useSlotHasContent, c as useUISlots } from '../UISlotContext-CS487Uoc.js';
|
|
2
|
-
import { U as UIThemeDefinition } from '../ArbitraryClassCompiler-
|
|
3
|
-
export { A as ARBITRARY_CLASS_STYLE_ID, a as ArbitraryClassCompiler, b as ArbitraryClassCompilerProvider, c as ArbitraryClassCompilerProviderProps, C as ColorMode, d as CurrentPagePathContext, e as CurrentPagePathProvider, f as CurrentPagePathProviderProps, D as DesignTheme, g as DesignThemeProvider, O as OrbitalThemeProvider, h as OrbitalThemeProviderProps, R as ResolvedMode, T as ThemeContext, i as ThemeProvider, j as ThemeProviderProps, k as ThemeScope, l as ThemeScopeContext, u as useArbitraryClassStyles,
|
|
2
|
+
import { U as UIThemeDefinition } from '../ArbitraryClassCompiler-tChQ3nVq.js';
|
|
3
|
+
export { A as ARBITRARY_CLASS_STYLE_ID, a as ArbitraryClassCompiler, b as ArbitraryClassCompilerProvider, c as ArbitraryClassCompilerProviderProps, C as ColorMode, d as CurrentPagePathContext, e as CurrentPagePathProvider, f as CurrentPagePathProviderProps, D as DesignTheme, g as DesignThemeProvider, O as OrbitalThemeProvider, h as OrbitalThemeProviderProps, R as ResolvedMode, T as ThemeContext, i as ThemeProvider, j as ThemeProviderProps, k as ThemeScope, l as ThemeScopeContext, r as registryKeyMode, m as registryKeyTheme, t as themeHasMode, u as useArbitraryClassStyles, n as useCurrentPagePath, o as useDesignTheme, p as useScopedMode, q as useTheme, s as useThemeScope } from '../ArbitraryClassCompiler-tChQ3nVq.js';
|
|
4
4
|
export { T as ThemeMode, r as resolveThemeForRuntime, t as themeTokensToCssVars } from '../themeTokens-D6MFwKrC.js';
|
|
5
5
|
export { U as UserContext, a as UserContextValue, b as UserData, c as UserProvider, d as UserProviderProps, u as useHasPermission, e as useHasRole, f as useUser, g as useUserForEvaluation } from '../UserContext-D566nfWA.js';
|
|
6
6
|
export { ANONYMOUS_USER, UISlot } from '@almadar/core';
|
package/dist/context/index.js
CHANGED
|
@@ -60,6 +60,7 @@ var BUILT_IN_THEMES = [
|
|
|
60
60
|
{ name: "gothic", displayName: "Gothic Manuscript", hasLightMode: true, hasDarkMode: true },
|
|
61
61
|
{ name: "ink-wash", displayName: "Ink Wash", hasLightMode: true, hasDarkMode: true },
|
|
62
62
|
{ name: "kawaii", displayName: "Kawaii", hasLightMode: true, hasDarkMode: true },
|
|
63
|
+
{ name: "kflow", displayName: "KFlow", hasLightMode: true, hasDarkMode: true },
|
|
63
64
|
{ name: "kiosk", displayName: "Kiosk", hasLightMode: true, hasDarkMode: true },
|
|
64
65
|
{ name: "linear-clean", displayName: "Linear Clean", hasLightMode: true, hasDarkMode: true },
|
|
65
66
|
{ name: "luxury", displayName: "Haute Luxe", hasLightMode: true, hasDarkMode: true },
|
|
@@ -99,6 +100,24 @@ var ThemeScopeContext = createContext({});
|
|
|
99
100
|
function useThemeScope() {
|
|
100
101
|
return useContext(ThemeScopeContext);
|
|
101
102
|
}
|
|
103
|
+
function registryKeyMode(key, themes) {
|
|
104
|
+
return registryKeyTheme(key, themes)?.mode;
|
|
105
|
+
}
|
|
106
|
+
function registryKeyTheme(key, themes) {
|
|
107
|
+
for (const t of themes) {
|
|
108
|
+
if (key === `${t.name}-light` && themeHasMode(t, "light")) return { theme: t, mode: "light" };
|
|
109
|
+
if (key === `${t.name}-dark` && themeHasMode(t, "dark")) return { theme: t, mode: "dark" };
|
|
110
|
+
}
|
|
111
|
+
return void 0;
|
|
112
|
+
}
|
|
113
|
+
function themeHasMode(theme, mode) {
|
|
114
|
+
return mode === "light" ? theme.hasLightMode !== false : theme.hasDarkMode !== false;
|
|
115
|
+
}
|
|
116
|
+
function useScopedMode() {
|
|
117
|
+
const scope = useThemeScope();
|
|
118
|
+
const { resolvedMode } = useTheme();
|
|
119
|
+
return scope.mode ?? resolvedMode;
|
|
120
|
+
}
|
|
102
121
|
var THEME_STORAGE_KEY = "theme";
|
|
103
122
|
var MODE_STORAGE_KEY = "theme-mode";
|
|
104
123
|
function getSystemMode() {
|
|
@@ -262,4 +281,4 @@ function useDesignTheme() {
|
|
|
262
281
|
};
|
|
263
282
|
}
|
|
264
283
|
|
|
265
|
-
export { BUILT_IN_THEMES, DesignThemeProvider, ThemeContext_default as ThemeContext, ThemeProvider, ThemeScopeContext, UISlotContext, UISlotProvider, useDesignTheme, useSlotContent, useSlotHasContent, useTheme, useThemeScope, useUISlots };
|
|
284
|
+
export { BUILT_IN_THEMES, DesignThemeProvider, ThemeContext_default as ThemeContext, ThemeProvider, ThemeScopeContext, UISlotContext, UISlotProvider, registryKeyMode, registryKeyTheme, themeHasMode, useDesignTheme, useScopedMode, useSlotContent, useSlotHasContent, useTheme, useThemeScope, useUISlots };
|