@blocksuite/virgo
Advanced tools
Comparing version 0.0.0-20230406182220-0e8dac41-nightly to 0.0.0-20230407050457-3cd70505-nightly
@@ -9,3 +9,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
import { customElement, property } from 'lit/decorators.js'; | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
import { getDefaultAttributeRenderer } from '../utils/attribute-renderer.js'; | ||
@@ -12,0 +12,0 @@ let VirgoElement = class VirgoElement extends LitElement { |
@@ -10,3 +10,3 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
import { styleMap } from 'lit/directives/style-map.js'; | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
let VText = class VText extends LitElement { | ||
@@ -13,0 +13,0 @@ constructor() { |
export * from './components/index.js'; | ||
export * from './constant.js'; | ||
export * from './consts.js'; | ||
export * from './types.js'; | ||
@@ -4,0 +4,0 @@ export * from './utils/index.js'; |
/// <reference types="@blocksuite/global" /> | ||
export * from './components/index.js'; | ||
export * from './constant.js'; | ||
export * from './consts.js'; | ||
export * from './types.js'; | ||
@@ -5,0 +5,0 @@ export * from './utils/index.js'; |
import { expect, test } from '@playwright/test'; | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
import { enterVirgoPlayground, focusVirgoRichText, getDeltaFromVirgoRichText, getVirgoRichTextLine, press, setVirgoRichTextRange, type, } from './utils/misc.js'; | ||
@@ -4,0 +4,0 @@ test('basic input', async ({ page }) => { |
@@ -1,2 +0,2 @@ | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
import { isVElement, isVLine, isVRoot, isVText } from './guard.js'; | ||
@@ -3,0 +3,0 @@ import { calculateTextLength, getTextNodesFromElement } from './text.js'; |
@@ -1,2 +0,2 @@ | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
export function calculateTextLength(text) { | ||
@@ -3,0 +3,0 @@ if (text.wholeText === ZERO_WIDTH_SPACE) { |
{ | ||
"name": "@blocksuite/virgo", | ||
"version": "0.0.0-20230406182220-0e8dac41-nightly", | ||
"version": "0.0.0-20230407050457-3cd70505-nightly", | ||
"description": "A micro editor.", | ||
@@ -27,3 +27,3 @@ "main": "dist/index.js", | ||
"zod": "^3.21.4", | ||
"@blocksuite/global": "0.0.0-20230406182220-0e8dac41-nightly" | ||
"@blocksuite/global": "0.0.0-20230407050457-3cd70505-nightly" | ||
}, | ||
@@ -30,0 +30,0 @@ "scripts": { |
import { html, LitElement, type TemplateResult } from 'lit'; | ||
import { customElement, property } from 'lit/decorators.js'; | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
import type { DeltaInsert } from '../types.js'; | ||
@@ -6,0 +6,0 @@ import { getDefaultAttributeRenderer } from '../utils/attribute-renderer.js'; |
@@ -6,3 +6,3 @@ import { css, html, LitElement } from 'lit'; | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
@@ -9,0 +9,0 @@ @customElement('v-text') |
/// <reference types="@blocksuite/global" /> | ||
export * from './components/index.js'; | ||
export * from './constant.js'; | ||
export * from './consts.js'; | ||
export * from './types.js'; | ||
export * from './utils/index.js'; | ||
export * from './virgo.js'; |
import { expect, test } from '@playwright/test'; | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
import type { VEditor } from '../virgo.js'; | ||
@@ -5,0 +5,0 @@ import { |
import type { VirgoElement, VirgoLine } from '../components/index.js'; | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
import type { DomPoint, TextPoint } from '../types.js'; | ||
@@ -4,0 +4,0 @@ import { isVElement, isVLine, isVRoot, isVText } from './guard.js'; |
@@ -1,2 +0,2 @@ | ||
import { ZERO_WIDTH_SPACE } from '../constant.js'; | ||
import { ZERO_WIDTH_SPACE } from '../consts.js'; | ||
@@ -3,0 +3,0 @@ export function calculateTextLength(text: Text): number { |
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
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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
447658
+ Added@blocksuite/global@0.0.0-20230407050457-3cd70505-nightly(transitive)
- Removed@blocksuite/global@0.0.0-20230406182220-0e8dac41-nightly(transitive)
Updated@blocksuite/global@0.0.0-20230407050457-3cd70505-nightly