@salesforce/ui-bundle-template-app-react-template-b2e 11.68.4 → 11.68.6
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/uiBundles/reactinternalapp/package.json +4 -4
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/search/adapters/cms/api/searchableContentTypesService.ts +9 -6
- package/dist/force-app/main/default/uiBundles/reactinternalapp/src/features/search/adapters/cms/contentTypeUtils.ts +7 -5
- package/dist/package-lock.json +2 -2
- package/dist/package.json +1 -1
- package/package.json +1 -1
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
|
+
## [11.68.6](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.68.5...v11.68.6) (2026-08-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [11.68.5](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.68.4...v11.68.5) (2026-08-24)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
## [11.68.4](https://github.com/salesforce-experience-platform-emu/webapps/compare/v11.68.3...v11.68.4) (2026-08-24)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @salesforce/ui-bundle-template-base-sfdx-project
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"graphql:schema": "node scripts/get-graphql-schema.mjs"
|
|
19
19
|
},
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@salesforce/platform-sdk": "^11.68.
|
|
22
|
-
"@salesforce/ui-bundle": "^11.68.
|
|
21
|
+
"@salesforce/platform-sdk": "^11.68.6",
|
|
22
|
+
"@salesforce/ui-bundle": "^11.68.6",
|
|
23
23
|
"@tailwindcss/vite": "^4.1.17",
|
|
24
24
|
"class-variance-authority": "^0.7.1",
|
|
25
25
|
"clsx": "^2.1.1",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
"@graphql-eslint/eslint-plugin": "^4.1.0",
|
|
46
46
|
"@graphql-tools/utils": "^11.0.0",
|
|
47
47
|
"@playwright/test": "^1.49.0",
|
|
48
|
-
"@salesforce/graphiti": "^11.68.
|
|
49
|
-
"@salesforce/vite-plugin-ui-bundle": "^11.68.
|
|
48
|
+
"@salesforce/graphiti": "^11.68.6",
|
|
49
|
+
"@salesforce/vite-plugin-ui-bundle": "^11.68.6",
|
|
50
50
|
"@testing-library/jest-dom": "^6.6.3",
|
|
51
51
|
"@testing-library/react": "^16.1.0",
|
|
52
52
|
"@testing-library/user-event": "^14.5.2",
|
|
@@ -60,13 +60,16 @@ function isSearchable(entry: RawContentTypeEntry): boolean {
|
|
|
60
60
|
return true;
|
|
61
61
|
}
|
|
62
62
|
|
|
63
|
-
/**
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
* `isValidCmsFqn`.
|
|
68
|
-
*/
|
|
63
|
+
/** ManagedContentType key prefix — the `id` custom content types carry instead of an FQN. */
|
|
64
|
+
const CONTENT_TYPE_RECORD_ID_PATTERN = /^0T1[a-zA-Z0-9]{12,15}$/;
|
|
65
|
+
|
|
66
|
+
/** Extracts the prefixed FQN from an entry, rebuilding `c__<name>` when `id` is a custom-type record id. */
|
|
69
67
|
function entryFqn(entry: RawContentTypeEntry): string | undefined {
|
|
68
|
+
// Custom types put a ManagedContentType id in `id`; the FQN the GraphQL filter
|
|
69
|
+
// accepts is `c__<name>`.
|
|
70
|
+
if (entry.id && CONTENT_TYPE_RECORD_ID_PATTERN.test(entry.id)) {
|
|
71
|
+
return entry.name ? `c__${entry.name}` : undefined;
|
|
72
|
+
}
|
|
70
73
|
return entry.id ?? entry.contentType ?? entry.fqn ?? entry.developerName;
|
|
71
74
|
}
|
|
72
75
|
|
|
@@ -8,21 +8,23 @@
|
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
10
|
* Formats a CMS content type FQN into a human-readable label.
|
|
11
|
-
* Strips "sfdc_cms__" prefix, splits camelCase, title-cases each word.
|
|
11
|
+
* Strips the "sfdc_cms__" (OOTB) or "c__" (custom) prefix, splits camelCase, title-cases each word.
|
|
12
12
|
*
|
|
13
13
|
* Examples:
|
|
14
14
|
* "sfdc_cms__blogPost" → "Blog Post"
|
|
15
15
|
* "sfdc_cms__news" → "News"
|
|
16
|
-
* "
|
|
17
|
-
* "
|
|
16
|
+
* "c__NewsArticle" → "News Article"
|
|
17
|
+
* "c__Recipe" → "Recipe"
|
|
18
18
|
*/
|
|
19
19
|
export function formatContentTypeLabel(fqn: string): string {
|
|
20
|
-
const stripped = fqn.replace(/^sfdc_cms__/, "");
|
|
20
|
+
const stripped = fqn.replace(/^(?:sfdc_cms__|c__)/, "");
|
|
21
21
|
const words = stripped.replace(/([a-z])([A-Z])/g, "$1 $2");
|
|
22
22
|
return words.charAt(0).toUpperCase() + words.slice(1);
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
// OOTB content types are namespaced `sfdc_cms__<name>`; custom types created in
|
|
26
|
+
// a namespace-less org take the default `c__<name>` prefix. Both are valid FQNs.
|
|
27
|
+
export const CMS_FQN_PATTERN = /^(?:sfdc_cms__|c__)[a-zA-Z][a-zA-Z0-9]{0,39}$/;
|
|
26
28
|
|
|
27
29
|
export function isValidCmsFqn(fqn: string): boolean {
|
|
28
30
|
return CMS_FQN_PATTERN.test(fqn);
|
package/dist/package-lock.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
3
|
-
"version": "11.68.
|
|
3
|
+
"version": "11.68.6",
|
|
4
4
|
"lockfileVersion": 3,
|
|
5
5
|
"requires": true,
|
|
6
6
|
"packages": {
|
|
7
7
|
"": {
|
|
8
8
|
"name": "@salesforce/ui-bundle-template-base-sfdx-project",
|
|
9
|
-
"version": "11.68.
|
|
9
|
+
"version": "11.68.6",
|
|
10
10
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"fast-xml-parser": "^5.9.3",
|
package/dist/package.json
CHANGED