@schandlergarcia/sf-web-components 1.9.1 → 1.9.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.
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for Agentforce Conversation Client
|
|
3
|
+
*/
|
|
4
|
+
export interface ResolvedEmbedOptions {
|
|
5
|
+
salesforceOrigin?: string;
|
|
6
|
+
frontdoorUrl?: string;
|
|
7
|
+
}
|
|
8
|
+
export interface RenderingConfig {
|
|
9
|
+
mode?: 'inline' | 'modal' | 'sidebar';
|
|
10
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
11
|
+
width?: string | number;
|
|
12
|
+
height?: string | number;
|
|
13
|
+
}
|
|
14
|
+
export interface AgentforceClientConfig {
|
|
15
|
+
agentId?: string;
|
|
16
|
+
devName?: string;
|
|
17
|
+
renderingConfig?: RenderingConfig;
|
|
18
|
+
locale?: string;
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}
|
|
21
|
+
export interface AgentforceConversationClientProps {
|
|
22
|
+
agentforceClientConfig?: AgentforceClientConfig;
|
|
23
|
+
salesforceOrigin?: string;
|
|
24
|
+
frontdoorUrl?: string;
|
|
25
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schandlergarcia/sf-web-components",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.3",
|
|
4
4
|
"description": "Reusable Salesforce web components library with Tailwind CSS v4 and shadcn/ui",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -30,6 +30,7 @@
|
|
|
30
30
|
"src/templates",
|
|
31
31
|
"src/components",
|
|
32
32
|
"src/lib",
|
|
33
|
+
"src/types",
|
|
33
34
|
"README.md",
|
|
34
35
|
".a4drules"
|
|
35
36
|
],
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -82,6 +82,15 @@ if (fs.existsSync(sourceLibDir)) {
|
|
|
82
82
|
console.log(` ✓ Copied ${libFilesCopied} lib files\n`);
|
|
83
83
|
}
|
|
84
84
|
|
|
85
|
+
// Copy types directory
|
|
86
|
+
const sourceTypesDir = path.join(packageRoot, 'src/types');
|
|
87
|
+
const targetTypesDir = path.join(cwd, 'src/types');
|
|
88
|
+
|
|
89
|
+
if (fs.existsSync(sourceTypesDir)) {
|
|
90
|
+
const typesFilesCopied = copyDirectoryRecursive(sourceTypesDir, targetTypesDir);
|
|
91
|
+
console.log(` ✓ Copied ${typesFilesCopied} type files\n`);
|
|
92
|
+
}
|
|
93
|
+
|
|
85
94
|
// Copy workspace directory (ComponentRegistry, etc.)
|
|
86
95
|
const sourceWorkspaceDir = path.join(packageRoot, 'src/components/workspace');
|
|
87
96
|
const targetWorkspaceDir = path.join(cwd, 'src/components/workspace');
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import * as React from "react";
|
|
2
|
+
import { RocketLaunchIcon } from "@heroicons/react/24/outline";
|
|
3
|
+
import { EmptyState } from "@/components/library";
|
|
4
|
+
|
|
5
|
+
export default function BlankDashboard() {
|
|
6
|
+
return (
|
|
7
|
+
<div className="flex min-h-screen items-center justify-center bg-slate-50 dark:bg-slate-950 transition-colors">
|
|
8
|
+
<EmptyState
|
|
9
|
+
size="lg"
|
|
10
|
+
icon={<RocketLaunchIcon className="h-14 w-14" />}
|
|
11
|
+
heading="Bespoke App Template"
|
|
12
|
+
body="Component library loaded and ready to go."
|
|
13
|
+
/>
|
|
14
|
+
</div>
|
|
15
|
+
);
|
|
16
|
+
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Type definitions for Agentforce Conversation Client
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
export interface ResolvedEmbedOptions {
|
|
6
|
+
salesforceOrigin?: string;
|
|
7
|
+
frontdoorUrl?: string;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
export interface RenderingConfig {
|
|
11
|
+
mode?: 'inline' | 'modal' | 'sidebar';
|
|
12
|
+
theme?: 'light' | 'dark' | 'auto';
|
|
13
|
+
width?: string | number;
|
|
14
|
+
height?: string | number;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export interface AgentforceClientConfig {
|
|
18
|
+
agentId?: string;
|
|
19
|
+
devName?: string;
|
|
20
|
+
renderingConfig?: RenderingConfig;
|
|
21
|
+
locale?: string;
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export interface AgentforceConversationClientProps {
|
|
26
|
+
agentforceClientConfig?: AgentforceClientConfig;
|
|
27
|
+
salesforceOrigin?: string;
|
|
28
|
+
frontdoorUrl?: string;
|
|
29
|
+
}
|