@aws-amplify/amplify-util-uibuilder 1.6.0-beta.0 → 1.6.0-beta.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/API.md ADDED
@@ -0,0 +1,19 @@
1
+ ## API Report File for "@aws-amplify/amplify-util-uibuilder"
2
+
3
+ > Do not edit this file. It is a report generated by [API Extractor](https://api-extractor.com/).
4
+
5
+ ```ts
6
+
7
+ import { $TSContext } from 'amplify-cli-core';
8
+
9
+ // @public (undocumented)
10
+ export const executeAmplifyCommand: (context: $TSContext, cmd: string) => Promise<void>;
11
+
12
+ // @public (undocumented)
13
+ export const handleAmplifyEvent: (context: $TSContext, { event }: {
14
+ event: string;
15
+ }) => Promise<void>;
16
+
17
+ // (No @packageDocumentation comment for this package)
18
+
19
+ ```
package/CHANGELOG.md CHANGED
@@ -3,6 +3,25 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # [1.6.0-beta.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.6.2...@aws-amplify/amplify-util-uibuilder@1.6.0-beta.2) (2022-12-01)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **cli:** fix grammar in pull warning message ([#11407](https://github.com/aws-amplify/amplify-cli/issues/11407)) ([984c0f8](https://github.com/aws-amplify/amplify-cli/commit/984c0f8548cec80d0e14269757cd49b031403097))
12
+
13
+
14
+
15
+
16
+
17
+ # [1.6.0-beta.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.6.0-beta.0...@aws-amplify/amplify-util-uibuilder@1.6.0-beta.1) (2022-11-19)
18
+
19
+ **Note:** Version bump only for package @aws-amplify/amplify-util-uibuilder
20
+
21
+
22
+
23
+
24
+
6
25
  # [1.6.0-beta.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.6.0-cdkv2.0...@aws-amplify/amplify-util-uibuilder@1.6.0-beta.0) (2022-11-17)
7
26
 
8
27
 
@@ -31,6 +50,26 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
31
50
 
32
51
 
33
52
  # [1.6.0-cdkv2.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.5.0...@aws-amplify/amplify-util-uibuilder@1.6.0-cdkv2.0) (2022-11-01)
53
+ ## [1.6.2](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.6.1...@aws-amplify/amplify-util-uibuilder@1.6.2) (2022-11-21)
54
+
55
+ **Note:** Version bump only for package @aws-amplify/amplify-util-uibuilder
56
+
57
+
58
+
59
+
60
+
61
+ ## [1.6.1](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.6.0...@aws-amplify/amplify-util-uibuilder@1.6.1) (2022-11-17)
62
+
63
+
64
+ ### Bug Fixes
65
+
66
+ * generate default theme if user has no themes ([#11343](https://github.com/aws-amplify/amplify-cli/issues/11343)) ([13a02ac](https://github.com/aws-amplify/amplify-cli/commit/13a02ac32de717a518336871b1c741aa2714562b))
67
+
68
+
69
+
70
+
71
+
72
+ # [1.6.0](https://github.com/aws-amplify/amplify-cli/compare/@aws-amplify/amplify-util-uibuilder@1.5.0...@aws-amplify/amplify-util-uibuilder@1.6.0) (2022-10-27)
34
73
 
35
74
 
36
75
  ### Bug Fixes
@@ -30,10 +30,10 @@ const notifyMissingPackages = (context) => {
30
30
  getRequiredDependencies().forEach((dependency) => {
31
31
  const packageIsInstalled = Object.keys(packageJson.dependencies).includes(dependency.dependencyName);
32
32
  if (!packageIsInstalled) {
33
- amplify_prompts_1.printer.warn(`UIBuilder components required "${dependency.dependencyName}" that is not in your package.json. Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`);
33
+ amplify_prompts_1.printer.warn(`UIBuilder components require "${dependency.dependencyName}" that is not in your package.json. Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`);
34
34
  }
35
35
  else if (!(0, subset_1.default)(packageJson.dependencies[dependency.dependencyName], dependency.supportedSemVerPattern)) {
36
- amplify_prompts_1.printer.warn(`UIBuilder components requires version "${dependency.supportedSemVerPattern}" of "${dependency.dependencyName}". You currently are on version "${packageJson.dependencies[dependency.dependencyName]}". Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`);
36
+ amplify_prompts_1.printer.warn(`UIBuilder components require version "${dependency.supportedSemVerPattern}" of "${dependency.dependencyName}". You currently are on version "${packageJson.dependencies[dependency.dependencyName]}". Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`);
37
37
  }
38
38
  });
39
39
  };
@@ -1 +1 @@
1
- {"version":3,"file":"notifyMissingPackages.js","sourceRoot":"","sources":["../../../src/commands/utils/notifyMissingPackages.ts"],"names":[],"mappings":";;;;;;AAAA,uDAE0B;AAC1B,qDAA0C;AAC1C,wDAA0B;AAC1B,gDAAwB;AACxB,kEAA+C;AAE/C,oEAAgF;AAChF,+CAA4C;AAE5C,MAAM,uBAAuB,GAAG,GAAyB,EAAE,CAAC,IAAI,kDAA+B,EAAE,CAAC,uBAAuB,EAAE,CAAC;AAMrH,MAAM,qBAAqB,GAAG,CAAC,OAAmB,EAAQ,EAAE;;IACjE,MAAM,IAAI,GAAG,IAAA,yBAAW,EAAC,OAAO,CAAC,CAAC;IAClC,MAAM,gBAAgB,GAAG,MAAA,IAAI,CAAC,gBAAgB,mCAAI,8BAAW,CAAC,mBAAmB,EAAE,CAAC;IACpF,IAAI,CAAC,kBAAE,CAAC,UAAU,CAAC,gBAAgB,CAAC,EAAE;QACpC,yBAAO,CAAC,KAAK,CAAC,8EAA8E,CAAC,CAAC;QAC9F,OAAO;KACR;IACD,MAAM,YAAY,GAAG,gCAAa,CAAC,QAAQ,CAAC,gBAAgB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,CAAC,MAAM,EAAE,CAC9M,CAAC;SACH;aAAM,IAAI,CAAC,IAAA,gBAAW,EAAC,WAAW,CAAC,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,EAAE,UAAU,CAAC,sBAAsB,CAAC,EAAE;YAC/G,yBAAO,CAAC,IAAI,CACV,yCAAyC,UAAU,CAAC,sBAAsB,SACxE,UAAU,CAAC,cACb,oCAAoC,WAAW,CAAC,YAAY,CAAC,UAAU,CAAC,cAAc,CAAC,yBACrF,UAAU,CAAC,cACb,IAAI,UAAU,CAAC,sBAAsB,QAAQ,UAAU,CAAC,MAAM,EAAE,CACjE,CAAC;SACH;IACH,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AA9BW,QAAA,qBAAqB,yBA8BhC"}
package/package.json CHANGED
@@ -1,11 +1,12 @@
1
1
  {
2
2
  "name": "@aws-amplify/amplify-util-uibuilder",
3
- "version": "1.6.0-beta.0",
3
+ "version": "1.6.0-beta.2",
4
4
  "description": "",
5
5
  "main": "lib/index.js",
6
6
  "scripts": {
7
7
  "build": "tsc",
8
- "test": "jest --logHeapUsage"
8
+ "test": "jest --logHeapUsage",
9
+ "extract-api": "ts-node ../../scripts/extract-api.ts"
9
10
  },
10
11
  "author": "Amazon Web Services",
11
12
  "license": "Apache-2.0",
@@ -13,10 +14,10 @@
13
14
  "access": "public"
14
15
  },
15
16
  "dependencies": {
16
- "@aws-amplify/codegen-ui": "2.5.4",
17
- "@aws-amplify/codegen-ui-react": "2.5.4",
18
- "amplify-cli-core": "4.0.0-beta.0",
19
- "amplify-prompts": "2.6.2-beta.0",
17
+ "@aws-amplify/codegen-ui": "2.5.5",
18
+ "@aws-amplify/codegen-ui-react": "2.5.5",
19
+ "amplify-cli-core": "4.0.0-beta.2",
20
+ "amplify-prompts": "2.6.2-beta.1",
20
21
  "aws-sdk": "^2.1233.0",
21
22
  "fs-extra": "^8.1.0",
22
23
  "ora": "^4.0.3"
@@ -68,5 +69,5 @@
68
69
  "usePathForSuiteName": "true",
69
70
  "addFileAttribute": "true"
70
71
  },
71
- "gitHead": "435d9a4301fde0ea13358e7c1608a895955f84a1"
72
+ "gitHead": "152a0056f4f89fa3311a5da62f6e4233809832be"
72
73
  }
@@ -52,13 +52,13 @@ describe('should notify when packages are missing', () => {
52
52
  },
53
53
  };
54
54
  notifyMissingPackages(context as JSONUtilitiesDependency.$TSContext);
55
- expect(printerDependency.printer.warn).toBeCalledTimes(1);
55
+ expect(printerDependency.printer.warn).toBeCalledTimes(2);
56
56
  });
57
57
 
58
58
  it('notifies for partial missing dependencies', async () => {
59
59
  JSONUtilitiesDependency.JSONUtilities.readJson = jest.fn().mockImplementation(() => ({
60
60
  projectPath: __dirname,
61
- dependencies: { '@aws-amplify/ui-react': '1.2.0' },
61
+ dependencies: { '@aws-amplify/ui-react': '4.2.0' },
62
62
  }));
63
63
  const context = {
64
64
  input: {
@@ -33,11 +33,11 @@ export const notifyMissingPackages = (context: $TSContext): void => {
33
33
  const packageIsInstalled = Object.keys(packageJson.dependencies).includes(dependency.dependencyName);
34
34
  if (!packageIsInstalled) {
35
35
  printer.warn(
36
- `UIBuilder components required "${dependency.dependencyName}" that is not in your package.json. Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`,
36
+ `UIBuilder components require "${dependency.dependencyName}" that is not in your package.json. Run \`npm install "${dependency.dependencyName}@${dependency.supportedSemVerPattern}"\`. ${dependency.reason}`,
37
37
  );
38
38
  } else if (!rangeSubset(packageJson.dependencies[dependency.dependencyName], dependency.supportedSemVerPattern)) {
39
39
  printer.warn(
40
- `UIBuilder components requires version "${dependency.supportedSemVerPattern}" of "${
40
+ `UIBuilder components require version "${dependency.supportedSemVerPattern}" of "${
41
41
  dependency.dependencyName
42
42
  }". You currently are on version "${packageJson.dependencies[dependency.dependencyName]}". Run \`npm install "${
43
43
  dependency.dependencyName