@ebitex/content-sdk 0.22.201 → 1.0.213
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/README.md +21 -0
- package/package.json +13 -2
package/README.md
CHANGED
|
@@ -13,6 +13,27 @@ Two entry points:
|
|
|
13
13
|
`<PresentationList>`, `<RichText>`, `<Resolve>`, and a guiding fallback for every Presentation
|
|
14
14
|
that cannot be rendered. React is a peer dependency, never bundled.
|
|
15
15
|
|
|
16
|
+
## Why use this instead of calling the API yourself
|
|
17
|
+
|
|
18
|
+
A site that writes its own `fetch` code against the Delivery API owns everything below, and none of it
|
|
19
|
+
shows until something breaks. This package is the maintained version of all of it:
|
|
20
|
+
|
|
21
|
+
- **Every endpoint, typed**, kept in step with the API: path resolution, components, streams and facets,
|
|
22
|
+
media and response parsing.
|
|
23
|
+
- **Sitemaps.** `buildSitemapDocuments` (`@ebitex/content-sdk/sitemap`) shards at the protocol limits,
|
|
24
|
+
writes the index and emits `hreflang` alternates, so you do not join URLs by hand.
|
|
25
|
+
- **Live preview and click-to-edit.** `@ebitex/content-sdk/preview` is the receiver, overlay and pins. It
|
|
26
|
+
needs the annotated responses of a preview session, which a client that parses only the fields it
|
|
27
|
+
renders throws away.
|
|
28
|
+
- **Locale addressing.** Addresses arrive already carrying their language under the path-prefix and
|
|
29
|
+
locale-host strategies. A client that adds its own prefix doubles it.
|
|
30
|
+
- **Caching and references.** A cache with the right keys, and `resolve` handling so a delivered
|
|
31
|
+
Presentation is never a hollow reference.
|
|
32
|
+
|
|
33
|
+
Moving a hand-written client over can be done a step at a time, keeping your own renderers: see
|
|
34
|
+
[Replace a hand-written client](https://developers.ebitex.io/guides/replace-a-hand-written-client/).
|
|
35
|
+
For .NET, use `Ebitex.Content.Delivery`.
|
|
36
|
+
|
|
16
37
|
A **browser-safe** delivery key (one with an allowed-origins or allowed-IP-ranges restriction) may
|
|
17
38
|
ship in a bundle. A key with neither restriction is a **server-side key** and must never reach a
|
|
18
39
|
browser. Create either in Content → Delivery.
|
package/package.json
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ebitex/content-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "1.0.213",
|
|
4
|
+
"description": "The client for the ebitex Content Delivery API: typed endpoints, React rendering, sitemaps, live preview and locale addressing, so a site does not maintain its own.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"ebitex",
|
|
7
|
+
"cms",
|
|
8
|
+
"headless-cms",
|
|
9
|
+
"content-delivery-api",
|
|
10
|
+
"delivery-api",
|
|
11
|
+
"nextjs",
|
|
12
|
+
"react",
|
|
13
|
+
"sitemap",
|
|
14
|
+
"live-preview"
|
|
15
|
+
],
|
|
5
16
|
"license": "Apache-2.0",
|
|
6
17
|
"homepage": "https://developers.ebitex.io/reference/content-sdk/",
|
|
7
18
|
"type": "module",
|