@v1nt1248/3nclient-lib 0.0.8 → 0.0.9
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/dist/types.d.ts +16 -18
- package/package.json +2 -2
package/dist/types.d.ts
CHANGED
|
@@ -1,23 +1,21 @@
|
|
|
1
|
-
import { VNode } from 'vue'
|
|
2
|
-
import type { Ui3nNotificationProps, VueEventBus } from './constants'
|
|
3
|
-
import type { Ui3nButtonProps, Ui3nButtonEmits } from './components'
|
|
4
|
-
|
|
1
|
+
import { VNode } from 'vue';
|
|
2
|
+
import type { Ui3nNotificationProps, VueEventBus } from './constants';
|
|
3
|
+
import type { Ui3nButtonProps, Ui3nButtonEmits } from './components';
|
|
5
4
|
declare module '@vue/runtime-core' {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
5
|
+
interface ComponentCustomProperties {
|
|
6
|
+
$createNotice: (params: Ui3nNotificationProps) => void;
|
|
7
|
+
$locale: string;
|
|
8
|
+
$tr: (key: string, placeholders?: Record<string, string>) => string;
|
|
9
|
+
$changeLocale: (lang: string) => void;
|
|
10
|
+
$emitter: VueEventBus;
|
|
11
|
+
}
|
|
13
12
|
}
|
|
14
|
-
|
|
15
13
|
declare module '@v1nt1248/3nclient-lib' {
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
14
|
+
class Ui3nButton {
|
|
15
|
+
$props: Ui3nButtonProps;
|
|
16
|
+
$emits: Ui3nButtonEmits;
|
|
17
|
+
$clots: {
|
|
18
|
+
default: () => VNode[];
|
|
19
|
+
};
|
|
21
20
|
}
|
|
22
|
-
}
|
|
23
21
|
}
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"private": false,
|
|
4
4
|
"license": "AGPL-3.0-or-later",
|
|
5
5
|
"author": "v1nt1248",
|
|
6
|
-
"version": "0.0.
|
|
6
|
+
"version": "0.0.9",
|
|
7
7
|
"description": "Library for 3NWeb clients",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"files": ["dist", "src/components/"],
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"dev": "vite",
|
|
20
20
|
"generate:types": "vue-tsc --declaration --emitDeclarationOnly --outdir ./dist",
|
|
21
21
|
"copy:dts": "cp ./src/types.d.ts ./dist",
|
|
22
|
-
"build": "vite build
|
|
22
|
+
"build": "vite build",
|
|
23
23
|
"preview": "vite preview",
|
|
24
24
|
"stylelint": "stylelint --config .stylelint.config.cjs 'src/**/*.{vue,scss}'",
|
|
25
25
|
"stylelint:fix": "stylelint --config .stylelint.config.cjs --fix 'src/**/*.{vue,scss}'",
|