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
286
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-20240902140244 to 0.0.0-canary-20240903102244

dist/services/quick-search-service.d.ts

4

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

@@ -0,4 +1,4 @@

import type { DocMode } from '@blocksuite/affine-model';
import type { BlockStdScope } from '@blocksuite/block-std';
import type { Container } from '@blocksuite/global/di';
import { DocMode } from '@blocksuite/affine-model';
import { Extension } from '@blocksuite/block-std';

@@ -20,4 +20,4 @@ import { type Disposable } from '@blocksuite/global/utils';

setMode(mode: DocMode, id?: string): void;
toggleMode(id?: string): DocMode;
toggleMode(id?: string): "page" | "edgeless";
}
//# sourceMappingURL=doc-mode-service.d.ts.map

@@ -1,6 +0,5 @@

import { DocMode } from '@blocksuite/affine-model';
import { Extension, StdIdentifier } from '@blocksuite/block-std';
import { createIdentifier } from '@blocksuite/global/di';
import { Slot } from '@blocksuite/global/utils';
const DEFAULT_MODE = DocMode.Page;
const DEFAULT_MODE = 'page';
export const DocModeProvider = createIdentifier('AffineDocModeService');

@@ -31,3 +30,3 @@ const modeMap = new Map();

toggleMode(id = this.std.doc.id) {
const mode = this.getMode(id) === DocMode.Page ? DocMode.Edgeless : DocMode.Page;
const mode = this.getMode(id) === 'page' ? 'edgeless' : 'page';
this.setMode(mode, id);

@@ -34,0 +33,0 @@ return mode;

export * from './doc-mode-service.js';
export * from './quick-search-service.js';
//# sourceMappingURL=index.d.ts.map
export * from './doc-mode-service.js';
export * from './quick-search-service.js';
//# sourceMappingURL=index.js.map

@@ -21,3 +21,3 @@ import { isInsidePageEditor } from './checker.js';

}
const rootComponent = editorHost.view.viewFromPath('block', [doc.root.id]);
const rootComponent = editorHost.view.getBlock(doc.root.id);
if (!rootComponent ||

@@ -24,0 +24,0 @@ rootComponent.closest('affine-page-root') !== rootComponent) {

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

}, "strip", z.ZodTypeAny, {
background: {
normal: string;
} | {
light: string;
dark: string;
} | import("@blocksuite/affine-model").NoteBackgroundColor;
displayMode: NoteDisplayMode;
edgeless: {

@@ -392,3 +385,2 @@ style: {

};
}, {
background: {

@@ -401,2 +393,3 @@ normal: string;

displayMode: NoteDisplayMode;
}, {
edgeless: {

@@ -410,3 +403,10 @@ style: {

};
background: {
normal: string;
} | {
light: string;
dark: string;
} | import("@blocksuite/affine-model").NoteBackgroundColor;
displayMode: NoteDisplayMode;
}>>;
//# sourceMappingURL=zod-schema.d.ts.map
{
"name": "@blocksuite/affine-shared",
"version": "0.0.0-canary-20240902140244",
"version": "0.0.0-canary-20240903102244",
"description": "Default BlockSuite editable blocks.",

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

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

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

@@ -0,5 +1,5 @@

import type { DocMode } from '@blocksuite/affine-model';
import type { BlockStdScope } from '@blocksuite/block-std';
import type { Container } from '@blocksuite/global/di';
import { DocMode } from '@blocksuite/affine-model';
import { Extension, StdIdentifier } from '@blocksuite/block-std';

@@ -9,3 +9,3 @@ import { createIdentifier } from '@blocksuite/global/di';

const DEFAULT_MODE = DocMode.Page;
const DEFAULT_MODE: DocMode = 'page';

@@ -55,4 +55,3 @@ export interface DocModeProvider {

toggleMode(id: string = this.std.doc.id) {
const mode =
this.getMode(id) === DocMode.Page ? DocMode.Edgeless : DocMode.Page;
const mode = this.getMode(id) === 'page' ? 'edgeless' : 'page';
this.setMode(mode, id);

@@ -59,0 +58,0 @@

export * from './doc-mode-service.js';
export * from './quick-search-service.js';

@@ -24,3 +24,3 @@ import type { BlockComponent } from '@blocksuite/block-std';

}
const rootComponent = editorHost.view.viewFromPath('block', [doc.root.id]);
const rootComponent = editorHost.view.getBlock(doc.root.id);

@@ -27,0 +27,0 @@ if (

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

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