New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@blocksuite/affine-shared

Package Overview
Dependencies
Maintainers
0
Versions
256
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@blocksuite/affine-shared - npm Package Compare versions

Comparing version 0.0.0-canary-20240830045318 to 0.0.0-canary-20240831001307

dist/services/doc-mode-service.d.ts

2

dist/types/index.d.ts
import type { EmbedCardStyle } from '@blocksuite/affine-model';
import type { BlockComponent } from '@blocksuite/block-std';
import type { Point } from '@blocksuite/global/utils';
import type { BlockModel } from '@blocksuite/store';

@@ -10,3 +9,2 @@ export interface EditingState {

}
export type SelectionPosition = 'start' | 'end' | Point;
export declare enum LassoMode {

@@ -13,0 +11,0 @@ FreeHand = 0,

@@ -22,3 +22,3 @@ import { ConnectorMode, FontFamily, FontStyle, FontWeight, LineColor, LineWidth, NoteDisplayMode, PointStyle, ShapeStyle, ShapeTextFontSize, ShapeType, StrokeStyle, TextAlign, TextVerticalAlign } from '@blocksuite/affine-model';

rearEndpointStyle: z.ZodNativeEnum<typeof PointStyle>;
stroke: z.ZodUnion<[z.ZodUnion<readonly [z.ZodLiteral<LineColor.Yellow>, z.ZodLiteral<LineColor.Orange>, z.ZodLiteral<LineColor.Red>, z.ZodLiteral<LineColor.Magenta>, z.ZodLiteral<LineColor.Purple>, z.ZodLiteral<LineColor.Blue>, z.ZodLiteral<LineColor.Teal>, z.ZodLiteral<LineColor.Green>, z.ZodLiteral<LineColor.Black>, z.ZodLiteral<LineColor.Grey>, z.ZodLiteral<LineColor.White>]>, z.ZodUnion<[z.ZodObject<{
stroke: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

@@ -71,3 +71,3 @@ }, "strip", z.ZodTypeAny, {

export declare const BrushSchema: z.ZodDefault<z.ZodObject<{
color: z.ZodUnion<[z.ZodUnion<readonly [z.ZodLiteral<LineColor.Yellow>, z.ZodLiteral<LineColor.Orange>, z.ZodLiteral<LineColor.Red>, z.ZodLiteral<LineColor.Magenta>, z.ZodLiteral<LineColor.Purple>, z.ZodLiteral<LineColor.Blue>, z.ZodLiteral<LineColor.Teal>, z.ZodLiteral<LineColor.Green>, z.ZodLiteral<LineColor.Black>, z.ZodLiteral<LineColor.Grey>, z.ZodLiteral<LineColor.White>]>, z.ZodUnion<[z.ZodObject<{
color: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

@@ -124,3 +124,3 @@ }, "strip", z.ZodTypeAny, {

shapeType: z.ZodNativeEnum<typeof ShapeType>;
fillColor: z.ZodUnion<[z.ZodUnion<readonly [z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Yellow>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Orange>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Red>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Magenta>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Purple>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Blue>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Teal>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Green>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Black>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.Grey>, z.ZodLiteral<import("@blocksuite/affine-model").ShapeFillColor.White>]>, z.ZodUnion<[z.ZodObject<{
fillColor: z.ZodUnion<[z.ZodNativeEnum<typeof import("@blocksuite/affine-model").ShapeFillColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

@@ -141,3 +141,3 @@ }, "strip", z.ZodTypeAny, {

}>]>]>;
strokeColor: z.ZodUnion<[z.ZodUnion<readonly [z.ZodLiteral<LineColor.Yellow>, z.ZodLiteral<LineColor.Orange>, z.ZodLiteral<LineColor.Red>, z.ZodLiteral<LineColor.Magenta>, z.ZodLiteral<LineColor.Purple>, z.ZodLiteral<LineColor.Blue>, z.ZodLiteral<LineColor.Teal>, z.ZodLiteral<LineColor.Green>, z.ZodLiteral<LineColor.Black>, z.ZodLiteral<LineColor.Grey>, z.ZodLiteral<LineColor.White>]>, z.ZodUnion<[z.ZodObject<{
strokeColor: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

@@ -330,3 +330,3 @@ }, "strip", z.ZodTypeAny, {

export declare const NoteSchema: z.ZodDefault<z.ZodObject<{
background: z.ZodUnion<[z.ZodUnion<readonly [z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Yellow>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Orange>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Red>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Magenta>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Purple>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Blue>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Teal>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Green>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Black>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.Grey>, z.ZodLiteral<import("@blocksuite/affine-model").NoteBackgroundColor.White>]>, z.ZodUnion<[z.ZodObject<{
background: z.ZodUnion<[z.ZodNativeEnum<typeof import("@blocksuite/affine-model").NoteBackgroundColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

@@ -353,3 +353,3 @@ }, "strip", z.ZodTypeAny, {

borderStyle: z.ZodNativeEnum<typeof StrokeStyle>;
shadowType: z.ZodUnion<readonly [z.ZodLiteral<import("@blocksuite/affine-model").NoteShadow.None>, z.ZodLiteral<import("@blocksuite/affine-model").NoteShadow.Box>, z.ZodLiteral<import("@blocksuite/affine-model").NoteShadow.Sticker>, z.ZodLiteral<import("@blocksuite/affine-model").NoteShadow.Paper>, z.ZodLiteral<import("@blocksuite/affine-model").NoteShadow.Float>, z.ZodLiteral<import("@blocksuite/affine-model").NoteShadow.Film>]>;
shadowType: z.ZodNativeEnum<typeof import("@blocksuite/affine-model").NoteShadow>;
}, "strip", z.ZodTypeAny, {

@@ -356,0 +356,0 @@ borderRadius: number;

{
"name": "@blocksuite/affine-shared",
"version": "0.0.0-canary-20240830045318",
"version": "0.0.0-canary-20240831001307",
"description": "Default BlockSuite editable blocks.",

@@ -18,7 +18,7 @@ "type": "module",

"zod": "^3.23.8",
"@blocksuite/affine-model": "0.0.0-canary-20240830045318",
"@blocksuite/block-std": "0.0.0-canary-20240830045318",
"@blocksuite/inline": "0.0.0-canary-20240830045318",
"@blocksuite/store": "0.0.0-canary-20240830045318",
"@blocksuite/global": "0.0.0-canary-20240830045318"
"@blocksuite/affine-model": "0.0.0-canary-20240831001307",
"@blocksuite/block-std": "0.0.0-canary-20240831001307",
"@blocksuite/global": "0.0.0-canary-20240831001307",
"@blocksuite/inline": "0.0.0-canary-20240831001307",
"@blocksuite/store": "0.0.0-canary-20240831001307"
},

@@ -61,2 +61,6 @@ "exports": {

"import": "./dist/styles/index.js"
},
"./services": {
"types": "./dist/services/index.d.ts",
"import": "./dist/services/index.js"
}

@@ -63,0 +67,0 @@ },

import type { EmbedCardStyle } from '@blocksuite/affine-model';
import type { BlockComponent } from '@blocksuite/block-std';
import type { Point } from '@blocksuite/global/utils';
import type { BlockModel } from '@blocksuite/store';

@@ -12,4 +11,2 @@

export type SelectionPosition = 'start' | 'end' | Point;
export enum LassoMode {

@@ -16,0 +13,0 @@ FreeHand,

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