djedi-json
Advanced tools
Comparing version 0.5.10 to 0.5.11
import React, { RefObject } from 'react'; | ||
import { Path } from '../core/Tree/types'; | ||
import { NodeContentType, NodeTreeItem } from '../types'; | ||
@@ -12,3 +13,4 @@ export declare type EditContextType = { | ||
editing: boolean; | ||
move: (steps: number) => void; | ||
shift: (steps: number) => void; | ||
move: (to: Path) => void; | ||
}; | ||
@@ -15,0 +17,0 @@ declare const EditContext: React.Context<EditContextType>; |
import { NodeTreeItem } from '../../types'; | ||
import { TreeReducerAction } from './types'; | ||
export declare const reducer: (state: NodeTreeItem, action: TreeReducerAction) => any; | ||
export declare const reducer: (state: NodeTreeItem, action: TreeReducerAction) => NodeTreeItem; | ||
export default reducer; |
@@ -0,1 +1,3 @@ | ||
import { NodeTreeItem } from "../../types"; | ||
export declare type Path = string[] | string; | ||
export declare type ReplaceAction = { | ||
@@ -11,3 +13,3 @@ type: 'replace'; | ||
payload: NodeTreeItem; | ||
path: string[] | string; | ||
path: Path; | ||
}; | ||
@@ -17,13 +19,13 @@ export declare type AddAction = { | ||
payload: NodeTreeItem; | ||
path: string[] | string; | ||
path: Path; | ||
}; | ||
export declare type DeleteAction = { | ||
type: 'delete'; | ||
path: string[] | string; | ||
path: Path; | ||
}; | ||
export declare type MoveAction = { | ||
type: 'move'; | ||
path: string[] | string; | ||
steps: number; | ||
from: Path; | ||
to: Path; | ||
}; | ||
export declare type TreeReducerAction = MoveAction | ReplaceAction | EmptyAction | PatchAction | DeleteAction | AddAction; | ||
export declare type TreeReducerAction = ReplaceAction | EmptyAction | PatchAction | DeleteAction | AddAction | MoveAction; |
{ | ||
"name": "djedi-json", | ||
"version": "0.5.10", | ||
"version": "0.5.11", | ||
"main": "build/index.js", | ||
@@ -5,0 +5,0 @@ "module": "build/index.esm.js", |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
412974
4129