@seorii/tiptap 0.2.2 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  export default {
2
- target: ['ko'],
2
+ target: ['ko', 'ko-KR'],
3
3
  lang: 'ko',
4
4
  country: 'KR',
5
5
  text: '텍스트',
@@ -28,7 +28,7 @@ $: setTimeout(() => focus?.focus?.(), 100);
28
28
  <div class="title">iframe</div>
29
29
  </header>
30
30
  <Input placeholder="url" fullWidth bind:value={iframe} bind:input={focus}
31
- on:submit={() => $tiptap.chain().focus().insertContent({type: 'iframe', attrs: {src: iframe}}).insertContent('\n').run()}/>
31
+ on:submit={() => $tiptap.chain().focus().insertContent([{type: 'iframe', attrs: {src: iframe}}, {type: 'paragraph'}]).run()}/>
32
32
  <footer>
33
33
  <Button tabindex="0" transparent small on:click={() => {
34
34
  iframe = ''
@@ -38,7 +38,7 @@ $: setTimeout(() => focus?.focus?.(), 100);
38
38
  <Button tabindex="0" transparent small
39
39
  on:click={() => {
40
40
  $slashSelection?.();
41
- $tiptap.chain().focus().insertContent({type: 'iframe', attrs: {src: iframe}}).insertContent('\n').run();
41
+ $tiptap.chain().focus().insertContent([{type: 'iframe', attrs: {src: iframe}}, {type: 'paragraph'}]).run();
42
42
  }}>{i18n('insert')}
43
43
  </Button>
44
44
  </footer>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seorii/tiptap",
3
- "version": "0.2.2",
3
+ "version": "0.2.4",
4
4
  "scripts": {
5
5
  "dev": "vite dev",
6
6
  "build": "svelte-kit sync && svelte-package",
@@ -15,24 +15,24 @@
15
15
  "devDependencies": {
16
16
  "@sveltejs/adapter-auto": "^2.1.0",
17
17
  "@sveltejs/adapter-static": "^2.0.3",
18
- "@sveltejs/kit": "^1.22.4",
19
- "@sveltejs/package": "^2.2.0",
18
+ "@sveltejs/kit": "^1.22.5",
19
+ "@sveltejs/package": "^2.2.1",
20
20
  "@types/sanitize-html": "^2.9.0",
21
- "@typescript-eslint/eslint-plugin": "^6.2.1",
22
- "@typescript-eslint/parser": "^6.2.1",
23
- "eslint": "^8.46.0",
24
- "eslint-config-prettier": "^8.10.0",
21
+ "@typescript-eslint/eslint-plugin": "^6.3.0",
22
+ "@typescript-eslint/parser": "^6.3.0",
23
+ "eslint": "^8.47.0",
24
+ "eslint-config-prettier": "^9.0.0",
25
25
  "eslint-plugin-svelte3": "^4.0.0",
26
- "gh-pages": "^5.0.0",
26
+ "gh-pages": "^6.0.0",
27
27
  "prettier": "^3.0.1",
28
28
  "prettier-plugin-svelte": "^3.0.3",
29
- "sass": "^1.64.2",
30
- "svelte": "^4.1.2",
31
- "svelte-check": "^3.4.6",
29
+ "sass": "^1.65.1",
30
+ "svelte": "^4.2.0",
31
+ "svelte-check": "^3.5.0",
32
32
  "svelte-preprocess": "^5.0.4",
33
33
  "tslib": "^2.6.1",
34
34
  "typescript": "^5.1.6",
35
- "vite": "^4.4.8"
35
+ "vite": "^4.4.9"
36
36
  },
37
37
  "type": "module",
38
38
  "dependencies": {
@@ -61,7 +61,7 @@
61
61
  "@tiptap/starter-kit": "^2.0.4",
62
62
  "@tiptap/suggestion": "^2.0.4",
63
63
  "emojis-keywords": "2.0.0",
64
- "emojis-list": "2.0.0",
64
+ "emojis-list": "3.0.0",
65
65
  "lowlight": "^2.9.0",
66
66
  "nunui": "^0.0.101",
67
67
  "prosemirror-commands": "^1.5.2",