@salesforce/templates 66.12.0 → 66.13.1
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/lib/generators/uiEmbeddingGenerator.d.ts +6 -0
- package/lib/generators/{lightningEmbeddingGenerator.js → uiEmbeddingGenerator.js} +12 -12
- package/lib/generators/uiEmbeddingGenerator.js.map +1 -0
- package/lib/i18n/i18n.d.ts +6 -6
- package/lib/i18n/i18n.js +6 -6
- package/lib/i18n/i18n.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/templates/project/angularextapp/CHANGELOG.md +129 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/.graphqlrc.yml +2 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/angular.json +3 -1
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/codegen.yml +95 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/esbuild/graphql-codegen.mjs +13 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/package-lock.json +2495 -294
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/package.json +9 -2
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/scripts/get-graphql-schema.mjs +69 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/src/app/api/account/account-search.service.ts +52 -140
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/src/app/api/graphql-operations-types.ts +29389 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/src/app/features/object-search/api/object-search.service.ts +94 -0
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/src/app/features/object-search/utils/sort-utils.ts +3 -10
- package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/src/app/pages/account-search/account-search-page.ts +15 -8
- package/lib/templates/project/angularextapp/package.json +1 -1
- package/lib/templates/project/angularextapp/scripts/org-setup-utils.mjs +206 -36
- package/lib/templates/project/angularextapp/scripts/org-setup.mjs +180 -69
- package/lib/templates/project/angularintapp/CHANGELOG.md +129 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/.graphqlrc.yml +2 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/angular.json +3 -1
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/codegen.yml +95 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/esbuild/graphql-codegen.mjs +13 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/package-lock.json +2498 -297
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/package.json +9 -2
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/scripts/get-graphql-schema.mjs +69 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/api/account/account-search.service.ts +52 -140
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/api/graphql-operations-types.ts +29389 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/features/object-search/api/object-search.service.ts +94 -0
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/features/object-search/utils/sort-utils.ts +3 -10
- package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/pages/account-search/account-search-page.ts +15 -8
- package/lib/templates/project/angularintapp/package.json +1 -1
- package/lib/templates/project/angularintapp/scripts/org-setup-utils.mjs +206 -36
- package/lib/templates/project/angularintapp/scripts/org-setup.mjs +180 -69
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/package-lock.json +1820 -1815
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/package-lock.json +1820 -1815
- package/lib/templates/uiBundles/angularbasic/package-lock.json +2382 -272
- package/lib/templates/uiBundles/reactbasic/package-lock.json +1820 -1815
- package/lib/templates/{lightningembedding → uiembedding}/default/default.html +3 -3
- package/lib/templates/{lightningembedding → uiembedding}/default/default.js +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/types.d.ts +4 -4
- package/lib/utils/types.js +3 -3
- package/lib/utils/types.js.map +1 -1
- package/lib/utils/uiEmbedding.d.ts +12 -0
- package/lib/utils/{lightningEmbedding.js → uiEmbedding.js} +7 -7
- package/lib/utils/uiEmbedding.js.map +1 -0
- package/package.json +1 -1
- package/lib/generators/lightningEmbeddingGenerator.d.ts +0 -6
- package/lib/generators/lightningEmbeddingGenerator.js.map +0 -1
- package/lib/utils/lightningEmbedding.d.ts +0 -12
- package/lib/utils/lightningEmbedding.js.map +0 -1
- /package/lib/templates/{lightningembedding → uiembedding}/default/default.css +0 -0
- /package/lib/templates/{lightningembedding → uiembedding}/default/default.js-meta.xml +0 -0
|
@@ -11,32 +11,32 @@ const kit_1 = require("@salesforce/kit");
|
|
|
11
11
|
const path = require("path");
|
|
12
12
|
const i18n_1 = require("../i18n");
|
|
13
13
|
const utils_1 = require("../utils");
|
|
14
|
-
const
|
|
14
|
+
const uiEmbedding_1 = require("../utils/uiEmbedding");
|
|
15
15
|
const baseGenerator_1 = require("./baseGenerator");
|
|
16
|
-
const VALID_SANDBOX_TOKENS = new Set(
|
|
17
|
-
class
|
|
16
|
+
const VALID_SANDBOX_TOKENS = new Set(uiEmbedding_1.UI_EMBEDDING_SANDBOX_TOKENS);
|
|
17
|
+
class UIEmbeddingGenerator extends baseGenerator_1.BaseGenerator {
|
|
18
18
|
validateOptions() {
|
|
19
19
|
utils_1.CreateUtil.checkInputs(this.options.componentname);
|
|
20
20
|
const fileparts = path.resolve(this.outputdir).split(path.sep);
|
|
21
21
|
if (!this.options.internal && !fileparts.includes('lwc')) {
|
|
22
22
|
throw new Error(i18n_1.nls.localize('MissingLWCDir'));
|
|
23
23
|
}
|
|
24
|
-
if (!(0,
|
|
25
|
-
throw new Error(i18n_1.nls.localize('
|
|
24
|
+
if (!(0, uiEmbedding_1.isAllowedUIEmbeddingSrcUrl)(this.options.src)) {
|
|
25
|
+
throw new Error(i18n_1.nls.localize('InvalidUIEmbeddingSrcUrl'));
|
|
26
26
|
}
|
|
27
27
|
if (this.options.src.includes("'")) {
|
|
28
|
-
throw new Error(i18n_1.nls.localize('
|
|
28
|
+
throw new Error(i18n_1.nls.localize('InvalidUIEmbeddingSrcChar'));
|
|
29
29
|
}
|
|
30
30
|
if (!this.options.shellTitle || !this.options.shellTitle.trim()) {
|
|
31
|
-
throw new Error(i18n_1.nls.localize('
|
|
31
|
+
throw new Error(i18n_1.nls.localize('MissingUIEmbeddingShellTitle'));
|
|
32
32
|
}
|
|
33
33
|
if (this.options.shellTitle.includes('"')) {
|
|
34
|
-
throw new Error(i18n_1.nls.localize('
|
|
34
|
+
throw new Error(i18n_1.nls.localize('InvalidUIEmbeddingShellTitleChar'));
|
|
35
35
|
}
|
|
36
36
|
const tokens = this.options.sandbox.split(/\s+/).filter(Boolean);
|
|
37
37
|
const invalid = tokens.filter((t) => !VALID_SANDBOX_TOKENS.has(t));
|
|
38
38
|
if (invalid.length) {
|
|
39
|
-
throw new Error(i18n_1.nls.localize('
|
|
39
|
+
throw new Error(i18n_1.nls.localize('InvalidUIEmbeddingSandboxToken', [
|
|
40
40
|
invalid.join(', '),
|
|
41
41
|
[...VALID_SANDBOX_TOKENS].join(', '),
|
|
42
42
|
]));
|
|
@@ -51,7 +51,7 @@ class LightningEmbeddingGenerator extends baseGenerator_1.BaseGenerator {
|
|
|
51
51
|
const camelCaseComponentName = `${componentname
|
|
52
52
|
.substring(0, 1)
|
|
53
53
|
.toLowerCase()}${componentname.substring(1)}`;
|
|
54
|
-
this.sourceRootWithPartialPath(path.join('
|
|
54
|
+
this.sourceRootWithPartialPath(path.join('uiembedding', 'default'));
|
|
55
55
|
yield this.render(this.templatePath('default.html'), this.destinationPath(path.join(this.outputdir, camelCaseComponentName, `${camelCaseComponentName}.html`)), { sandbox, shellTitle });
|
|
56
56
|
yield this.render(this.templatePath('default.js'), this.destinationPath(path.join(this.outputdir, camelCaseComponentName, `${camelCaseComponentName}.js`)), { pascalCaseComponentName, src });
|
|
57
57
|
yield this.render(this.templatePath('default.css'), this.destinationPath(path.join(this.outputdir, camelCaseComponentName, `${camelCaseComponentName}.css`)), {});
|
|
@@ -64,5 +64,5 @@ class LightningEmbeddingGenerator extends baseGenerator_1.BaseGenerator {
|
|
|
64
64
|
});
|
|
65
65
|
}
|
|
66
66
|
}
|
|
67
|
-
exports.default =
|
|
68
|
-
//# sourceMappingURL=
|
|
67
|
+
exports.default = UIEmbeddingGenerator;
|
|
68
|
+
//# sourceMappingURL=uiEmbeddingGenerator.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"uiEmbeddingGenerator.js","sourceRoot":"","sources":["../../src/generators/uiEmbeddingGenerator.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH,yCAAuD;AACvD,6BAA6B;AAC7B,kCAA8B;AAC9B,oCAAsC;AACtC,sDAG8B;AAE9B,mDAAgD;AAEhD,MAAM,oBAAoB,GAAwB,IAAI,GAAG,CACvD,yCAA2B,CAC5B,CAAC;AAEF,MAAqB,oBAAqB,SAAQ,6BAAiC;IAC1E,eAAe;QACpB,kBAAU,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;QAEnD,MAAM,SAAS,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,KAAK,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC/D,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,KAAK,CAAC,EAAE,CAAC;YACzD,MAAM,IAAI,KAAK,CAAC,UAAG,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,CAAC;QACjD,CAAC;QAED,IAAI,CAAC,IAAA,wCAA0B,EAAC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC;YAClD,MAAM,IA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A,0BAAoB,EAAC,aAAa,CAAC;qBACpD,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC;qBACrB,OAAO,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;gBACzB,MAAM,IAAI,CAAC,MAAM,CACf,IAAI,CAAC,YAAY,CAAC,qBAAqB,CAAC,EACxC,IAAI,CAAC,eAAe,CAClB,IAAI,CAAC,IAAI,CACP,IAAI,CAAC,SAAS,EACd,sBAAsB,EACtB,GAAG,sBAAsB,cAAc,CACxC,CACF,EACD,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,WAAW,EAAE,CAC7C,CAAC;YACJ,CAAC;QACH,CAAC;KAAA;CACF;AAtGD,uCAsGC"}
|
package/lib/i18n/i18n.d.ts
CHANGED
|
@@ -39,10 +39,10 @@ export declare const messages: {
|
|
|
39
39
|
FailedToLoadFlexipageTemplatesRepo: string;
|
|
40
40
|
AlphaNumericValidationError: string;
|
|
41
41
|
InvalidSObjectType: string;
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
42
|
+
InvalidUIEmbeddingSrcUrl: string;
|
|
43
|
+
InvalidUIEmbeddingSrcChar: string;
|
|
44
|
+
InvalidUIEmbeddingSandboxToken: string;
|
|
45
|
+
MissingUIEmbeddingShellTitle: string;
|
|
46
|
+
InvalidUIEmbeddingShellTitleChar: string;
|
|
47
|
+
UIEmbeddingBundle: string;
|
|
48
48
|
};
|
package/lib/i18n/i18n.js
CHANGED
|
@@ -48,11 +48,11 @@ exports.messages = {
|
|
|
48
48
|
FailedToLoadFlexipageTemplatesRepo: 'Failed to load the FlexiPage templates repository. Please verify the URL is correct and accessible.',
|
|
49
49
|
AlphaNumericValidationError: '%s must contain only alphanumeric characters.',
|
|
50
50
|
InvalidSObjectType: 'Invalid sobjecttype "%s". It must be a valid SObject API name: start with a letter, contain only letters, numbers, and underscores, and not end with an underscore.',
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
51
|
+
InvalidUIEmbeddingSrcUrl: 'The --src flag must be an absolute https URL (e.g., https://app.example.com). Plain http is only allowed for localhost or 127.0.0.1.',
|
|
52
|
+
InvalidUIEmbeddingSrcChar: 'The --src flag must not contain a single-quote character; it would break the generated JavaScript string literal.',
|
|
53
|
+
InvalidUIEmbeddingSandboxToken: 'Invalid sandbox tokens: %s. Valid tokens are: %s.',
|
|
54
|
+
MissingUIEmbeddingShellTitle: 'The --shell-title flag is required and must be a non-empty string used as the iframe accessible name.',
|
|
55
|
+
InvalidUIEmbeddingShellTitleChar: 'The --shell-title flag must not contain a double-quote character; it would break the generated HTML attribute.',
|
|
56
|
+
UIEmbeddingBundle: 'A Lightning Web Component that wraps the <lightning-ui-embedding> base component.',
|
|
57
57
|
};
|
|
58
58
|
//# sourceMappingURL=i18n.js.map
|
package/lib/i18n/i18n.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"i18n.js","sourceRoot":"","sources":["../../src/i18n/i18n.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;AAEH;;;;;;;;;GASG;AACU,QAAA,QAAQ,GAAG;IACtB,qBAAqB,EAAE,iDAAiD;IACxE,4BAA4B,EAAE,gCAAgC;IAC9D,sBAAsB,EAAE,oCAAoC;IAC5D,qBAAqB,EAAE,+CAA+C;IACtE,eAAe,EAAE,uDAAuD;IAExE,uBAAuB,EACrB,sEAAsE;IACxE,cAAc,EAAE,2DAA2D;IAC3E,aAAa,EAAE,0DAA0D;IACzE,mBAAmB,EACjB,yDAAyD;IAC3D,oBAAoB,EAClB,0DAA0D;IAC5D,iCAAiC,EAC/B,kDAAkD;IAEpD,6BAA6B,EAC3B,iDAAiD;IACnD,qCAAqC,EACnC,gEAAgE;IAClE,iCAAiC,EAC/B,iEAAiE;IACnE,6BAA6B,EAAE,6CAA6C;IAC5E,0CAA0C,EACxC,oEAAoE;IACtE,kBAAkB,EAA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AC5D,4BAA4B,EAC1B,yGAAyG;IAC3G,sBAAsB,EACpB,mHAAmH;IACrH,wBAAwB,EACtB,kGAAkG;IACpG,kCAAkC,EAChC,qGAAqG;IAEvG,2BAA2B,EAAE,+CAA+C;IAE5E,kBAAkB,EAChB,qKAAqK;IAEvK,wBAAwB,EACtB,sIAAsI;IACxI,yBAAyB,EACvB,mHAAmH;IACrH,8BAA8B,EAC5B,mDAAmD;IACrD,4BAA4B,EAC1B,uGAAuG;IACzG,gCAAgC,EAC9B,gHAAgH;IAClH,iBAAiB,EACf,mFAAmF;CACtF,CAAC"}
|
package/lib/index.d.ts
CHANGED
package/lib/index.js
CHANGED
|
@@ -12,5 +12,5 @@ const templateService_1 = require("./service/templateService");
|
|
|
12
12
|
Object.defineProperty(exports, "TemplateService", { enumerable: true, get: function () { return templateService_1.TemplateService; } });
|
|
13
13
|
tslib_1.__exportStar(require("./utils/types"), exports);
|
|
14
14
|
tslib_1.__exportStar(require("./utils/createUtil"), exports);
|
|
15
|
-
tslib_1.__exportStar(require("./utils/
|
|
15
|
+
tslib_1.__exportStar(require("./utils/uiEmbedding"), exports);
|
|
16
16
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,+DAA4D;AACnD,gGADA,iCAAe,OACA;AACxB,wDAA8B;AAC9B,6DAAmC;AACnC,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;GAKG;;;;AAEH,+DAA4D;AACnD,gGADA,iCAAe,OACA;AACxB,wDAA8B;AAC9B,6DAAmC;AACnC,8DAAoC"}
|
|
@@ -3,6 +3,135 @@
|
|
|
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
|
+
## [11.37.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.36.0...v11.37.0) (2026-07-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [11.36.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.35.6...v11.36.0) (2026-07-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [11.35.6](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.35.5...v11.35.6) (2026-07-23)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [11.35.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.35.4...v11.35.5) (2026-07-23)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
## [11.35.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.35.3...v11.35.4) (2026-07-23)
|
|
39
|
+
|
|
40
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
## [11.35.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.35.2...v11.35.3) (2026-07-23)
|
|
47
|
+
|
|
48
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
## [11.35.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.35.1...v11.35.2) (2026-07-22)
|
|
55
|
+
|
|
56
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
## [11.35.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.35.0...v11.35.1) (2026-07-22)
|
|
63
|
+
|
|
64
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
65
|
+
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
## [11.35.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.34.2...v11.35.0) (2026-07-22)
|
|
71
|
+
|
|
72
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
## [11.34.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.34.1...v11.34.2) (2026-07-21)
|
|
79
|
+
|
|
80
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
|
|
85
|
+
|
|
86
|
+
## [11.34.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.34.0...v11.34.1) (2026-07-21)
|
|
87
|
+
|
|
88
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
89
|
+
|
|
90
|
+
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
|
|
94
|
+
## [11.34.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.33.0...v11.34.0) (2026-07-21)
|
|
95
|
+
|
|
96
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
97
|
+
|
|
98
|
+
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
## [11.33.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.32.0...v11.33.0) (2026-07-21)
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
### Features
|
|
106
|
+
|
|
107
|
+
* **org-setup:** harden org-setup.mjs against SOQL/Apex/CLI injection (W-23043731) ([#751](https://github.com/salesforce-experience-platform-emu/webapps/issues/751)) ([e820204](https://github.com/salesforce-experience-platform-emu/webapps/commit/e8202049e262ddbb47235cbedf5ccf54fe6a4d31))
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
## [11.32.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.31.15...v11.32.0) (2026-07-21)
|
|
112
|
+
|
|
113
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
114
|
+
|
|
115
|
+
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
## [11.31.15](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.31.14...v11.31.15) (2026-07-21)
|
|
120
|
+
|
|
121
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
122
|
+
|
|
123
|
+
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
|
|
127
|
+
## [11.31.14](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.31.13...v11.31.14) (2026-07-21)
|
|
128
|
+
|
|
129
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
|
|
6
135
|
## [11.31.13](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.31.12...v11.31.13) (2026-07-21)
|
|
7
136
|
|
|
8
137
|
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
@@ -43,10 +43,11 @@
|
|
|
43
43
|
"silenceDeprecations": ["import"]
|
|
44
44
|
}
|
|
45
45
|
},
|
|
46
|
-
"plugins": [
|
|
46
|
+
"plugins": []
|
|
47
47
|
},
|
|
48
48
|
"configurations": {
|
|
49
49
|
"production": {
|
|
50
|
+
"plugins": ["./esbuild/api-version.mjs"],
|
|
50
51
|
"budgets": [
|
|
51
52
|
{
|
|
52
53
|
"type": "anyComponentStyle",
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
}
|
|
65
66
|
},
|
|
66
67
|
"development": {
|
|
68
|
+
"plugins": ["./esbuild/graphql-codegen.mjs"],
|
|
67
69
|
"optimization": false,
|
|
68
70
|
"extractLicenses": false,
|
|
69
71
|
"sourceMap": true
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
schema: '../../../../../schema.graphql'
|
|
2
|
+
documents: 'src/**/*.{graphql,ts}'
|
|
3
|
+
generates:
|
|
4
|
+
src/app/api/graphql-operations-types.ts:
|
|
5
|
+
plugins:
|
|
6
|
+
- 'graphql-codegen-typescript-operation-types'
|
|
7
|
+
- 'typescript-operations'
|
|
8
|
+
config:
|
|
9
|
+
onlyOperationTypes: true
|
|
10
|
+
skipTypename: true
|
|
11
|
+
preResolveTypes: true
|
|
12
|
+
scalars:
|
|
13
|
+
# String-serialized scalars
|
|
14
|
+
JSON:
|
|
15
|
+
input: 'string'
|
|
16
|
+
output: 'string'
|
|
17
|
+
Date:
|
|
18
|
+
input: 'string'
|
|
19
|
+
output: 'string'
|
|
20
|
+
DateTime:
|
|
21
|
+
input: 'string'
|
|
22
|
+
output: 'string'
|
|
23
|
+
Time:
|
|
24
|
+
input: 'string'
|
|
25
|
+
output: 'string'
|
|
26
|
+
Email:
|
|
27
|
+
input: 'string'
|
|
28
|
+
output: 'string'
|
|
29
|
+
Url:
|
|
30
|
+
input: 'string'
|
|
31
|
+
output: 'string'
|
|
32
|
+
PhoneNumber:
|
|
33
|
+
input: 'string'
|
|
34
|
+
output: 'string'
|
|
35
|
+
Picklist:
|
|
36
|
+
input: 'string'
|
|
37
|
+
output: 'string'
|
|
38
|
+
MultiPicklist:
|
|
39
|
+
input: 'string'
|
|
40
|
+
output: 'string'
|
|
41
|
+
TextArea:
|
|
42
|
+
input: 'string'
|
|
43
|
+
output: 'string'
|
|
44
|
+
LongTextArea:
|
|
45
|
+
input: 'string'
|
|
46
|
+
output: 'string'
|
|
47
|
+
RichTextArea:
|
|
48
|
+
input: 'string'
|
|
49
|
+
output: 'string'
|
|
50
|
+
EncryptedString:
|
|
51
|
+
input: 'string'
|
|
52
|
+
output: 'string'
|
|
53
|
+
Base64:
|
|
54
|
+
input: 'string'
|
|
55
|
+
output: 'string'
|
|
56
|
+
IdOrRef:
|
|
57
|
+
input: 'string'
|
|
58
|
+
output: 'string'
|
|
59
|
+
# BigDecimal-serialized scalars (accepts number or string, returns number)
|
|
60
|
+
Currency:
|
|
61
|
+
input: 'number | string'
|
|
62
|
+
output: 'number'
|
|
63
|
+
BigDecimal:
|
|
64
|
+
input: 'number | string'
|
|
65
|
+
output: 'number'
|
|
66
|
+
Double:
|
|
67
|
+
input: 'number | string'
|
|
68
|
+
output: 'number'
|
|
69
|
+
Percent:
|
|
70
|
+
input: 'number | string'
|
|
71
|
+
output: 'number'
|
|
72
|
+
Longitude:
|
|
73
|
+
input: 'number | string'
|
|
74
|
+
output: 'number'
|
|
75
|
+
Latitude:
|
|
76
|
+
input: 'number | string'
|
|
77
|
+
output: 'number'
|
|
78
|
+
# Integer-like scalars
|
|
79
|
+
Long:
|
|
80
|
+
input: 'number'
|
|
81
|
+
output: 'number'
|
|
82
|
+
BigInteger:
|
|
83
|
+
input: 'number'
|
|
84
|
+
output: 'number'
|
|
85
|
+
Short:
|
|
86
|
+
input: 'number'
|
|
87
|
+
output: 'number'
|
|
88
|
+
Byte:
|
|
89
|
+
input: 'number'
|
|
90
|
+
output: 'number'
|
|
91
|
+
Char:
|
|
92
|
+
input: 'number'
|
|
93
|
+
output: 'number'
|
|
94
|
+
overwrite: true
|
|
95
|
+
ignoreNoDocuments: true
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GraphQL Codegen esbuild plugin — runs codegen on build start.
|
|
3
|
+
*
|
|
4
|
+
* Resolves GraphQL operations into typed TypeScript at build time using the
|
|
5
|
+
* project's `codegen.yml` configuration. Re-runs on every rebuild during
|
|
6
|
+
* `ng serve` so generated types stay in sync with schema/document changes.
|
|
7
|
+
*
|
|
8
|
+
* Referenced from angular.json: architect.build.options.plugins[].
|
|
9
|
+
*/
|
|
10
|
+
import { createGraphQLCodegenPlugin } from '@salesforce/angular-plugin-ui-bundle';
|
|
11
|
+
|
|
12
|
+
const plugin = createGraphQLCodegenPlugin();
|
|
13
|
+
export default plugin;
|