mirror of
https://github.com/forcedotcom/afv-library.git
synced 2026-08-02 21:34:30 +08:00
chore: sync React B2E (1.118.1) & B2X (1.118.1) samples from npm
This commit is contained in:
parent
92cae58d5f
commit
bee2790cab
40
package-lock.json
generated
40
package-lock.json
generated
@ -9,8 +9,8 @@
|
||||
"version": "1.5.1",
|
||||
"license": "CC-BY-NC-4.0",
|
||||
"devDependencies": {
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2e": "^1.117.5",
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2x": "^1.117.5",
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2e": "^1.118.1",
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2x": "^1.118.1",
|
||||
"@salesforce/webapp-template-app-react-sample-b2e-experimental": "^1.117.1",
|
||||
"@salesforce/webapp-template-app-react-sample-b2x-experimental": "^1.117.1",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
@ -690,22 +690,22 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@salesforce/sdk-core": {
|
||||
"version": "1.117.5",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.117.5.tgz",
|
||||
"integrity": "sha512-LBnc5yCuBDIatmgwbZNMomlvcLKBf9reJVYTi2qLMzYpoRWXoJe4ra2huNj+5TQujhYkpg/6psCPLFiqo8JNig==",
|
||||
"version": "1.118.1",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/sdk-core/-/sdk-core-1.118.1.tgz",
|
||||
"integrity": "sha512-XrIOW3ZbsRMyGB2ag2pLftZ3/hYoMnbnjD6OyA+fl3326IR0/jbBYdBh/oLL63c7NhriBkNo54IdeSt5wrzxmg==",
|
||||
"dev": true,
|
||||
"license": "SEE LICENSE IN LICENSE.txt"
|
||||
},
|
||||
"node_modules/@salesforce/sdk-data": {
|
||||
"version": "1.117.5",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.117.5.tgz",
|
||||
"integrity": "sha512-DtDlqQh18XhIRr1BJEeCQuAUITxqTYLj1iR+QitS0+HEfOrF7V9SgL9350w9hRdPoMXeJkNbZUndi/AotY272A==",
|
||||
"version": "1.118.1",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/sdk-data/-/sdk-data-1.118.1.tgz",
|
||||
"integrity": "sha512-+Sv5BEwoM/oIbWyNM0SPIFBOfRENrIotTCtMy2GtjIQxI9t5gxmlm3Cmh8OmKAF0DL5D8gqKp4UR5uX1mctFnQ==",
|
||||
"dev": true,
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"dependencies": {
|
||||
"@conduit-client/service-fetch-network": "3.17.0",
|
||||
"@conduit-client/utils": "3.17.0",
|
||||
"@salesforce/sdk-core": "^1.117.5"
|
||||
"@salesforce/sdk-core": "^1.118.1"
|
||||
}
|
||||
},
|
||||
"node_modules/@salesforce/ts-types": {
|
||||
@ -719,14 +719,14 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@salesforce/ui-bundle": {
|
||||
"version": "1.117.5",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/ui-bundle/-/ui-bundle-1.117.5.tgz",
|
||||
"integrity": "sha512-F4dHQojdqd9xjpussNno+nacuSHNMjuq+IrBDfybbJ6kRCMPhS5jxZMPIPUnzbAl+hcfq0Hx20AA5UI0FDs1Og==",
|
||||
"version": "1.118.1",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/ui-bundle/-/ui-bundle-1.118.1.tgz",
|
||||
"integrity": "sha512-PGjhTE9PGTQHuMFdwGWKvCZDpbKvYWBcEhQtf2FR9g/OTRvvwyk1Fr8Krd+3MS5qX/tsLrzRMDWOmc/N/RGJMQ==",
|
||||
"dev": true,
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"dependencies": {
|
||||
"@salesforce/core": "^8.23.4",
|
||||
"@salesforce/sdk-data": "^1.117.5",
|
||||
"@salesforce/sdk-data": "^1.118.1",
|
||||
"axios": "^1.7.7",
|
||||
"micromatch": "^4.0.8",
|
||||
"path-to-regexp": "^8.3.0"
|
||||
@ -736,20 +736,20 @@
|
||||
}
|
||||
},
|
||||
"node_modules/@salesforce/ui-bundle-template-app-react-sample-b2e": {
|
||||
"version": "1.117.5",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/ui-bundle-template-app-react-sample-b2e/-/ui-bundle-template-app-react-sample-b2e-1.117.5.tgz",
|
||||
"integrity": "sha512-Svc214mJ0v94a21yuxCl6d1hbXUkVHXEZ1RrKUWh0gK/rh7/SKtJdLd3HRhaNFrktdcXuvMM0q+xoJZ1rPCfLg==",
|
||||
"version": "1.118.1",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/ui-bundle-template-app-react-sample-b2e/-/ui-bundle-template-app-react-sample-b2e-1.118.1.tgz",
|
||||
"integrity": "sha512-LGPEMs+xjk5K5wnGSh76EsgvPgEa3dj/vJtxz9+1CSfzAYAm7MsAfC8nJNKIkMg9qozZ4sei6QROJRMCo6vcEw==",
|
||||
"dev": true,
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"dependencies": {
|
||||
"@salesforce/ui-bundle": "^1.117.5",
|
||||
"@salesforce/ui-bundle": "^1.118.1",
|
||||
"sonner": "^1.7.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@salesforce/ui-bundle-template-app-react-sample-b2x": {
|
||||
"version": "1.117.5",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/ui-bundle-template-app-react-sample-b2x/-/ui-bundle-template-app-react-sample-b2x-1.117.5.tgz",
|
||||
"integrity": "sha512-WSPetME15DA59ZvbvVvgTWatX4lDeKdBmyi3LAUFzKQAEbx1get+BZ4yH0vFOLTFS50+JA5T0UIdtECo4+ZLGg==",
|
||||
"version": "1.118.1",
|
||||
"resolved": "https://registry.npmjs.org/@salesforce/ui-bundle-template-app-react-sample-b2x/-/ui-bundle-template-app-react-sample-b2x-1.118.1.tgz",
|
||||
"integrity": "sha512-IAUfOhpDyYFuK/8vQIQZa5lFkX14IFdWdKkQHYWlBRQ1l3r48fOyedkP28s6F1yE7hpwzrjwUlX1F5Jyt0nQtw==",
|
||||
"dev": true,
|
||||
"license": "SEE LICENSE IN LICENSE.txt"
|
||||
},
|
||||
|
||||
@ -11,8 +11,8 @@
|
||||
"registry": "https://registry.npmjs.org"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2e": "^1.117.5",
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2x": "^1.117.5",
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2e": "^1.118.1",
|
||||
"@salesforce/ui-bundle-template-app-react-sample-b2x": "^1.118.1",
|
||||
"@salesforce/webapp-template-app-react-sample-b2e-experimental": "^1.117.1",
|
||||
"@salesforce/webapp-template-app-react-sample-b2x-experimental": "^1.117.1",
|
||||
"@types/js-yaml": "^4.0.9",
|
||||
|
||||
@ -1 +1 @@
|
||||
1.117.5
|
||||
1.118.1
|
||||
|
||||
@ -3,6 +3,22 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.118.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.118.0...v1.118.1) (2026-03-31)
|
||||
|
||||
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [1.118.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.117.5...v1.118.0) (2026-03-30)
|
||||
|
||||
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.117.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.117.4...v1.117.5) (2026-03-30)
|
||||
|
||||
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
||||
|
||||
@ -15,8 +15,8 @@
|
||||
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@salesforce/sdk-data": "^1.117.5",
|
||||
"@salesforce/ui-bundle": "^1.117.5",
|
||||
"@salesforce/sdk-data": "^1.118.1",
|
||||
"@salesforce/ui-bundle": "^1.118.1",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
@ -43,7 +43,7 @@
|
||||
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
||||
"@graphql-tools/utils": "^11.0.0",
|
||||
"@playwright/test": "^1.49.0",
|
||||
"@salesforce/vite-plugin-ui-bundle": "^1.117.5",
|
||||
"@salesforce/vite-plugin-ui-bundle": "^1.118.1",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/react": "^16.1.0",
|
||||
"@testing-library/user-event": "^14.5.2",
|
||||
|
||||
@ -55,6 +55,7 @@ function getDefaultEmbedOptions(): ResolvedEmbedOptions {
|
||||
*/
|
||||
export function AgentforceConversationClient({
|
||||
agentId,
|
||||
agentLabel,
|
||||
inline: inlineProp,
|
||||
headerEnabled,
|
||||
showHeaderIcon,
|
||||
@ -77,10 +78,11 @@ export function AgentforceConversationClient({
|
||||
|
||||
return {
|
||||
...(agentId !== undefined && { agentId }),
|
||||
agentLabel: agentLabel ?? "Chat with us",
|
||||
...(styleTokens !== undefined && { styleTokens }),
|
||||
renderingConfig,
|
||||
};
|
||||
}, [agentId, inlineProp, headerEnabled, showHeaderIcon, width, height, styleTokens]);
|
||||
}, [agentId, agentLabel, inlineProp, headerEnabled, showHeaderIcon, width, height, styleTokens]);
|
||||
|
||||
const inline = normalizedAgentforceClientConfig?.renderingConfig?.mode === "inline";
|
||||
|
||||
@ -88,7 +90,7 @@ export function AgentforceConversationClient({
|
||||
if (!normalizedAgentforceClientConfig?.agentId) {
|
||||
throw new Error(
|
||||
"AgentforceConversationClient requires agentId. " +
|
||||
"Pass flat props only (agentId, inline, headerEnabled, showHeaderIcon, width, height, styleTokens).",
|
||||
"Pass flat props only (agentId, agentLabel, inline, headerEnabled, showHeaderIcon, width, height, styleTokens).",
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ export function FilterRow({
|
||||
aria-label={ariaLabel}
|
||||
{...props}
|
||||
>
|
||||
<div className="flex flex-wrap items-end gap-x-8 gap-y-4">{children}</div>
|
||||
<div className="flex flex-wrap items-center gap-x-8 gap-y-4">{children}</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@ -14,6 +14,8 @@ export type StyleTokens = Record<string, string>;
|
||||
export interface AgentforceConversationClientProps {
|
||||
/** Required in practice: id of the agent to load. */
|
||||
agentId: string;
|
||||
/** Display name for the agent shown in the chat header. */
|
||||
agentLabel?: string;
|
||||
/** If true, renders inline. If omitted/false, renders floating. */
|
||||
inline?: boolean;
|
||||
/** Show/hide chat header. Defaults to true for floating; can only be set for inline mode. */
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
||||
"version": "1.117.5",
|
||||
"version": "1.118.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
||||
"version": "1.117.5",
|
||||
"version": "1.118.1",
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"devDependencies": {
|
||||
"@lwc/eslint-plugin-lwc": "^3.3.0",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
||||
"version": "1.117.5",
|
||||
"version": "1.118.1",
|
||||
"description": "Base SFDX project template",
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"publishConfig": {
|
||||
|
||||
@ -1 +1 @@
|
||||
1.117.5
|
||||
1.118.1
|
||||
|
||||
@ -3,6 +3,22 @@
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [1.118.1](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.118.0...v1.118.1) (2026-03-31)
|
||||
|
||||
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [1.118.0](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.117.5...v1.118.0) (2026-03-30)
|
||||
|
||||
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [1.117.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.117.4...v1.117.5) (2026-03-30)
|
||||
|
||||
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
||||
|
||||
@ -15,8 +15,8 @@
|
||||
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
||||
},
|
||||
"dependencies": {
|
||||
"@salesforce/sdk-data": "^1.117.5",
|
||||
"@salesforce/ui-bundle": "^1.117.5",
|
||||
"@salesforce/sdk-data": "^1.118.1",
|
||||
"@salesforce/ui-bundle": "^1.118.1",
|
||||
"@tailwindcss/vite": "^4.1.17",
|
||||
"class-variance-authority": "^0.7.1",
|
||||
"clsx": "^2.1.1",
|
||||
@ -47,7 +47,7 @@
|
||||
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
||||
"@graphql-tools/utils": "^11.0.0",
|
||||
"@playwright/test": "^1.49.0",
|
||||
"@salesforce/vite-plugin-ui-bundle": "^1.117.5",
|
||||
"@salesforce/vite-plugin-ui-bundle": "^1.118.1",
|
||||
"@testing-library/jest-dom": "^6.6.3",
|
||||
"@testing-library/react": "^16.1.0",
|
||||
"@testing-library/user-event": "^14.5.2",
|
||||
|
||||
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
||||
"version": "1.117.5",
|
||||
"version": "1.118.1",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
||||
"version": "1.117.5",
|
||||
"version": "1.118.1",
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"devDependencies": {
|
||||
"@lwc/eslint-plugin-lwc": "^3.3.0",
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
||||
"version": "1.117.5",
|
||||
"version": "1.118.1",
|
||||
"description": "Base SFDX project template",
|
||||
"license": "SEE LICENSE IN LICENSE.txt",
|
||||
"publishConfig": {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user