@salesforce/webapp-template-feature-react-file-upload-experimental 1.116.6 → 1.116.8
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/dist/CHANGELOG.md +16 -0
- package/dist/force-app/main/default/webapplications/feature-react-file-upload/eslint.config.js +13 -2
- package/dist/force-app/main/default/webapplications/feature-react-file-upload/package.json +3 -3
- package/dist/force-app/main/default/webapplications/feature-react-file-upload/src/features/fileupload/components/FileUploadDropZone.tsx +5 -4
- package/dist/force-app/main/default/webapplications/feature-react-file-upload/src/features/fileupload/pages/UploadTest.tsx +0 -3
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +2 -2
- package/src/force-app/main/default/webapplications/feature-react-file-upload/src/features/fileupload/components/FileUploadDropZone.tsx +5 -4
- package/src/force-app/main/default/webapplications/feature-react-file-upload/src/features/fileupload/pages/UploadTest.tsx +0 -3
package/dist/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
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.116.8](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.116.7...v1.116.8) (2026-03-27)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [1.116.7](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.116.6...v1.116.7) (2026-03-27)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [1.116.6](https://github.com/salesforce-experience-platform-emu/webapps/compare/v1.116.5...v1.116.6) (2026-03-26)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @salesforce/webapp-template-base-sfdx-project-experimental
|
package/dist/force-app/main/default/webapplications/feature-react-file-upload/eslint.config.js
CHANGED
|
@@ -18,7 +18,12 @@ const schemaExists = existsSync(schemaPath);
|
|
|
18
18
|
const config = [
|
|
19
19
|
// Global ignores
|
|
20
20
|
{
|
|
21
|
-
ignores: [
|
|
21
|
+
ignores: [
|
|
22
|
+
'build/**/*',
|
|
23
|
+
'dist/**/*',
|
|
24
|
+
'coverage/**/*',
|
|
25
|
+
'src/api/graphql-operations-types.ts',
|
|
26
|
+
],
|
|
22
27
|
},
|
|
23
28
|
// Config files and build tools (first to avoid inheritance)
|
|
24
29
|
{
|
|
@@ -89,11 +94,17 @@ const config = [
|
|
|
89
94
|
'react/no-unescaped-entities': 'off',
|
|
90
95
|
'@typescript-eslint/no-unused-vars': [
|
|
91
96
|
'error',
|
|
92
|
-
{
|
|
97
|
+
{
|
|
98
|
+
argsIgnorePattern: '^_',
|
|
99
|
+
varsIgnorePattern: '^_',
|
|
100
|
+
caughtErrorsIgnorePattern: '^_',
|
|
101
|
+
ignoreRestSiblings: true,
|
|
102
|
+
},
|
|
93
103
|
],
|
|
94
104
|
'@typescript-eslint/explicit-function-return-type': 'off',
|
|
95
105
|
'@typescript-eslint/explicit-module-boundary-types': 'off',
|
|
96
106
|
'@typescript-eslint/no-explicit-any': 'off',
|
|
107
|
+
'react-hooks/set-state-in-effect': 'warn',
|
|
97
108
|
},
|
|
98
109
|
settings: {
|
|
99
110
|
react: {
|
|
@@ -15,8 +15,8 @@
|
|
|
15
15
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
-
"@salesforce/sdk-data": "^1.116.
|
|
19
|
-
"@salesforce/webapp-experimental": "^1.116.
|
|
18
|
+
"@salesforce/sdk-data": "^1.116.8",
|
|
19
|
+
"@salesforce/webapp-experimental": "^1.116.8",
|
|
20
20
|
"@tailwindcss/vite": "^4.1.17",
|
|
21
21
|
"class-variance-authority": "^0.7.1",
|
|
22
22
|
"clsx": "^2.1.1",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
44
44
|
"@graphql-tools/utils": "^11.0.0",
|
|
45
45
|
"@playwright/test": "^1.49.0",
|
|
46
|
-
"@salesforce/vite-plugin-webapp-experimental": "^1.116.
|
|
46
|
+
"@salesforce/vite-plugin-webapp-experimental": "^1.116.8",
|
|
47
47
|
"@testing-library/jest-dom": "^6.6.3",
|
|
48
48
|
"@testing-library/react": "^16.1.0",
|
|
49
49
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -44,6 +44,7 @@ export function FileUploadDropZone({
|
|
|
44
44
|
formatHint = LABELS.formatHint,
|
|
45
45
|
className = "",
|
|
46
46
|
}: FileUploadDropZoneProps) {
|
|
47
|
+
const { ref: inputRef, accept, multiple, onChange } = inputProps;
|
|
47
48
|
const dropZoneClassName = [
|
|
48
49
|
DROP_ZONE_BASE_CLASSES,
|
|
49
50
|
isDragging ? DROP_ZONE_DRAGGING_CLASSES : DROP_ZONE_IDLE_CLASSES,
|
|
@@ -67,11 +68,11 @@ export function FileUploadDropZone({
|
|
|
67
68
|
>
|
|
68
69
|
<input
|
|
69
70
|
id="file-upload-input-id"
|
|
70
|
-
ref={
|
|
71
|
+
ref={inputRef}
|
|
71
72
|
type="file"
|
|
72
|
-
accept={
|
|
73
|
-
multiple={
|
|
74
|
-
onChange={
|
|
73
|
+
accept={accept}
|
|
74
|
+
multiple={multiple}
|
|
75
|
+
onChange={onChange}
|
|
75
76
|
className="sr-only"
|
|
76
77
|
aria-hidden
|
|
77
78
|
/>
|
|
@@ -10,7 +10,6 @@ export default function UploadTest() {
|
|
|
10
10
|
const handleUploadComplete = async (
|
|
11
11
|
files: { name: string; size: number; contentBodyId: string; contentVersionId?: string }[],
|
|
12
12
|
) => {
|
|
13
|
-
// eslint-disable-next-line no-console
|
|
14
13
|
console.log("Uploaded files:", JSON.stringify(files, null, 2));
|
|
15
14
|
|
|
16
15
|
try {
|
|
@@ -26,11 +25,9 @@ export default function UploadTest() {
|
|
|
26
25
|
uploadedFile.contentBodyId,
|
|
27
26
|
userId,
|
|
28
27
|
);
|
|
29
|
-
// eslint-disable-next-line no-console
|
|
30
28
|
console.log(`Created ContentVersion for ${uploadedFile.name}:`, contentVersionId);
|
|
31
29
|
}
|
|
32
30
|
} catch (error) {
|
|
33
|
-
// eslint-disable-next-line no-console
|
|
34
31
|
console.error("Error creating ContentVersion:", error);
|
|
35
32
|
}
|
|
36
33
|
};
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
3
|
-
"version": "1.116.
|
|
3
|
+
"version": "1.116.8",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/webapp-template-base-sfdx-project-experimental",
|
|
9
|
-
"version": "1.116.
|
|
9
|
+
"version": "1.116.8",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
11
11
|
"devDependencies": {
|
|
12
12
|
"@lwc/eslint-plugin-lwc": "^3.3.0",
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-feature-react-file-upload-experimental",
|
|
3
|
-
"version": "1.116.
|
|
3
|
+
"version": "1.116.8",
|
|
4
4
|
"description": "File upload feature with a component to upload files to core",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"devDependencies": {
|
|
43
|
-
"@salesforce/webapp-experimental": "^1.116.
|
|
43
|
+
"@salesforce/webapp-experimental": "^1.116.8",
|
|
44
44
|
"@types/react": "^19.2.7",
|
|
45
45
|
"@types/react-dom": "^19.2.3",
|
|
46
46
|
"nodemon": "^3.1.0",
|
|
@@ -44,6 +44,7 @@ export function FileUploadDropZone({
|
|
|
44
44
|
formatHint = LABELS.formatHint,
|
|
45
45
|
className = "",
|
|
46
46
|
}: FileUploadDropZoneProps) {
|
|
47
|
+
const { ref: inputRef, accept, multiple, onChange } = inputProps;
|
|
47
48
|
const dropZoneClassName = [
|
|
48
49
|
DROP_ZONE_BASE_CLASSES,
|
|
49
50
|
isDragging ? DROP_ZONE_DRAGGING_CLASSES : DROP_ZONE_IDLE_CLASSES,
|
|
@@ -67,11 +68,11 @@ export function FileUploadDropZone({
|
|
|
67
68
|
>
|
|
68
69
|
<input
|
|
69
70
|
id="file-upload-input-id"
|
|
70
|
-
ref={
|
|
71
|
+
ref={inputRef}
|
|
71
72
|
type="file"
|
|
72
|
-
accept={
|
|
73
|
-
multiple={
|
|
74
|
-
onChange={
|
|
73
|
+
accept={accept}
|
|
74
|
+
multiple={multiple}
|
|
75
|
+
onChange={onChange}
|
|
75
76
|
className="sr-only"
|
|
76
77
|
aria-hidden
|
|
77
78
|
/>
|
|
@@ -10,7 +10,6 @@ export default function UploadTest() {
|
|
|
10
10
|
const handleUploadComplete = async (
|
|
11
11
|
files: { name: string; size: number; contentBodyId: string; contentVersionId?: string }[],
|
|
12
12
|
) => {
|
|
13
|
-
// eslint-disable-next-line no-console
|
|
14
13
|
console.log("Uploaded files:", JSON.stringify(files, null, 2));
|
|
15
14
|
|
|
16
15
|
try {
|
|
@@ -26,11 +25,9 @@ export default function UploadTest() {
|
|
|
26
25
|
uploadedFile.contentBodyId,
|
|
27
26
|
userId,
|
|
28
27
|
);
|
|
29
|
-
// eslint-disable-next-line no-console
|
|
30
28
|
console.log(`Created ContentVersion for ${uploadedFile.name}:`, contentVersionId);
|
|
31
29
|
}
|
|
32
30
|
} catch (error) {
|
|
33
|
-
// eslint-disable-next-line no-console
|
|
34
31
|
console.error("Error creating ContentVersion:", error);
|
|
35
32
|
}
|
|
36
33
|
};
|