nativescript-vue 2.9.0 → 2.9.2
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/README.md +7 -0
- package/dist/index.js +386 -228
- package/index.d.ts +25 -23
- package/package.json +29 -33
- package/CHANGELOG.md +0 -882
package/index.d.ts
CHANGED
|
@@ -39,30 +39,32 @@ export interface ModalOptions extends Partial<ShowModalOptions> {
|
|
|
39
39
|
props?: Record<string, any>;
|
|
40
40
|
}
|
|
41
41
|
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
declare module 'vue/types/vue' {
|
|
43
|
+
// 3. Declare augmentation for Vue
|
|
44
|
+
interface Vue<V = View> {
|
|
45
|
+
nativeView: V
|
|
45
46
|
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export interface
|
|
47
|
+
$navigateTo: navigateTo
|
|
48
|
+
$navigateBack: navigateBack
|
|
49
|
+
|
|
50
|
+
$modal?: { close: (data?: any) => Promise<typeof data> };
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Open a modal using a component
|
|
54
|
+
* @param {typeof Vue} component
|
|
55
|
+
* @param {ModalOptions} options
|
|
56
|
+
* @returns {any}
|
|
57
|
+
*/
|
|
58
|
+
$showModal: (component: typeof Vue, options?: ModalOptions) => Promise<any>;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* starts the nativescript application
|
|
62
|
+
*/
|
|
63
|
+
$start: () => void
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
export interface NativeScriptVue<V = View> extends Vue<V>{};
|
|
67
|
+
export interface NativeScriptVueConstructor<V = View> extends VueConstructor<NativeScriptVue<V>>
|
|
66
68
|
{
|
|
67
69
|
navigateTo: navigateTo
|
|
68
70
|
navigateBack: navigateBack
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nativescript-vue",
|
|
3
|
-
"version": "2.9.
|
|
3
|
+
"version": "2.9.2",
|
|
4
4
|
"description": "NativeScript and Vue integration",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"files": [
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
],
|
|
13
13
|
"typings": "index.d.ts",
|
|
14
14
|
"scripts": {
|
|
15
|
-
"prepare": "patch-package",
|
|
15
|
+
"prepare": "husky install && patch-package",
|
|
16
16
|
"test": "jest",
|
|
17
17
|
"tdd": "jest --watch",
|
|
18
18
|
"dev": "npm run dev:core -- -w & npm run dev:compiler -- -w",
|
|
@@ -53,35 +53,35 @@
|
|
|
53
53
|
}
|
|
54
54
|
},
|
|
55
55
|
"devDependencies": {
|
|
56
|
-
"@babel/core": "^7.
|
|
57
|
-
"@babel/plugin-transform-flow-strip-types": "7.
|
|
58
|
-
"@babel/preset-env": "7.
|
|
59
|
-
"@commitlint/cli": "
|
|
60
|
-
"@commitlint/config-conventional": "
|
|
61
|
-
"@nativescript/core": "8.
|
|
62
|
-
"@rollup/plugin-alias": "3.1.
|
|
56
|
+
"@babel/core": "^7.17.10",
|
|
57
|
+
"@babel/plugin-transform-flow-strip-types": "7.16.7",
|
|
58
|
+
"@babel/preset-env": "7.17.10",
|
|
59
|
+
"@commitlint/cli": "16.2.4",
|
|
60
|
+
"@commitlint/config-conventional": "16.2.4",
|
|
61
|
+
"@nativescript/core": "8.2.3",
|
|
62
|
+
"@rollup/plugin-alias": "3.1.9",
|
|
63
63
|
"@rollup/plugin-buble": "0.21.3",
|
|
64
|
-
"@rollup/plugin-commonjs": "
|
|
65
|
-
"@rollup/plugin-node-resolve": "
|
|
66
|
-
"@rollup/plugin-replace": "
|
|
67
|
-
"babel-jest": "
|
|
68
|
-
"chalk": "
|
|
69
|
-
"commitizen": "4.2.
|
|
70
|
-
"conventional-changelog-cli": "2.
|
|
64
|
+
"@rollup/plugin-commonjs": "22.0.0",
|
|
65
|
+
"@rollup/plugin-node-resolve": "13.3.0",
|
|
66
|
+
"@rollup/plugin-replace": "4.0.0",
|
|
67
|
+
"babel-jest": "28.1.0",
|
|
68
|
+
"chalk": "5.0.1",
|
|
69
|
+
"commitizen": "4.2.4",
|
|
70
|
+
"conventional-changelog-cli": "2.2.2",
|
|
71
71
|
"cz-conventional-changelog": "3.3.0",
|
|
72
|
-
"husky": "
|
|
73
|
-
"inquirer": "8.
|
|
74
|
-
"jest": "
|
|
75
|
-
"jest-junit": "
|
|
76
|
-
"lint-staged": "
|
|
72
|
+
"husky": "8.0.1",
|
|
73
|
+
"inquirer": "8.2.4",
|
|
74
|
+
"jest": "28.1.0",
|
|
75
|
+
"jest-junit": "13.2.0",
|
|
76
|
+
"lint-staged": "12.4.1",
|
|
77
77
|
"patch-package": "^6.4.7",
|
|
78
|
-
"prettier": "2.2
|
|
79
|
-
"rollup": "^2.
|
|
78
|
+
"prettier": "2.6.2",
|
|
79
|
+
"rollup": "^2.72.1",
|
|
80
80
|
"rollup-plugin-flow-no-whitespace": "1.0.0",
|
|
81
81
|
"rollup-plugin-resolve-aliases": "0.3.0",
|
|
82
|
-
"semver": "7.3.
|
|
83
|
-
"set-value": "
|
|
84
|
-
"vue": "2.6.
|
|
82
|
+
"semver": "7.3.7",
|
|
83
|
+
"set-value": "4.1.0",
|
|
84
|
+
"vue": "2.6.14"
|
|
85
85
|
},
|
|
86
86
|
"jest": {
|
|
87
87
|
"verbose": true,
|
|
@@ -99,7 +99,9 @@
|
|
|
99
99
|
"<rootDir>/samples"
|
|
100
100
|
],
|
|
101
101
|
"collectCoverage": true,
|
|
102
|
-
"
|
|
102
|
+
"testEnvironmentOptions": {
|
|
103
|
+
"url": "http://localhost"
|
|
104
|
+
}
|
|
103
105
|
},
|
|
104
106
|
"prettier": {
|
|
105
107
|
"semi": false,
|
|
@@ -107,12 +109,6 @@
|
|
|
107
109
|
"trailingComma": "none",
|
|
108
110
|
"arrowParens": "avoid"
|
|
109
111
|
},
|
|
110
|
-
"husky": {
|
|
111
|
-
"hooks": {
|
|
112
|
-
"pre-commit": "lint-staged",
|
|
113
|
-
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
|
|
114
|
-
}
|
|
115
|
-
},
|
|
116
112
|
"lint-staged": {
|
|
117
113
|
"{{platform,__test__}/**/*.js,samples/app/*.js}": [
|
|
118
114
|
"prettier --write"
|