@blocksuite/virgo
Advanced tools
Comparing version 0.0.0-20230821151132-2bd0c7f6-nightly to 0.0.0-20230822202122-dba33658-nightly
@@ -761,2 +761,23 @@ import { expect, test } from '@playwright/test'; | ||
}); | ||
test('markdown shortcut using keyboard util', async ({ page }) => { | ||
await enterVirgoPlayground(page); | ||
await focusVirgoRichText(page); | ||
await page.waitForTimeout(100); | ||
await type(page, 'aaa**bbb** ccc'); | ||
const delta = await getDeltaFromVirgoRichText(page); | ||
expect(delta).toEqual([ | ||
{ | ||
insert: 'aaa', | ||
}, | ||
{ | ||
insert: 'bbb', | ||
attributes: { | ||
bold: true, | ||
}, | ||
}, | ||
{ | ||
insert: 'ccc', | ||
}, | ||
]); | ||
}); | ||
//# sourceMappingURL=virgo.spec.js.map |
@@ -5,2 +5,3 @@ export * from './attribute-renderer.js'; | ||
export * from './guard.js'; | ||
export * from './keyboard.js'; | ||
export * from './point-conversion.js'; | ||
@@ -7,0 +8,0 @@ export * from './query.js'; |
@@ -5,2 +5,3 @@ export * from './attribute-renderer.js'; | ||
export * from './guard.js'; | ||
export * from './keyboard.js'; | ||
export * from './point-conversion.js'; | ||
@@ -7,0 +8,0 @@ export * from './query.js'; |
{ | ||
"name": "@blocksuite/virgo", | ||
"version": "0.0.0-20230821151132-2bd0c7f6-nightly", | ||
"version": "0.0.0-20230822202122-dba33658-nightly", | ||
"description": "A micro editor.", | ||
@@ -28,3 +28,3 @@ "main": "dist/index.js", | ||
"zod": "^3.21.4", | ||
"@blocksuite/global": "0.0.0-20230821151132-2bd0c7f6-nightly" | ||
"@blocksuite/global": "0.0.0-20230822202122-dba33658-nightly" | ||
}, | ||
@@ -31,0 +31,0 @@ "scripts": { |
@@ -926,1 +926,26 @@ import { expect, test } from '@playwright/test'; | ||
}); | ||
test('markdown shortcut using keyboard util', async ({ page }) => { | ||
await enterVirgoPlayground(page); | ||
await focusVirgoRichText(page); | ||
await page.waitForTimeout(100); | ||
await type(page, 'aaa**bbb** ccc'); | ||
const delta = await getDeltaFromVirgoRichText(page); | ||
expect(delta).toEqual([ | ||
{ | ||
insert: 'aaa', | ||
}, | ||
{ | ||
insert: 'bbb', | ||
attributes: { | ||
bold: true, | ||
}, | ||
}, | ||
{ | ||
insert: 'ccc', | ||
}, | ||
]); | ||
}); |
@@ -5,2 +5,3 @@ export * from './attribute-renderer.js'; | ||
export * from './guard.js'; | ||
export * from './keyboard.js'; | ||
export * from './point-conversion.js'; | ||
@@ -7,0 +8,0 @@ export * from './query.js'; |
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
518207
172
8630
+ Added@blocksuite/global@0.0.0-20230822202122-dba33658-nightly(transitive)
- Removed@blocksuite/global@0.0.0-20230821151132-2bd0c7f6-nightly(transitive)
Updated@blocksuite/global@0.0.0-20230822202122-dba33658-nightly