@contentful/experiences-core 3.8.3-dev-20251010T1235-2d92513.0 → 3.8.3-dev-20251013T1057-2d4f2cd.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 (62) hide show
  1. package/dist/{constants.cjs → cjs/constants.cjs} +2 -0
  2. package/dist/cjs/constants.cjs.map +1 -0
  3. package/dist/{index.cjs → cjs/index.cjs} +129 -127
  4. package/dist/cjs/index.cjs.map +1 -0
  5. package/dist/esm/constants.js.map +1 -0
  6. package/dist/esm/index.js.map +1 -0
  7. package/dist/types/index.d.ts +1675 -0
  8. package/package.json +17 -21
  9. package/dist/communication/sendMessage.d.ts +0 -5
  10. package/dist/constants.cjs.map +0 -1
  11. package/dist/constants.js.map +0 -1
  12. package/dist/deep-binding/DeepReference.d.ts +0 -44
  13. package/dist/definitions/styles.d.ts +0 -11
  14. package/dist/entity/EditorEntityStore.d.ts +0 -34
  15. package/dist/entity/EditorModeEntityStore.d.ts +0 -28
  16. package/dist/entity/EntityStore.d.ts +0 -99
  17. package/dist/entity/EntityStoreBase.d.ts +0 -53
  18. package/dist/entity/InMemoryEntitiesPublicApi.d.ts +0 -41
  19. package/dist/entity/InMemoryEntitiesStore.d.ts +0 -17
  20. package/dist/enums.d.ts +0 -6
  21. package/dist/exports.d.ts +0 -3
  22. package/dist/fetchers/createExperience.d.ts +0 -25
  23. package/dist/fetchers/fetchAllEntities.d.ts +0 -30
  24. package/dist/fetchers/fetchById.d.ts +0 -24
  25. package/dist/fetchers/fetchBySlug.d.ts +0 -24
  26. package/dist/fetchers/fetchExperienceEntry.d.ts +0 -30
  27. package/dist/fetchers/fetchReferencedEntities.d.ts +0 -28
  28. package/dist/fetchers/gatherAutoFetchedReferentsFromIncludes.d.ts +0 -11
  29. package/dist/index.cjs.map +0 -1
  30. package/dist/index.d.ts +0 -42
  31. package/dist/index.js.map +0 -1
  32. package/dist/registries/breakpointsRegistry.d.ts +0 -43
  33. package/dist/registries/designTokenRegistry.d.ts +0 -13
  34. package/dist/registries/sdkOptionsRegistry.d.ts +0 -11
  35. package/dist/types.d.ts +0 -630
  36. package/dist/utils/breakpoints.d.ts +0 -26
  37. package/dist/utils/components.d.ts +0 -17
  38. package/dist/utils/debugLogger.d.ts +0 -36
  39. package/dist/utils/domValues.d.ts +0 -16
  40. package/dist/utils/extractPrebindingData.d.ts +0 -46
  41. package/dist/utils/isLink.d.ts +0 -7
  42. package/dist/utils/isLinkToAsset.d.ts +0 -5
  43. package/dist/utils/isLinkToEntry.d.ts +0 -5
  44. package/dist/utils/localizeEntity.d.ts +0 -24
  45. package/dist/utils/pathSchema.d.ts +0 -43
  46. package/dist/utils/resolveHyperlinkPattern.d.ts +0 -17
  47. package/dist/utils/sanitizeNodeProps.d.ts +0 -7
  48. package/dist/utils/schema/experienceSchema.d.ts +0 -23
  49. package/dist/utils/schema/references.d.ts +0 -18
  50. package/dist/utils/splitDirectAndSlotChildren.d.ts +0 -12
  51. package/dist/utils/styleUtils/ssrStyles.d.ts +0 -75
  52. package/dist/utils/styleUtils/styleTransformers.d.ts +0 -6
  53. package/dist/utils/styleUtils/stylesUtils.d.ts +0 -64
  54. package/dist/utils/styleUtils/toMediaQuery.d.ts +0 -15
  55. package/dist/utils/transformers/transformBoundContentValue.d.ts +0 -8
  56. package/dist/utils/treeTraversal.d.ts +0 -17
  57. package/dist/utils/typeguards.d.ts +0 -15
  58. package/dist/utils/utils.d.ts +0 -32
  59. package/dist/utils/validations.d.ts +0 -11
  60. package/dist/{constants.js → esm/constants.js} +0 -0
  61. package/dist/{index.js → esm/index.js} +127 -127
  62. /package/dist/{constants.d.ts → types/constants.d.ts} +0 -0
@@ -1,28 +0,0 @@
1
- import { ExperienceEntry } from '../types.js';
2
- import { Entry, Asset, ContentfulClientApi } from 'contentful';
3
-
4
- type ClientAndLocaleParams = {
5
- client: ContentfulClientApi<undefined>;
6
- locale?: string;
7
- } | {
8
- client: ContentfulClientApi<'WITH_ALL_LOCALES'>;
9
- /** When fetching all locales, this may not be defined */
10
- locale?: undefined;
11
- };
12
- type FetchReferencedEntitiesArgs = {
13
- experienceEntry: Entry | ExperienceEntry;
14
- } & ClientAndLocaleParams;
15
- /**
16
- * Fetches all entries and assets from the `dataSource` of the given experience entry. This will
17
- * also consider deep references that are not listed explicitly but linked through deep binding paths.
18
- * @param options.client - Instantiated client from the Contentful SDK. If this is using the `withAllLocales` modifier, you may not provide a specific locale.
19
- * @param options.experienceEntry - Localized experience entry. To localize a multi locale entry, use the `localizeEntity` function.
20
- * @param options.locale - Retrieve a specific localized version of the referenced entities. Otherwise, it will fallback to the default locale.
21
- * @returns object with a list of `entries` and a list of `assets`
22
- */
23
- declare const fetchReferencedEntities: ({ client, experienceEntry, locale, }: FetchReferencedEntitiesArgs) => Promise<{
24
- entries: Entry[];
25
- assets: Asset[];
26
- }>;
27
-
28
- export { fetchReferencedEntities };
@@ -1,11 +0,0 @@
1
- import { Entry, Asset } from 'contentful';
2
-
3
- type MinimalEntryCollection = {
4
- items: Entry[];
5
- includes: {
6
- Entry: Entry[];
7
- Asset: Asset[];
8
- };
9
- };
10
-
11
- export type { MinimalEntryCollection };