@fastkit/vui 0.9.0 → 0.10.1

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fastkit/vui",
3
- "version": "0.9.0",
3
+ "version": "0.10.1",
4
4
  "description": "A simple, extensible UI kit for Vue applications.",
5
5
  "buildOptions": {
6
6
  "name": "Vui",
@@ -14,10 +14,12 @@
14
14
  "ja": "Vueアプリケーション用のシンプルで拡張可能なUIキット。"
15
15
  }
16
16
  },
17
- "main": "index.js",
18
- "module": "dist/vui.mjs",
17
+ "main": "./dist/vui.mjs",
18
+ "exports": {
19
+ "./tool": "./dist/tool/index.mjs",
20
+ ".": "./dist/vui.mjs"
21
+ },
19
22
  "files": [
20
- "index.js",
21
23
  "dist",
22
24
  "src"
23
25
  ],
@@ -39,21 +41,31 @@
39
41
  },
40
42
  "homepage": "https://github.com/dadajam4/fastkit/tree/dev/packages/vui#readme",
41
43
  "peerDependencies": {
42
- "vite": "^2.9.13",
43
- "vue": "^3.2.37"
44
+ "vite": "^4.0.4",
45
+ "vue": "^3.2.45"
44
46
  },
45
47
  "dependencies": {
46
- "@fastkit/color-scheme": "0.9.0",
47
- "@fastkit/icon-font": "0.9.0",
48
- "@fastkit/tiny-logger": "0.9.0",
49
- "@fastkit/vite-kit": "0.9.0",
50
- "@fastkit/vue-kit": "0.9.0",
51
- "@tiptap/extension-link": "^2.0.0-beta.43",
52
- "@tiptap/extension-underline": "^2.0.0-beta.25",
53
- "@tiptap/extension-text-style": "^2.0.0-beta.26",
54
- "@tiptap/starter-kit": "^2.0.0-beta.191",
55
- "@tiptap/vue-3": "^2.0.0-beta.96",
48
+ "@fastkit/color-scheme": "0.10.1",
49
+ "@fastkit/icon-font": "0.10.1",
50
+ "@fastkit/tiny-logger": "0.10.1",
51
+ "@fastkit/vite-kit": "0.10.1",
52
+ "@fastkit/vue-kit": "0.10.1",
53
+ "@tiptap/extension-link": "^2.0.0-beta.209",
54
+ "@tiptap/extension-text-style": "^2.0.0-beta.209",
55
+ "@tiptap/extension-underline": "^2.0.0-beta.209",
56
+ "@tiptap/starter-kit": "^2.0.0-beta.209",
57
+ "@tiptap/vue-3": "^2.0.0-beta.209",
56
58
  "eta": "^1.12.3",
57
- "fs-extra": "^9.1.0"
59
+ "fs-extra": "^11.1.0",
60
+ "prosemirror-commands": "^1.5.0",
61
+ "prosemirror-dropcursor": "^1.6.1",
62
+ "prosemirror-gapcursor": "^1.3.1",
63
+ "prosemirror-history": "^1.3.0",
64
+ "prosemirror-keymap": "^1.2.0",
65
+ "prosemirror-model": "^1.18.3",
66
+ "prosemirror-schema-list": "^1.2.2",
67
+ "prosemirror-state": "^1.4.2",
68
+ "prosemirror-transform": "^1.7.0",
69
+ "prosemirror-view": "^1.29.1"
58
70
  }
59
71
  }
@@ -39,7 +39,7 @@ import {
39
39
  BubbleMenu,
40
40
  FocusPosition,
41
41
  } from '@tiptap/vue-3';
42
- import StarterKit from '@tiptap/starter-kit';
42
+ import { StarterKit } from '@tiptap/starter-kit';
43
43
  import { VButton, VButtonGroup } from '../VButton';
44
44
  import {
45
45
  RawWysiwygExtension,
package/src/plugin.tsx CHANGED
@@ -83,7 +83,7 @@ export class VuiPlugin {
83
83
  app.config.globalProperties.$vui = $vui;
84
84
 
85
85
  onAppUnmount(app, () => {
86
- delete app.config.globalProperties.$vui;
86
+ delete (app.config.globalProperties as any).$vui;
87
87
  });
88
88
  }
89
89
  }
@@ -23,7 +23,7 @@
23
23
 
24
24
  @mixin elevation($z, $important: false) {
25
25
  box-shadow: var(--shadow-key-umbra-#{$z}), var(--shadow-key-penumbra-#{$z}),
26
- var(--shadow-key-ambient-#{$z}) if($important, !important, null);
26
+ var(--shadow-key-ambient-#{$z}) if($important, unquote('!important'), null);
27
27
  }
28
28
 
29
29
  @mixin elevation-transition(
@@ -2,13 +2,13 @@ import { Plugin } from 'vite';
2
2
  import { dynamicSrcVitePlugin } from '@fastkit/vite-kit';
3
3
  import path from 'path';
4
4
  import fs from 'fs-extra';
5
- import { findPackageDirSync } from '@fastkit/node-util';
5
+ import { findPackageDirSync, getDirname } from '@fastkit/node-util';
6
6
  import { RawIconFontEntry, IconFontSettings } from '@fastkit/icon-font-gen';
7
7
  import { VuiServiceOptions } from '../service';
8
8
  import { render } from 'eta';
9
9
  import { VuiError } from '../logger';
10
10
 
11
- const VUI_PACKAGE_DIR = path.resolve(__dirname, '../..');
11
+ const VUI_PACKAGE_DIR = path.resolve(getDirname(import.meta.url), '../..');
12
12
  const STYLE_AFTER_EFFECTS_PATH = path.join(
13
13
  VUI_PACKAGE_DIR,
14
14
  'src/styles/after-effects.scss',