@salesforce/ui-bundle-features 11.51.0 → 11.53.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.
Files changed (2) hide show
  1. package/dist/features.json +57 -0
  2. package/package.json +1 -1
@@ -1,5 +1,62 @@
1
1
  {
2
2
  "features": {
3
+ "cms-toolkit": {
4
+ "name": "CMS Toolkit",
5
+ "package": "@salesforce/ui-bundle-template-feature-cms-toolkit",
6
+ "shortDescription": "Framework-agnostic APIs for reading Salesforce CMS delivery content (by public URL or contentKey, single or bulk) and decoding RichText.",
7
+ "longDescription": "Pure TypeScript library — no React/Angular/Vue — for reading Salesforce CMS delivery content. Provides unauthenticated public-URL reads (public CDN), authenticated by-contentKey reads (single and bulk) via the Connect API, CMS image-field URL resolution, RichText HTML-entity decoding, catalog-driven channel resolution, and source→target contentKey remapping (so one build runs against any org without re-baking keys). Consumers call the exported functions directly from their own framework pages; framework-specific renderers live in the consuming app, not here. The public surface is additive-only: new capability arrives as new optional options, new named exports, or new error subclasses — never as a changed signature.",
8
+ "keywords": [
9
+ "cms",
10
+ "content",
11
+ "delivery",
12
+ "richtext",
13
+ "connect api",
14
+ "contentKey",
15
+ "channel",
16
+ "image",
17
+ "framework-agnostic"
18
+ ],
19
+ "featureDependencies": [],
20
+ "packageDependencies": {
21
+ "@salesforce/platform-sdk": "^11.51.0",
22
+ "@salesforce/ui-bundle": "^11.51.0"
23
+ },
24
+ "copy": [
25
+ {
26
+ "from": "src/force-app/main/default/uiBundles/feature-cms-toolkit/src/features/cmsToolkit",
27
+ "to": "<uiBundleDir>/src/features/cmsToolkit",
28
+ "description": "CMS delivery API (public + authenticated Connect transports), catalog loader, image URL and RichText decode utilities, and shared types"
29
+ },
30
+ {
31
+ "from": "src/force-app/main/default/uiBundles/feature-cms-toolkit/src/index.ts",
32
+ "to": "<uiBundleDir>/src/__example__index.ts",
33
+ "description": "Barrel of public exports — re-export the functions and types you need from your own app entry point",
34
+ "integrationTarget": "src/index.ts"
35
+ }
36
+ ],
37
+ "features": [
38
+ "getCmsContentByUrl — read a public CMS delivery URL (unauthenticated CDN)",
39
+ "getCmsContentByKey — read one item by contentKey via the authenticated Connect API (throws on miss)",
40
+ "getCmsContentByKeys — bulk read many contentKeys in one call (best-effort; per-key error/result)",
41
+ "resolveCmsImageUrl — resolve a CMS image field to a loadable URL (external or root-relative, origin-prefixed)",
42
+ "resolveEffectiveContentKey — remap a baked-in source contentKey to the deployed org's target key via the catalog",
43
+ "getCmsDefaultChannelId — read the catalog's default channelId (fail-open; undefined when absent)",
44
+ "decodeRichHtmlEntities — decode entity-encoded RichText to literal characters before sanitize + injection",
45
+ "getCmsInstanceOrigin — read the instance origin used to prefix root-relative media URLs",
46
+ "Catalog loader — fail-open, fetch-once channelId and contentKey-map resolution from content-metadata.json",
47
+ "Typed error subclasses (CmsDeliveryError, CmsDeliveryNotFoundError, ConnectApiError, CmsNotFoundError) stable for instanceof checks"
48
+ ],
49
+ "components": [
50
+ "getCmsContentByUrl / getCmsContentByKey / getCmsContentByKeys - CMS delivery read functions",
51
+ "resolveCmsImageUrl - CMS image field → loadable URL resolver",
52
+ "resolveEffectiveContentKey - catalog source→target contentKey remapper",
53
+ "getCmsDefaultChannelId - catalog default channelId accessor (fail-open)",
54
+ "decodeRichHtmlEntities - RichText HTML-entity decoder (single pass, no DOM)",
55
+ "getCmsInstanceOrigin - instance origin accessor for media prefixing",
56
+ "CmsReadOptions / CmsImageOptions / CmsBulkResult / CmsContentBody / CmsImageField / CmsContentCatalog - shared types",
57
+ "CmsDeliveryError / CmsDeliveryNotFoundError / ConnectApiError / CmsNotFoundError - typed errors"
58
+ ]
59
+ },
3
60
  "authentication": {
4
61
  "name": "Authentication",
5
62
  "package": "@salesforce/ui-bundle-template-feature-react-authentication",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/ui-bundle-features",
3
- "version": "11.51.0",
3
+ "version": "11.53.0",
4
4
  "description": "CLI tool for searching and installing UI features into Salesforce UI Bundles",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "type": "module",