@wix/create-app 0.0.63 → 0.0.64
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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/create-app",
|
|
3
3
|
"description": "Create Wix apps",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.64",
|
|
5
5
|
"author": "Ihor Machuzhak",
|
|
6
6
|
"bin": "bin/index.cjs",
|
|
7
7
|
"devDependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"@types/is-git-url": "^1.0.2",
|
|
10
10
|
"@types/lodash": "^4.17.6",
|
|
11
11
|
"@types/validate-npm-package-name": "^4.0.2",
|
|
12
|
-
"@wix/bi-logger-dev-tools-data": "^1.
|
|
12
|
+
"@wix/bi-logger-dev-tools-data": "^1.54.0",
|
|
13
13
|
"@wix/cli-auth": "0.0.0",
|
|
14
14
|
"@wix/cli-core-definitions": "0.0.0",
|
|
15
15
|
"@wix/cli-error": "0.0.0",
|
|
@@ -84,5 +84,5 @@
|
|
|
84
84
|
]
|
|
85
85
|
}
|
|
86
86
|
},
|
|
87
|
-
"falconPackageHash": "
|
|
87
|
+
"falconPackageHash": "a1c73005ff3d97837eef6f8273c11ba5fc559694ced9e89032ed45e5"
|
|
88
88
|
}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import React, { type FC } from 'react';
|
|
2
|
+
import { dashboard } from '@wix/dashboard';
|
|
1
3
|
import {
|
|
2
4
|
Button,
|
|
3
5
|
EmptyState,
|
|
@@ -5,16 +7,12 @@ import {
|
|
|
5
7
|
Page,
|
|
6
8
|
TextButton,
|
|
7
9
|
WixDesignSystemProvider,
|
|
8
|
-
} from
|
|
9
|
-
import
|
|
10
|
-
import * as Icons from
|
|
11
|
-
import
|
|
12
|
-
import wixLogo from "./wix_logo.svg";
|
|
13
|
-
import { withDashboard, useDashboard } from "@wix/dashboard-react";
|
|
14
|
-
|
|
15
|
-
function Index() {
|
|
16
|
-
const { showToast } = useDashboard();
|
|
10
|
+
} from '@wix/design-system';
|
|
11
|
+
import '@wix/design-system/styles.global.css';
|
|
12
|
+
import * as Icons from '@wix/wix-ui-icons-common';
|
|
13
|
+
import wixLogo from './wix_logo.svg';
|
|
17
14
|
|
|
15
|
+
const Index: FC = () => {
|
|
18
16
|
return (
|
|
19
17
|
<WixDesignSystemProvider>
|
|
20
18
|
<Page>
|
|
@@ -24,8 +22,8 @@ function Index() {
|
|
|
24
22
|
actionsBar={
|
|
25
23
|
<Button
|
|
26
24
|
onClick={() => {
|
|
27
|
-
showToast({
|
|
28
|
-
message:
|
|
25
|
+
dashboard.showToast({
|
|
26
|
+
message: 'Your first toast message!',
|
|
29
27
|
});
|
|
30
28
|
}}
|
|
31
29
|
prefixIcon={<Icons.GetStarted />}
|
|
@@ -43,19 +41,19 @@ function Index() {
|
|
|
43
41
|
subtitle="Learn how to work with dashboard pages and how to add functionality to them using Wix APIs."
|
|
44
42
|
theme="page"
|
|
45
43
|
>
|
|
46
|
-
<
|
|
44
|
+
<TextButton
|
|
45
|
+
as="a"
|
|
47
46
|
href="https://dev.wix.com/api/cli/app-framework/dashboard-pages"
|
|
48
47
|
target="_blank"
|
|
48
|
+
prefixIcon={<Icons.ExternalLink />}
|
|
49
49
|
>
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
</TextButton>
|
|
53
|
-
</a>
|
|
50
|
+
Dashboard pages documentation
|
|
51
|
+
</TextButton>
|
|
54
52
|
</EmptyState>
|
|
55
53
|
</Page.Content>
|
|
56
54
|
</Page>
|
|
57
55
|
</WixDesignSystemProvider>
|
|
58
56
|
);
|
|
59
|
-
}
|
|
57
|
+
};
|
|
60
58
|
|
|
61
|
-
export default
|
|
59
|
+
export default Index;
|