@blocksuite/global
Advanced tools
Comparing version 0.5.0-20230317014705-a881b9c to 0.5.0-20230317123153-8e8266b
@@ -10,2 +10,3 @@ export * from './consts/affine-style-consts.js'; | ||
export declare const HOTKEYS: { | ||
ANY_KEY: string; | ||
UNDO: string; | ||
@@ -12,0 +13,0 @@ REDO: string; |
@@ -8,2 +8,3 @@ export * from './consts/affine-style-consts.js'; | ||
export const HOTKEYS = { | ||
ANY_KEY: '*', | ||
UNDO: 'command+z,ctrl+z', | ||
@@ -10,0 +11,0 @@ REDO: 'command+shift+z,ctrl+shift+z,ctrl+y', |
@@ -8,3 +8,3 @@ export interface RowHost extends HTMLElement { | ||
/** | ||
* color of the tag | ||
* color of the column | ||
*/ | ||
@@ -21,4 +21,4 @@ color: `#${string}`; | ||
} | ||
export type TagSchemaProperty<Property extends Record<string, unknown>> = Property; | ||
export interface TagSchema<Type extends string = string, Property extends Record<string, unknown> = Record<string, unknown>, BaseValue = unknown> { | ||
export type ColumnSchemaProperty<Property extends Record<string, unknown>> = Property; | ||
export interface ColumnSchema<Type extends string = string, Property extends Record<string, unknown> = Record<string, unknown>, BaseValue = unknown> { | ||
/** | ||
@@ -34,3 +34,3 @@ * each instance of tag type has its own unique uuid | ||
internalProperty: SchemaInternalProperty; | ||
property: TagSchemaProperty<Property>; | ||
property: ColumnSchemaProperty<Property>; | ||
/** | ||
@@ -42,6 +42,6 @@ * this value is just for hold the `BaseValue`, | ||
} | ||
export type BlockTag<Schema extends TagSchema = TagSchema> = { | ||
export type BlockColumn<Schema extends ColumnSchema = ColumnSchema> = { | ||
schemaId: Schema['id']; | ||
value: Schema extends TagSchema<infer _, infer __, infer Value> ? Value : never; | ||
value: Schema extends ColumnSchema<infer _, infer __, infer Value> ? Value : never; | ||
}; | ||
//# sourceMappingURL=database.d.ts.map |
{ | ||
"name": "@blocksuite/global", | ||
"version": "0.5.0-20230317014705-a881b9c", | ||
"version": "0.5.0-20230317123153-8e8266b", | ||
"types": "./index.d.ts", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -12,2 +12,3 @@ export * from './consts/affine-style-consts.js'; | ||
export const HOTKEYS = { | ||
ANY_KEY: '*', | ||
UNDO: 'command+z,ctrl+z', | ||
@@ -14,0 +15,0 @@ REDO: 'command+shift+z,ctrl+shift+z,ctrl+y', |
@@ -12,3 +12,3 @@ export interface RowHost extends HTMLElement { | ||
/** | ||
* color of the tag | ||
* color of the column | ||
*/ | ||
@@ -26,6 +26,6 @@ color: `#${string}`; | ||
export type TagSchemaProperty<Property extends Record<string, unknown>> = | ||
export type ColumnSchemaProperty<Property extends Record<string, unknown>> = | ||
Property; | ||
export interface TagSchema< | ||
export interface ColumnSchema< | ||
Type extends string = string, | ||
@@ -45,3 +45,3 @@ Property extends Record<string, unknown> = Record<string, unknown>, | ||
internalProperty: SchemaInternalProperty; | ||
property: TagSchemaProperty<Property>; | ||
property: ColumnSchemaProperty<Property>; | ||
/** | ||
@@ -54,7 +54,7 @@ * this value is just for hold the `BaseValue`, | ||
export type BlockTag<Schema extends TagSchema = TagSchema> = { | ||
export type BlockColumn<Schema extends ColumnSchema = ColumnSchema> = { | ||
schemaId: Schema['id']; | ||
value: Schema extends TagSchema<infer _, infer __, infer Value> | ||
value: Schema extends ColumnSchema<infer _, infer __, infer Value> | ||
? Value | ||
: never; | ||
}; |
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 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
445280
4620