@salesforce/templates 66.7.12 → 66.7.13
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/lib/templates/project/reactexternalapp/CHANGELOG.md +208 -0
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/package-lock.json +523 -497
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/package.json +3 -3
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_/pages/AccountObjectDetailPage.tsx +4 -4
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/api/objectSearchService.ts +10 -7
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useAsyncData.ts +9 -7
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useCachedAsyncData.ts +9 -5
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useObjectSearchParams.ts +3 -1
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/_f_/authentication/api/userProfileApi.ts +10 -4
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/api/graphqlClient.ts +4 -1
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/src/pages/AccountObjectDetailPage.tsx +4 -4
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/tsconfig.json +7 -2
- package/lib/templates/project/reactexternalapp/_p_/_m_/_w_/_a_/vite-env.d.ts +6 -0
- package/lib/templates/project/reactexternalapp/package.json +1 -1
- package/lib/templates/project/reactinternalapp/CHANGELOG.md +208 -0
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/package-lock.json +519 -493
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/package.json +3 -3
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/_ex_/pages/AccountObjectDetailPage.tsx +4 -4
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/api/objectSearchService.ts +10 -7
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useAsyncData.ts +9 -7
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useCachedAsyncData.ts +9 -5
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/_f_/_os_/hooks/useObjectSearchParams.ts +3 -1
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/api/graphqlClient.ts +4 -1
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/src/pages/AccountObjectDetailPage.tsx +4 -4
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/tsconfig.json +7 -2
- package/lib/templates/project/reactinternalapp/_p_/_m_/_w_/_a_/vite-env.d.ts +6 -0
- package/lib/templates/project/reactinternalapp/package.json +1 -1
- package/lib/templates/uiBundles/reactbasic/package-lock.json +516 -490
- package/lib/templates/uiBundles/reactbasic/package.json +3 -3
- package/lib/templates/uiBundles/reactbasic/src/api/graphqlClient.ts +4 -1
- package/lib/templates/uiBundles/reactbasic/tsconfig.json +7 -2
- package/lib/templates/uiBundles/reactbasic/vite-env.d.ts +6 -0
- package/package.json +6 -6
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@salesforce/sdk-data": "^1.
|
|
22
|
-
"@salesforce/ui-bundle": "^1.
|
|
21
|
+
"@salesforce/sdk-data": "^1.134.3",
|
|
22
|
+
"@salesforce/ui-bundle": "^1.134.3",
|
|
23
23
|
"@tailwindcss/vite": "^4.1.17",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
45
45
|
"@graphql-tools/utils": "^11.0.0",
|
|
46
46
|
"@playwright/test": "^1.49.0",
|
|
47
|
-
"@salesforce/vite-plugin-ui-bundle": "^1.
|
|
47
|
+
"@salesforce/vite-plugin-ui-bundle": "^1.134.3",
|
|
48
48
|
"@testing-library/jest-dom": "^6.6.3",
|
|
49
49
|
"@testing-library/react": "^16.1.0",
|
|
50
50
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -10,7 +10,10 @@ export async function executeGraphQL<TData, TVariables>(
|
|
|
10
10
|
): Promise<TData> {
|
|
11
11
|
const data = await createDataSDK();
|
|
12
12
|
// SDK types graphql() first param as string; at runtime it may accept gql DocumentNode too
|
|
13
|
-
const response = await data.graphql?.<TData, TVariables>(
|
|
13
|
+
const response = await data.graphql?.<TData, TVariables>({
|
|
14
|
+
query,
|
|
15
|
+
variables,
|
|
16
|
+
});
|
|
14
17
|
|
|
15
18
|
if (!response) {
|
|
16
19
|
throw new Error('GraphQL response is undefined');
|
|
@@ -21,14 +21,19 @@
|
|
|
21
21
|
"noFallthroughCasesInSwitch": true,
|
|
22
22
|
|
|
23
23
|
/* Path mapping */
|
|
24
|
-
"baseUrl": ".",
|
|
25
24
|
"paths": {
|
|
26
25
|
"@/*": ["./src/*"],
|
|
27
26
|
"@api/*": ["./src/api/*"],
|
|
28
27
|
"@components/*": ["./src/components/*"],
|
|
29
28
|
"@utils/*": ["./src/utils/*"],
|
|
30
29
|
"@styles/*": ["./src/styles/*"],
|
|
31
|
-
"@assets/*": ["./src/assets/*"]
|
|
30
|
+
"@assets/*": ["./src/assets/*"],
|
|
31
|
+
"@salesforce/sdk-core": [
|
|
32
|
+
"../../../../../../../../../../packages/sdk/sdk-core/src/index.ts"
|
|
33
|
+
],
|
|
34
|
+
"@salesforce/sdk-data": [
|
|
35
|
+
"../../../../../../../../../../packages/sdk/sdk-data/src/index.ts"
|
|
36
|
+
]
|
|
32
37
|
}
|
|
33
38
|
},
|
|
34
39
|
"include": [
|
|
@@ -1 +1,7 @@
|
|
|
1
1
|
/// <reference types="vite/client" />
|
|
2
|
+
|
|
3
|
+
/** Salesforce API version injected at build time by the Vite define plugin. */
|
|
4
|
+
declare const __SF_API_VERSION__: string;
|
|
5
|
+
|
|
6
|
+
/** Package version of @salesforce/sdk-data injected at build time by its own Vite build. */
|
|
7
|
+
declare const __SDK_DATA_VERSION__: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/templates",
|
|
3
|
-
"version": "66.7.
|
|
3
|
+
"version": "66.7.13",
|
|
4
4
|
"description": "Salesforce JS library for templates",
|
|
5
5
|
"bugs": "https://github.com/forcedotcom/salesforcedx-templates/issues",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -18,17 +18,17 @@
|
|
|
18
18
|
"hpagent": "^1.2.0",
|
|
19
19
|
"mime-types": "^3.0.2",
|
|
20
20
|
"proxy-from-env": "^1.1.0",
|
|
21
|
-
"tar": "^7.5.
|
|
21
|
+
"tar": "^7.5.15",
|
|
22
22
|
"tslib": "^2.8.1"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
25
|
"@salesforce/dev-config": "^4.3.3",
|
|
26
26
|
"@salesforce/dev-scripts": "^11.0.2",
|
|
27
27
|
"@salesforce/prettier-config": "^0.0.4",
|
|
28
|
-
"@salesforce/ui-bundle-template-app-react-template-b2e": "^1.
|
|
29
|
-
"@salesforce/ui-bundle-template-app-react-template-b2x": "^1.
|
|
30
|
-
"@salesforce/ui-bundle-template-base-react-app": "^1.
|
|
31
|
-
"@salesforce/ui-bundle-template-base-web-app": "^1.
|
|
28
|
+
"@salesforce/ui-bundle-template-app-react-template-b2e": "^1.135.0",
|
|
29
|
+
"@salesforce/ui-bundle-template-app-react-template-b2x": "^1.135.0",
|
|
30
|
+
"@salesforce/ui-bundle-template-base-react-app": "^1.134.3",
|
|
31
|
+
"@salesforce/ui-bundle-template-base-web-app": "^1.134.3",
|
|
32
32
|
"@types/chai-as-promised": "^7.1.8",
|
|
33
33
|
"@types/ejs": "^3.1.5",
|
|
34
34
|
"@types/mime-types": "^3.0.1",
|