@salesforce/webapp-template-feature-react-authentication-experimental 1.101.1 → 1.101.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.
@@ -173,15 +173,21 @@ const QUERY_VARIABLES = {
173
173
 
174
174
  **Workflow**
175
175
 
176
- 1. **Report Step** - Explain that you are able to test the query using the same method used during introspection
177
- 1. You **MUST** report the method you will use, based on the one you used during schema exploration
178
- 2. **Interactive Step** - Ask the user whether they want you to test the query using the proposed method
176
+ 1. **Report Step** - Explain that you are able to test the query using `sf api request rest`
177
+ 2. **Interactive Step** - Ask the user whether they want you to test the query
179
178
  1. **WAIT** for the user's answer.
180
179
  3. **Input Arguments** - You **MUST** ask the user for the input arguments to use
181
180
  1. **WAIT** for the user's answer.
182
181
  4. **Test Query** - If the user are OK with you testing the query:
183
- 1. Use the selected method to test the query
184
- 2. **IMPORTANT** - If you use the Salesforce CLI `sf api request graphql` command, you will need to inject the variable values directly into the query, as this command doesn't accept variables as a parameter
182
+ 1. Use `sf api request rest` to POST the query and variables to the GraphQL endpoint:
183
+ ```bash
184
+ sf api request rest /services/data/v65.0/graphql \
185
+ --method POST \
186
+ --body '{"query":"mutation mutateEntity($input: EntityNameOperationInput!) { uiapi { EntityNameOperation(input: $input) { Record { Id } } } }","variables":{"input":{"EntityName":{"Field":"Value"}}}}'
187
+ ```
188
+ 2. Replace `v65.0` with the API version of the target org
189
+ 3. Replace the `query` value with the generated mutation query string
190
+ 4. Replace the `variables` value with the user-provided input arguments
185
191
  5. **Result Analysis** - Retrieve the `data` and `errors` attributes from the returned payload, and report the result of the test as one of the following options:
186
192
  1. `PARTIAL` if `data` is not an empty object, but `errors` is not an empty list - Explanation: some of the queried fields are not accessible on mutations
187
193
  2. `FAILED` if `data` is an empty object - Explanation: the query is not valid
@@ -168,14 +168,21 @@ const QUERY_VARIABLES = {
168
168
 
169
169
  **Workflow**
170
170
 
171
- 1. **Report Step** - Explain that you are able to test the query using the same method used during introspection
172
- 1. You **MUST** report the method you will use, based on the one you used during schema exploration
173
- 2. **Interactive Step** - Ask the user whether they want you to test the query using the proposed method
171
+ 1. **Report Step** - Explain that you are able to test the query using `sf api request rest`
172
+ 2. **Interactive Step** - Ask the user whether they want you to test the query
174
173
  1. **WAIT** for the user's answer.
175
174
  3. **Test Query** - If the user are OK with you testing the query:
176
- 1. Use the selected method to test the query
177
- 2. Report the result of the test as `SUCCESS` if the query executed without error, or `FAILED` if you got errors
178
- 3. If the query executed without any errors, but you received no data, then the query is valid, and the result of the test is `SUCCESS`
175
+ 1. Use `sf api request rest` to POST the query to the GraphQL endpoint:
176
+ ```bash
177
+ sf api request rest /services/data/v65.0/graphql \
178
+ --method POST \
179
+ --body '{"query":"query GetData { uiapi { query { EntityName { edges { node { Id } } } } } }"}'
180
+ ```
181
+ 2. Replace `v65.0` with the API version of the target org
182
+ 3. Replace the `query` value with the generated read query string
183
+ 4. If the query uses variables, include them in the JSON body as a `variables` key
184
+ 5. Report the result of the test as `SUCCESS` if the query executed without error, or `FAILED` if you got errors
185
+ 6. If the query executed without any errors, but you received no data, then the query is valid, and the result of the test is `SUCCESS`
179
186
  4. **Remediation Step** - If status is `FAILED`, use the [`FAILED` status handling workflows](#failed-status-handling-workflow)
180
187
 
181
188
  ### `FAILED` Status Handling Workflow
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,22 @@
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
+ ## [1.101.3](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.101.2...v1.101.3) (2026-03-14)
7
+
8
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
9
+
10
+
11
+
12
+
13
+
14
+ ## [1.101.2](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.101.1...v1.101.2) (2026-03-14)
15
+
16
+ **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
17
+
18
+
19
+
20
+
21
+
6
22
  ## [1.101.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.101.0...v1.101.1) (2026-03-13)
7
23
 
8
24
  **Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-base-sfdx-project-experimental",
3
- "version": "1.101.1",
3
+ "version": "1.101.3",
4
4
  "description": "Base SFDX project template",
5
5
  "private": true,
6
6
  "files": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/webapp-template-feature-react-authentication-experimental",
3
- "version": "1.101.1",
3
+ "version": "1.101.3",
4
4
  "description": "Authentication feature for web applications",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -16,7 +16,7 @@
16
16
  "clean": "rm -rf dist"
17
17
  },
18
18
  "devDependencies": {
19
- "@salesforce/webapp-experimental": "^1.101.1",
19
+ "@salesforce/webapp-experimental": "^1.101.3",
20
20
  "@tanstack/react-form": "^1.27.7",
21
21
  "@types/react": "^19.2.7",
22
22
  "@types/react-dom": "^19.2.3",