@schandlergarcia/sf-web-components 1.2.5 → 1.2.7
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.
- package/package.json +2 -1
- package/scripts/postinstall.mjs +69 -93
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Account.cls +196 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/AccountHistory.cls +25 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Asset.cls +138 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Attachment.cls +35 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Case.cls +111 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Contact.cls +167 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Contract.cls +96 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Domain.cls +29 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Lead.cls +128 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Note.cls +32 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Opportunity.cls +113 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Order.cls +127 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Pricebook2.cls +47 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/PricebookEntry.cls +47 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Product2.cls +91 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/RecordType.cls +35 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Report.cls +47 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/Task.cls +79 -0
- package/src/components/library/.sfdx/tools/sobjects/standardObjects/User.cls +2318 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Account.json +2952 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/AccountHistory.json +875 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Asset.json +1699 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Attachment.json +362 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Case.json +1371 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Contact.json +2309 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Contract.json +1304 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Domain.json +293 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Lead.json +1977 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Note.json +303 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Opportunity.json +1470 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Order.json +1646 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Pricebook2.json +482 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/PricebookEntry.json +433 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Product2.json +1039 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/RecordType.json +2576 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Report.json +486 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/Task.json +4296 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/standardObjects/User.json +30415 -0
- package/src/components/library/.sfdx/tools/soqlMetadata/typeNames.json +78 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Account.d.ts +264 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/AccountHistory.d.ts +44 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Asset.d.ts +240 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Attachment.d.ts +76 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Case.d.ts +172 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Contact.d.ts +264 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Contract.d.ts +188 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Domain.d.ts +52 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Lead.d.ts +252 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Note.d.ts +64 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Opportunity.d.ts +200 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Order.d.ts +260 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Pricebook2.d.ts +64 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/PricebookEntry.d.ts +76 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Product2.d.ts +96 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/RecordType.d.ts +64 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Report.d.ts +80 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/Task.d.ts +184 -0
- package/src/components/library/.sfdx/typings/lwc/sobjects/User.d.ts +752 -0
- package/src/components/library/cards/ActionList.jsx +38 -0
- package/src/components/library/cards/ActivityCard.jsx +56 -0
- package/src/components/library/cards/BaseCard.jsx +109 -0
- package/src/components/library/cards/CalloutCard.jsx +37 -0
- package/src/components/library/cards/ChartCard.jsx +105 -0
- package/src/components/library/cards/FeedPanel.jsx +39 -0
- package/src/components/library/cards/ListCard.jsx +193 -0
- package/src/components/library/cards/MetricCard.jsx +109 -0
- package/src/components/library/cards/MetricsStrip.jsx +78 -0
- package/src/components/library/cards/SectionCard.jsx +83 -0
- package/src/components/library/cards/SemanticMetricCard.jsx +52 -0
- package/src/components/library/cards/SemanticMetricCardWithLoading.jsx +23 -0
- package/src/components/library/cards/SemanticTableCard.jsx +48 -0
- package/src/components/library/cards/SemanticTableCardWithLoading.jsx +22 -0
- package/src/components/library/cards/StatusCard.jsx +220 -0
- package/src/components/library/cards/TableCard.jsx +337 -0
- package/src/components/library/cards/WidgetCard.jsx +90 -0
- package/src/components/library/charts/D3Chart.jsx +109 -0
- package/src/components/library/charts/D3ChartTemplates.jsx +126 -0
- package/src/components/library/charts/GeoMap.jsx +293 -0
- package/src/components/library/chat/ChatBar.jsx +256 -0
- package/src/components/library/chat/ChatInput.jsx +89 -0
- package/src/components/library/chat/ChatMessage.jsx +178 -0
- package/src/components/library/chat/ChatMessageList.jsx +73 -0
- package/src/components/library/chat/ChatPanel.jsx +97 -0
- package/src/components/library/chat/ChatSuggestions.jsx +28 -0
- package/src/components/library/chat/ChatToolCall.jsx +100 -0
- package/src/components/library/chat/ChatTypingIndicator.jsx +23 -0
- package/src/components/library/chat/ChatWelcome.jsx +43 -0
- package/src/components/library/chat/index.jsx +10 -0
- package/src/components/library/chat/useChatState.jsx +130 -0
- package/src/components/library/data/DataModeProvider.jsx +67 -0
- package/src/components/library/data/DataModeToggle.jsx +36 -0
- package/src/components/library/data/chartDataProvider.jsx +61 -0
- package/src/components/library/data/filterUtils.jsx +141 -0
- package/src/components/library/data/useDataSource.jsx +33 -0
- package/src/components/library/data/usePageFilters.jsx +99 -0
- package/src/components/library/filters/FilterBar.jsx +95 -0
- package/src/components/library/filters/SearchFilter.jsx +36 -0
- package/src/components/library/filters/SelectFilter.jsx +55 -0
- package/src/components/library/filters/ToggleFilter.jsx +52 -0
- package/src/components/library/filters/index.jsx +4 -0
- package/src/components/library/forms/FormField.jsx +291 -0
- package/src/components/library/forms/FormModal.jsx +201 -0
- package/src/components/library/forms/FormRenderer.jsx +46 -0
- package/src/components/library/forms/FormSection.jsx +69 -0
- package/src/components/library/forms/index.jsx +5 -0
- package/src/components/library/forms/useFormState.jsx +165 -0
- package/src/components/library/heroui/Accordion.jsx +26 -0
- package/src/components/library/heroui/Alert.jsx +8 -0
- package/src/components/library/heroui/Badge.jsx +8 -0
- package/src/components/library/heroui/Breadcrumbs.jsx +22 -0
- package/src/components/library/heroui/Button.jsx +58 -0
- package/src/components/library/heroui/Card.jsx +8 -0
- package/src/components/library/heroui/Collapsible.jsx +42 -0
- package/src/components/library/heroui/DatePicker.jsx +34 -0
- package/src/components/library/heroui/Dialog.jsx +37 -0
- package/src/components/library/heroui/Drawer.jsx +32 -0
- package/src/components/library/heroui/Dropdown.jsx +28 -0
- package/src/components/library/heroui/Field.jsx +51 -0
- package/src/components/library/heroui/Input.jsx +6 -0
- package/src/components/library/heroui/Kbd.jsx +8 -0
- package/src/components/library/heroui/Meter.jsx +8 -0
- package/src/components/library/heroui/Modal.jsx +32 -0
- package/src/components/library/heroui/Pagination.jsx +8 -0
- package/src/components/library/heroui/Popover.jsx +64 -0
- package/src/components/library/heroui/ProgressBar.jsx +8 -0
- package/src/components/library/heroui/ProgressCircle.jsx +8 -0
- package/src/components/library/heroui/ScrollShadow.jsx +8 -0
- package/src/components/library/heroui/Select.jsx +37 -0
- package/src/components/library/heroui/Separator.jsx +8 -0
- package/src/components/library/heroui/Skeleton.jsx +8 -0
- package/src/components/library/heroui/Tabs.jsx +26 -0
- package/src/components/library/heroui/Toast.jsx +25 -0
- package/src/components/library/heroui/Toggle.jsx +14 -0
- package/src/components/library/heroui/Tooltip.jsx +21 -0
- package/src/components/library/index.jsx +149 -0
- package/src/components/library/layout/PageContainer.jsx +11 -0
- package/src/components/library/skeletons/CardSkeleton.jsx +30 -0
- package/src/components/library/theme/AppThemeProvider.jsx +67 -0
- package/src/components/library/theme/tokens.jsx +72 -0
- package/src/components/library/ui/Alert.jsx +80 -0
- package/src/components/library/ui/Avatar.jsx +44 -0
- package/src/components/library/ui/BreadcrumbExtras.tsx +119 -0
- package/src/components/library/ui/Card.jsx +117 -0
- package/src/components/library/ui/Checkbox.jsx +17 -0
- package/src/components/library/ui/Chip.jsx +38 -0
- package/src/components/library/ui/Collapsible.tsx +31 -0
- package/src/components/library/ui/Container.jsx +56 -0
- package/src/components/library/ui/DatePicker.tsx +34 -0
- package/src/components/library/ui/Dialog.tsx +141 -0
- package/src/components/library/ui/EmptyState.jsx +46 -0
- package/src/components/library/ui/Field.tsx +82 -0
- package/src/components/library/ui/FieldGroup.jsx +17 -0
- package/src/components/library/ui/Label.jsx +22 -0
- package/src/components/library/ui/PaginationExtras.tsx +143 -0
- package/src/components/library/ui/Popover.tsx +39 -0
- package/src/components/library/ui/Select.tsx +113 -0
- package/src/components/library/ui/Spinner.jsx +64 -0
- package/src/components/library/ui/Text.jsx +46 -0
- package/src/components/library/ui/UIButton.jsx +61 -0
- package/src/components/library/ui/UIInput.jsx +21 -0
- package/src/components/workspace/ComponentRegistry.jsx +297 -0
- package/src/templates/pages/Home.tsx.template +5 -5
- package/src/templates/pages/NotFound.tsx.template +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schandlergarcia/sf-web-components",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.7",
|
|
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",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"dist",
|
|
29
29
|
"scripts",
|
|
30
30
|
"src/templates",
|
|
31
|
+
"src/components",
|
|
31
32
|
"README.md",
|
|
32
33
|
".a4drules"
|
|
33
34
|
],
|
package/scripts/postinstall.mjs
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
|
-
* Post-install
|
|
4
|
+
* Post-install script
|
|
5
5
|
*
|
|
6
6
|
* Automatically runs after installing @schandlergarcia/sf-web-components
|
|
7
|
-
*
|
|
7
|
+
* Copies UI components into the consuming project so Tailwind can properly scan them
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
import fs from 'fs';
|
|
@@ -24,79 +24,92 @@ if (isPackageItself) {
|
|
|
24
24
|
process.exit(0);
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
-
console.log('🔄 Running @schandlergarcia/sf-web-components
|
|
27
|
+
console.log('🔄 Running @schandlergarcia/sf-web-components setup...\n');
|
|
28
28
|
|
|
29
29
|
const PACKAGE_NAME = '@schandlergarcia/sf-web-components';
|
|
30
30
|
let filesUpdated = 0;
|
|
31
|
-
let
|
|
31
|
+
let componentsCopied = 0;
|
|
32
32
|
|
|
33
|
-
//
|
|
33
|
+
// Copy UI components
|
|
34
|
+
const packageRoot = path.join(cwd, 'node_modules', PACKAGE_NAME);
|
|
35
|
+
const sourceComponentsDir = path.join(packageRoot, 'src/components/library/ui');
|
|
36
|
+
const targetComponentsDir = path.join(cwd, 'src/components/ui');
|
|
37
|
+
|
|
38
|
+
console.log('📦 Copying UI components...\n');
|
|
39
|
+
|
|
40
|
+
if (fs.existsSync(sourceComponentsDir)) {
|
|
41
|
+
// Create target directory if it doesn't exist
|
|
42
|
+
if (!fs.existsSync(targetComponentsDir)) {
|
|
43
|
+
fs.mkdirSync(targetComponentsDir, { recursive: true });
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
const componentFiles = fs.readdirSync(sourceComponentsDir).filter(f => f.match(/\.(jsx|tsx)$/));
|
|
47
|
+
|
|
48
|
+
for (const componentFile of componentFiles) {
|
|
49
|
+
const sourcePath = path.join(sourceComponentsDir, componentFile);
|
|
50
|
+
const targetPath = path.join(targetComponentsDir, componentFile);
|
|
51
|
+
|
|
52
|
+
try {
|
|
53
|
+
fs.copyFileSync(sourcePath, targetPath);
|
|
54
|
+
console.log(` ✓ Copied ${componentFile}`);
|
|
55
|
+
componentsCopied++;
|
|
56
|
+
} catch (error) {
|
|
57
|
+
console.error(` ✗ Failed to copy ${componentFile}: ${error.message}`);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
// Update imports in existing files to use local components
|
|
34
63
|
const files = glob.sync('src/**/*.{ts,tsx,js,jsx}', {
|
|
35
64
|
cwd,
|
|
36
65
|
absolute: true,
|
|
37
|
-
ignore: ['**/node_modules/**', '**/dist/**']
|
|
66
|
+
ignore: ['**/node_modules/**', '**/dist/**', '**/components/ui/**']
|
|
38
67
|
});
|
|
39
68
|
|
|
40
|
-
console.log(
|
|
69
|
+
console.log(`\n🔄 Updating imports in ${files.length} files...\n`);
|
|
41
70
|
|
|
42
|
-
// Shadcn component replacements - map shadcn names to library names
|
|
43
|
-
const componentReplacements = {
|
|
44
|
-
'Button': 'UIButton',
|
|
45
|
-
'Input': 'UIInput',
|
|
46
|
-
// Keep other components as-is if they're not in the library
|
|
47
|
-
};
|
|
48
|
-
|
|
49
|
-
// Update imports in each file
|
|
50
71
|
for (const file of files) {
|
|
51
72
|
try {
|
|
52
73
|
let content = fs.readFileSync(file, 'utf-8');
|
|
53
74
|
let modified = false;
|
|
54
|
-
const updates = [];
|
|
55
|
-
|
|
56
|
-
// Replace relative imports to components/ui
|
|
57
|
-
const relativePattern = /from ['"](\.\.\/)+components\/ui\/[^'"]+['"]/g;
|
|
58
|
-
if (relativePattern.test(content)) {
|
|
59
|
-
content = content.replace(relativePattern, `from '${PACKAGE_NAME}'`);
|
|
60
|
-
modified = true;
|
|
61
|
-
updates.push('relative ui imports');
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// Replace path alias imports @/components/ui
|
|
65
|
-
const aliasPattern = /from ['"]@\/components\/ui\/[^'"]+['"]/g;
|
|
66
|
-
if (aliasPattern.test(content)) {
|
|
67
|
-
content = content.replace(aliasPattern, `from '${PACKAGE_NAME}'`);
|
|
68
|
-
modified = true;
|
|
69
|
-
updates.push('alias ui imports');
|
|
70
|
-
}
|
|
71
75
|
|
|
72
|
-
// Replace
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
76
|
+
// Replace package imports with local imports
|
|
77
|
+
// Match: import { UIButton, UIInput } from '@schandlergarcia/sf-web-components';
|
|
78
|
+
// Replace with individual default imports: import UIButton from '@/components/ui/UIButton';
|
|
79
|
+
const packageImportRegex = new RegExp(
|
|
80
|
+
`import\\s*\\{([^}]+)\\}\\s*from\\s*['"]${PACKAGE_NAME}['"];?`,
|
|
81
|
+
'g'
|
|
82
|
+
);
|
|
83
|
+
|
|
84
|
+
const matches = [...content.matchAll(packageImportRegex)];
|
|
85
|
+
|
|
86
|
+
if (matches.length > 0) {
|
|
87
|
+
for (const match of matches) {
|
|
88
|
+
const importedNames = match[1].split(',').map(s => s.trim()).filter(Boolean);
|
|
89
|
+
const uiComponents = importedNames.filter(name => name.startsWith('UI'));
|
|
90
|
+
|
|
91
|
+
if (uiComponents.length > 0) {
|
|
92
|
+
// Build individual imports for UI components
|
|
93
|
+
const individualImports = uiComponents.map(name =>
|
|
94
|
+
`import ${name} from '@/components/ui/${name}';`
|
|
95
|
+
).join('\n');
|
|
96
|
+
|
|
97
|
+
// Keep non-UI imports from package
|
|
98
|
+
const otherComponents = importedNames.filter(name => !name.startsWith('UI'));
|
|
99
|
+
const packageImport = otherComponents.length > 0
|
|
100
|
+
? `import { ${otherComponents.join(', ')} } from '${PACKAGE_NAME}';`
|
|
101
|
+
: '';
|
|
102
|
+
|
|
103
|
+
const replacement = [individualImports, packageImport].filter(Boolean).join('\n');
|
|
104
|
+
content = content.replace(match[0], replacement);
|
|
105
|
+
modified = true;
|
|
106
|
+
}
|
|
93
107
|
}
|
|
94
108
|
}
|
|
95
109
|
|
|
96
110
|
if (modified) {
|
|
97
111
|
fs.writeFileSync(file, content, 'utf-8');
|
|
98
112
|
filesUpdated++;
|
|
99
|
-
importsUpdated += updates.length;
|
|
100
113
|
console.log(` ✓ ${path.relative(cwd, file)}`);
|
|
101
114
|
}
|
|
102
115
|
} catch (error) {
|
|
@@ -104,42 +117,6 @@ for (const file of files) {
|
|
|
104
117
|
}
|
|
105
118
|
}
|
|
106
119
|
|
|
107
|
-
// Remove local components (shadcn and utils)
|
|
108
|
-
const pathsToRemove = [
|
|
109
|
-
'src/components/ui', // Local shadcn components
|
|
110
|
-
'src/lib/utils.ts', // shadcn utils
|
|
111
|
-
'src/lib/utils.js',
|
|
112
|
-
'node_modules/shadcn', // shadcn CLI/package
|
|
113
|
-
];
|
|
114
|
-
|
|
115
|
-
let removedCount = 0;
|
|
116
|
-
|
|
117
|
-
console.log('\n🗑️ Removing local shadcn components...\n');
|
|
118
|
-
|
|
119
|
-
for (const pathToRemove of pathsToRemove) {
|
|
120
|
-
const fullPath = path.join(cwd, pathToRemove);
|
|
121
|
-
|
|
122
|
-
if (!fs.existsSync(fullPath)) {
|
|
123
|
-
continue;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
try {
|
|
127
|
-
const stats = fs.statSync(fullPath);
|
|
128
|
-
|
|
129
|
-
if (stats.isDirectory()) {
|
|
130
|
-
fs.rmSync(fullPath, { recursive: true, force: true });
|
|
131
|
-
console.log(` ✓ Removed ${pathToRemove}/`);
|
|
132
|
-
} else {
|
|
133
|
-
fs.unlinkSync(fullPath);
|
|
134
|
-
console.log(` ✓ Removed ${pathToRemove}`);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
removedCount++;
|
|
138
|
-
} catch (error) {
|
|
139
|
-
console.error(` ✗ Failed to remove ${pathToRemove}: ${error.message}`);
|
|
140
|
-
}
|
|
141
|
-
}
|
|
142
|
-
|
|
143
120
|
// Copy page templates
|
|
144
121
|
const templatesDir = path.join(path.dirname(__dirname), 'src/templates/pages');
|
|
145
122
|
const targetPagesDir = path.join(cwd, 'src/pages');
|
|
@@ -208,8 +185,7 @@ if (fs.existsSync(routesPath) && installedTemplates.length > 0) {
|
|
|
208
185
|
}
|
|
209
186
|
|
|
210
187
|
console.log('\n📊 Summary:');
|
|
188
|
+
console.log(` - Copied ${componentsCopied} UI components`);
|
|
211
189
|
console.log(` - Updated ${filesUpdated} files`);
|
|
212
|
-
console.log(` - Migrated ${importsUpdated} imports`);
|
|
213
|
-
console.log(` - Removed ${removedCount} local items`);
|
|
214
190
|
console.log(` - Installed ${templatesInstalled} page templates`);
|
|
215
|
-
console.log('\n✅
|
|
191
|
+
console.log('\n✅ Setup complete! UI components are now local for optimal Tailwind scanning\n');
|
|
@@ -0,0 +1,196 @@
|
|
|
1
|
+
// This file is generated as an Apex representation of the
|
|
2
|
+
// corresponding sObject and its fields.
|
|
3
|
+
// This read-only file is used by the Apex Language Server to
|
|
4
|
+
// provide code smartness, and is deleted each time you
|
|
5
|
+
// refresh your sObject definitions.
|
|
6
|
+
// To edit your sObjects and their fields, edit the corresponding
|
|
7
|
+
// .object-meta.xml and .field-meta.xml files.
|
|
8
|
+
|
|
9
|
+
global class Account {
|
|
10
|
+
global Id Id;
|
|
11
|
+
global Boolean IsDeleted;
|
|
12
|
+
global Account MasterRecord;
|
|
13
|
+
global Id MasterRecordId;
|
|
14
|
+
global String Name;
|
|
15
|
+
global String Type;
|
|
16
|
+
global Account Parent;
|
|
17
|
+
global Id ParentId;
|
|
18
|
+
global String BillingStreet;
|
|
19
|
+
global String BillingCity;
|
|
20
|
+
global String BillingState;
|
|
21
|
+
global String BillingPostalCode;
|
|
22
|
+
global String BillingCountry;
|
|
23
|
+
global Double BillingLatitude;
|
|
24
|
+
global Double BillingLongitude;
|
|
25
|
+
global String BillingGeocodeAccuracy;
|
|
26
|
+
global Address BillingAddress;
|
|
27
|
+
global String ShippingStreet;
|
|
28
|
+
global String ShippingCity;
|
|
29
|
+
global String ShippingState;
|
|
30
|
+
global String ShippingPostalCode;
|
|
31
|
+
global String ShippingCountry;
|
|
32
|
+
global Double ShippingLatitude;
|
|
33
|
+
global Double ShippingLongitude;
|
|
34
|
+
global String ShippingGeocodeAccuracy;
|
|
35
|
+
global Address ShippingAddress;
|
|
36
|
+
global String Phone;
|
|
37
|
+
global String Fax;
|
|
38
|
+
global String AccountNumber;
|
|
39
|
+
global String Website;
|
|
40
|
+
global String PhotoUrl;
|
|
41
|
+
global String Sic;
|
|
42
|
+
global String Industry;
|
|
43
|
+
global Decimal AnnualRevenue;
|
|
44
|
+
global Integer NumberOfEmployees;
|
|
45
|
+
global String Ownership;
|
|
46
|
+
global String TickerSymbol;
|
|
47
|
+
global String Description;
|
|
48
|
+
global String Rating;
|
|
49
|
+
global String Site;
|
|
50
|
+
global User Owner;
|
|
51
|
+
global Id OwnerId;
|
|
52
|
+
global Datetime CreatedDate;
|
|
53
|
+
global User CreatedBy;
|
|
54
|
+
global Id CreatedById;
|
|
55
|
+
global Datetime LastModifiedDate;
|
|
56
|
+
global User LastModifiedBy;
|
|
57
|
+
global Id LastModifiedById;
|
|
58
|
+
global Datetime SystemModstamp;
|
|
59
|
+
global Date LastActivityDate;
|
|
60
|
+
global Datetime LastViewedDate;
|
|
61
|
+
global Datetime LastReferencedDate;
|
|
62
|
+
global String Jigsaw;
|
|
63
|
+
global String JigsawCompanyId;
|
|
64
|
+
global String CleanStatus;
|
|
65
|
+
global String AccountSource;
|
|
66
|
+
global String DunsNumber;
|
|
67
|
+
global String Tradestyle;
|
|
68
|
+
global String NaicsCode;
|
|
69
|
+
global String NaicsDesc;
|
|
70
|
+
global String YearStarted;
|
|
71
|
+
global String SicDesc;
|
|
72
|
+
global DandBCompany DandbCompany;
|
|
73
|
+
global Id DandbCompanyId;
|
|
74
|
+
global OperatingHours OperatingHours;
|
|
75
|
+
global Id OperatingHoursId;
|
|
76
|
+
global List<Account> ChildAccounts;
|
|
77
|
+
global List<AccountCleanInfo> AccountCleanInfos;
|
|
78
|
+
global List<AccountContactRole> AccountContactRoles;
|
|
79
|
+
global List<AccountFeed> Feeds;
|
|
80
|
+
global List<AccountHistory> Histories;
|
|
81
|
+
global List<AccountPartner> AccountPartnersFrom;
|
|
82
|
+
global List<AccountPartner> AccountPartnersTo;
|
|
83
|
+
global List<AccountShare> Shares;
|
|
84
|
+
global List<ActivityHistory> ActivityHistories;
|
|
85
|
+
global List<AlternativePaymentMethod> AlternativePaymentMethods;
|
|
86
|
+
global List<Asset> Assets;
|
|
87
|
+
global List<Asset> ProvidedAssets;
|
|
88
|
+
global List<Asset> ServicedAssets;
|
|
89
|
+
global List<AssociatedLocation> AssociatedLocations;
|
|
90
|
+
global List<AttachedContentDocument> AttachedContentDocuments;
|
|
91
|
+
global List<Attachment> Attachments;
|
|
92
|
+
global List<AuthorizationFormConsent> AuthorizationFormConsents;
|
|
93
|
+
global List<AuthorizationFormConsent> RelatedAuthorizationFormConsents;
|
|
94
|
+
global List<CardPaymentMethod> CardPaymentMethods;
|
|
95
|
+
global List<Case> Cases;
|
|
96
|
+
global List<CollaborationGroupRecord> RecordAssociatedGroups;
|
|
97
|
+
global List<CombinedAttachment> CombinedAttachments;
|
|
98
|
+
global List<CommSubscriptionConsent> CommSubscriptionConsents;
|
|
99
|
+
global List<Contact> Contacts;
|
|
100
|
+
global List<ContactPointAddress> ContactPointAddresses;
|
|
101
|
+
global List<ContactPointEmail> ContactPointEmails;
|
|
102
|
+
global List<ContactPointPhone> ContactPointPhones;
|
|
103
|
+
global List<ContactRequest> ContactRequests;
|
|
104
|
+
global List<ContentDocumentLink> ContentDocumentLinks;
|
|
105
|
+
global List<Contract> Contracts;
|
|
106
|
+
global List<CreditMemo> CreditMemos;
|
|
107
|
+
global List<DigitalWallet> DigitalWallets;
|
|
108
|
+
global List<DuplicateRecordItem> DuplicateRecordItems;
|
|
109
|
+
global List<EmailMessage> Emails;
|
|
110
|
+
global List<Entitlement> Entitlements;
|
|
111
|
+
global List<EntitySubscription> FeedSubscriptionsForEntity;
|
|
112
|
+
global List<Event> Events;
|
|
113
|
+
global List<Expense> Expenses;
|
|
114
|
+
global List<FinanceBalanceSnapshot> FinanceBalanceSnapshots;
|
|
115
|
+
global List<FinanceTransaction> FinanceTransactions;
|
|
116
|
+
global List<Invoice> Invoices;
|
|
117
|
+
global List<MaintenancePlan> MaintenancePlans;
|
|
118
|
+
global List<MessagingEndUser> MessagingEndUsers;
|
|
119
|
+
global List<MessagingSession> MessagingSessions;
|
|
120
|
+
global List<Note> Notes;
|
|
121
|
+
global List<NoteAndAttachment> NotesAndAttachments;
|
|
122
|
+
global List<OpenActivity> OpenActivities;
|
|
123
|
+
global List<Opportunity> Opportunities;
|
|
124
|
+
global List<OpportunityPartner> OpportunityPartnersTo;
|
|
125
|
+
global List<Order> Orders;
|
|
126
|
+
global List<Partner> PartnersFrom;
|
|
127
|
+
global List<Partner> PartnersTo;
|
|
128
|
+
global List<Payment> Payments;
|
|
129
|
+
global List<PaymentAuthAdjustment> PaymentAuthAdjustments;
|
|
130
|
+
global List<PaymentAuthorization> PaymentAuthorizations;
|
|
131
|
+
global List<PaymentLineInvoice> PaymentLinesInvoice;
|
|
132
|
+
global List<ProcessInstance> ProcessInstances;
|
|
133
|
+
global List<ProcessInstanceHistory> ProcessSteps;
|
|
134
|
+
global List<ProductRequest> ProductRequests;
|
|
135
|
+
global List<ProductRequestLineItem> ProductRequestLineItems;
|
|
136
|
+
global List<RecordAction> RecordActions;
|
|
137
|
+
global List<RecordActionHistory> RecordActionHistories;
|
|
138
|
+
global List<Refund> Refunds;
|
|
139
|
+
global List<RefundLinePayment> RefundLinePayments;
|
|
140
|
+
global List<ResourcePreference> ResourcePreferences;
|
|
141
|
+
global List<ReturnOrder> ReturnOrders;
|
|
142
|
+
global List<ScorecardAssociation> ScorecardAssociations;
|
|
143
|
+
global List<ServiceAppointment> ServiceAppointmentAccount;
|
|
144
|
+
global List<ServiceAppointment> ServiceAppointments;
|
|
145
|
+
global List<ServiceContract> ServiceContracts;
|
|
146
|
+
global List<ServiceResource> ServiceResources;
|
|
147
|
+
global List<Swarm> Swarms;
|
|
148
|
+
global List<SwarmMember> SwarmMembers;
|
|
149
|
+
global List<Task> Tasks;
|
|
150
|
+
global List<TopicAssignment> TopicAssignments;
|
|
151
|
+
global List<User> Users;
|
|
152
|
+
global List<WorkOrder> WorkOrders;
|
|
153
|
+
global List<WorkPlanSelectionRule> WorkPlanSelectionRules;
|
|
154
|
+
global List<AIInsightValue> SobjectLookupValue;
|
|
155
|
+
global List<AIRecordInsight> Target;
|
|
156
|
+
global List<AccountChangeEvent> Parent;
|
|
157
|
+
global List<AccountContactRoleChangeEvent> Account;
|
|
158
|
+
global List<AssetChangeEvent> AssetProvidedBy;
|
|
159
|
+
global List<AssetChangeEvent> AssetServicedBy;
|
|
160
|
+
global List<AuthorizationFormConsentChangeEvent> ConsentGiver;
|
|
161
|
+
global List<AuthorizationFormConsentChangeEvent> RelatedRecord;
|
|
162
|
+
global List<CampaignMember> LeadOrContact;
|
|
163
|
+
global List<CaseChangeEvent> Account;
|
|
164
|
+
global List<CommSubscriptionConsentChangeEvent> ConsentGiver;
|
|
165
|
+
global List<ContactChangeEvent> Account;
|
|
166
|
+
global List<ContactPointAddressChangeEvent> Parent;
|
|
167
|
+
global List<ContentDistribution> RelatedRecord;
|
|
168
|
+
global List<ContentDocumentLinkChangeEvent> LinkedEntity;
|
|
169
|
+
global List<ContentVersion> FirstPublishLocation;
|
|
170
|
+
global List<ContractChangeEvent> Account;
|
|
171
|
+
global List<EmailMessageChangeEvent> RelatedTo;
|
|
172
|
+
global List<EntitlementChangeEvent> Account;
|
|
173
|
+
global List<EventChangeEvent> What;
|
|
174
|
+
global List<EventRelationChangeEvent> Relation;
|
|
175
|
+
global List<ExpenseChangeEvent> Account;
|
|
176
|
+
global List<FeedComment> Parent;
|
|
177
|
+
global List<FinanceBalanceSnapshotChangeEvent> Account;
|
|
178
|
+
global List<FlowExecutionErrorEvent> ContextRecord;
|
|
179
|
+
global List<FlowOrchestrationWorkItem> RelatedRecord;
|
|
180
|
+
global List<Lead> ConvertedAccount;
|
|
181
|
+
global List<MaintenancePlanChangeEvent> Account;
|
|
182
|
+
global List<OutgoingEmail> RelatedTo;
|
|
183
|
+
global List<PaymentMethod> Account;
|
|
184
|
+
global List<ResourcePreferenceChangeEvent> RelatedRecord;
|
|
185
|
+
global List<ReturnOrderChangeEvent> Account;
|
|
186
|
+
global List<ServiceAppointmentChangeEvent> ParentRecord;
|
|
187
|
+
global List<ServiceContractChangeEvent> Account;
|
|
188
|
+
global List<TaskChangeEvent> What;
|
|
189
|
+
global List<UserChangeEvent> Account;
|
|
190
|
+
global List<UserRole> PortalAccount;
|
|
191
|
+
global List<WorkOrderChangeEvent> Account;
|
|
192
|
+
|
|
193
|
+
global Account ()
|
|
194
|
+
{
|
|
195
|
+
}
|
|
196
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// This file is generated as an Apex representation of the
|
|
2
|
+
// corresponding sObject and its fields.
|
|
3
|
+
// This read-only file is used by the Apex Language Server to
|
|
4
|
+
// provide code smartness, and is deleted each time you
|
|
5
|
+
// refresh your sObject definitions.
|
|
6
|
+
// To edit your sObjects and their fields, edit the corresponding
|
|
7
|
+
// .object-meta.xml and .field-meta.xml files.
|
|
8
|
+
|
|
9
|
+
global class AccountHistory {
|
|
10
|
+
global Id Id;
|
|
11
|
+
global Boolean IsDeleted;
|
|
12
|
+
global Account Account;
|
|
13
|
+
global Id AccountId;
|
|
14
|
+
global User CreatedBy;
|
|
15
|
+
global Id CreatedById;
|
|
16
|
+
global Datetime CreatedDate;
|
|
17
|
+
global String Field;
|
|
18
|
+
global String DataType;
|
|
19
|
+
global Object OldValue;
|
|
20
|
+
global Object NewValue;
|
|
21
|
+
|
|
22
|
+
global AccountHistory ()
|
|
23
|
+
{
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
// This file is generated as an Apex representation of the
|
|
2
|
+
// corresponding sObject and its fields.
|
|
3
|
+
// This read-only file is used by the Apex Language Server to
|
|
4
|
+
// provide code smartness, and is deleted each time you
|
|
5
|
+
// refresh your sObject definitions.
|
|
6
|
+
// To edit your sObjects and their fields, edit the corresponding
|
|
7
|
+
// .object-meta.xml and .field-meta.xml files.
|
|
8
|
+
|
|
9
|
+
global class Asset {
|
|
10
|
+
global Id Id;
|
|
11
|
+
global Contact Contact;
|
|
12
|
+
global Id ContactId;
|
|
13
|
+
global Account Account;
|
|
14
|
+
global Id AccountId;
|
|
15
|
+
global Asset Parent;
|
|
16
|
+
global Id ParentId;
|
|
17
|
+
global Asset RootAsset;
|
|
18
|
+
global Id RootAssetId;
|
|
19
|
+
global Product2 Product2;
|
|
20
|
+
global Id Product2Id;
|
|
21
|
+
global String ProductCode;
|
|
22
|
+
global Boolean IsCompetitorProduct;
|
|
23
|
+
global Datetime CreatedDate;
|
|
24
|
+
global User CreatedBy;
|
|
25
|
+
global Id CreatedById;
|
|
26
|
+
global Datetime LastModifiedDate;
|
|
27
|
+
global User LastModifiedBy;
|
|
28
|
+
global Id LastModifiedById;
|
|
29
|
+
global Datetime SystemModstamp;
|
|
30
|
+
global Boolean IsDeleted;
|
|
31
|
+
global String Name;
|
|
32
|
+
global String SerialNumber;
|
|
33
|
+
global Date InstallDate;
|
|
34
|
+
global Date PurchaseDate;
|
|
35
|
+
global Date UsageEndDate;
|
|
36
|
+
global Datetime LifecycleStartDate;
|
|
37
|
+
global Datetime LifecycleEndDate;
|
|
38
|
+
global String Status;
|
|
39
|
+
global Decimal Price;
|
|
40
|
+
global Double Quantity;
|
|
41
|
+
global String Description;
|
|
42
|
+
global User Owner;
|
|
43
|
+
global Id OwnerId;
|
|
44
|
+
global Location Location;
|
|
45
|
+
global Id LocationId;
|
|
46
|
+
global Account AssetProvidedBy;
|
|
47
|
+
global Id AssetProvidedById;
|
|
48
|
+
global Account AssetServicedBy;
|
|
49
|
+
global Id AssetServicedById;
|
|
50
|
+
global Boolean IsInternal;
|
|
51
|
+
global Integer AssetLevel;
|
|
52
|
+
global String StockKeepingUnit;
|
|
53
|
+
global Boolean HasLifecycleManagement;
|
|
54
|
+
global Decimal CurrentMrr;
|
|
55
|
+
global Datetime CurrentLifecycleEndDate;
|
|
56
|
+
global Double CurrentQuantity;
|
|
57
|
+
global Decimal CurrentAmount;
|
|
58
|
+
global Decimal TotalLifecycleAmount;
|
|
59
|
+
global String Street;
|
|
60
|
+
global String City;
|
|
61
|
+
global String State;
|
|
62
|
+
global String PostalCode;
|
|
63
|
+
global String Country;
|
|
64
|
+
global Double Latitude;
|
|
65
|
+
global Double Longitude;
|
|
66
|
+
global String GeocodeAccuracy;
|
|
67
|
+
global Address Address;
|
|
68
|
+
global Datetime LastViewedDate;
|
|
69
|
+
global Datetime LastReferencedDate;
|
|
70
|
+
global List<ActivityHistory> ActivityHistories;
|
|
71
|
+
global List<Asset> ChildAssets;
|
|
72
|
+
global List<AssetAction> AssetActions;
|
|
73
|
+
global List<AssetAttribute> AssetAttributes;
|
|
74
|
+
global List<AssetDowntimePeriod> AssetDowntimePeriods;
|
|
75
|
+
global List<AssetFeed> Feeds;
|
|
76
|
+
global List<AssetHistory> Histories;
|
|
77
|
+
global List<AssetRelationship> PrimaryAssets;
|
|
78
|
+
global List<AssetRelationship> RelatedAssets;
|
|
79
|
+
global List<AssetShare> Shares;
|
|
80
|
+
global List<AssetStatePeriod> AssetStatePeriods;
|
|
81
|
+
global List<AssetWarranty> WarrantyAssets;
|
|
82
|
+
global List<AttachedContentDocument> AttachedContentDocuments;
|
|
83
|
+
global List<Attachment> Attachments;
|
|
84
|
+
global List<Case> Cases;
|
|
85
|
+
global List<CombinedAttachment> CombinedAttachments;
|
|
86
|
+
global List<ContentDocumentLink> ContentDocumentLinks;
|
|
87
|
+
global List<ContractLineItem> ContractLineItems;
|
|
88
|
+
global List<EmailMessage> Emails;
|
|
89
|
+
global List<Entitlement> Entitlements;
|
|
90
|
+
global List<EntitySubscription> FeedSubscriptionsForEntity;
|
|
91
|
+
global List<Event> Events;
|
|
92
|
+
global List<MaintenanceAsset> MaintenanceAssets;
|
|
93
|
+
global List<Note> Notes;
|
|
94
|
+
global List<NoteAndAttachment> NotesAndAttachments;
|
|
95
|
+
global List<OpenActivity> OpenActivities;
|
|
96
|
+
global List<ProcessInstance> ProcessInstances;
|
|
97
|
+
global List<ProcessInstanceHistory> ProcessSteps;
|
|
98
|
+
global List<ProductServiceCampaignItem> ProductServiceCampaignItems;
|
|
99
|
+
global List<RecordAction> RecordActions;
|
|
100
|
+
global List<RecordActionHistory> RecordActionHistories;
|
|
101
|
+
global List<RecordsetFltrCritMonitor> RecordsetFltrCritMonitors;
|
|
102
|
+
global List<ResourcePreference> ResourcePreferences;
|
|
103
|
+
global List<ReturnOrderLineItem> ReturnOrderLineItems;
|
|
104
|
+
global List<SerializedProduct> SerializedProducts;
|
|
105
|
+
global List<ServiceAppointment> ServiceAppointments;
|
|
106
|
+
global List<Task> Tasks;
|
|
107
|
+
global List<TopicAssignment> TopicAssignments;
|
|
108
|
+
global List<WorkOrder> WorkOrders;
|
|
109
|
+
global List<WorkOrderLineItem> WorkOrderLineItems;
|
|
110
|
+
global List<WorkPlanSelectionRule> WorkPlanSelectionRules;
|
|
111
|
+
global List<AIInsightValue> SobjectLookupValue;
|
|
112
|
+
global List<AIRecordInsight> Target;
|
|
113
|
+
global List<Asset> RootAsset;
|
|
114
|
+
global List<AssetAttributeChangeEvent> Asset;
|
|
115
|
+
global List<AssetChangeEvent> Parent;
|
|
116
|
+
global List<AssetChangeEvent> RootAsset;
|
|
117
|
+
global List<AssetTokenEvent> Asset;
|
|
118
|
+
global List<ContentDocumentLinkChangeEvent> LinkedEntity;
|
|
119
|
+
global List<ContentVersion> FirstPublishLocation;
|
|
120
|
+
global List<ContractLineItemChangeEvent> Asset;
|
|
121
|
+
global List<EmailMessageChangeEvent> RelatedTo;
|
|
122
|
+
global List<EntitlementChangeEvent> Asset;
|
|
123
|
+
global List<EventChangeEvent> What;
|
|
124
|
+
global List<EventRelationChangeEvent> Relation;
|
|
125
|
+
global List<FeedComment> Parent;
|
|
126
|
+
global List<FlowExecutionErrorEvent> ContextRecord;
|
|
127
|
+
global List<FlowOrchestrationWorkItem> RelatedRecord;
|
|
128
|
+
global List<MaintenanceAssetChangeEvent> Asset;
|
|
129
|
+
global List<OutgoingEmail> RelatedTo;
|
|
130
|
+
global List<RecordsetFltrCritMonitorChangeEvent> Asset;
|
|
131
|
+
global List<ServiceAppointmentChangeEvent> ParentRecord;
|
|
132
|
+
global List<TaskChangeEvent> What;
|
|
133
|
+
global List<WorkOrderChangeEvent> Asset;
|
|
134
|
+
|
|
135
|
+
global Asset ()
|
|
136
|
+
{
|
|
137
|
+
}
|
|
138
|
+
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
// This file is generated as an Apex representation of the
|
|
2
|
+
// corresponding sObject and its fields.
|
|
3
|
+
// This read-only file is used by the Apex Language Server to
|
|
4
|
+
// provide code smartness, and is deleted each time you
|
|
5
|
+
// refresh your sObject definitions.
|
|
6
|
+
// To edit your sObjects and their fields, edit the corresponding
|
|
7
|
+
// .object-meta.xml and .field-meta.xml files.
|
|
8
|
+
|
|
9
|
+
global class Attachment {
|
|
10
|
+
global Id Id;
|
|
11
|
+
global Boolean IsDeleted;
|
|
12
|
+
global SObject Parent;
|
|
13
|
+
global Id ParentId;
|
|
14
|
+
global String Name;
|
|
15
|
+
global Boolean IsPrivate;
|
|
16
|
+
global String ContentType;
|
|
17
|
+
global Integer BodyLength;
|
|
18
|
+
global Blob Body;
|
|
19
|
+
global SObject Owner;
|
|
20
|
+
global Id OwnerId;
|
|
21
|
+
global Datetime CreatedDate;
|
|
22
|
+
global User CreatedBy;
|
|
23
|
+
global Id CreatedById;
|
|
24
|
+
global Datetime LastModifiedDate;
|
|
25
|
+
global User LastModifiedBy;
|
|
26
|
+
global Id LastModifiedById;
|
|
27
|
+
global Datetime SystemModstamp;
|
|
28
|
+
global String Description;
|
|
29
|
+
global List<FlowExecutionErrorEvent> ContextRecord;
|
|
30
|
+
global List<FlowRecordRelation> RelatedRecord;
|
|
31
|
+
|
|
32
|
+
global Attachment ()
|
|
33
|
+
{
|
|
34
|
+
}
|
|
35
|
+
}
|