@salesforce/ui-bundle-template-app-react-template-b2e 10.18.0 → 10.18.3

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/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
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
+ ## [10.18.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.18.2...v10.18.3) (2026-06-19)
7
+
8
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
9
+
10
+
11
+
12
+
13
+
14
+ ## [10.18.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.18.1...v10.18.2) (2026-06-19)
15
+
16
+ **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
17
+
18
+
19
+
20
+
21
+
22
+ ## [10.18.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.18.0...v10.18.1) (2026-06-19)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * **template:** @W-23043727@ org-setup runtime bugs (ApiEnabled + global config) ([#646](https://github.com/salesforce-experience-platform-emu/webapps/issues/646)) ([293a940](https://github.com/salesforce-experience-platform-emu/webapps/commit/293a940ec46ecc863c1446dfcb418b0fee5dc46b))
28
+
29
+
30
+
6
31
  ## [10.18.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.17.0...v10.18.0) (2026-06-19)
7
32
 
8
33
  **Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
@@ -6,4 +6,8 @@
6
6
  </applicationVisibilities>
7
7
  <hasActivationRequired>false</hasActivationRequired>
8
8
  <label>reactinternalapp Access</label>
9
+ <userPermissions>
10
+ <enabled>true</enabled>
11
+ <name>ApiEnabled</name>
12
+ </userPermissions>
9
13
  </PermissionSet>
@@ -18,8 +18,8 @@
18
18
  "graphql:schema": "node scripts/get-graphql-schema.mjs"
19
19
  },
20
20
  "dependencies": {
21
- "@salesforce/platform-sdk": "^10.18.0",
22
- "@salesforce/ui-bundle": "^10.18.0",
21
+ "@salesforce/platform-sdk": "^10.18.3",
22
+ "@salesforce/ui-bundle": "^10.18.3",
23
23
  "@tailwindcss/vite": "^4.1.17",
24
24
  "class-variance-authority": "^0.7.1",
25
25
  "clsx": "^2.1.1",
@@ -45,8 +45,8 @@
45
45
  "@graphql-eslint/eslint-plugin": "^4.1.0",
46
46
  "@graphql-tools/utils": "^11.0.0",
47
47
  "@playwright/test": "^1.49.0",
48
- "@salesforce/graphiti": "^10.18.0",
49
- "@salesforce/vite-plugin-ui-bundle": "^10.18.0",
48
+ "@salesforce/graphiti": "^10.18.3",
49
+ "@salesforce/vite-plugin-ui-bundle": "^10.18.3",
50
50
  "@testing-library/jest-dom": "^6.6.3",
51
51
  "@testing-library/react": "^16.1.0",
52
52
  "@testing-library/user-event": "^14.5.2",
@@ -15,13 +15,16 @@ import { buildClientSchema, getIntrospectionQuery, printSchema } from 'graphql';
15
15
  import { pruneSchema } from '@graphql-tools/utils';
16
16
 
17
17
  const DEFAULT_SCHEMA_PATH = '../../../../../schema.graphql';
18
+ const TARGET_ORG = process.env.SF_TARGET_ORG || undefined;
18
19
 
19
20
  async function executeSalesforceGraphQLQuery(query, variables, operationName) {
20
- const {
21
- rawInstanceUrl: instanceUrl,
22
- apiVersion,
23
- accessToken,
24
- } = await getOrgInfo();
21
+ const orgInfo = await getOrgInfo(TARGET_ORG);
22
+ if (!orgInfo) {
23
+ throw new Error(
24
+ 'Could not resolve a Salesforce org. Set SF_TARGET_ORG or a default org.'
25
+ );
26
+ }
27
+ const { rawInstanceUrl: instanceUrl, apiVersion, accessToken } = orgInfo;
25
28
 
26
29
  const targetUrl = `${instanceUrl}/services/data/v${apiVersion}/graphql`;
27
30
 
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "10.18.0",
3
+ "version": "10.18.3",
4
4
  "lockfileVersion": 3,
5
5
  "requires": true,
6
6
  "packages": {
7
7
  "": {
8
8
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
9
- "version": "10.18.0",
9
+ "version": "10.18.3",
10
10
  "license": "SEE LICENSE IN LICENSE.txt",
11
11
  "devDependencies": {
12
12
  "@lwc/eslint-plugin-lwc": "^3.3.0",
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-base-sfdx-project",
3
- "version": "10.18.0",
3
+ "version": "10.18.3",
4
4
  "description": "Base SFDX project template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "publishConfig": {
@@ -773,6 +773,7 @@ function run(name, cmd, args, opts = {}) {
773
773
  cwd,
774
774
  stdio: 'inherit',
775
775
  shell: true,
776
+ ...(opts.env && { env: opts.env }),
776
777
  ...(opts.timeout && { timeout: opts.timeout }),
777
778
  });
778
779
  if (result.status !== 0 && !optional) {
@@ -1140,8 +1141,10 @@ async function main() {
1140
1141
 
1141
1142
  if (!skipGraphql) {
1142
1143
  run('UI Bundle npm install', 'npm', ['install'], { cwd: uiBundleDir });
1143
- run('Set default org for schema', 'sf', ['config', 'set', 'target-org', targetOrg, '--global']);
1144
- run('GraphQL schema (introspect)', 'npm', ['run', 'graphql:schema'], { cwd: uiBundleDir });
1144
+ run('GraphQL schema (introspect)', 'npm', ['run', 'graphql:schema'], {
1145
+ cwd: uiBundleDir,
1146
+ env: { ...process.env, SF_TARGET_ORG: targetOrg },
1147
+ });
1145
1148
  run('GraphQL codegen', 'npm', ['run', 'graphql:codegen'], { cwd: uiBundleDir });
1146
1149
  run('UI Bundle build (post-codegen)', 'npm', ['run', 'build'], { cwd: uiBundleDir });
1147
1150
  } else if (!skipUIBundleBuild && skipDeploy) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-template-app-react-template-b2e",
3
- "version": "10.18.0",
3
+ "version": "10.18.3",
4
4
  "description": "Salesforce React internal app template",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",