@salesforce/afv-skills 1.6.4 → 1.6.6

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 (19) hide show
  1. package/package.json +3 -3
  2. package/skills/generating-experience-lwr-site/SKILL.md +11 -1
  3. package/skills/generating-experience-lwr-site/docs/update-site-urls.md +100 -0
  4. package/skills/{generating-experience-react-site → generating-ui-bundle-site}/SKILL.md +14 -2
  5. package/skills/{generating-experience-react-site → generating-ui-bundle-site}/docs/configure-metadata-digital-experience.md +4 -2
  6. package/skills/generating-ui-bundle-site/docs/update-site-urls.md +100 -0
  7. package/skills/implementing-ui-bundle-agentforce-conversation-client/SKILL.md +216 -37
  8. package/skills/implementing-ui-bundle-agentforce-conversation-client/references/style-tokens.md +168 -21
  9. package/skills/searching-media/SKILL.md +1 -1
  10. package/skills/using-ui-bundle-salesforce-data/SKILL.md +337 -91
  11. package/skills/using-ui-bundle-salesforce-data/references/mutation-query-generation.md +0 -140
  12. package/skills/using-ui-bundle-salesforce-data/references/query-testing.md +0 -78
  13. package/skills/using-ui-bundle-salesforce-data/references/read-query-generation.md +0 -307
  14. package/skills/using-ui-bundle-salesforce-data/references/schema-introspection.md +0 -53
  15. package/skills/using-ui-bundle-salesforce-data/references/ui-bundle-integration.md +0 -221
  16. /package/skills/{generating-experience-react-site → generating-ui-bundle-site}/docs/configure-metadata-custom-site.md +0 -0
  17. /package/skills/{generating-experience-react-site → generating-ui-bundle-site}/docs/configure-metadata-digital-experience-bundle.md +0 -0
  18. /package/skills/{generating-experience-react-site → generating-ui-bundle-site}/docs/configure-metadata-digital-experience-config.md +0 -0
  19. /package/skills/{generating-experience-react-site → generating-ui-bundle-site}/docs/configure-metadata-network.md +0 -0
@@ -8,21 +8,179 @@ The `styleTokens` prop is the **ONLY** way to customize the appearance of the Ag
8
8
 
9
9
  ## Source of Truth
10
10
 
11
- For the complete and always up-to-date list of all 60+ style tokens, see:
12
-
13
- **[@salesforce/agentforce-conversation-client on npm](https://www.npmjs.com/package/@salesforce/agentforce-conversation-client)**
14
-
15
- The npm package README contains the definitive documentation with all available style tokens.
11
+ For the complete and always up-to-date list of all style tokens, see the tables below:
12
+
13
+ - ALL visual customization (colors, fonts, spacing, borders, radii, shadows) MUST go through the `styleTokens` prop. There are no exceptions.
14
+ - ONLY use token names listed in the tables below. Do NOT invent custom token names.
15
+ - NEVER apply styling via CSS files, `style` attributes, `className`, or wrapper elements. These approaches will not work and will be ignored by the component.
16
+ - If the user requests a visual change that does not map to a token below, inform them that the change is not supported by the current token set.
17
+
18
+ ### Container
19
+
20
+ | Token name | UI area themed |
21
+ | --------------------- | --------------------------- |
22
+ | `fabBackground` | FAB button background color |
23
+ | `containerBackground` | Chat container background |
24
+ | `headerBackground` | Header background |
25
+ | `containerWidth` | Chat container width |
26
+ | `chatBorderRadius` | Chat border radius |
27
+ | `layoutMaxWidth` | Layout max width |
28
+
29
+ ### Agentforce Header
30
+
31
+ | Token name | UI area themed |
32
+ | ------------------------------- | ---------------------------------- |
33
+ | `headerBlockBackground` | Header block background |
34
+ | `headerBlockBorderBottomWidth` | Header border bottom width |
35
+ | `headerBlockBorderBottomStyle` | Header border bottom style |
36
+ | `headerBlockBorderBottomColor` | Header border bottom color |
37
+ | `headerBlockBorderRadius` | Header corner radius |
38
+ | `headerBlockPaddingBlock` | Header block padding (vertical) |
39
+ | `headerBlockPaddingInline` | Header inline padding (horizontal) |
40
+ | `headerBlockMinHeight` | Header minimum height |
41
+ | `headerBlockBrandingGap` | Header branding area gap |
42
+ | `headerBlockFontFamily` | Header font family |
43
+ | `headerBlockFontWeight` | Header title font weight |
44
+ | `headerBlockFontSize` | Header title font size |
45
+ | `headerBlockLineHeight` | Header title line height |
46
+ | `headerBlockTextColor` | Header text color |
47
+ | `headerBlockIconDisplay` | Header icon display |
48
+ | `headerBlockIconMargin` | Header icon margin |
49
+ | `headerBlockIconColor` | Header icon color |
50
+ | `headerBlockIconWidth` | Header icon width |
51
+ | `headerBlockIconHeight` | Header icon height |
52
+ | `headerBlockLogoMaxHeight` | Header logo max height |
53
+ | `headerBlockLogoMaxWidth` | Header logo max width |
54
+ | `headerBlockLogoMinWidth` | Header logo min width |
55
+ | `headerBlockButtonHeight` | Header action button height |
56
+ | `headerBlockButtonWidth` | Header action button width |
57
+ | `headerBlockButtonPadding` | Header action button padding |
58
+ | `headerBlockButtonBorderRadius` | Header action button border radius |
59
+ | `headerBlockHoverBackground` | Header hover background |
60
+ | `headerBlockActiveBackground` | Header active background |
61
+ | `headerBlockFocusBorder` | Header focus border |
62
+
63
+ ### Agentforce Welcome Block
64
+
65
+ | Token name | UI area themed |
66
+ | ----------------------------------- | -------------------------------- |
67
+ | `welcomeBlockTextContainerWidth` | Welcome text container width |
68
+ | `welcomeBlockFontFamily` | Welcome block font family |
69
+ | `welcomeBlockFontSize` | Welcome block font size |
70
+ | `welcomeBlockFontWeight` | Welcome block font weight |
71
+ | `welcomeBlockLineHeight` | Welcome block line height |
72
+ | `welcomeBlockLetterSpacing` | Welcome block letter spacing |
73
+ | `welcomeBlockTextColor` | Welcome block text color |
74
+ | `welcomeBlockPaddingVertical` | Welcome block vertical padding |
75
+ | `welcomeBlockPaddingHorizontal` | Welcome block horizontal padding |
76
+ | `welcomeBlockTextAnimationDuration` | Welcome text animation duration |
77
+
78
+ ### Agentforce Messages
79
+
80
+ | Token name | UI area themed |
81
+ | -------------------------------- | ------------------------------------------------------- |
82
+ | `messageBlockBorderRadius` | Message block border radius |
83
+ | `avatarDisplay` | Avatar display property (e.g. `block`, `none`) |
84
+ | `hideMessageActions` | Message actions display (e.g. `block`, `none` to hide) |
85
+ | `hideCopyAction` | Copy action button display (e.g. `inline-flex`, `none`) |
86
+ | `messageBlockPaddingContainer` | Message block container padding |
87
+ | `messageBlockFontSize` | Message block font size |
88
+ | `messageBlockBackgroundColor` | Message block background (base) |
89
+ | `messageBlockInboundBorder` | Inbound message border |
90
+ | `messageBlockOutboundBorder` | Outbound message border |
91
+ | `messageBlockBodyWidth` | Message block body width |
92
+ | `messageBlockPadding` | Message block padding |
93
+ | `messageBlockContainerMarginTop` | Message block container top margin |
94
+ | `messageBlockLineHeight` | Message block line height |
95
+
96
+ ### Avatar visibility (behavioral config)
97
+
98
+ Use `renderingConfig.showAvatar` to control whether avatars are rendered in message rows.
99
+
100
+ - `showAvatar: true` (default) renders avatars.
101
+ - `showAvatar: false` hides avatars by removing them from the DOM.
102
+
103
+ ### Inbound message (agent → customer)
104
+
105
+ | Token name | UI area themed |
106
+ | ----------------------------------------- | --------------------------------- |
107
+ | `inboundMessgeTextColor` | Inbound message text color (base) |
108
+ | `messageBlockInboundBorderRadius` | Inbound message border radius |
109
+ | `messageBlockInboundBackgroundColor` | Inbound message background |
110
+ | `messageBlockInboundTextColor` | Inbound message text color |
111
+ | `messageBlockInboundWidth` | Inbound message width |
112
+ | `messageBlockInboundTextAlign` | Inbound message text alignment |
113
+ | `messageBlockInboundHoverBackgroundColor` | Inbound message hover background |
114
+
115
+ ### Outbound message (customer → agent)
116
+
117
+ | Token name | UI area themed |
118
+ | ------------------------------------- | ------------------------------- |
119
+ | `messageBlockOutboundBorderRadius` | Outbound message border radius |
120
+ | `messageBlockOutboundBackgroundColor` | Outbound message background |
121
+ | `messageBlockOutboundTextColor` | Outbound message text color |
122
+ | `messageBlockOutboundWidth` | Outbound message width |
123
+ | `messageBlockOutboundMarginLeft` | Outbound message left margin |
124
+ | `messageBlockOutboundTextAlign` | Outbound message text alignment |
125
+
126
+ ### Agentforce Input
127
+
128
+ | Token name | UI area themed |
129
+ | ------------------------------------------ | ---------------------------------------------- |
130
+ | `messageInputPadding` | Message input container padding |
131
+ | `messageInputFooterBorderColor` | Message input footer border color |
132
+ | `messageInputBorderRadius` | Message input border radius |
133
+ | `messageInputBorderTransitionDuration` | Message input border transition duration |
134
+ | `messageInputBorderTransitionEasing` | Message input border transition easing |
135
+ | `messageInputTextColor` | Message input text color |
136
+ | `messageInputTextBackgroundColor` | Message input text background color |
137
+ | `messageInputFooterBorderFocusColor` | Message input footer focus border color |
138
+ | `messageInputFocusShadow` | Message input focus shadow |
139
+ | `messageInputMaxHeight` | Message input max height |
140
+ | `messageInputLineHeight` | Message input line height |
141
+ | `messageInputTextPadding` | Message input text padding |
142
+ | `messageInputFontWeight` | Message input font weight |
143
+ | `messageInputFontSize` | Message input font size |
144
+ | `messageInputOverflowY` | Message input overflow Y |
145
+ | `messageInputScrollbarWidth` | Message input scrollbar width |
146
+ | `messageInputScrollbarColor` | Message input scrollbar color |
147
+ | `messageInputActionsWidth` | Message input actions width |
148
+ | `messageInputActionsPaddingRight` | Message input actions right padding |
149
+ | `messageInputFooterPlaceholderText` | Message input placeholder text color |
150
+ | `messageInputPlaceholderFontWeight` | Placeholder font weight |
151
+ | `messageInputErrorTextColor` | Message input error text color |
152
+ | `messageInputActionsGap` | Message input actions gap |
153
+ | `messageInputActionsPadding` | Message input actions padding |
154
+ | `messageInputActionButtonSize` | Message input action button size |
155
+ | `messageInputActionButtonRadius` | Message input action button radius |
156
+ | `messageInputFooterSendButton` | Message input send button color |
157
+ | `messageInputSendButtonDisabledColor` | Message input send button disabled color |
158
+ | `messageInputActionButtonFocusBorder` | Message input action button focus border |
159
+ | `messageInputActionButtonActiveIconColor` | Message input action button active icon color |
160
+ | `messageInputActionButtonActiveBackground` | Message input action button active background |
161
+ | `messageInputSendButtonIconColor` | Message input send button icon color |
162
+ | `messageInputFooterSendButtonHoverColor` | Message input send button hover color |
163
+ | `messageInputActionButtonHoverShadow` | Message input action button hover shadow |
164
+ | `messageInputFilePreviewPadding` | Message input file preview padding |
165
+ | `messageInputTextareaMaxHeight` | Message input textarea max height |
166
+ | `messageInputTextareaWithImageMaxHeight` | Message input textarea max height (with image) |
167
+
168
+ ### Agentforce Error Block
169
+
170
+ | Token name | UI area themed |
171
+ | ---------------------- | ---------------------------- |
172
+ | `errorBlockBackground` | Error block background color |
16
173
 
17
174
  ## Token Categories
18
175
 
19
176
  Style tokens are organized by UI area:
20
177
 
21
- - **Header** (7 tokens): background, text color, hover, active, focus, border, font family
22
- - **Messages** (10 tokens): colors, padding, margins, border radius, fonts, body width
23
- - **Inbound messages** (5 tokens): background, text color, width, alignment, hover
24
- - **Outbound messages** (5 tokens): background, text color, width, alignment, margin
25
- - **Input** (33 tokens): colors, borders, fonts, padding, buttons, scrollbar, textarea, actions
178
+ - **Header** : background, text color, hover, active, focus, border, font family
179
+ - **Messages** : colors, padding, margins, border radius, fonts, body width
180
+ - **Inbound messages** : background, text color, width, alignment, hover
181
+ - **Outbound messages** : background, text color, width, alignment, margin
182
+ - **Input** : colors, borders, fonts, padding, buttons, scrollbar, textarea, actions
183
+ - **Error Component** : background
26
184
 
27
185
  ## Common Use Cases
28
186
 
@@ -82,17 +240,6 @@ Style tokens are organized by UI area:
82
240
  />
83
241
  ```
84
242
 
85
- ## How to Find Token Names
86
-
87
- 1. Check the [@salesforce/agentforce-conversation-client npm package](https://www.npmjs.com/package/@salesforce/agentforce-conversation-client) for the complete list of all tokens
88
-
89
- 2. Token names follow a pattern:
90
- - `headerBlock*` - Header area
91
- - `messageBlock*` - Message bubbles
92
- - `messageBlockInbound*` - Messages from customer to agent
93
- - `messageBlockOutbound*` - Messages from agent to customer
94
- - `messageInput*` - Input field and send button
95
-
96
243
  ## Important Notes
97
244
 
98
245
  - You do NOT need to provide all tokens - only override the ones you want to change
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: searching-media
3
- description: "Searches for and retrieves existing visual media (images, logos, icons, photos, graphics, banners, thumbnails, hero images, backgrounds) from sources such as Salesforce CMS, Data 360 or any other source. Use this skill ANY TIME a user request involves finding, searching, getting, fetching, retrieving, grabbing, looking up, or locating media. Takes PRIORITY and activates FIRST when ANY media search/retrieval is mentioned, regardless of what else happens with the media afterward. Triggers for requests like \"search for logo\", \"find hero image\", \"get company logo\", \"locate icons\", \"fetch background image\", \"retrieve product photos\". Handles the search and source selection workflow. Does not apply when the request is about brand search, to generate NEW images with AI, design custom graphics from scratch, or edit existing images."
3
+ description: "Searches for and retrieves existing visual media (images, logos, icons, photos, graphics, banners, thumbnails, hero images, backgrounds) from sources such as Salesforce CMS, Data 360 or any other source. Use this skill ANY TIME a user request involves finding, searching, getting, fetching, retrieving, grab, looking up, locating media. NEVER call search_media_cms_channels, search_electronic_media tools directly — always go through this skill first. This skill must be activated before any tool is used for media search or retrieval, without exception. Takes PRIORITY and activates FIRST when ANY media search/retrieval is mentioned, regardless of what else happens with the media afterward. Triggers for requests like \"search for logo\", \"find hero image\", \"get company logo\", \"locate icons\", \"fetch background image\", \"retrieve product photos\". Handles the search and source selection workflow. Does not apply when the request is about brand search, to generate NEW images with AI, or edit existing images."
4
4
  compatibility: "Requires search_media_cms_channels and/or search_electronic_media MCP tools"
5
5
  metadata:
6
6
  version: "1.0"