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

@blocksuite/affine-shared

Package Overview
Dependencies
Maintainers
0
Versions
210
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-20240902030638 to 0.0.0-canary-20240902064842

18

dist/utils/zod-schema.d.ts

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

export declare const ShapeSchema: z.ZodDefault<z.ZodObject<{
color: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
color: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

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

}, "strip", z.ZodTypeAny, {
color: string | {
color: LineColor | {
normal: string;

@@ -203,3 +203,3 @@ } | {

}, {
color: string | {
color: LineColor | {
normal: string;

@@ -238,3 +238,3 @@ } | {

export declare const TextSchema: z.ZodDefault<z.ZodObject<{
color: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
color: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

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

fontSize: number;
color: string | {
color: LineColor | {
normal: string;

@@ -275,3 +275,3 @@ } | {

fontSize: number;
color: string | {
color: LineColor | {
normal: string;

@@ -288,3 +288,3 @@ } | {

export declare const EdgelessTextSchema: z.ZodDefault<z.ZodObject<{
color: z.ZodUnion<[z.ZodString, z.ZodUnion<[z.ZodObject<{
color: z.ZodUnion<[z.ZodNativeEnum<typeof LineColor>, z.ZodUnion<[z.ZodObject<{
normal: z.ZodString;

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

}, "strip", z.ZodTypeAny, {
color: string | {
color: LineColor | {
normal: string;

@@ -322,3 +322,3 @@ } | {

}, {
color: string | {
color: LineColor | {
normal: string;

@@ -325,0 +325,0 @@ } | {

@@ -28,3 +28,3 @@ import { ConnectorMode, DEFAULT_CONNECTOR_COLOR, DEFAULT_FRONT_END_POINT_STYLE, DEFAULT_NOTE_BACKGROUND_COLOR, DEFAULT_NOTE_SHADOW, DEFAULT_REAR_END_POINT_STYLE, DEFAULT_SHAPE_FILL_COLOR, DEFAULT_SHAPE_STROKE_COLOR, DEFAULT_SHAPE_TEXT_COLOR, DEFAULT_TEXT_COLOR, FillColorsSchema, FontFamily, FontStyle, FontWeight, LineColor, LineColorsSchema, LineWidth, NoteBackgroundColorsSchema, NoteDisplayMode, NoteShadowsSchema, PointStyle, ShapeStyle, ShapeTextFontSize, ShapeType, StrokeColorsSchema, StrokeStyle, TextAlign, TextVerticalAlign, } from '@blocksuite/affine-model';

const ShapeStrokeColorSchema = z.union([StrokeColorsSchema, ColorSchema]);
const TextColorSchema = z.union([z.string(), ColorSchema]);
const TextColorSchema = z.union([LineColorsSchema, ColorSchema]);
const NoteBackgroundColorSchema = z.union([

@@ -31,0 +31,0 @@ NoteBackgroundColorsSchema,

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

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

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

@@ -25,0 +25,0 @@ "exports": {

@@ -59,3 +59,3 @@ import {

const ShapeStrokeColorSchema = z.union([StrokeColorsSchema, ColorSchema]);
const TextColorSchema = z.union([z.string(), ColorSchema]);
const TextColorSchema = z.union([LineColorsSchema, ColorSchema]);
const NoteBackgroundColorSchema = z.union([

@@ -62,0 +62,0 @@ NoteBackgroundColorsSchema,

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