@contentful/experiences-core 3.8.2 → 3.8.3-beta.1
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/{constants.cjs → cjs/constants.cjs} +2 -0
- package/dist/cjs/constants.cjs.map +1 -0
- package/dist/{index.cjs → cjs/index.cjs} +129 -127
- package/dist/cjs/index.cjs.map +1 -0
- package/dist/esm/constants.js.map +1 -0
- package/dist/esm/index.js.map +1 -0
- package/dist/types/index.d.ts +1675 -0
- package/package.json +17 -21
- package/dist/communication/sendMessage.d.ts +0 -5
- package/dist/constants.cjs.map +0 -1
- package/dist/constants.js.map +0 -1
- package/dist/deep-binding/DeepReference.d.ts +0 -44
- package/dist/definitions/styles.d.ts +0 -11
- package/dist/entity/EditorEntityStore.d.ts +0 -34
- package/dist/entity/EditorModeEntityStore.d.ts +0 -28
- package/dist/entity/EntityStore.d.ts +0 -99
- package/dist/entity/EntityStoreBase.d.ts +0 -53
- package/dist/entity/InMemoryEntitiesPublicApi.d.ts +0 -41
- package/dist/entity/InMemoryEntitiesStore.d.ts +0 -17
- package/dist/enums.d.ts +0 -6
- package/dist/exports.d.ts +0 -3
- package/dist/fetchers/createExperience.d.ts +0 -25
- package/dist/fetchers/fetchAllEntities.d.ts +0 -30
- package/dist/fetchers/fetchById.d.ts +0 -24
- package/dist/fetchers/fetchBySlug.d.ts +0 -24
- package/dist/fetchers/fetchExperienceEntry.d.ts +0 -30
- package/dist/fetchers/fetchReferencedEntities.d.ts +0 -28
- package/dist/fetchers/gatherAutoFetchedReferentsFromIncludes.d.ts +0 -11
- package/dist/index.cjs.map +0 -1
- package/dist/index.d.ts +0 -42
- package/dist/index.js.map +0 -1
- package/dist/registries/breakpointsRegistry.d.ts +0 -43
- package/dist/registries/designTokenRegistry.d.ts +0 -13
- package/dist/registries/sdkOptionsRegistry.d.ts +0 -11
- package/dist/types.d.ts +0 -630
- package/dist/utils/breakpoints.d.ts +0 -26
- package/dist/utils/components.d.ts +0 -17
- package/dist/utils/debugLogger.d.ts +0 -36
- package/dist/utils/domValues.d.ts +0 -16
- package/dist/utils/extractPrebindingData.d.ts +0 -46
- package/dist/utils/isLink.d.ts +0 -7
- package/dist/utils/isLinkToAsset.d.ts +0 -5
- package/dist/utils/isLinkToEntry.d.ts +0 -5
- package/dist/utils/localizeEntity.d.ts +0 -24
- package/dist/utils/pathSchema.d.ts +0 -43
- package/dist/utils/resolveHyperlinkPattern.d.ts +0 -17
- package/dist/utils/sanitizeNodeProps.d.ts +0 -7
- package/dist/utils/schema/experienceSchema.d.ts +0 -23
- package/dist/utils/schema/references.d.ts +0 -18
- package/dist/utils/splitDirectAndSlotChildren.d.ts +0 -12
- package/dist/utils/styleUtils/ssrStyles.d.ts +0 -75
- package/dist/utils/styleUtils/styleTransformers.d.ts +0 -6
- package/dist/utils/styleUtils/stylesUtils.d.ts +0 -64
- package/dist/utils/styleUtils/toMediaQuery.d.ts +0 -15
- package/dist/utils/transformers/transformBoundContentValue.d.ts +0 -8
- package/dist/utils/treeTraversal.d.ts +0 -17
- package/dist/utils/typeguards.d.ts +0 -15
- package/dist/utils/utils.d.ts +0 -32
- package/dist/utils/validations.d.ts +0 -11
- package/dist/{constants.js → esm/constants.js} +0 -0
- package/dist/{index.js → esm/index.js} +127 -127
- /package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { Breakpoint } from '@contentful/experiences-validators';
|
|
2
|
-
|
|
3
|
-
declare const breakpointsRegistry: Breakpoint[];
|
|
4
|
-
/**
|
|
5
|
-
* Define custom breakpoints that should be used for all your experiences.
|
|
6
|
-
* A breakpoint consists of:
|
|
7
|
-
* - id: a unique identifier for this breakpoint
|
|
8
|
-
* - query: a media query string that defines when this breakpoint is active
|
|
9
|
-
* - previewSize: an optional fixed preview size to be used in the Studio editor when selecting this breakpoint
|
|
10
|
-
* - displayName: the name to be displayed in the Studio editor for this breakpoint
|
|
11
|
-
* - displayIcon: an optional icon to be displayed in the Studio editor for this breakpoint
|
|
12
|
-
*
|
|
13
|
-
* The first breakpoint must use a wildcard query (`*`) to match all sizes.
|
|
14
|
-
*
|
|
15
|
-
* Every subsequent breakpoint inherits the designs of the previous ones by default.
|
|
16
|
-
*
|
|
17
|
-
* The order of breakpoints must be either:
|
|
18
|
-
* - desktop first: from largest to smallest, using `<` operators
|
|
19
|
-
* - mobile first: from smallest to largest, using `>` operators
|
|
20
|
-
*
|
|
21
|
-
* @note changing breakpoints after you have created experiences may break those experiences
|
|
22
|
-
* @example
|
|
23
|
-
* defineBreakpoints([{
|
|
24
|
-
* id: 'desktop',
|
|
25
|
-
* query: '*',
|
|
26
|
-
* displayName: 'Desktop',
|
|
27
|
-
* displayIcon: 'desktop',
|
|
28
|
-
* }, {
|
|
29
|
-
* id: 'tablet',
|
|
30
|
-
* query: '<992px',
|
|
31
|
-
* displayName: 'Tablet',
|
|
32
|
-
* displayIcon: 'tablet',
|
|
33
|
-
* }, {
|
|
34
|
-
* id: 'mobile',
|
|
35
|
-
* query: '<576px',
|
|
36
|
-
* displayName: 'Mobile',
|
|
37
|
-
* displayIcon: 'mobile',
|
|
38
|
-
* }]);
|
|
39
|
-
*/
|
|
40
|
-
declare const defineBreakpoints: (breakpoints: Breakpoint[]) => void;
|
|
41
|
-
declare const runBreakpointsValidation: () => void;
|
|
42
|
-
|
|
43
|
-
export { breakpointsRegistry, defineBreakpoints, runBreakpointsValidation };
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { DesignTokensDefinition } from '../types.js';
|
|
2
|
-
|
|
3
|
-
declare let designTokensRegistry: DesignTokensDefinition;
|
|
4
|
-
/**
|
|
5
|
-
* Register design tokens styling
|
|
6
|
-
* @param designTokenDefinition - {[key:string]: Record<string, string>}
|
|
7
|
-
* @returns void
|
|
8
|
-
*/
|
|
9
|
-
declare const defineDesignTokens: (designTokenDefinition: DesignTokensDefinition) => void;
|
|
10
|
-
declare const getDesignTokenRegistration: (breakpointValue: string, variableName: string) => string;
|
|
11
|
-
declare const resetDesignTokenRegistry: () => void;
|
|
12
|
-
|
|
13
|
-
export { defineDesignTokens, designTokensRegistry, getDesignTokenRegistration, resetDesignTokenRegistry };
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { SdkOptions } from '../types.js';
|
|
2
|
-
|
|
3
|
-
declare const sdkOptionsRegistry: SdkOptions;
|
|
4
|
-
/**
|
|
5
|
-
* Used inside defineComponents to forward registry arguments to this registry
|
|
6
|
-
* of SDK options.
|
|
7
|
-
*/
|
|
8
|
-
declare const defineSdkOptions: (options: typeof sdkOptionsRegistry) => void;
|
|
9
|
-
declare const getSdkOptions: () => Readonly<typeof sdkOptionsRegistry>;
|
|
10
|
-
|
|
11
|
-
export { defineSdkOptions, getSdkOptions, sdkOptionsRegistry };
|