@salesforce/webapp-template-feature-react-authentication-experimental 1.26.0 → 1.27.0

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.
@@ -123,7 +123,8 @@ mutation mutateEntityName(
123
123
  ## Mutation Standalone (Default) Output Format - CLEAN CODE ONLY
124
124
 
125
125
  ```javascript
126
- const QUERY_NAME = `
126
+ import { gql } from 'api/graphql.ts';
127
+ const QUERY_NAME = gql`
127
128
  mutation mutateEntity($input: EntityNameOperationInput!) {
128
129
  uiapi {
129
130
  EntityNameOperation(input: $input) {
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: install-feature
3
- description: Install a feature into the current app. Use when the user asks to add a feature, capability, or functionality like authentication, search, charts, or navigation to their React web app.
3
+ description: Install a feature into the current app. Use when the user asks to add a feature, capability, or functionality like authentication, search, charts, or navigation to their React web app. Do this when user wants to do _anything_ to webapplications/webapps.
4
4
  ---
5
5
 
6
6
  # Install feature
@@ -17,10 +17,12 @@ Available features (npm packages):
17
17
  | **Authentication** | `@salesforce/webapp-template-feature-react-authentication-experimental` | Login, register, password reset, protected routes |
18
18
  | **Global search** | `@salesforce/webapp-template-feature-react-global-search-experimental` | Search Salesforce objects with filters and pagination |
19
19
  | **Navigation menu** | `@salesforce/webapp-template-feature-react-nav-menu-experimental` | App layout with responsive navigation menu |
20
- | **Analytics charts** | `@salesforce/webapp-template-feature-react-chart-experimental` | Recharts line/bar charts with theming (AnalyticsChart, ChartContainer) |
20
+ | **Analytics charts** | `@salesforce/webapp-template-feature-react-chart-experimental` | Recharts line/bar charts with theming (AnalyticsChart, ChartContainer) |
21
+ | **GraphQL data access**| `@salesforce/webapp-template-feature-graphql-experimental` | executeGraphQL utilities, codegen tooling, and example AccountsTable |
21
22
  | **Shared UI (shadcn)** | `@salesforce/webapp-template-feature-react-shadcn-experimental` | Button, Card, Input, Select, Table, Tabs, etc. |
22
23
 
23
24
 
25
+
24
26
  If no feature matches, tell the user and offer to build it from scratch following the project's existing patterns.
25
27
 
26
28
  ## 2. Install the npm package
@@ -31,12 +33,18 @@ npm install <package-name>
31
33
 
32
34
  ## 3. Copy skills and rules from the package
33
35
 
34
- After install, check the package in `node_modules/<package-name>/` for:
36
+ Run the script so skills and rules from the package are copied into your project. Pass `[skills-dir]` and `[rules-dir]` for your environment; the script reports what it copied.
37
+
38
+ ```bash
39
+ # Default (e.g. Cline): .cline/skills, .clinerules
40
+ bash <this-skill>/scripts/copy-feature-assets.sh <package-name>
35
41
 
36
- - `**skills/**` If it exists, copy each skill folder into the current project's skills directory (e.g. `.cline/skills/` or `.cursor/skills/`).
37
- - `**rules/**` – If it exists, copy each rule file into the current project's rules directory (e.g. `.clinerules/` or `.cursor/rules/`).
42
+ # Agentforce: .a4drules/ ([docs](https://developer.salesforce.com/docs/platform/einstein-for-devs/guide/devagent-rules.html))
43
+ bash <this-skill>/scripts/copy-feature-assets.sh <package-name> .a4drules/skills .a4drules
38
44
 
39
- Not every package has skills or rules; skip this step if neither directory exists.
45
+ # Cursor: .cursor/skills, .cursor/rules
46
+ bash <this-skill>/scripts/copy-feature-assets.sh <package-name> .cursor/skills .cursor/rules
47
+ ```
40
48
 
41
49
  ## 4. Read the feature's exports and components
42
50
 
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env bash
2
+ # Copies skills/ and rules/ from an installed npm package into the current project.
3
+ # Usage: bash <this-script> <package-name> [skills-dir] [rules-dir]
4
+ #
5
+ # Examples:
6
+ # bash copy-feature-assets.sh @salesforce/webapp-template-feature-graphql-experimental
7
+ # bash copy-feature-assets.sh @salesforce/webapp-template-feature-graphql-experimental .cursor/skills .cursor/rules
8
+ set -euo pipefail
9
+
10
+ PKG="${1:?Usage: copy-feature-assets.sh <package-name> [skills-dir] [rules-dir]}"
11
+ SKILLS_DIR="${2:-.cline/skills}"
12
+ RULES_DIR="${3:-.clinerules}"
13
+
14
+ PKG_DIR="node_modules/$PKG"
15
+
16
+ if [ ! -d "$PKG_DIR" ]; then
17
+ echo "Error: Package not found at $PKG_DIR" >&2
18
+ echo "Run 'npm install $PKG' first." >&2
19
+ exit 1
20
+ fi
21
+
22
+ if [ -d "$PKG_DIR/skills" ] && [ "$(ls -A "$PKG_DIR/skills")" ]; then
23
+ mkdir -p "$SKILLS_DIR"
24
+ cp -r "$PKG_DIR"/skills/* "$SKILLS_DIR"/
25
+ echo "Copied skills → $SKILLS_DIR/"
26
+ else
27
+ echo "No skills/ found in $PKG_DIR — nothing to copy."
28
+ fi
29
+
30
+ if [ -d "$PKG_DIR/rules" ] && [ "$(ls -A "$PKG_DIR/rules")" ]; then
31
+ mkdir -p "$RULES_DIR"
32
+ cp -r "$PKG_DIR"/rules/* "$RULES_DIR"/
33
+ echo "Copied rules → $RULES_DIR/"
34
+ else
35
+ echo "No rules/ found in $PKG_DIR — nothing to copy."
36
+ fi
package/dist/CHANGELOG.md CHANGED
@@ -3,6 +3,17 @@
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.27.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.26.0...v1.27.0) (2026-02-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * defining graphql feature @W-20226218@ ([#83](https://github.com/salesforce-experience-platform-emu/webapps/issues/83)) ([51a9273](https://github.com/salesforce-experience-platform-emu/webapps/commit/51a92733063e1adf0c6e44ceab37162baddc2ffb))
12
+
13
+
14
+
15
+
16
+
6
17
  # [1.26.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.25.2...v1.26.0) (2026-02-11)
7
18
 
8
19
  **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.26.0",
3
+ "version": "1.27.0",
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.26.0",
3
+ "version": "1.27.0",
4
4
  "description": "Authentication feature for web applications",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "author": "",
@@ -19,7 +19,7 @@
19
19
  "watch": "npx tsx ../../cli/src/index.ts watch-patches packages/template/feature/feature-react-authentication packages/template/base-app/base-react-app packages/template/feature/feature-react-authentication/dist"
20
20
  },
21
21
  "devDependencies": {
22
- "@salesforce/webapp-experimental": "^1.26.0",
22
+ "@salesforce/webapp-experimental": "^1.27.0",
23
23
  "@tanstack/react-form": "^1.27.7",
24
24
  "@types/react": "^19.2.7",
25
25
  "@types/react-dom": "^19.2.3",
@@ -27,5 +27,5 @@
27
27
  "react-router": "^7.10.1",
28
28
  "vite": "^7.3.1"
29
29
  },
30
- "gitHead": "71a22c47238f6a1ce9696fa5c9247b573351d286"
30
+ "gitHead": "b162807f5062f6aee52605127b787de508035fc9"
31
31
  }