@xenosystem/blocks 0.13.22 → 0.13.23
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/edit/index.d.ts +86 -9
- package/dist/edit/index.js +460 -379
- package/package.json +1 -1
package/dist/edit/index.d.ts
CHANGED
|
@@ -827,7 +827,7 @@ declare function layersViewState(c: LayersPanelController): LayersViewState;
|
|
|
827
827
|
/** Apply a `ui` intent to the controller — the runtime's half of the contract. */
|
|
828
828
|
declare function applyLayersUi(c: LayersPanelController, intent: LayersUiIntent): void;
|
|
829
829
|
declare const layersViewManifest: PanelManifest;
|
|
830
|
-
declare const BEHAVIOURS$
|
|
830
|
+
declare const BEHAVIOURS$7: {
|
|
831
831
|
'edit/layersPanelView': (inputs: Record<string, unknown>) => LayersViewState;
|
|
832
832
|
};
|
|
833
833
|
declare const LAYERS_DECLARATION: BlockDeclaration;
|
|
@@ -1723,7 +1723,7 @@ declare function inspectorViewState(c: InspectorPanelController): InspectorViewS
|
|
|
1723
1723
|
/** Apply a `ui` intent to the controller — the runtime's half of the contract. */
|
|
1724
1724
|
declare function applyInspectorUi(c: InspectorPanelController, intent: InspectorUiIntent): void;
|
|
1725
1725
|
declare const inspectorViewManifest: PanelManifest;
|
|
1726
|
-
declare const BEHAVIOURS$
|
|
1726
|
+
declare const BEHAVIOURS$6: {
|
|
1727
1727
|
'edit/inspectorPanelView': (inputs: Record<string, unknown>) => InspectorViewState;
|
|
1728
1728
|
};
|
|
1729
1729
|
declare const INSPECTOR_DECLARATION: BlockDeclaration;
|
|
@@ -2334,7 +2334,7 @@ declare function historyViewState(c: HistoryPanelController): HistoryViewState;
|
|
|
2334
2334
|
/** Apply a `ui` intent to the controller — the runtime's half of the contract. */
|
|
2335
2335
|
declare function applyHistoryUi(c: HistoryPanelController, intent: HistoryUiIntent): void;
|
|
2336
2336
|
declare const historyViewManifest: PanelManifest;
|
|
2337
|
-
declare const BEHAVIOURS$
|
|
2337
|
+
declare const BEHAVIOURS$5: {
|
|
2338
2338
|
'edit/historyPanelView': (inputs: Record<string, unknown>) => HistoryViewState;
|
|
2339
2339
|
};
|
|
2340
2340
|
declare const HISTORY_DECLARATION: BlockDeclaration;
|
|
@@ -2896,7 +2896,7 @@ declare function colorViewState(c: ColorPanelController): ColorViewState;
|
|
|
2896
2896
|
/** Apply a `ui` intent to the controller — the runtime's half of the contract. */
|
|
2897
2897
|
declare function applyColorUi(c: ColorPanelController, intent: ColorUiIntent): void;
|
|
2898
2898
|
declare const colorViewManifest: PanelManifest;
|
|
2899
|
-
declare const BEHAVIOURS$
|
|
2899
|
+
declare const BEHAVIOURS$4: {
|
|
2900
2900
|
'edit/colorPanelView': (inputs: Record<string, unknown>) => ColorViewState;
|
|
2901
2901
|
};
|
|
2902
2902
|
declare const COLOR_DECLARATION: BlockDeclaration;
|
|
@@ -3899,7 +3899,73 @@ declare function segmentsAround(keys: readonly XenoCurveKey[], index: number, fa
|
|
|
3899
3899
|
};
|
|
3900
3900
|
|
|
3901
3901
|
/**
|
|
3902
|
-
* The Curve
|
|
3902
|
+
* The Curve panel AS A DECLARATION — the twenty-second block written the §8d way, and the first of
|
|
3903
|
+
* the five DRAWN surfaces (curve, nodegraph, viewport, terminal, timeline).
|
|
3904
|
+
*
|
|
3905
|
+
* The shape every drawn surface takes: the CHROME is data — the interpolation and tangent modes,
|
|
3906
|
+
* the easing presets, the empty state, the channel count and the playhead readout — and the drawn
|
|
3907
|
+
* SURFACE is ONE runtime unit (`curve/Surface`) bound to the controller: the SVG plot, the pointer
|
|
3908
|
+
* (drag, marquee, pan, pinch-zoom) and the keyboard model. A declaration cannot express a plot
|
|
3909
|
+
* evaluated from a scale on every pointer move, and must not try; what it can express is everything
|
|
3910
|
+
* around it, which is where the hand-styled `<button>`s lived.
|
|
3911
|
+
*
|
|
3912
|
+
* Presentation contract: input `view` (a {@link CurveViewModel}), output `ui` (a {@link CurveUiIntent})
|
|
3913
|
+
* applied by the runtime to the controller's own methods.
|
|
3914
|
+
*/
|
|
3915
|
+
|
|
3916
|
+
/** The half of a renderer's config the view reads. */
|
|
3917
|
+
interface CurveViewOptions {
|
|
3918
|
+
showPresets?: boolean;
|
|
3919
|
+
}
|
|
3920
|
+
interface CurveViewModel {
|
|
3921
|
+
interpolations: {
|
|
3922
|
+
key: string;
|
|
3923
|
+
mode: XenoCurveInterpolation;
|
|
3924
|
+
label: string;
|
|
3925
|
+
}[];
|
|
3926
|
+
tangentModes: {
|
|
3927
|
+
key: string;
|
|
3928
|
+
mode: XenoTangentMode;
|
|
3929
|
+
label: string;
|
|
3930
|
+
}[];
|
|
3931
|
+
presetsShown: boolean;
|
|
3932
|
+
presets: {
|
|
3933
|
+
key: string;
|
|
3934
|
+
id: string;
|
|
3935
|
+
label: string;
|
|
3936
|
+
}[];
|
|
3937
|
+
empty: boolean;
|
|
3938
|
+
drawn: boolean;
|
|
3939
|
+
channelsLabel: string;
|
|
3940
|
+
playheadLabel: string;
|
|
3941
|
+
}
|
|
3942
|
+
type CurveUiIntent = {
|
|
3943
|
+
kind: 'interpolation';
|
|
3944
|
+
mode: XenoCurveInterpolation;
|
|
3945
|
+
} | {
|
|
3946
|
+
kind: 'tangentMode';
|
|
3947
|
+
mode: XenoTangentMode;
|
|
3948
|
+
} | {
|
|
3949
|
+
kind: 'fit';
|
|
3950
|
+
} | {
|
|
3951
|
+
kind: 'preset';
|
|
3952
|
+
id: string;
|
|
3953
|
+
};
|
|
3954
|
+
/** Derive the view model from the live controller — the runtime calls this on every draw. */
|
|
3955
|
+
declare function curveViewState(c: CurveController, options?: CurveViewOptions): CurveViewModel;
|
|
3956
|
+
/** Apply a `ui` intent to the controller — the runtime's half of the contract. */
|
|
3957
|
+
declare function applyCurveUi(c: CurveController, intent: CurveUiIntent): void;
|
|
3958
|
+
declare const curveViewManifest: PanelManifest;
|
|
3959
|
+
declare const BEHAVIOURS$3: {
|
|
3960
|
+
'edit/curvePanelView': (inputs: Record<string, unknown>) => CurveViewModel;
|
|
3961
|
+
};
|
|
3962
|
+
declare const CURVE_DECLARATION: BlockDeclaration;
|
|
3963
|
+
|
|
3964
|
+
/**
|
|
3965
|
+
* The Curve panel view — the CODE VIEW of `CURVE_DECLARATION`, drawing the same {@link CurveViewModel}
|
|
3966
|
+
* byte-identical (the equivalence suite holds the two together). The one runtime-bound unit is the
|
|
3967
|
+
* SURFACE (`curve/Surface`: the SVG plot, the pointer and keyboard models); every chrome intent goes
|
|
3968
|
+
* through `applyCurveUi`.
|
|
3903
3969
|
*
|
|
3904
3970
|
* Composes `@xenosystem/components/chrome`. **The host must import
|
|
3905
3971
|
* `@xenosystem/workbench/primitives.css`** or this renders unstyled with no error.
|
|
@@ -3911,12 +3977,23 @@ declare function segmentsAround(keys: readonly XenoCurveKey[], index: number, fa
|
|
|
3911
3977
|
*/
|
|
3912
3978
|
|
|
3913
3979
|
/** Props for {@link CurvePanelView}. */
|
|
3914
|
-
interface CurvePanelViewProps {
|
|
3980
|
+
interface CurvePanelViewProps extends CurveViewOptions {
|
|
3915
3981
|
controller: CurveController;
|
|
3916
|
-
showPresets?: boolean;
|
|
3917
3982
|
}
|
|
3918
3983
|
/** The Curve panel view. */
|
|
3919
|
-
declare function CurvePanelView({ controller,
|
|
3984
|
+
declare function CurvePanelView({ controller, ...options }: CurvePanelViewProps): ReactNode;
|
|
3985
|
+
/**
|
|
3986
|
+
* The surface — `curve/Surface` in the declaration, bound to the controller: the SVG plot evaluated
|
|
3987
|
+
* from the controller's scale, the pointer model (drag, marquee, pan, pinch-zoom) and the keyboard
|
|
3988
|
+
* model (Delete, Ctrl+A, F, Escape).
|
|
3989
|
+
*/
|
|
3990
|
+
declare function CurveSurface({ controller }: {
|
|
3991
|
+
controller: CurveController;
|
|
3992
|
+
}): ReactNode;
|
|
3993
|
+
/** The unit names the runtime supplies for this block — what a host's registry check must accept beside the shared families. */
|
|
3994
|
+
declare const CURVE_RUNTIME_UNITS: readonly ["curve/Surface"];
|
|
3995
|
+
/** The units the runtime registers for `CURVE_DECLARATION`, bound to ITS controller. */
|
|
3996
|
+
declare function curveRuntimeComponents(controller: CurveController): Record<(typeof CURVE_RUNTIME_UNITS)[number], React.ComponentType<any>>;
|
|
3920
3997
|
|
|
3921
3998
|
/**
|
|
3922
3999
|
* The Viewport contract — the canvas HOST, not the renderer.
|
|
@@ -7379,4 +7456,4 @@ declare function TreeIcon({ name, size }: {
|
|
|
7379
7456
|
size?: number;
|
|
7380
7457
|
}): ReactNode;
|
|
7381
7458
|
|
|
7382
|
-
export { type BlendModeGroup, type BlendModeOption, type Box, BEHAVIOURS$
|
|
7459
|
+
export { type BlendModeGroup, type BlendModeOption, type Box, BEHAVIOURS$4 as COLOR_BEHAVIOURS, COLOR_DECLARATION, COLOR_RUNTIME_UNITS, COLOR_SPACES, BEHAVIOURS$1 as COMMENTS_BEHAVIOURS, COMMENTS_DECLARATION, COMMENTS_PANEL_ID, COMMENTS_RUNTIME_UNITS, BEHAVIOURS$3 as CURVE_BEHAVIOURS, CURVE_DECLARATION, CURVE_PANEL_ID, CURVE_RUNTIME_UNITS, type ChannelId, ColorPanelController, type ColorPanelControllerOptions, type ColorPanelSerialized, ColorPanelView, type ColorPanelViewProps, type ColorSpace, type ColorStopSink, type ColorToken, type ColorUiIntent, type ColorViewState, CommentsController, type CommentsControllerOptions, type CommentsHostBridge, type CommentsPanelState, CommentsPanelView, type CommentsPanelViewProps, type CommentsRenderContext, type CommentsThreadView, type CommentsUiIntent, type CommentsViewMessage, type CommentsViewModel, type CommentsViewOptions, type CommentsViewReaction, type CommentsViewState, type CommentsViewThread, type ConnectRules, type ConnectVerdict, type CreateColorPanelOptions, type CreateCommentsPanelOptions, type CreateCurvePanelOptions, type CreateFindPanelOptions, type CreateHistoryPanelOptions, type CreateInspectorPanelOptions, type CreateLayersPanelOptions, type CreateNodeGraphPanelOptions, type CreateTreePanelOptions, type CreateViewportPanelOptions, CurveController, type CurveControllerOptions, type CurveDragKind, type CurveDragState, type CurveHostBridge, type CurvePanelState, CurvePanelView, type CurvePanelViewProps, type CurvePreview, type CurveRenderConfig, type CurveRenderContext, CurveSurface, type CurveUiIntent, type CurveViewModel, type CurveViewOptions, type CurveViewState, DEFAULT_BLEND_MODES, DEFAULT_CURVE_ZOOM, DEFAULT_GRAPH_ZOOM, DEFAULT_ICON_MAP, DEFAULT_ORIGINAL_LABEL, type DropInput, EASING_PRESETS, EDIT_SPACES, EMPTY_HISTORY, EMPTY_SCHEMA, EMPTY_TREE, EMPTY_TREE_SOURCE, BEHAVIOURS$2 as FIND_BEHAVIOURS, FIND_DECLARATION, FIND_PANEL_ID, FIND_RUNTIME_UNITS, FindController, type FindControllerOptions, type FindHostBridge, FindKeys, type FindPanelState, FindPanelView, type FindPanelViewProps, type FindRenderContext, type FindUiIntent, type FindViewGroup, type FindViewModel, type FindViewOptions, type FindViewRow, type FindViewState, type FlatRow, type FlattenOptions, GENERIC_ICON, GraphController, type GraphControllerOptions, type GraphDragKind, type GraphDragState, type GraphHostBridge, type GraphPanelState, type GraphPreview, type GraphRenderConfig, type GraphRenderContext, type GraphViewState, BEHAVIOURS$5 as HISTORY_BEHAVIOURS, HISTORY_DECLARATION, HISTORY_RUNTIME_UNITS, type HistoryKeyEvent, HistoryPanelController, type HistoryPanelControllerOptions, type HistoryPanelSerialized, HistoryPanelView, type HistoryPanelViewProps, type ProjectOptions as HistoryProjectOptions, type HistoryRow, type HistoryUiIntent, type HistoryViewRow, type HistoryViewState, type Hsl, type Hsv, IMPLEMENTED_TREE_MODES, BEHAVIOURS$6 as INSPECTOR_BEHAVIOURS, INSPECTOR_DECLARATION, INSPECTOR_RUNTIME_UNITS, type InspectorKeyEvent, InspectorPanelController, type InspectorPanelControllerOptions, type InspectorPanelSerialized, InspectorPanelView, type InspectorPanelViewProps, type ProjectOptions$1 as InspectorProjectOptions, type InspectorUiIntent, type InspectorViewField, type InspectorViewSection, type InspectorViewState, BEHAVIOURS$7 as LAYERS_BEHAVIOURS, LAYERS_DECLARATION, LAYERS_RUNTIME_UNITS, LAYER_COLUMNS, type LayerColumn, type LayersKeyEvent, LayersPanelController, type LayersPanelControllerOptions, type LayersPanelSerialized, LayersPanelView, type LayersPanelViewProps, type LayersUiIntent, type LayersViewRow, type LayersViewState, MIXED, NODEGRAPH_PANEL_ID, NodeGraphPanelView, type NodeGraphPanelViewProps, type NumericConstraints, type OklchDisplay, type ParseResult, type ProjectedSection, type Rgba, SPACE_LABEL, type ScrubOptions, type SelectMods, BEHAVIOURS as TREE_BEHAVIOURS, TREE_DECLARATION, TREE_PANEL_ID, TREE_RUNTIME_UNITS, type TangentEdit, Thumbnail, type ThumbnailProps, TreeController, type TreeControllerOptions, type TreeHostBridge, TreeIcon, type TreeKeyEvent, type TreePanelState, TreePanelView, type TreePanelViewProps, type TreeRenderContext, type TreeRow, TreeScroller, type TreeUiIntent, type TreeViewAction, type TreeViewModel, type TreeViewOptions, type TreeViewRow, type TreeViewState, VIEWPORT_PANEL_ID, VIEWPORT_SLOTS, VIEW_STATE_OPS, ViewportController, type ViewportControllerOptions, type ViewportHostBridge, type ViewportPanelState, ViewportPanelView, type ViewportPanelViewProps, type ViewportRenderContext, type ViewportViewState, type XenoAddMenuItem, type XenoAnchorState, type XenoColorValue, type XenoCommentAuthor, type XenoCommentFilter, type XenoCommentMessage, type XenoCommentOp, type XenoCommentReaction, type XenoCommentSort, type XenoCommentThread, type XenoCommitPolicy, type XenoContextMenuRequest, type XenoCurveChannel, type XenoCurveInterpolation, type XenoCurveKey, type XenoCurveKeyRef, type XenoCurveOp, type XenoCurvePoint, XenoCurveScale, type XenoCurveScaleGeometry, type XenoCurveScaleState, type XenoCurveSelection, type XenoCurveSet, type XenoCurveViewport, type XenoCurveZoom, type XenoEasingPreset, type XenoEdge, type XenoFieldAnim, type XenoFieldFocus, type XenoFieldOption, type XenoFieldToken, type XenoFieldType, type XenoFieldValue, type XenoFindMatch, type XenoFindNavigate, type XenoFindOptions, type XenoFindQuery, type XenoFindReplace, type XenoFindResults, type XenoFindStatus, type XenoGradient, type XenoGraph, type XenoGraphOp, XenoGraphScale, type XenoGraphScaleGeometry, type XenoGraphScaleState, type XenoGraphSelection, type XenoGraphViewport, type XenoGraphZoom, type XenoHistoryEntry, type XenoHistoryIntent, type XenoHistoryMemory, type XenoHistoryOrder, type XenoHistoryScope, type XenoHistorySnapshot, type XenoHistorySource, type XenoHistoryState, type XenoHistoryStatus, type XenoInspectorEdit, type XenoInspectorField, type XenoInspectorSchema, type XenoInspectorSection, type XenoInspectorTarget, type XenoInspectorToken, type XenoKeyframeKind, type XenoLayerAdornment, type XenoLayerCap, type XenoLayerKind, type XenoLayerNode, type XenoLayerOp, type XenoLayerTree, type XenoNavigateRequest, type XenoNode, XenoNodeIndex, type XenoPort, type XenoPortDirection, type XenoPortRef, type XenoSectionAction, type XenoTangent, type XenoTangentMode, type XenoTangentSide, type XenoThreadActivate, type XenoThumbnailRequest, type XenoThumbnailResponse, type XenoTreeAction, type XenoTreeBadge, type XenoTreeCaps, type XenoTreeChildState, type XenoTreeChildrenResponse, type XenoTreeError, type XenoTreeGlyph, type XenoTreeIcon, type XenoTreeInvalidate, type XenoTreeMode, type XenoTreeModifiers, type XenoTreeNode, type XenoTreeNodeKind, type XenoTreeOp, type XenoTreeReveal, type XenoTreeSource, type XenoTreeSourceKind, type XenoTreeSourceState, type XenoViewportClient, type XenoViewportKey, type XenoViewportPointer, type XenoViewportSlot, type XenoViewportStats, type XenoViewportSurface, allFields, allIds, anchorStateOf, appliedCount, applyColorUi, applyCommentsUi, applyCurveUi, applyFindUi, applyHistoryUi, applyInspectorUi, applyLayersUi, applyPrecision, applyTangentDrag, applyTreeUi, ariaSliderProps, boxesIntersect, canConnect, canRedo, canUndo, childStateOf, clamp, clampAlpha, clampTangent, collectDescendants, colorManifest, colorPanel, colorRuntimeComponents, colorViewManifest, colorViewState, commentsManifest, commentsPanel, commentsViewManifest, commentsViewState, commitPolicyOf, componentsForSpace, computeSurfaceSize, constraintsOf, countIsMeaningful, createColorPanel, createCommentsPanel, createCurvePanel, createFindPanel, createHistoryPanel, createInspectorPanel, createLayersPanel, createNodeGraphPanel, createTreePanel, createViewportPanel, createsCycle, currentRowIndex, curveManifest, curvePanel, curveRuntimeComponents, curveViewManifest, curveViewState, defaultIconFor, displayOrder, distanceToEdge, easeAt, easingPreset, edgeBounds, edgeKey, edgePath, edgesToReplace, edgesTouching, evaluateChannel, fieldMatches, findField, findManifest, findPanel, findPort, findRuntimeComponents, findSectionOf, findViewManifest, findViewState, fitToBounds, fitValueRange, flattenVisible, focusOrder, formatAge, formatNumeric, getAncestors, graphBounds, groupMatches, hasCap, hasDraggableTangents, hasTreeCap, hexFromHsv, highlightSegments, historyManifest, historyPanel, historyRuntimeComponents, historyViewManifest, historyViewState, hslToRgb, hsvFromHex, hsvToRgb, inspectorManifest, inspectorPanel, inspectorRuntimeComponents, inspectorViewManifest, inspectorViewState, interpolateSegment, isAncestorOf, isAnimated, isCollapsed, isColorSpace, isContainer, isEmptyContainer, isFieldEditable, isFieldMixed, isJumpable, isKeyEditable, isLayerColumn, isMixedValue, isOrphaned, isTreeContainer, isValidHex, isViewStateOp, keyRefId, layersManifest, layersPanel, layersRuntimeComponents, layersViewManifest, layersViewState, liveEdges, makeColorValue, matchesFilter, messagesOf, mirrorTangent, nodeBounds, nodegraphManifest, nodegraphPanel, normalizeColorInput, normalizeHistoryState, normalizeKindKey, normalizeNumeric, normalizeRanges, normalizeSchema, normalizeTree, nudgeValue, oklchToRgb, parseCssColor, parseHexColor, parseNumeric, passesFilter, patternError, portHasRoom, portRefId, positionToValue, projectRows, projectSections, rangeBetween, resolveDropTarget, resolveIconName, rgbToHex, rgbToHsl, rgbToHsv, rgbToOklch, rgbaToCssHex, roundRgb, rowIndexOf, rowIndexOfEntry, safeAddColorStop, safeAddColorStops, sameKey, sampleChannel, scrubValue, segmentsAround, solveBezierT, sortThreads, surfaceChanged, tangentsForMode, tangentsToControlPoints, toViewportCoords, totalCount, treeManifest, treePanel, treeRuntimeComponents, treeViewManifest, treeViewState, usesLogScale, valueExtent, valueToPosition, valuesEqual, viewportManifest, viewportPanel, visibleEdges, walkTree, wheelZoomFactor, zoomAboutCursor, zoomTimeAboutCursor, zoomValueAboutCursor };
|