Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/global

Package Overview
Dependencies
Maintainers
5
Versions
1172
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/global - npm Package Compare versions

Comparing version 0.5.0-20230317014705-a881b9c to 0.5.0-20230317123153-8e8266b

1

dist/config/consts.d.ts

@@ -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',

12

dist/database.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc