@salesforce/templates 66.17.3 → 66.17.5

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 (82) hide show
  1. package/lib/generators/analyticsTemplateGenerator.d.ts +1 -1
  2. package/lib/generators/analyticsTemplateGenerator.js +1 -1
  3. package/lib/generators/analyticsTemplateGenerator.js.map +1 -1
  4. package/lib/generators/apexClassGenerator.d.ts +1 -1
  5. package/lib/generators/apexClassGenerator.js +1 -0
  6. package/lib/generators/apexClassGenerator.js.map +1 -1
  7. package/lib/generators/apexTriggerGenerator.d.ts +1 -1
  8. package/lib/generators/baseGenerator.d.ts +1 -1
  9. package/lib/generators/baseGenerator.js +13 -7
  10. package/lib/generators/baseGenerator.js.map +1 -1
  11. package/lib/generators/digitalExperienceSiteGenerator.d.ts +1 -2
  12. package/lib/generators/digitalExperienceSiteGenerator.js +9 -9
  13. package/lib/generators/digitalExperienceSiteGenerator.js.map +1 -1
  14. package/lib/generators/flexipageGenerator.d.ts +1 -2
  15. package/lib/generators/flexipageGenerator.js +5 -7
  16. package/lib/generators/flexipageGenerator.js.map +1 -1
  17. package/lib/generators/lightningAppGenerator.d.ts +1 -1
  18. package/lib/generators/lightningComponentGenerator.d.ts +1 -1
  19. package/lib/generators/lightningEventGenerator.d.ts +1 -1
  20. package/lib/generators/lightningInterfaceGenerator.d.ts +1 -1
  21. package/lib/generators/lightningOutGenerator.d.ts +1 -1
  22. package/lib/generators/lightningOutGenerator.js +21 -5
  23. package/lib/generators/lightningOutGenerator.js.map +1 -1
  24. package/lib/generators/lightningTestGenerator.d.ts +1 -1
  25. package/lib/generators/lightningTestGenerator.js +1 -1
  26. package/lib/generators/lightningTestGenerator.js.map +1 -1
  27. package/lib/generators/projectGenerator.d.ts +1 -1
  28. package/lib/generators/projectGenerator.js +7 -5
  29. package/lib/generators/projectGenerator.js.map +1 -1
  30. package/lib/generators/staticResourceGenerator.d.ts +1 -1
  31. package/lib/generators/uiBundleGenerator.d.ts +1 -1
  32. package/lib/generators/uiBundleGenerator.js +4 -2
  33. package/lib/generators/uiBundleGenerator.js.map +1 -1
  34. package/lib/generators/uiEmbeddingGenerator.d.ts +1 -1
  35. package/lib/generators/uiEmbeddingGenerator.js +2 -1
  36. package/lib/generators/uiEmbeddingGenerator.js.map +1 -1
  37. package/lib/generators/visualforceComponentGenerator.d.ts +1 -1
  38. package/lib/generators/visualforcePageGenerator.d.ts +1 -1
  39. package/lib/i18n/index.js +1 -1
  40. package/lib/i18n/index.js.map +1 -1
  41. package/lib/i18n/localization.js +13 -12
  42. package/lib/i18n/localization.js.map +1 -1
  43. package/lib/index.js.map +1 -1
  44. package/lib/service/gitRepoUtils.d.ts +1 -1
  45. package/lib/service/gitRepoUtils.js +7 -8
  46. package/lib/service/gitRepoUtils.js.map +1 -1
  47. package/lib/service/templateService.d.ts +1 -1
  48. package/lib/service/templateService.js +1 -1
  49. package/lib/service/templateService.js.map +1 -1
  50. package/lib/templates/project/angularextapp/_p_/_m_/_w_/_a_/package-lock.json +518 -493
  51. package/lib/templates/project/angularintapp/CHANGELOG.md +169 -0
  52. package/lib/templates/project/angularintapp/README.md +82 -44
  53. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/README.md +1 -1
  54. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/package-lock.json +528 -503
  55. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/package.json +4 -4
  56. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/_f_/_os_/api/object-search.service.ts +3 -6
  57. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/api/graphql-operations-types.ts +1 -2
  58. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/components/ui/button/button.ts +1 -8
  59. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/components/ui/dialog/dialog.html +1 -1
  60. package/lib/templates/project/angularintapp/_p_/_m_/_w_/_a_/src/app/components/ui/icon/icon.ts +6 -0
  61. package/lib/templates/project/angularintapp/package.json +1 -1
  62. package/lib/templates/project/angularintapp/scripts/network-senders.mjs +84 -0
  63. package/lib/templates/project/angularintapp/scripts/org-setup-xml.mjs +11 -6
  64. package/lib/templates/project/angularintapp/scripts/org-setup.mjs +13 -5
  65. package/lib/templates/project/reactexternalapp/CHANGELOG.md +32 -0
  66. package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/package-lock.json +355 -337
  67. package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/package.json +4 -4
  68. package/lib/templates/project/reactexternalapp/package.json +1 -1
  69. package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/package-lock.json +357 -339
  70. package/lib/templates/uiBundles/angularbasic/package-lock.json +518 -493
  71. package/lib/templates/uiBundles/reactbasic/package-lock.json +355 -337
  72. package/lib/templates/uiBundles/reactbasic/package.json +4 -4
  73. package/lib/templates/uiBundles/vuebasic/package-lock.json +335 -317
  74. package/lib/templates/uiBundles/vuebasic/package.json +4 -4
  75. package/lib/utils/createUtil.js +1 -1
  76. package/lib/utils/createUtil.js.map +1 -1
  77. package/lib/utils/types.d.ts +7 -6
  78. package/lib/utils/types.js +4 -4
  79. package/lib/utils/types.js.map +1 -1
  80. package/lib/utils/uiBundleTemplateUtils.js +8 -9
  81. package/lib/utils/uiBundleTemplateUtils.js.map +1 -1
  82. package/package.json +9 -12
@@ -3,6 +3,175 @@
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
+ ## [12.12.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.12.0...v12.12.1) (2026-10-20)
7
+
8
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
9
+
10
+
11
+
12
+
13
+
14
+ ## [12.12.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.11.0...v12.12.0) (2026-10-14)
15
+
16
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
17
+
18
+
19
+
20
+
21
+
22
+ ## [12.11.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.10.0...v12.11.0) (2026-10-07)
23
+
24
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
25
+
26
+
27
+
28
+
29
+
30
+ ## [12.10.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.9.0...v12.10.0) (2026-10-06)
31
+
32
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
33
+
34
+
35
+
36
+
37
+
38
+ ## [12.9.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.8.0...v12.9.0) (2026-09-29)
39
+
40
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
41
+
42
+
43
+
44
+
45
+
46
+ ## [12.8.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.7.0...v12.8.0) (2026-09-23)
47
+
48
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
49
+
50
+
51
+
52
+
53
+
54
+ ## [12.7.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.6.3...v12.7.0) (2026-09-22)
55
+
56
+
57
+ ### Bug Fixes
58
+
59
+ * **template-sfdx-project:** preserve target network sender addresses @W-24209513@ ([#993](https://github.com/salesforce-experience-platform-emu/webapps/issues/993)) ([fddbfdd](https://github.com/salesforce-experience-platform-emu/webapps/commit/fddbfddcb41270720372b0fd4c486f043d9ba8c5))
60
+
61
+
62
+
63
+ ## [12.6.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.6.2...v12.6.3) (2026-09-14)
64
+
65
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
66
+
67
+
68
+
69
+
70
+
71
+ ## [12.6.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.6.1...v12.6.2) (2026-09-14)
72
+
73
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
74
+
75
+
76
+
77
+
78
+
79
+ ## [12.6.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.6.0...v12.6.1) (2026-09-11)
80
+
81
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
82
+
83
+
84
+
85
+
86
+
87
+ ## [12.6.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.8...v12.6.0) (2026-09-11)
88
+
89
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
90
+
91
+
92
+
93
+
94
+
95
+ ## [12.5.8](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.7...v12.5.8) (2026-09-11)
96
+
97
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
98
+
99
+
100
+
101
+
102
+
103
+ ## [12.5.7](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.6...v12.5.7) (2026-09-11)
104
+
105
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
106
+
107
+
108
+
109
+
110
+
111
+ ## [12.5.6](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.5...v12.5.6) (2026-09-11)
112
+
113
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
114
+
115
+
116
+
117
+
118
+
119
+ ## [12.5.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.4...v12.5.5) (2026-09-10)
120
+
121
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
122
+
123
+
124
+
125
+
126
+
127
+ ## [12.5.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.3...v12.5.4) (2026-09-09)
128
+
129
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
130
+
131
+
132
+
133
+
134
+
135
+ ## [12.5.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.2...v12.5.3) (2026-09-08)
136
+
137
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
138
+
139
+
140
+
141
+
142
+
143
+ ## [12.5.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.1...v12.5.2) (2026-09-08)
144
+
145
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
146
+
147
+
148
+
149
+
150
+
151
+ ## [12.5.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.5.0...v12.5.1) (2026-09-07)
152
+
153
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
154
+
155
+
156
+
157
+
158
+
159
+ ## [12.5.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.4.5...v12.5.0) (2026-09-04)
160
+
161
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
162
+
163
+
164
+
165
+
166
+
167
+ ## [12.4.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.4.4...v12.4.5) (2026-09-03)
168
+
169
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
170
+
171
+
172
+
173
+
174
+
6
175
  ## [12.4.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v12.4.3...v12.4.4) (2026-09-03)
7
176
 
8
177
  **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
@@ -1,69 +1,107 @@
1
- # Salesforce DX Project: Next Steps
1
+ # Angular Internal App
2
2
 
3
- Now that you’ve created a Salesforce DX project, what’s next? Here are some documentation resources to get you started.
3
+ An internal Angular starter template for the Salesforce platform. Includes an Agentforce conversation client and object search across Salesforce records; intended for internal (non-Experience Cloud) deployment via a CustomApplication in the Lightning Experience App Launcher. Built with Angular (standalone components), Spartan NG (`@spartan-ng/brain` primitives with helm UI components copied into `src/app/shared/`), Tailwind CSS, Lucide icons (`@ng-icons/lucide`), and TypeScript.
4
4
 
5
- ## Web app: install, build, and dev server
5
+ ## What's included
6
6
 
7
- From the **SFDX project root** (this directory), run:
7
+ This project ships the UI Bundle plus a CustomApplication that surfaces it in the Lightning Experience App Launcher. No additional data-model metadata (objects, Apex, etc.) is included — bring your own data model.
8
+
9
+ ```
10
+ force-app/main/default/
11
+ ├── applications/ # CustomApplication (App Launcher entry)
12
+ ├── permissionsets/ # Permission sets
13
+ └── uiBundles/
14
+ └── angularintapp/ # Angular UI Bundle (source, config, tests)
15
+ ```
16
+
17
+ ## Getting started
18
+
19
+ Install project dependencies and start the local dev server:
8
20
 
9
21
  ```bash
22
+ npm install
10
23
  npm run sf-project-setup
11
24
  ```
12
25
 
13
- This installs dependencies in the UI Bundle, builds it, and starts the Vite dev server. Use this after cloning or extracting the project.
26
+ This installs the UI Bundle dependencies, builds the app, and starts the Salesforce Angular dev server (`sf-angular-serve`). For manual build and test instructions, see the [UI Bundle README](force-app/main/default/uiBundles/angularintapp/README.md).
27
+
28
+ ## Add features
29
+
30
+ Use the features CLI to install additional UI features into the UI Bundle.
31
+
32
+ List all available features:
33
+
34
+ ```bash
35
+ npx @salesforce/ui-bundle-features-experimental list
36
+ ```
37
+
38
+ Get details about a specific feature (description, dependencies, files, and integration examples):
39
+
40
+ ```bash
41
+ npx @salesforce/ui-bundle-features-experimental describe <feature-name>
42
+ ```
43
+
44
+ Install a feature:
14
45
 
15
- ## Set up the org
46
+ ```bash
47
+ npx @salesforce/ui-bundle-features-experimental install <feature-name> --ui-bundle-dir angularintapp
48
+ ```
49
+
50
+ After installation, the CLI will list any `__example__` files that need manual integration. Read each example file to see the integration pattern, apply it to the target file, then delete the example file.
51
+
52
+ ## Deploy
53
+
54
+ ### Deploy everything (CustomApplication + UI Bundle)
55
+
56
+ ```bash
57
+ cd force-app/main/default/uiBundles/angularintapp && npm install && npm run build && cd -
58
+ sf project deploy start --source-dir force-app --target-org <alias>
59
+ ```
16
60
 
17
- `npm run setup` configures a target org from this project in one command: it logs in
18
- (a required precondition — auto-skipped if the org is already connected), deploys
19
- metadata, assigns permission sets, imports sample data, refreshes the GraphQL
20
- schema/types, and builds the UI Bundle. When `--target-org` is omitted it uses your
21
- default org or, in an interactive terminal, prompts you to pick one.
61
+ ### Deploy the UI Bundle only
22
62
 
23
63
  ```bash
24
- npm run setup -- --target-org <alias> # or omit --target-org to use the default / pick
64
+ cd force-app/main/default/uiBundles/angularintapp && npm install && npm run build && cd -
65
+ sf project deploy start --source-dir force-app/main/default/uiBundles --target-org <alias>
25
66
  ```
26
67
 
27
- Setup does **not** start the dev server. Once the org is set up, use `dev:preview` to
28
- refresh the GraphQL types against the org and launch the Vite dev server on its own:
68
+ Replace `<alias>` with your target org alias.
69
+
70
+ ## Setup scripts
71
+
72
+ Two npm scripts at the project root streamline getting started and deployment.
73
+
74
+ **`npm run sf-project-setup`** — installs the UI Bundle dependencies, builds the app, and starts the dev server (see [Getting started](#getting-started)).
75
+
76
+ **`npm run setup`** — runs the full deployment setup in one command: org login (a required precondition, auto-skipped if already connected), UI Bundle build, deploy metadata, fetch GraphQL schema, and run codegen. It no longer starts the dev server — run `npm run dev:preview` for that:
29
77
 
30
78
  ```bash
31
- npm run dev:preview
79
+ # Install project dependencies first (required before running setup)
80
+ npm install
81
+
82
+ npm run setup -- --target-org <alias>
32
83
  ```
33
84
 
34
- ### Setup configuration (`scripts/org-setup.config.json`)
35
-
36
- `org-setup.config.json` controls which steps run and how. Every top-level section is
37
- optional; an absent section hides its step. It is validated against a shared schema
38
- at build/CI time and again at the start of every `npm run setup`, so a malformed
39
- config fails fast rather than misbehaving.
40
-
41
- ```jsonc
42
- {
43
- "permsetAssignments": {
44
- "assignments": {
45
- "My_Access": { "assignee": "currentUser" }
46
- }
47
- },
48
- "role": { "assignee": "currentUser", "roleName": "Admin" },
49
- "selfRegistration": {
50
- "selfRegProfile": "My Prospect Profile",
51
- "accountName": "My Self-Registration"
52
- }
53
- }
85
+ Running without flags presents an interactive step picker. Pass `--yes` to skip it and run all steps immediately:
86
+
87
+ ```bash
88
+ npm run setup -- --target-org <alias> --yes
54
89
  ```
55
90
 
56
- When a `selfRegistration` section is present, setup runs a **license pre-check**
57
- before configuring self-registration: it derives the required `UserLicense` from the
58
- configured `selfRegProfile` (matched on the stable `LicenseDefinitionKey`, not the
59
- display name) and, if the org lacks that license or has no available seats, **warns
60
- and skips** self-registration instead of reporting success — so prospect login can't
61
- silently fail on an under-provisioned org. No separate license field is configured;
62
- the requirement always follows the profile the flow assigns.
91
+ Common options:
92
+
93
+ | Option | Description |
94
+ | ------------------------- | ----------------------------------------------- |
95
+ | `--target-org <alias>` | Target org. If omitted, uses default org/prompt |
96
+ | `--skip-deploy` | Do not deploy metadata |
97
+ | `--skip-graphql` | Skip GraphQL schema fetch and codegen |
98
+ | `--skip-ui-bundle-build` | Skip `npm install` and UI Bundle build |
99
+ | `--ui-bundle-name <name>` | UI Bundle folder name when multiple exist |
100
+ | `-y, --yes` | Skip interactive step picker; run all steps |
63
101
 
64
- ## How Do You Plan to Deploy Your Changes?
102
+ > Login is a required precondition (no `--skip-login`), and the dev server is no longer part of setup (no `--skip-dev`); both flags are accepted but ignored. To start the dev server after setup, run `npm run dev:preview`.
65
103
 
66
- Do you want to deploy a set of changes, or create a self-contained application? Choose a [development model](https://developer.salesforce.com/tools/vscode/en/user-guide/development-models).
104
+ For all options: `npm run setup -- --help`.
67
105
 
68
106
  ## Configure Your Salesforce DX Project
69
107
 
@@ -1,6 +1,6 @@
1
1
  # Base Angular App
2
2
 
3
- Base Angular App is a template application that demonstrates how to build an Angular UI Bundle on the Salesforce platform with the Angular CLI, TypeScript, Tailwind, and the Salesforce UI Bundle SDK. It provides a minimal shell (home, 404), routing with standalone components and signals, so feature apps can extend it via the patches pipeline.
3
+ Base Angular App is a template application that demonstrates how to build an Angular UI Bundle on the Salesforce platform with the Angular CLI, TypeScript, Tailwind, Spartan NG (shadcn/ui for Angular), and the Salesforce UI Bundle SDK. It provides a minimal shell (home, 404), routing with standalone components and signals, so feature apps can extend it via the patches pipeline.
4
4
 
5
5
  This UI Bundle lives inside an SFDX project. The project root is the directory that contains `force-app/` and `sfdx-project.json`. Run the commands in the sections below from the paths indicated.
6
6