@contentful/experiences-core 1.28.0-dev-20250115T1128-04df9c2.0 → 1.28.0-prerelease-20250115T2332-646080a.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/fetchers/createExperience.d.ts +3 -4
- package/dist/fetchers/fetchById.d.ts +2 -3
- package/dist/fetchers/fetchBySlug.d.ts +2 -3
- package/dist/index.d.ts +5 -5
- package/dist/index.js +1112 -1110
- package/dist/index.js.map +1 -1
- package/dist/types/Experience.d.ts +6 -0
- package/dist/types.d.ts +1 -2
- package/dist/utils/styleUtils/ssrStyles.d.ts +2 -1
- package/dist/utils/transformers/transformBoundContentValue.d.ts +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Entry, Asset } from 'contentful';
|
|
2
|
-
import { Experience } from '../types.js';
|
|
3
|
-
import { EntityStore } from '../entity/EntityStore.js';
|
|
2
|
+
import { Experience } from '../types/Experience.js';
|
|
4
3
|
|
|
5
4
|
type createExperienceArgs = {
|
|
6
5
|
experienceEntry: Entry;
|
|
@@ -12,7 +11,7 @@ type createExperienceArgs = {
|
|
|
12
11
|
* Create an experience instance
|
|
13
12
|
* @param {string} json - JSON representation of the experience
|
|
14
13
|
*/
|
|
15
|
-
declare function createExperience(json: string): Experience
|
|
16
|
-
declare function createExperience(args: createExperienceArgs): Experience
|
|
14
|
+
declare function createExperience(json: string): Experience;
|
|
15
|
+
declare function createExperience(args: createExperienceArgs): Experience;
|
|
17
16
|
|
|
18
17
|
export { createExperience };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Experience } from '../types.js';
|
|
1
|
+
import { Experience } from '../types/Experience.js';
|
|
2
2
|
import { ContentfulClientApi } from 'contentful';
|
|
3
|
-
import { EntityStore } from '../entity/EntityStore.js';
|
|
4
3
|
|
|
5
4
|
type FetchByIdParams = {
|
|
6
5
|
/** instantiated client from the Contentful SDK */
|
|
@@ -18,6 +17,6 @@ type FetchByIdParams = {
|
|
|
18
17
|
* Fetches an experience object by its id
|
|
19
18
|
* @param {FetchByIdParams} options - options to fetch the experience
|
|
20
19
|
*/
|
|
21
|
-
declare function fetchById({ client, experienceTypeId, id, localeCode, isEditorMode, }: FetchByIdParams): Promise<Experience<
|
|
20
|
+
declare function fetchById({ client, experienceTypeId, id, localeCode, isEditorMode, }: FetchByIdParams): Promise<Experience<any> | undefined>;
|
|
22
21
|
|
|
23
22
|
export { fetchById };
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { Experience } from '../types.js';
|
|
1
|
+
import { Experience } from '../types/Experience.js';
|
|
2
2
|
import { ContentfulClientApi } from 'contentful';
|
|
3
|
-
import { EntityStore } from '../entity/EntityStore.js';
|
|
4
3
|
|
|
5
4
|
type FetchBySlugParams = {
|
|
6
5
|
/** instantiated client from the Contentful SDK */
|
|
@@ -18,6 +17,6 @@ type FetchBySlugParams = {
|
|
|
18
17
|
* Fetches an experience object by its slug
|
|
19
18
|
* @param {FetchBySlugParams} options - options to fetch the experience
|
|
20
19
|
*/
|
|
21
|
-
declare function fetchBySlug({ client, experienceTypeId, slug, localeCode, isEditorMode, }: FetchBySlugParams): Promise<Experience<
|
|
20
|
+
declare function fetchBySlug({ client, experienceTypeId, slug, localeCode, isEditorMode, }: FetchBySlugParams): Promise<Experience<any> | undefined>;
|
|
22
21
|
|
|
23
22
|
export { fetchBySlug };
|
package/dist/index.d.ts
CHANGED
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
export { isComponentAllowedOnRoot, isContentfulComponent, isContentfulStructureComponent, isPatternComponent, isStructureWithRelativeHeight } from './utils/components.js';
|
|
2
2
|
export { findOutermostCoordinates, getElementCoordinates } from './utils/domValues.js';
|
|
3
|
-
export { doesMismatchMessageSchema, tryParseMessage, validateExperienceBuilderConfig } from './utils/validations.js';
|
|
4
|
-
export { buildCfStyles, buildStyleTag, calculateNodeDefaultHeight, toCSSAttribute } from './utils/styleUtils/stylesUtils.js';
|
|
5
|
-
export { detachExperienceStyles, flattenDesignTokenRegistry, indexByBreakpoint, isCfStyleAttribute, maybePopulateDesignTokenValue, resolveBackgroundImageBinding, toCSSString, toMediaQuery } from './utils/styleUtils/ssrStyles.js';
|
|
6
|
-
export { transformBoundContentValue } from './utils/transformers/transformBoundContentValue.js';
|
|
7
|
-
export { checkIsAssembly, checkIsAssemblyDefinition, checkIsAssemblyEntry, checkIsAssemblyNode, generateRandomId, getDataFromTree, getInsertionData, getTargetValueInPixels, parseCSSValue } from './utils/utils.js';
|
|
8
3
|
export { isExperienceEntry } from './utils/typeguards.js';
|
|
9
4
|
export { MEDIA_QUERY_REGEXP, getActiveBreakpointIndex, getFallbackBreakpointIndex, getValueForBreakpoint, isValidBreakpointValue, mediaQueryMatcher } from './utils/breakpoints.js';
|
|
10
5
|
export { isLinkToAsset } from './utils/isLinkToAsset.js';
|
|
@@ -12,6 +7,11 @@ export { isLink } from './utils/isLink.js';
|
|
|
12
7
|
export { Fieldset, UnresolvedFieldset, isDeepPath, lastPathNamedSegmentEq, parseDataSourcePathIntoFieldset, parseDataSourcePathWithL1DeepBindings } from './utils/pathSchema.js';
|
|
13
8
|
export { addLocale, buildTemplate, getTemplateValue, resolveHyperlinkPattern } from './utils/resolveHyperlinkPattern.js';
|
|
14
9
|
export { sanitizeNodeProps } from './utils/sanitizeNodeProps.js';
|
|
10
|
+
export { doesMismatchMessageSchema, tryParseMessage, validateExperienceBuilderConfig } from './utils/validations.js';
|
|
11
|
+
export { buildCfStyles, buildStyleTag, calculateNodeDefaultHeight, toCSSAttribute } from './utils/styleUtils/stylesUtils.js';
|
|
12
|
+
export { transformBoundContentValue } from './utils/transformers/transformBoundContentValue.js';
|
|
13
|
+
export { checkIsAssembly, checkIsAssemblyDefinition, checkIsAssemblyEntry, checkIsAssemblyNode, generateRandomId, getDataFromTree, getInsertionData, getTargetValueInPixels, parseCSSValue } from './utils/utils.js';
|
|
14
|
+
export { detachExperienceStyles, flattenDesignTokenRegistry, indexByBreakpoint, isCfStyleAttribute, maybePopulateDesignTokenValue, resolveBackgroundImageBinding, toCSSString, toMediaQuery } from './utils/styleUtils/ssrStyles.js';
|
|
15
15
|
export { builtInStyles, columnsBuiltInStyles, containerBuiltInStyles, dividerBuiltInStyles, optionalBuiltInStyles, sectionBuiltInStyles, singleColumnBuiltInStyles } from './definitions/styles.js';
|
|
16
16
|
export { EditorModeEntityStore } from './entity/EditorModeEntityStore.js';
|
|
17
17
|
export { EntityStore } from './entity/EntityStore.js';
|