@alicloud/alfa-react 1.3.0-alpha.0 → 1.3.0-canary.10

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.
Files changed (42) hide show
  1. package/LICENSE +21 -0
  2. package/dist/index.js +6 -6
  3. package/es/app/createIsomorphicMicroApp.js +45 -0
  4. package/es/app/getConsoleConfig.js +49 -0
  5. package/es/app.js +36 -42
  6. package/es/components/Loading/index.js +17 -1
  7. package/es/context.js +7 -0
  8. package/es/createAlfaApp.js +116 -0
  9. package/es/createAlfaWidget.js +125 -0
  10. package/es/createApplication.js +113 -0
  11. package/es/types/base.js +26 -0
  12. package/es/types/index.js +1 -0
  13. package/es/utils/getConsoleConfig.js +5 -3
  14. package/es/utils/index.js +3 -0
  15. package/es/utils.js +3 -0
  16. package/es/widget/emitter.js +4 -4
  17. package/es/widget/getWidgetConfigById.js +6 -5
  18. package/es/widget/getWidgetDeps.js +1 -1
  19. package/es/widget.js +0 -6
  20. package/lib/app/createIsomorphicMicroApp.d.ts +2 -0
  21. package/lib/app/createIsomorphicMicroApp.js +65 -0
  22. package/lib/app/getConsoleConfig.d.ts +2 -0
  23. package/lib/{utils → app}/getConsoleConfig.js +5 -43
  24. package/lib/app.d.ts +1 -2
  25. package/lib/app.js +35 -40
  26. package/lib/base.d.ts +0 -3
  27. package/lib/components/Loading/Title.d.ts +0 -1
  28. package/lib/components/Loading/index.d.ts +5 -2
  29. package/lib/components/Loading/index.js +18 -1
  30. package/lib/context.d.ts +7 -0
  31. package/lib/context.js +15 -0
  32. package/lib/types.d.ts +0 -1
  33. package/lib/utils.d.ts +1 -0
  34. package/lib/utils.js +8 -2
  35. package/lib/widget/emitter.d.ts +1 -0
  36. package/lib/widget/emitter.js +4 -4
  37. package/lib/widget/getWidgetConfigById.js +6 -5
  38. package/lib/widget/getWidgetDeps.js +1 -1
  39. package/lib/widget.d.ts +0 -1
  40. package/lib/widget.js +0 -7
  41. package/package.json +6 -10
  42. package/lib/utils/getConsoleConfig.d.ts +0 -33
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/alfa-react",
3
- "version": "1.3.0-alpha.0",
3
+ "version": "1.3.0-canary.10",
4
4
  "description": "Alfa Framework (React Version)",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -9,7 +9,7 @@
9
9
  "license": "MIT",
10
10
  "scripts": {
11
11
  "start": "breezr start-storybook",
12
- "prepublish": "npm run build && npm run babel && npm run babel:esm",
12
+ "prepublish": "npm run clean && npm run build && npm run babel && npm run babel:esm",
13
13
  "babel": "breezr build --engine babel && tsc --emitDeclarationOnly -d --declarationDir ./lib",
14
14
  "babel:esm": "breezr build --engine babel --es-module",
15
15
  "build": "breezr build --engine webpack",
@@ -19,14 +19,11 @@
19
19
  "access": "public"
20
20
  },
21
21
  "devDependencies": {
22
- "@ali/home-widget-runtime": "^1.1.6",
23
22
  "@alicloud/console-toolkit-cli": "^1.0.0",
24
23
  "@alicloud/console-toolkit-preset-wind-component": "^1.0.0",
25
24
  "@types/chai": "^4.1.7",
26
25
  "@types/classnames": "^2.2.9",
27
- "@types/crypto-js": "^4.0.2",
28
26
  "@types/jest": "^23.3.13",
29
- "@types/lodash": "^4.14.176",
30
27
  "@types/react": "^16.9.2",
31
28
  "@types/react-dom": "^16.9.0",
32
29
  "@types/single-spa-react": "^2.8.3",
@@ -38,14 +35,13 @@
38
35
  "typescript": "^3.0.3"
39
36
  },
40
37
  "dependencies": {
41
- "@alicloud/alfa-core": "^1.3.0-alpha.1",
42
- "@alicloud/console-os-loader": "^1.2.3",
38
+ "@alicloud/alfa-core": "1.3.0-canary.7",
39
+ "@alicloud/console-os-loader": "1.3.0-canary.5",
43
40
  "@alicloud/widget-utils-console": "^0.1.6",
44
- "classnames": "^2.2.6",
45
- "crypto-js": "^4.1.1"
41
+ "classnames": "^2.2.6"
46
42
  },
47
43
  "peerDependencies": {
48
44
  "react": "^16 | ^17"
49
45
  },
50
- "gitHead": "43925181e0a3e489559b7ab1bb6c68e59e00d58e"
46
+ "gitHead": "f7c4c33b570dd50587c3bdf377b6e075e0c1dc93"
51
47
  }
@@ -1,33 +0,0 @@
1
- import { AlfaFactoryOption } from '@alicloud/alfa-core';
2
- export declare const getConsoleConfig: (option: AlfaFactoryOption, consoleConfig: any) => Promise<{
3
- CHANNEL_LINKS: Partial<Record<string, string>>;
4
- CHANNEL_FEATURE_STATUS: Partial<Record<string, {
5
- status: boolean;
6
- attribute: {
7
- customAttrs: Record<string, unknown>;
8
- regions: {
9
- region: string[];
10
- };
11
- };
12
- }>>;
13
- FEATURE_STATUS: Partial<Record<string, boolean>>;
14
- } | {
15
- CHANNEL_LINKS: Partial<Record<string, string>>;
16
- CHANNEL_FEATURE_STATUS: Partial<Record<string, {
17
- status: boolean;
18
- attribute: {
19
- customAttrs: Record<string, unknown>;
20
- regions: {
21
- region: string[];
22
- };
23
- };
24
- }>>;
25
- FEATURE_STATUS: Partial<Record<string, boolean>>;
26
- fEnv: string;
27
- LOCALE: string;
28
- CHANNEL: string;
29
- SEC_TOKEN: string;
30
- portalType: string;
31
- MAIN_ACCOUNT_PK: string;
32
- CURRENT_PK: string;
33
- }>;