@blocksuite/virgo
Advanced tools
Comparing version 0.0.0-20230413190748-4d32b79a-nightly to 0.0.0-20230414143749-f98f3e94-nightly
@@ -5,3 +5,2 @@ import { LitElement } from 'lit'; | ||
export declare class VText extends LitElement { | ||
static styles: import("lit").CSSResult; | ||
str: string; | ||
@@ -8,0 +7,0 @@ styles: DirectiveResult<typeof StyleMapDirective>; |
@@ -7,3 +7,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
}; | ||
import { css, html, LitElement } from 'lit'; | ||
import { html, LitElement } from 'lit'; | ||
import { customElement, property } from 'lit/decorators.js'; | ||
@@ -16,3 +16,6 @@ import { styleMap } from 'lit/directives/style-map.js'; | ||
this.str = ZERO_WIDTH_SPACE; | ||
this.styles = styleMap({}); | ||
this.styles = styleMap({ | ||
'word-wrap': 'break-word', | ||
'white-space': 'break-spaces', | ||
}); | ||
} | ||
@@ -30,8 +33,2 @@ render() { | ||
}; | ||
VText.styles = css ` | ||
v-text { | ||
word-wrap: break-word; | ||
white-space: break-spaces; | ||
} | ||
`; | ||
__decorate([ | ||
@@ -38,0 +35,0 @@ property() |
{ | ||
"name": "@blocksuite/virgo", | ||
"version": "0.0.0-20230413190748-4d32b79a-nightly", | ||
"version": "0.0.0-20230414143749-f98f3e94-nightly", | ||
"description": "A micro editor.", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"zod": "^3.21.4", | ||
"@blocksuite/global": "0.0.0-20230413190748-4d32b79a-nightly" | ||
"@blocksuite/global": "0.0.0-20230414143749-f98f3e94-nightly" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
@@ -1,2 +0,2 @@ | ||
import { css, html, LitElement } from 'lit'; | ||
import { html, LitElement } from 'lit'; | ||
import { customElement, property } from 'lit/decorators.js'; | ||
@@ -10,9 +10,2 @@ import type { DirectiveResult } from 'lit/directive.js'; | ||
export class VText extends LitElement { | ||
static override styles = css` | ||
v-text { | ||
word-wrap: break-word; | ||
white-space: break-spaces; | ||
} | ||
`; | ||
@property() | ||
@@ -22,3 +15,6 @@ str: string = ZERO_WIDTH_SPACE; | ||
@property() | ||
styles: DirectiveResult<typeof StyleMapDirective> = styleMap({}); | ||
styles: DirectiveResult<typeof StyleMapDirective> = styleMap({ | ||
'word-wrap': 'break-word', | ||
'white-space': 'break-spaces', | ||
}); | ||
@@ -25,0 +21,0 @@ override render() { |
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
461573
6488
+ Added@blocksuite/global@0.0.0-20230414143749-f98f3e94-nightly(transitive)
- Removed@blocksuite/global@0.0.0-20230413190748-4d32b79a-nightly(transitive)
Updated@blocksuite/global@0.0.0-20230414143749-f98f3e94-nightly