@contentful/experiences-core 1.5.1-dev-20240520T1909-2445893.0 → 1.5.1-dev-20240523T1657-027f2ca.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/README.md +8 -8
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
# @contentful/experiences-core
|
|
2
2
|
|
|
3
3
|
### Purpose
|
|
4
|
-
- To contain shared code and utilities across the
|
|
4
|
+
- To contain shared code and utilities across the Experiences packages such as constants, types, transformers, and hooks.
|
|
5
5
|
- This means additions to core should be framework agnostic. For example, code that is only compatible with React does not belong in the core package.
|
|
6
6
|
|
|
7
7
|
### Concepts
|
|
8
|
-
- **Deep binding**: Relates to the ability to resolve
|
|
8
|
+
- **Deep binding**: Relates to the ability to resolve multiple references. Such an entry containing a reference to another entry which may also contain a reference to another entry and so on.
|
|
9
9
|
- **Component definition** Baseline definition to outline what is needed to define all component types whether it is a structure, built-in, or custom component.
|
|
10
|
-
- **Entity**: Contentful entries that get converted into an experience object that can be used within the
|
|
11
|
-
- **Fetchers**: The helper classes and functions in the Entity directory get consumed by the fetchers which get bundled up into either `fetchBySlug` or `fetchById`. The listed fetchers are the two main functions that are exposed to the end user in the
|
|
12
|
-
- **Registries**: An in
|
|
10
|
+
- **Entity**: Contentful entries that get converted into an experience object that can be used within the experiences packages.
|
|
11
|
+
- **Fetchers**: The helper classes and functions in the Entity directory get consumed by the fetchers which get bundled up into either `fetchBySlug` or `fetchById`. The listed fetchers are the two main functions that are exposed to the end user in the SDK to fetch a user's experience which is stored in Contentful as an entry.
|
|
12
|
+
- **Registries**: An in-memory storage technique that the user can decide to provide for themselves or other personas in the editor canvas. Design tokens is an useful example where a user can provide their own thematic values with regards to text size, component sizes, spacing, colors, and borders in a JSON format that is resolved by the registry and provided as options in the UI editor sidebar.
|
|
13
13
|
- **Exporting types and constants**: Notice in the `package.json` there is a `typesVersions` definition that separates the constants and types as separated bundled packages where the rollup is defined in the `rollup.config.mjs` file. This effectively means in practice consuming the types and constants have different imports - namely `@contentful/experiences-core/constants` and `@contentful/experiences-core/types`.
|
|
14
14
|
|
|
15
|
-
### Relevant Contentful
|
|
16
|
-
- [Data
|
|
17
|
-
- [Design
|
|
15
|
+
### Relevant Contentful documentation links
|
|
16
|
+
- [Data structures](https://www.contentful.com/developers/docs/experiences/data-structures/)
|
|
17
|
+
- [Design tokens](https://www.contentful.com/developers/docs/experiences/design-tokens/)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@contentful/experiences-core",
|
|
3
|
-
"version": "1.5.1-dev-
|
|
3
|
+
"version": "1.5.1-dev-20240523T1657-027f2ca.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -65,11 +65,11 @@
|
|
|
65
65
|
"vitest": "^1.0.4"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@contentful/experiences-validators": "1.5.1-dev-
|
|
68
|
+
"@contentful/experiences-validators": "1.5.1-dev-20240523T1657-027f2ca.0",
|
|
69
69
|
"@contentful/rich-text-types": "^16.3.0"
|
|
70
70
|
},
|
|
71
71
|
"peerDependencies": {
|
|
72
72
|
"contentful": ">=10.6.0"
|
|
73
73
|
},
|
|
74
|
-
"gitHead": "
|
|
74
|
+
"gitHead": "027f2caa3d13fbb355aed40875bfdc8f439ed143"
|
|
75
75
|
}
|