@automerge/automerge-wasm
Advanced tools
Comparing version 0.10.0-richtext-alpha.1 to 0.10.0
@@ -10,9 +10,3 @@ export type Actor = string; | ||
export type MaterializeValue = { [key:string]: MaterializeValue } | Array<MaterializeValue> | Value | ||
export type MapObjType = { [key: string]: ObjType | Value } | ||
export type ObjInfo = { id: ObjID, type: ObjTypeName, path?: Prop[] }; | ||
export type Block = {type: string, parents: string[], attrs: { [key: string]: Value } } | ||
export type Span = { type: "text", value: string, "marks"?: MarkSet } | ||
| { type: "block", value: Block } | ||
export type ListObjType = Array<ObjType | Value> | ||
export type ObjType = string | ListObjType | MapObjType | ||
export type ObjType = string | Array<ObjType | Value> | { [key: string]: ObjType | Value } | ||
export type FullValue = | ||
@@ -107,3 +101,3 @@ ["str", string] | | ||
export type PatchValue = string | number | boolean | null | Date | Uint8Array | {} | [] | ||
export type Patch = PutPatch | DelPatch | SpliceTextPatch | IncPatch | InsertPatch | MarkPatch | UnmarkPatch | ConflictPatch | SplitBlockPatch | UpdateBlockPatch | JoinBlockPatch; | ||
export type Patch = PutPatch | DelPatch | SpliceTextPatch | IncPatch | InsertPatch | MarkPatch | UnmarkPatch | ConflictPatch; | ||
@@ -157,3 +151,2 @@ export type PutPatch = { | ||
value: string, | ||
block?: { parents: string[], type: string } | ||
marks?: MarkSet, | ||
@@ -175,26 +168,2 @@ } | ||
export type SplitBlockPatch = { | ||
action: 'splitBlock' | ||
path: Prop[], | ||
index: number, | ||
type: string, | ||
parents: string[], | ||
attrs: { [key: string]: Value }, | ||
} | ||
export type UpdateBlockPatch = { | ||
action: 'updateBlock' | ||
path: Prop[], | ||
index: number, | ||
new_type: string | null, | ||
new_parents: string[] | null, | ||
new_attrs: { [key: string]: string | Value } | null, | ||
} | ||
export type JoinBlockPatch = { | ||
action: 'joinBlock' | ||
path: Prop[], | ||
index: number, | ||
} | ||
export type Mark = { | ||
@@ -252,9 +221,2 @@ name: string, | ||
// blocks | ||
splitBlock(obj: ObjID, index: number, block: {type: string, parents: string[], attrs: {[key: string]: Value}}): void; | ||
joinBlock(obj: ObjID, index: number) : void; | ||
updateBlock(obj: ObjID, index: number, block: {type: string, parents: string[], attrs: {[key: string]: Value}}): void; | ||
updateBlocks(obj: ObjID, newBlocks: ({type: string, parents: string[], attrs: {[key: string]: Value}} | string)[]): void; | ||
getBlock(obj: ObjID, index: number): {type: string, parents: string[], attrs: {[key: string]: Value}} | null; | ||
diff(before: Heads, after: Heads): Patch[]; | ||
@@ -275,6 +237,4 @@ | ||
getAll(obj: ObjID, arg: Prop, heads?: Heads): FullValueWithId[]; | ||
objInfo(obj: ObjID, heads?: Heads): ObjInfo; | ||
keys(obj: ObjID, heads?: Heads): string[]; | ||
text(obj: ObjID, heads?: Heads): string; | ||
spans(obj: ObjID, heads?: Heads): Span[]; | ||
length(obj: ObjID, heads?: Heads): number; | ||
@@ -281,0 +241,0 @@ materialize(obj?: ObjID, heads?: Heads, metadata?: unknown): MaterializeValue; |
@@ -11,3 +11,3 @@ { | ||
"repository": "github:automerge/automerge", | ||
"version": "0.10.0-richtext-alpha.1", | ||
"version": "0.10.0", | ||
"license": "MIT", | ||
@@ -37,3 +37,3 @@ "files": [ | ||
"debug": "cross-env PROFILE=dev TARGET_DIR=debug yarn buildall", | ||
"dev": "cross-env PROFILE=dev TARGET_DIR=debug FEATURES='' TARGET=nodejs yarn target && node ./fixup-node-cjs.mjs", | ||
"dev": "cross-env PROFILE=dev TARGET_DIR=debug FEATURES='' TARGET=nodejs yarn target", | ||
"build": "cross-env PROFILE=dev TARGET_DIR=debug FEATURES='' yarn buildall", | ||
@@ -40,0 +40,0 @@ "release": "cross-env PROFILE=release TARGET_DIR=release yarn buildall", |
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 not supported yet
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 not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
6954669
7780