@aws-amplify/amplify-util-uibuilder 1.2.12-codegen-ui-q1-release.0 → 1.2.12

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.
@@ -1,5 +0,0 @@
1
- import { $TSContext } from 'amplify-cli-core';
2
- import { AmplifyUIBuilder } from '@aws-sdk/client-amplifyuibuilder';
3
- export { Component, Theme } from '@aws-sdk/client-amplifyuibuilder';
4
- export declare const getAmplifyUIBuilderService: (context: $TSContext, environmentName: string, appId: string) => Promise<AmplifyUIBuilder>;
5
- //# sourceMappingURL=uibuilder-client.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uibuilder-client.d.ts","sourceRoot":"","sources":["../../../src/commands/utils/uibuilder-client.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAU,MAAM,kBAAkB,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAC;AACpE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,kCAAkC,CAAC;AAEpE,eAAO,MAAM,0BAA0B,YAC5B,UAAU,mBACF,MAAM,SAChB,MAAM,KACZ,QAAQ,gBAAgB,CAgB1B,CAAC"}
@@ -1,23 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.getAmplifyUIBuilderService = exports.Theme = exports.Component = void 0;
4
- const client_amplifyuibuilder_1 = require("@aws-sdk/client-amplifyuibuilder");
5
- var client_amplifyuibuilder_2 = require("@aws-sdk/client-amplifyuibuilder");
6
- Object.defineProperty(exports, "Component", { enumerable: true, get: function () { return client_amplifyuibuilder_2.Component; } });
7
- Object.defineProperty(exports, "Theme", { enumerable: true, get: function () { return client_amplifyuibuilder_2.Theme; } });
8
- const getAmplifyUIBuilderService = async (context, environmentName, appId) => {
9
- const awsConfigInfo = (await context.amplify.invokePluginMethod(context, 'awscloudformation', undefined, 'loadConfigurationForEnv', [
10
- context,
11
- environmentName,
12
- appId,
13
- ]));
14
- if (process.env.UI_BUILDER_ENDPOINT) {
15
- awsConfigInfo.endpoint = process.env.UI_BUILDER_ENDPOINT;
16
- }
17
- if (process.env.UI_BUILDER_REGION) {
18
- awsConfigInfo.region = process.env.UI_BUILDER_REGION;
19
- }
20
- return new client_amplifyuibuilder_1.AmplifyUIBuilder(awsConfigInfo);
21
- };
22
- exports.getAmplifyUIBuilderService = getAmplifyUIBuilderService;
23
- //# sourceMappingURL=uibuilder-client.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"uibuilder-client.js","sourceRoot":"","sources":["../../../src/commands/utils/uibuilder-client.ts"],"names":[],"mappings":";;;AACA,8EAAoE;AACpE,4EAAoE;AAA3D,oHAAA,SAAS,OAAA;AAAE,gHAAA,KAAK,OAAA;AAElB,MAAM,0BAA0B,GAAG,KAAK,EAC7C,OAAmB,EACnB,eAAuB,EACvB,KAAa,EACc,EAAE;IAC7B,MAAM,aAAa,GAAG,CAAC,MAAM,OAAO,CAAC,OAAO,CAAC,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,EAAE,SAAS,EAAE,yBAAyB,EAAE;QAClI,OAAO;QACP,eAAe;QACf,KAAK;KACN,CAAC,CAAW,CAAC;IAEd,IAAI,OAAO,CAAC,GAAG,CAAC,mBAAmB,EAAE;QACnC,aAAa,CAAC,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,mBAAmB,CAAC;KAC1D;IAED,IAAI,OAAO,CAAC,GAAG,CAAC,iBAAiB,EAAE;QACjC,aAAa,CAAC,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,CAAC;KACtD;IAED,OAAO,IAAI,0CAAgB,CAAC,aAAa,CAAC,CAAC;AAC7C,CAAC,CAAC;AApBW,QAAA,0BAA0B,8BAoBrC"}
@@ -1,25 +0,0 @@
1
- import { $TSContext, $TSAny } from 'amplify-cli-core';
2
- import { AmplifyUIBuilder } from '@aws-sdk/client-amplifyuibuilder';
3
- export { Component, Theme } from '@aws-sdk/client-amplifyuibuilder';
4
-
5
- export const getAmplifyUIBuilderService = async (
6
- context: $TSContext,
7
- environmentName: string,
8
- appId: string,
9
- ): Promise<AmplifyUIBuilder> => {
10
- const awsConfigInfo = (await context.amplify.invokePluginMethod(context, 'awscloudformation', undefined, 'loadConfigurationForEnv', [
11
- context,
12
- environmentName,
13
- appId,
14
- ])) as $TSAny;
15
-
16
- if (process.env.UI_BUILDER_ENDPOINT) {
17
- awsConfigInfo.endpoint = process.env.UI_BUILDER_ENDPOINT;
18
- }
19
-
20
- if (process.env.UI_BUILDER_REGION) {
21
- awsConfigInfo.region = process.env.UI_BUILDER_REGION;
22
- }
23
-
24
- return new AmplifyUIBuilder(awsConfigInfo);
25
- };