@tatamicks/core 0.2.2 → 0.2.4

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.
@@ -1,7 +1,7 @@
1
1
  import { default as default_2 } from 'react';
2
- import { ForwardRefExoticComponent } from 'react';
3
- import { JSX as JSX_2 } from 'react/jsx-runtime';
2
+ import { JSX } from 'react/jsx-runtime';
4
3
  import { MemoExoticComponent } from 'react';
4
+ import { NamedExoticComponent } from 'react';
5
5
  import { ReactNode } from 'react';
6
6
  import { RefAttributes } from 'react';
7
7
 
@@ -179,7 +179,7 @@ export declare enum BlockChangeType {
179
179
  PASTE = "paste"
180
180
  }
181
181
 
182
- export declare const BlockContainer: MemoExoticComponent<ForwardRefExoticComponent<BlockContainerProps & RefAttributes<BlockRef>>>;
182
+ export declare const BlockContainer: NamedExoticComponent<BlockContainerProps & RefAttributes<BlockRef>>;
183
183
 
184
184
  export declare interface BlockContainerProps {
185
185
  block: Block;
@@ -237,7 +237,7 @@ export declare interface BlockGuideBorderProps {
237
237
  className?: string;
238
238
  }
239
239
 
240
- export declare const BlockLayer: MemoExoticComponent<({ blocks, pluginRegistry, mode, values, selectedBlockIds, getBlockRectPx, onValueChange, onValueBlur, showGuides, showBorder, blockSubZIndex, defaultGuideBorder, dpi, className, }: BlockLayerProps) => JSX_2.Element>;
240
+ export declare const BlockLayer: MemoExoticComponent<({ blocks, pluginRegistry, mode, values, selectedBlockIds, getBlockRectPx, onValueChange, onValueBlur, showGuides, showBorder, blockSubZIndex, defaultGuideBorder, dpi, className, }: BlockLayerProps) => JSX.Element>;
241
241
 
242
242
  export declare interface BlockLayerProps {
243
243
  blocks: Block[];
@@ -273,7 +273,7 @@ export declare interface BlockLayout {
273
273
  * 内部配列では最後が最前面
274
274
  */
275
275
  export declare const BlockOrderPanel: {
276
- ({ blocks, onBlocksChange, }: BlockOrderPanelProps): JSX_2.Element;
276
+ ({ blocks, onBlocksChange, }: BlockOrderPanelProps): JSX.Element;
277
277
  displayName: string;
278
278
  };
279
279
 
@@ -341,7 +341,7 @@ export declare interface BlockPosPx {
341
341
  * 選択されたブロックのプロパティを編集するための統合サイドバーコンポーネント。
342
342
  * BasePanels(共通設定)と PluginPanels(固有設定)を組み合わせて表示します。
343
343
  */
344
- export declare const BlockPropertyPanel: MemoExoticComponent<({ selectedBlocks, pluginRegistry, onUpdateBlocks, gridSize, className, }: BlockPropertyPanelProps) => JSX_2.Element>;
344
+ export declare const BlockPropertyPanel: MemoExoticComponent<({ selectedBlocks, pluginRegistry, onUpdateBlocks, gridSize, className, }: BlockPropertyPanelProps) => JSX.Element>;
345
345
 
346
346
  export declare interface BlockPropertyPanelProps {
347
347
  selectedBlocks: Block[];
@@ -564,7 +564,7 @@ export declare interface BorderPanelProps {
564
564
  onUpdateBlocks: (updates: Record<string, Partial<Block>>) => void;
565
565
  }
566
566
 
567
- export declare const BorderRenderer: MemoExoticComponent<({ width, height, border, dpi, className, }: BorderRendererProps) => JSX_2.Element | null>;
567
+ export declare const BorderRenderer: MemoExoticComponent<({ width, height, border, dpi, className, }: BorderRendererProps) => JSX.Element | null>;
568
568
 
569
569
  export declare interface BorderRendererProps {
570
570
  width: number;
@@ -630,7 +630,7 @@ export declare function calculateResizedLayout({ layout, handle, deltaCol, delta
630
630
  * - BlockOrderPanel: ブロック順序設定
631
631
  */
632
632
  export declare const CanvasPanel: {
633
- ({ schema, onSchemaChange }: CanvasPanelProps): JSX_2.Element;
633
+ ({ schema, onSchemaChange }: CanvasPanelProps): JSX.Element;
634
634
  displayName: string;
635
635
  };
636
636
 
@@ -1110,7 +1110,7 @@ export declare interface DraggingState {
1110
1110
  isOutside?: boolean;
1111
1111
  }
1112
1112
 
1113
- export declare const DragLayer: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, draggingState, getBlockRectPx, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: DragLayerProps) => JSX_2.Element | null>;
1113
+ export declare const DragLayer: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, draggingState, getBlockRectPx, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: DragLayerProps) => JSX.Element | null>;
1114
1114
 
1115
1115
  export declare interface DragLayerProps {
1116
1116
  blocks: Block[];
@@ -1479,7 +1479,7 @@ export declare type GridChangeType = "resize" | "insert" | "delete" | "equalize"
1479
1479
  * グリッド線と線の間に寸法(値と単位)を表示します。
1480
1480
  * ダブルクリックで単位編集UIを表示します。
1481
1481
  */
1482
- export declare const GridDimensionLabel: MemoExoticComponent<({ direction, index, dimension, position, currentPxSize, marginLeftPx, marginTopPx, isNearCursor, resizingPxSize, onDimensionChange, }: GridDimensionLabelProps) => JSX_2.Element | null>;
1482
+ export declare const GridDimensionLabel: MemoExoticComponent<({ direction, index, dimension, position, currentPxSize, marginLeftPx, marginTopPx, isNearCursor, resizingPxSize, onDimensionChange, }: GridDimensionLabelProps) => JSX.Element | null>;
1483
1483
 
1484
1484
  export declare interface GridDimensionLabelProps {
1485
1485
  /** ラベルの方向 ('column' or 'row') */
@@ -1601,7 +1601,7 @@ export declare interface GridPosPx {
1601
1601
  * 設計文書に従い、「グリッド線そのもののドラッグは禁止」し、
1602
1602
  * 「グリッド線の両端ハンドル」のみをドラッグ可能とします。
1603
1603
  */
1604
- export declare const GridResizeHandle: MemoExoticComponent<({ direction, index, position, marginLeftPx, marginTopPx, onResizeStart, onResize, onResizeEnd, }: GridResizeHandleProps) => JSX_2.Element>;
1604
+ export declare const GridResizeHandle: MemoExoticComponent<({ direction, index, position, marginLeftPx, marginTopPx, onResizeStart, onResize, onResizeEnd, }: GridResizeHandleProps) => JSX.Element>;
1605
1605
 
1606
1606
  /**
1607
1607
  * @file GridResizeHandle.tsx
@@ -1631,7 +1631,7 @@ export declare interface GridResizeHandleProps {
1631
1631
  * 行・列数を変更するパネル
1632
1632
  */
1633
1633
  export declare const GridSizePanel: {
1634
- ({ grid, onGridChange }: GridSizePanelProps): JSX_2.Element;
1634
+ ({ grid, onGridChange }: GridSizePanelProps): JSX.Element;
1635
1635
  displayName: string;
1636
1636
  };
1637
1637
 
@@ -1680,7 +1680,7 @@ export declare interface ImageSchema {
1680
1680
  * スキーマと値のインポート/エクスポート機能を提供
1681
1681
  */
1682
1682
  export declare const ImportExportPanel: {
1683
- ({ schema, values, onSchemaChange, onValuesChange, }: ImportExportPanelProps): JSX_2.Element;
1683
+ ({ schema, values, onSchemaChange, onValuesChange, }: ImportExportPanelProps): JSX.Element;
1684
1684
  displayName: string;
1685
1685
  };
1686
1686
 
@@ -1695,7 +1695,7 @@ export declare interface ImportExportPanelProps {
1695
1695
  onValuesChange: (values: Record<string, Value>) => void;
1696
1696
  }
1697
1697
 
1698
- export declare const InsertGhost: MemoExoticComponent<({ pluginRegistry, gridLength, getBlockRectPx, currentGrid, currentMousePx, pluginKind, defaultSize, isOutside, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: InsertGhostProps) => JSX_2.Element | null>;
1698
+ export declare const InsertGhost: MemoExoticComponent<({ pluginRegistry, gridLength, getBlockRectPx, currentGrid, currentMousePx, pluginKind, defaultSize, isOutside, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: InsertGhostProps) => JSX.Element | null>;
1699
1699
 
1700
1700
  export declare interface InsertGhostProps {
1701
1701
  pluginRegistry: Record<string, BlockPlugin>;
@@ -1724,7 +1724,7 @@ export declare interface InsertGhostProps {
1724
1724
  blockHandlesZIndex?: number;
1725
1725
  }
1726
1726
 
1727
- export declare const InteractionBlock: default_2.MemoExoticComponent<({ block, rect, showHandles, onResizeStart, activeHandle, selectionStyle, handleStyle, selectBorderZIndex, blockHandlesZIndex, }: InteractionBlockProps) => JSX_2.Element>;
1727
+ export declare const InteractionBlock: default_2.MemoExoticComponent<({ block, rect, showHandles, onResizeStart, activeHandle, selectionStyle, handleStyle, selectBorderZIndex, blockHandlesZIndex, }: InteractionBlockProps) => JSX.Element>;
1728
1728
 
1729
1729
  export declare interface InteractionBlockProps {
1730
1730
  block: Block;
@@ -1831,7 +1831,7 @@ export declare enum InteractionEventType {
1831
1831
  START_RESIZE = "startResize"
1832
1832
  }
1833
1833
 
1834
- export declare const InteractionLayer: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, getBlockRectPx, getColIndex, getRowIndex, state, onChange, onBlockChange, scale, className, selectionStyle, handleStyle, editBlockZIndex, selectBorderZIndex, blockHandlesZIndex, dragGhostZIndex, }: InteractionLayerProps) => JSX_2.Element>;
1834
+ export declare const InteractionLayer: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, getBlockRectPx, getColIndex, getRowIndex, state, onChange, onBlockChange, scale, className, selectionStyle, handleStyle, editBlockZIndex, selectBorderZIndex, blockHandlesZIndex, dragGhostZIndex, }: InteractionLayerProps) => JSX.Element>;
1835
1835
 
1836
1836
  /**
1837
1837
  * InteractionLayerProps
@@ -1968,7 +1968,7 @@ export declare interface MarginOverlayProps {
1968
1968
  * マージンを変更するパネル
1969
1969
  */
1970
1970
  export declare const MarginPanel: {
1971
- ({ paper, onPaperChange }: MarginPanelProps): JSX_2.Element;
1971
+ ({ paper, onPaperChange }: MarginPanelProps): JSX.Element;
1972
1972
  displayName: string;
1973
1973
  };
1974
1974
 
@@ -1988,7 +1988,7 @@ export declare interface MetaPanelProps {
1988
1988
 
1989
1989
  export declare function mmsToPxs(mms: number[], dpi?: number): number[];
1990
1990
 
1991
- export declare const MovingGhost: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, getBlockRectPx, selectedBlockIds, deltaCol, deltaRow, isOutside, currentMousePx, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: MovingGhostProps) => JSX_2.Element>;
1991
+ export declare const MovingGhost: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, getBlockRectPx, selectedBlockIds, deltaCol, deltaRow, isOutside, currentMousePx, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: MovingGhostProps) => JSX.Element>;
1992
1992
 
1993
1993
  export declare interface MovingGhostProps {
1994
1994
  blocks: Block[];
@@ -2035,12 +2035,12 @@ export declare enum MultilineWordWrap {
2035
2035
  }
2036
2036
 
2037
2037
  export declare const NoteEdit: MemoExoticComponent< {
2038
- ({ schema, values, pluginRegistry, onValueChange, scale, className, }: NoteEditProps): JSX_2.Element;
2038
+ ({ schema, values, pluginRegistry, onValueChange, scale, className, }: NoteEditProps): JSX.Element;
2039
2039
  displayName: string;
2040
2040
  }>;
2041
2041
 
2042
2042
  export declare const NoteEditor: MemoExoticComponent< {
2043
- ({ schema, values, mode, pluginRegistry, onSchemaChange, onValuesChange, onSelectionChange, scale, className, }: NoteEditorProps): JSX_2.Element;
2043
+ ({ schema, values, mode, pluginRegistry, onSchemaChange, onValuesChange, onSelectionChange, scale, className, }: NoteEditorProps): JSX.Element;
2044
2044
  displayName: string;
2045
2045
  }>;
2046
2046
 
@@ -2066,7 +2066,7 @@ export declare interface NoteEditProps {
2066
2066
  }
2067
2067
 
2068
2068
  export declare const NoteForm: MemoExoticComponent< {
2069
- ({ schema, pluginRegistry, onSchemaChange, onSelectionChange, scale, className, }: NoteFormProps): JSX_2.Element;
2069
+ ({ schema, pluginRegistry, onSchemaChange, onSelectionChange, scale, className, }: NoteFormProps): JSX.Element;
2070
2070
  displayName: string;
2071
2071
  }>;
2072
2072
 
@@ -2085,7 +2085,7 @@ export declare enum NoteMode {
2085
2085
  VIEW = "View"
2086
2086
  }
2087
2087
 
2088
- export declare const NotePrint: MemoExoticComponent<ForwardRefExoticComponent<NotePrintProps & RefAttributes<NoteViewPrintRef>>>;
2088
+ export declare const NotePrint: NamedExoticComponent<NotePrintProps & RefAttributes<NoteViewPrintRef>>;
2089
2089
 
2090
2090
  export declare interface NotePrintProps {
2091
2091
  schema: FormSchema;
@@ -2095,7 +2095,7 @@ export declare interface NotePrintProps {
2095
2095
  }
2096
2096
 
2097
2097
  export declare const NoteView: MemoExoticComponent< {
2098
- ({ schema, values, pluginRegistry, scale, className, }: NoteViewProps): JSX_2.Element;
2098
+ ({ schema, values, pluginRegistry, scale, className, }: NoteViewProps): JSX.Element;
2099
2099
  displayName: string;
2100
2100
  }>;
2101
2101
 
@@ -2187,7 +2187,7 @@ export declare type Orientation = "portrait" | "landscape";
2187
2187
  * - ImportExportPanel: スキーマ・値のインポート/エクスポート
2188
2188
  */
2189
2189
  export declare const OtherPanel: {
2190
- ({ schema, values, onSchemaChange, onValuesChange, }: OtherPanelProps): JSX_2.Element;
2190
+ ({ schema, values, onSchemaChange, onValuesChange, }: OtherPanelProps): JSX.Element;
2191
2191
  displayName: string;
2192
2192
  };
2193
2193
 
@@ -2228,7 +2228,7 @@ export declare type PaddingUnit = (typeof PADDING_UNITS)[number];
2228
2228
  * ブロックをドラッグ&ドロップで挿入するためのパレット
2229
2229
  */
2230
2230
  export declare const PalettePanel: {
2231
- ({ plugins, className }: PalettePanelProps): JSX_2.Element;
2231
+ ({ plugins, className }: PalettePanelProps): JSX.Element;
2232
2232
  displayName: string;
2233
2233
  };
2234
2234
 
@@ -2294,7 +2294,7 @@ export declare interface PaperSize {
2294
2294
  * 用紙サイズを変更するパネル
2295
2295
  */
2296
2296
  export declare const PaperSizePanel: {
2297
- ({ paper, onPaperChange, }: PaperSizePanelProps): JSX_2.Element;
2297
+ ({ paper, onPaperChange, }: PaperSizePanelProps): JSX.Element;
2298
2298
  displayName: string;
2299
2299
  };
2300
2300
 
@@ -2444,7 +2444,7 @@ declare interface PropertyDefinition_2<T, Context = Record<string, Value>> {
2444
2444
  }
2445
2445
  export { PropertyDefinition_2 as PropertyDefinition }
2446
2446
 
2447
- export declare const PropertyField: MemoExoticComponent<({ propertyKey, definition, selectedBlocks, onChange, }: PropertyFieldProps) => JSX_2.Element | null>;
2447
+ export declare const PropertyField: MemoExoticComponent<({ propertyKey, definition, selectedBlocks, onChange, }: PropertyFieldProps) => JSX.Element | null>;
2448
2448
 
2449
2449
  export declare interface PropertyFieldProps {
2450
2450
  propertyKey: string;
@@ -2486,7 +2486,7 @@ export declare interface RendererProps<P = Record<string, Value>, V = Value> {
2486
2486
 
2487
2487
  export declare const RESIZE_HANDLE_STYLE: ResizeHandleStyle;
2488
2488
 
2489
- export declare const ResizeGhost: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, getBlockRectPx, blockId, handle, deltaCol, deltaRow, isOutside, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: ResizeGhostProps) => JSX_2.Element | null>;
2489
+ export declare const ResizeGhost: MemoExoticComponent<({ blocks, pluginRegistry, gridLength, getBlockRectPx, blockId, handle, deltaCol, deltaRow, isOutside, selectionStyle, ghostZIndex, selectBorderZIndex, blockHandlesZIndex, }: ResizeGhostProps) => JSX.Element | null>;
2490
2490
 
2491
2491
  export declare interface ResizeGhostProps {
2492
2492
  blocks: Block[];
@@ -2532,7 +2532,7 @@ export declare enum ResizeHandle {
2532
2532
  NW = "nw"
2533
2533
  }
2534
2534
 
2535
- export declare const ResizeHandles: default_2.MemoExoticComponent<({ onResizeStart, activeHandle, handleStyle, zIndex, }: ResizeHandlesProps) => JSX_2.Element>;
2535
+ export declare const ResizeHandles: default_2.MemoExoticComponent<({ onResizeStart, activeHandle, handleStyle, zIndex, }: ResizeHandlesProps) => JSX.Element>;
2536
2536
 
2537
2537
  export declare interface ResizeHandlesProps {
2538
2538
  onResizeStart: (e: default_2.PointerEvent, handle: ResizeHandle) => void;
@@ -2612,7 +2612,7 @@ export declare interface SelectConfig {
2612
2612
 
2613
2613
  export declare const SELECTION_STYLE: BorderStyle;
2614
2614
 
2615
- export declare const SelectionBorder: MemoExoticComponent<({ width, height, zIndex, borderStyle, }: SelectionBorderProps) => JSX_2.Element>;
2615
+ export declare const SelectionBorder: MemoExoticComponent<({ width, height, zIndex, borderStyle, }: SelectionBorderProps) => JSX.Element>;
2616
2616
 
2617
2617
  declare interface SelectionBorderProps {
2618
2618
  width: number;
@@ -2621,7 +2621,7 @@ declare interface SelectionBorderProps {
2621
2621
  borderStyle?: BorderStyle;
2622
2622
  }
2623
2623
 
2624
- export declare const SelectionLayer: default_2.MemoExoticComponent<({ blocks, selectedBlockIds, isDragging, draggingState, getBlockRectPx, onResizeStart, selectionStyle, handleStyle, selectBorderZIndex, blockHandlesZIndex, }: SelectionLayerProps) => JSX_2.Element | null>;
2624
+ export declare const SelectionLayer: default_2.MemoExoticComponent<({ blocks, selectedBlockIds, isDragging, draggingState, getBlockRectPx, onResizeStart, selectionStyle, handleStyle, selectBorderZIndex, blockHandlesZIndex, }: SelectionLayerProps) => JSX.Element | null>;
2625
2625
 
2626
2626
  export declare interface SelectionLayerProps {
2627
2627
  blocks: Block[];
@@ -2709,7 +2709,7 @@ export declare function serializeValues(values: Record<string, Value>, pretty?:
2709
2709
  * - その他タブ: OtherPanel (スキーマ/値のインポート/エクスポート)
2710
2710
  */
2711
2711
  export declare const Sidebar: {
2712
- ({ blocks, selectedBlockIds, pluginRegistry, onUpdateBlocks, schema, values, onSchemaChange, onValuesChange, gridSize, className, }: SidebarProps): JSX_2.Element;
2712
+ ({ blocks, selectedBlockIds, pluginRegistry, onUpdateBlocks, schema, values, onSchemaChange, onValuesChange, gridSize, className, }: SidebarProps): JSX.Element;
2713
2713
  displayName: string;
2714
2714
  };
2715
2715
 
@@ -2764,7 +2764,7 @@ export declare function stringToDimension<U extends Unit>(str: string, allowedUn
2764
2764
  * TabPanel
2765
2765
  * タブコンテンツの共通ラッパー
2766
2766
  */
2767
- export declare const TabPanel: ({ children, emptyMessage, className, }: TabPanelProps) => JSX_2.Element;
2767
+ export declare const TabPanel: ({ children, emptyMessage, className, }: TabPanelProps) => JSX.Element;
2768
2768
 
2769
2769
  export declare interface TabPanelProps {
2770
2770
  /** パネルの内容 */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tatamicks/core",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "private": false,
5
5
  "description": "A headless, extensible document editor for React with grid-based layout system",
6
6
  "keywords": [