@salesforce/webapp-template-app-react-sample-b2e-experimental 1.75.0 → 1.76.0
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/.a4drules/skills/webapp-add-react-component/SKILL.md +78 -0
- package/dist/.a4drules/skills/webapp-add-react-component/implementation/component.md +78 -0
- package/dist/.a4drules/skills/webapp-add-react-component/implementation/header-footer.md +124 -0
- package/dist/.a4drules/skills/webapp-add-react-component/implementation/page.md +92 -0
- package/dist/CHANGELOG.md +19 -0
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/package.json +5 -5
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/api/applications.ts +3 -3
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/api/dashboard.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/api/graphql-operations-types.ts +329 -0
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/api/maintenance.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/api/properties.ts +1 -4
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ApplicationCard.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/ApplicationDetailsModal.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/FiltersFromApi.tsx +4 -6
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/IssuesDonutChart.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/MaintenanceDetailsModal.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/MaintenanceRequestCard.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/MaintenanceTable.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/PropertyDetailsModal.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/StatCard.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/dashboard/GlobalSearchBar.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/filters/FilterFieldRange.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/filters/FilterFieldSelect.tsx +2 -2
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/filters/FilterFieldText.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/filters/ListPageFilterRow.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/components/list/ListPageWithFilters.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/components/detail/DetailForm.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/components/search/GlobalSearchInput.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/components/search/SearchResultCard.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/pages/DetailPage.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/pages/GlobalSearch.tsx +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/hooks/useListPage.ts +3 -5
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/index.ts +4 -8
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/applicationColumns.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/filterUtils.ts +3 -5
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/listFilters.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/listPageConfig.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/maintenanceColumns.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/maintenanceWorkerColumns.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/propertyColumns.ts +1 -1
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/pages/Home.tsx +3 -5
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/pages/Properties.tsx +4 -5
- package/dist/package.json +1 -1
- package/package.json +3 -3
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/api/index.ts +0 -19
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/components/detail/formatted/index.ts +0 -6
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/hooks/index.ts +0 -22
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/types/index.ts +0 -5
- package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/features/global-search/utils/index.ts +0 -59
- /package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/{constants.ts → features/global-search/constants.ts} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Column config for Maintenance_Worker__c list.
|
|
3
3
|
*/
|
|
4
|
-
import type { Column } from "
|
|
4
|
+
import type { Column } from "../features/global-search/types/search/searchResults";
|
|
5
5
|
|
|
6
6
|
export const MAINTENANCE_WORKER_EXTRA_COLUMNS: Column[] = [
|
|
7
7
|
{ fieldApiName: "Name", label: "Worker Name", searchable: true, sortable: true },
|
package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/lib/propertyColumns.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Property list column config for useRecordListGraphQL.
|
|
3
3
|
*/
|
|
4
|
-
import type { Column } from "
|
|
4
|
+
import type { Column } from "../features/global-search/types/search/searchResults";
|
|
5
5
|
|
|
6
6
|
const PROPERTY_EXTRA_COLUMNS: Column[] = [
|
|
7
7
|
{ fieldApiName: "Description__c", label: "Description", searchable: true, sortable: false },
|
|
@@ -1,10 +1,8 @@
|
|
|
1
1
|
import { useEffect, useState, useCallback, useMemo } from "react";
|
|
2
2
|
import { useNavigate } from "react-router";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
useRecordListGraphQL,
|
|
7
|
-
} from "@salesforce/webapp-template-feature-react-global-search-experimental";
|
|
3
|
+
import { useRecordListGraphQL } from "../features/global-search/hooks/useRecordListGraphQL";
|
|
4
|
+
import { useObjectInfoBatch } from "../features/global-search/hooks/useObjectInfoBatch";
|
|
5
|
+
import { useObjectListMetadata } from "../features/global-search/hooks/useObjectSearchData";
|
|
8
6
|
import { IssuesDonutChart } from "../components/IssuesDonutChart.js";
|
|
9
7
|
import { MaintenanceTable } from "../components/MaintenanceTable.js";
|
|
10
8
|
import { GlobalSearchBar } from "../components/dashboard/GlobalSearchBar.js";
|
package/dist/force-app/main/default/webapplications/appreactsampleb2e/src/pages/Properties.tsx
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
import { useEffect, useState, useRef, useMemo, useCallback } from "react";
|
|
2
2
|
import { useSearchParams } from "react-router";
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
} from "@salesforce/webapp-template-feature-react-global-search-experimental";
|
|
3
|
+
import { type FilterCriteria } from "../features/global-search/types/filters/filters";
|
|
4
|
+
import { useObjectListMetadata } from "../features/global-search/hooks/useObjectSearchData";
|
|
5
|
+
import { useRecordListGraphQL } from "../features/global-search/hooks/useRecordListGraphQL";
|
|
6
|
+
|
|
8
7
|
import type { Property } from "../lib/types.js";
|
|
9
8
|
import { PropertyCard } from "../components/PropertyCard.js";
|
|
10
9
|
import { PropertyDetailsModal } from "../components/PropertyDetailsModal.js";
|
package/dist/package.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/webapp-template-app-react-sample-b2e-experimental",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.76.0",
|
|
4
4
|
"description": "B2E starter app template",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
6
6
|
"author": "",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"clean": "rm -rf dist"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@salesforce/webapp-experimental": "^1.
|
|
20
|
-
"@salesforce/webapp-template-feature-react-global-search-experimental": "^1.
|
|
19
|
+
"@salesforce/webapp-experimental": "^1.76.0",
|
|
20
|
+
"@salesforce/webapp-template-feature-react-global-search-experimental": "^1.76.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
23
|
"@testing-library/jest-dom": "^6.6.3",
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API layer: object metadata (GraphQL), layout + record detail (REST layout + GraphQL record), record list/single (GraphQL).
|
|
3
|
-
*/
|
|
4
|
-
export { objectInfoService } from "./objectInfoService";
|
|
5
|
-
export { objectDetailService, extractFieldsFromLayout } from "./objectDetailService";
|
|
6
|
-
export type { RecordDetailResult } from "./objectDetailService";
|
|
7
|
-
export {
|
|
8
|
-
getRecordsGraphQL,
|
|
9
|
-
getRecordByIdGraphQL,
|
|
10
|
-
buildGetRecordsQuery,
|
|
11
|
-
buildWhereFromCriteria,
|
|
12
|
-
buildOrderByFromSort,
|
|
13
|
-
} from "./recordListGraphQLService";
|
|
14
|
-
export type {
|
|
15
|
-
RecordListGraphQLResult,
|
|
16
|
-
RecordListGraphQLVariables,
|
|
17
|
-
RecordListGraphQLOptions,
|
|
18
|
-
GraphQLRecordNode,
|
|
19
|
-
} from "./recordListGraphQLService";
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export { FieldValueDisplay } from "./FieldValueDisplay";
|
|
2
|
-
export { FormattedAddress } from "./FormattedAddress";
|
|
3
|
-
export { FormattedEmail } from "./FormattedEmail";
|
|
4
|
-
export { FormattedPhone } from "./FormattedPhone";
|
|
5
|
-
export { FormattedText } from "./FormattedText";
|
|
6
|
-
export { FormattedUrl } from "./FormattedUrl";
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Hooks
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
export {
|
|
5
|
-
useObjectColumns,
|
|
6
|
-
useObjectSearchResults,
|
|
7
|
-
useObjectFilters,
|
|
8
|
-
useObjectListMetadata,
|
|
9
|
-
} from "./useObjectSearchData";
|
|
10
|
-
export type { ObjectListMetadata } from "./useObjectSearchData";
|
|
11
|
-
export { useRecordListGraphQL } from "./useRecordListGraphQL";
|
|
12
|
-
export type {
|
|
13
|
-
UseRecordListGraphQLReturn,
|
|
14
|
-
UseRecordListGraphQLOptions,
|
|
15
|
-
} from "./useRecordListGraphQL";
|
|
16
|
-
export { useRecordDetailLayout } from "./useRecordDetailLayout";
|
|
17
|
-
export type {
|
|
18
|
-
UseRecordDetailLayoutReturn,
|
|
19
|
-
UseRecordDetailLayoutParams,
|
|
20
|
-
} from "./useRecordDetailLayout";
|
|
21
|
-
export { useObjectInfoBatch } from "./useObjectInfoBatch";
|
|
22
|
-
export type { UseObjectInfoBatchResult } from "./useObjectInfoBatch";
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
// ---------------------------------------------------------------------------
|
|
2
|
-
// Utilities
|
|
3
|
-
// ---------------------------------------------------------------------------
|
|
4
|
-
export { fetchAndValidate, safeEncodePath } from "./apiUtils";
|
|
5
|
-
export type { FetchAndValidateOptions } from "./apiUtils";
|
|
6
|
-
export { createFiltersKey } from "./cacheUtils";
|
|
7
|
-
export { calculateFieldsToFetch, getSafeKey, isValidSalesforceId } from "./recordUtils";
|
|
8
|
-
export {
|
|
9
|
-
getNestedFieldValue,
|
|
10
|
-
getRecordDisplayName,
|
|
11
|
-
toRecordDisplayNameMetadata,
|
|
12
|
-
getDisplayValueForLayoutItem,
|
|
13
|
-
getDisplayValueForDetailField,
|
|
14
|
-
formatAddressFromConstituents,
|
|
15
|
-
formatAddressDisplay,
|
|
16
|
-
formatDateTimeForDisplay,
|
|
17
|
-
isAddressConstituents,
|
|
18
|
-
getAddressPartsFromConstituents,
|
|
19
|
-
extractFieldValue,
|
|
20
|
-
} from "./fieldUtils";
|
|
21
|
-
export type {
|
|
22
|
-
AddressParts,
|
|
23
|
-
LayoutItemDisplayResult,
|
|
24
|
-
RecordDisplayNameMetadata,
|
|
25
|
-
} from "./fieldUtils";
|
|
26
|
-
export { calculateFormData } from "./formDataTransformUtils";
|
|
27
|
-
export type { ObjectInfoMetadata } from "./formDataTransformUtils";
|
|
28
|
-
export { getTransformedSections } from "./layoutTransformUtils";
|
|
29
|
-
export type {
|
|
30
|
-
ObjectInfo,
|
|
31
|
-
ObjectInfoField,
|
|
32
|
-
PicklistOption,
|
|
33
|
-
LayoutTransformContext,
|
|
34
|
-
TransformedLayoutItem,
|
|
35
|
-
TransformedLayoutRow,
|
|
36
|
-
TransformedSection,
|
|
37
|
-
} from "./layoutTransformUtils";
|
|
38
|
-
export { parseFilterValue } from "./filterUtils";
|
|
39
|
-
export { sanitizeFilterValue } from "./sanitizationUtils";
|
|
40
|
-
export { getFormValueByPath, getUniqueErrors, validateRangeValues, isFormError } from "./formUtils";
|
|
41
|
-
export type { FormError } from "./formUtils";
|
|
42
|
-
export {
|
|
43
|
-
PAGE_SIZE_OPTIONS,
|
|
44
|
-
VALID_PAGE_SIZES,
|
|
45
|
-
getValidPageSize,
|
|
46
|
-
isValidPageSize,
|
|
47
|
-
} from "./paginationUtils";
|
|
48
|
-
export { isAllowedLinkUrl, ALLOWED_LINK_PROTOCOLS } from "./linkUtils";
|
|
49
|
-
export { graphQLNodeToSearchResultRecordData } from "./graphQLRecordAdapter";
|
|
50
|
-
export {
|
|
51
|
-
getGraphQLNodeValue,
|
|
52
|
-
getDisplayValueForLayoutItemFromNode,
|
|
53
|
-
getDisplayValueForDetailFieldFromNode,
|
|
54
|
-
getGraphQLRecordDisplayName,
|
|
55
|
-
} from "./graphQLNodeFieldUtils";
|
|
56
|
-
export type {
|
|
57
|
-
GraphQLRecordDisplayNameMetadata,
|
|
58
|
-
ObjectMetadataForDisplay,
|
|
59
|
-
} from "./graphQLNodeFieldUtils";
|