@wix/create-app 0.0.14 → 0.0.16

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.14",
4
+ "version": "0.0.16",
5
5
  "author": "Ihor Machuzhak",
6
6
  "bin": "bin/index.cjs",
7
7
  "dependencies": {
@@ -10,6 +10,7 @@
10
10
  "devDependencies": {
11
11
  "@commander-js/extra-typings": "^10.0.3",
12
12
  "@types/validate-npm-package-name": "^4.0.0",
13
+ "@wix/bi-logger-wix-cli": "^1.16.0",
13
14
  "@wix/cli-auth": "0.0.0",
14
15
  "@wix/cli-core-definitions": "0.0.0",
15
16
  "@wix/cli-error-reporter": "0.0.0",
@@ -17,6 +18,8 @@
17
18
  "@wix/cli-http-client": "0.0.0",
18
19
  "@wix/cli-i18n": "0.0.0",
19
20
  "@wix/cli-site-selector": "0.0.0",
21
+ "@wix/cli-telemetry": "0.0.0",
22
+ "@wix/cli-telemetry-react": "0.0.0",
20
23
  "@wix/cli-test-overrides": "0.0.0",
21
24
  "@wix/cli-ui-kit": "0.0.0",
22
25
  "@wix/create-app-definitions": "0.0.0",
@@ -30,7 +33,7 @@
30
33
  "globby": "^13.1.4",
31
34
  "package-json": "^8.1.0",
32
35
  "react": "^18.2.0",
33
- "semver": "^7.5.0",
36
+ "semver": "^7.5.1",
34
37
  "source-map-support": "^0.5.21",
35
38
  "validate-npm-package-name": "^5.0.0",
36
39
  "variant": "^3.0.0-dev.25"
@@ -62,6 +65,7 @@
62
65
  "build:watch": "run build --watch",
63
66
  "dev:npm": "npx $INIT_CWD",
64
67
  "dev:yarn": "yarn create @wix/app@portal:$INIT_CWD",
68
+ "lint": "run -T lint-package",
65
69
  "test:build": "yarn workspace @wix/create-app-spec run test:build",
66
70
  "typecheck": "run -T tsc --noEmit"
67
71
  },
@@ -73,9 +77,10 @@
73
77
  },
74
78
  "validations": {
75
79
  "postBuild": [
76
- "typecheck"
80
+ "typecheck",
81
+ "lint"
77
82
  ]
78
83
  }
79
84
  },
80
- "falconPackageHash": "f656938ee9b9dbbe05d56a83d99427e231f915ea2f6c826acad3d066"
85
+ "falconPackageHash": "bd21a3d6c11f8752f1ea28b296769457c955f996c79e2d8b5fa03c20"
81
86
  }
@@ -6,16 +6,18 @@ to: package.json
6
6
  "version": "1.0.0",
7
7
  "private": true,
8
8
  "dependencies": {
9
+ "@wix/dashboard-sdk": "^3.53.0",
10
+ "@wix/design-system": "^1.0.0",
11
+ "@wix/wix-ui-icons-common": "^3.0.34",
9
12
  "react": "^18",
10
- "react-dom": "^18",
11
- "@wix/design-system": "^1.0.0"
13
+ "react-dom": "^18"
12
14
  },
13
15
  "devDependencies": {
14
16
  "@types/react": "^18",
15
17
  "@types/react-dom": "^18",
16
18
  "@wix/cli": "<%= deps['@wix/cli'] %>",
17
19
  "@wix/cli-app": "<%= deps['@wix/cli-app'] %>",
18
- "typescript": "^5.0.2"
20
+ "typescript": "^5.1.3"
19
21
  },
20
22
  "scripts": {
21
23
  "build": "wix app build",
@@ -1,4 +1,4 @@
1
1
  {
2
2
  "id": "<%= generatePageID() %>",
3
- "title": "Home"
3
+ "title": "<%= devCenter.appName %>"
4
4
  }
@@ -1,28 +1,57 @@
1
- import React from 'react';
1
+ import { showToast } from "@wix/dashboard-sdk";
2
2
  import {
3
- Page,
4
- Card,
5
- Text,
6
3
  Button,
7
- WixStyleReactProvider,
8
- } from '@wix/design-system';
9
- import '@wix/design-system/styles.global.css';
4
+ EmptyState,
5
+ Image,
6
+ Page,
7
+ TextButton,
8
+ WixDesignSystemProvider
9
+ } from "@wix/design-system";
10
+ import "@wix/design-system/styles.global.css";
11
+ import * as Icons from "@wix/wix-ui-icons-common";
12
+ import React from "react";
13
+ import wixLogo from "./wix_logo.svg";
10
14
 
11
15
  export default function Index() {
12
16
  return (
13
- <WixStyleReactProvider>
17
+ <WixDesignSystemProvider>
14
18
  <Page>
15
- <Page.Header title="Page Title" />
19
+ <Page.Header
20
+ title="Dashboard Page"
21
+ subtitle="Add management capabilities to your app."
22
+ actionsBar={
23
+ <Button
24
+ onClick={() => {
25
+ showToast({
26
+ message: "Your first toast message!",
27
+ });
28
+ }}
29
+ prefixIcon={<Icons.GetStarted />}
30
+ >
31
+ Show a toast
32
+ </Button>
33
+ }
34
+ />
16
35
  <Page.Content>
17
- <Card>
18
- <Card.Content>
19
- <Text>Some text</Text>
20
- <br />
21
- <Button>Hi</Button>
22
- </Card.Content>
23
- </Card>
36
+ <EmptyState
37
+ image={
38
+ <Image fit="contain" height="100px" src={wixLogo} transparent />
39
+ }
40
+ title="Start editing this dashboard page"
41
+ subtitle="Learn how to work with dashboard pages and how to add functionality to them using Wix APIs."
42
+ theme="page"
43
+ >
44
+ <a
45
+ href="https://dev.wix.com/api/cli/app-framework/dashboard-pages"
46
+ target="_blank"
47
+ >
48
+ <TextButton prefixIcon={<Icons.ExternalLink />}>
49
+ Dashboard pages documentation
50
+ </TextButton>
51
+ </a>
52
+ </EmptyState>
24
53
  </Page.Content>
25
54
  </Page>
26
- </WixStyleReactProvider>
55
+ </WixDesignSystemProvider>
27
56
  );
28
57
  }
@@ -0,0 +1,3 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" width="72" height="29" viewBox="0 0 72 29">
2
+ <path fill-rule="evenodd" d="M41.1719.8786C39.7459 1.6256 39.2149 2.8876 39.2149 6.3726 39.2149 6.3726 39.9369 5.6746 41.0079 5.2856 41.7889 5.0036 42.4559 4.5726 42.8409 4.2906 44.0459 3.4076 44.2329 2.2716 44.2329.3576 44.2329.3576 42.2679.3046 41.1719.8786M32.7149 1.695C31.5519 2.72 31.2119 4.354 31.2119 4.354L27.3619 19.271 24.1599 7.062C23.8479 5.764 23.2859 4.16 22.3959 3.075 21.2629 1.693 18.9599 1.606 18.7149 1.606 18.4689 1.606 16.1659 1.693 15.0319 3.075 14.1429 4.16 13.5809 5.764 13.2689 7.062L10.0669 19.271 6.2159 4.354C6.2159 4.354 5.8769 2.72 4.7139 1.695 2.8279.033-.0001.388-.0001.388L7.3729 28.265C7.3729 28.265 9.8049 28.441 11.0229 27.82 12.6209 27.006 13.3819 26.377 14.3499 22.584 15.2119 19.202 17.6229 9.269 17.8479 8.562 17.9599 8.213 18.1009 7.378 18.7149 7.378 19.3409 7.378 19.4709 8.212 19.5799 8.562 19.8009 9.27 22.2159 19.202 23.0789 22.584 24.0469 26.377 24.8069 27.006 26.4059 27.82 27.6229 28.441 30.0549 28.265 30.0549 28.265L37.4279.388C37.4279.388 34.6009.033 32.7149 1.695M44.2305 4.9391C44.2305 4.9391 43.7695 5.6531 42.7165 6.2411 42.0415 6.6191 41.3925 6.8751 40.6965 7.2091 39.5305 7.7681 39.2145 8.3911 39.2145 9.3411L39.2145 9.6591 39.2145 11.1271 39.2145 11.1671 39.2145 11.4981 39.2145 28.2651C39.2145 28.2651 41.0755 28.5011 42.2925 27.8801 43.8585 27.0821 44.2185 26.3121 44.2325 22.8451L44.2325 5.9491 44.2305 5.9501 44.2305 4.9391zM62.6084 14.3942L71.9634.4802C71.9634.4802 68.0154-.1918 66.0604 1.5872 64.8094 2.7262 63.4104 4.7742 63.4104 4.7742L59.9684 9.7362C59.8014 9.9942 59.5824 10.2752 59.2334 10.2752 58.8844 10.2752 58.6664 9.9942 58.4994 9.7362L55.0574 4.7742C55.0574 4.7742 53.6584 2.7262 52.4074 1.5872 50.4524-.1918 46.5044.4802 46.5044.4802L55.8584 14.3942 46.5284 28.2652C46.5284 28.2652 50.6404 28.7852 52.5954 27.0042 53.8464 25.8662 55.0574 24.0142 55.0574 24.0142L58.4994 19.0532C58.6664 18.7942 58.8844 18.5142 59.2334 18.5142 59.5824 18.5142 59.8014 18.7942 59.9684 19.0532L63.4104 24.0142C63.4104 24.0142 64.6914 25.8662 65.9424 27.0042 67.8984 28.7852 71.9384 28.2652 71.9384 28.2652L62.6084 14.3942z"/>
3
+ </svg>