@salesforce/ui-bundle-template-app-react-sample-b2x 10.17.0 → 10.18.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/dist/CHANGELOG.md +25 -0
- package/dist/force-app/main/default/package.xml +4 -0
- package/dist/force-app/main/default/permissionsets/Property_Management_Access.permissionset-meta.xml +4 -0
- package/dist/force-app/main/default/permissionsets/Tenant_Maintenance_Access.permissionset-meta.xml +4 -0
- package/dist/force-app/main/default/permissionsets/propertyrentalapp_Guest_User_Api_Access.permissionset-meta.xml +9 -0
- package/dist/force-app/main/default/uiBundles/propertyrentalapp/package.json +4 -4
- package/dist/force-app/main/default/uiBundles/propertyrentalapp/scripts/get-graphql-schema.mjs +8 -5
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/dist/scripts/org-setup.config.json +10 -2
- package/dist/scripts/org-setup.mjs +5 -2
- package/package.json +1 -1
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.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.18.1...v10.18.2) (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.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.18.0...v10.18.1) (2026-06-19)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **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))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
## [10.18.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.17.0...v10.18.0) (2026-06-19)
|
|
24
|
+
|
|
25
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
6
31
|
## [10.17.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v10.16.0...v10.17.0) (2026-06-18)
|
|
7
32
|
|
|
8
33
|
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<PermissionSet xmlns="http://soap.sforce.com/2006/04/metadata">
|
|
3
|
+
<hasActivationRequired>false</hasActivationRequired>
|
|
4
|
+
<label>propertyrentalapp Guest User API Access</label>
|
|
5
|
+
<userPermissions>
|
|
6
|
+
<enabled>true</enabled>
|
|
7
|
+
<name>ApiEnabled</name>
|
|
8
|
+
</userPermissions>
|
|
9
|
+
</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.
|
|
22
|
-
"@salesforce/ui-bundle": "^10.
|
|
21
|
+
"@salesforce/platform-sdk": "^10.18.2",
|
|
22
|
+
"@salesforce/ui-bundle": "^10.18.2",
|
|
23
23
|
"@tailwindcss/vite": "^4.1.17",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
51
51
|
"@graphql-tools/utils": "^11.0.0",
|
|
52
52
|
"@playwright/test": "^1.49.0",
|
|
53
|
-
"@salesforce/graphiti": "^10.
|
|
54
|
-
"@salesforce/vite-plugin-ui-bundle": "^10.
|
|
53
|
+
"@salesforce/graphiti": "^10.18.2",
|
|
54
|
+
"@salesforce/vite-plugin-ui-bundle": "^10.18.2",
|
|
55
55
|
"@testing-library/jest-dom": "^6.6.3",
|
|
56
56
|
"@testing-library/react": "^16.1.0",
|
|
57
57
|
"@testing-library/user-event": "^14.5.2",
|
package/dist/force-app/main/default/uiBundles/propertyrentalapp/scripts/get-graphql-schema.mjs
CHANGED
|
@@ -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
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
3
|
-
"version": "10.
|
|
3
|
+
"version": "10.18.2",
|
|
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.
|
|
9
|
+
"version": "10.18.2",
|
|
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,11 +1,19 @@
|
|
|
1
1
|
{
|
|
2
2
|
"permsetAssignments": {
|
|
3
3
|
"assignments": {
|
|
4
|
-
"Property_Management_Access": {
|
|
5
|
-
|
|
4
|
+
"Property_Management_Access": {
|
|
5
|
+
"assignee": "currentUser"
|
|
6
|
+
},
|
|
7
|
+
"Tenant_Maintenance_Access": {
|
|
8
|
+
"assignee": "skip"
|
|
9
|
+
},
|
|
6
10
|
"Property_Rental_Guest_User_Access": {
|
|
7
11
|
"assignee": "guestUser",
|
|
8
12
|
"siteName": "propertyrentalapp"
|
|
13
|
+
},
|
|
14
|
+
"propertyrentalapp_Guest_User_Api_Access": {
|
|
15
|
+
"assignee": "guestUser",
|
|
16
|
+
"siteName": "propertyrentalapp"
|
|
9
17
|
}
|
|
10
18
|
}
|
|
11
19
|
},
|
|
@@ -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('
|
|
1144
|
-
|
|
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) {
|