@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.
@@ -0,0 +1,6 @@
1
+ interface Experience<T = any> {
2
+ hyperlinkPattern?: string;
3
+ entityStore?: T;
4
+ }
5
+
6
+ export type { Experience };
package/dist/types.d.ts CHANGED
@@ -1,6 +1,5 @@
1
1
  import { Entry, Asset, AssetFile, ChainModifiers } from 'contentful';
2
2
  import { SCROLL_STATES, OUTGOING_EVENTS, INCOMING_EVENTS, INTERNAL_EVENTS } from './constants.js';
3
- import { EntityStore } from './entity/EntityStore.js';
4
3
  import { Document } from '@contentful/rich-text-types';
5
4
  import { ComponentDefinitionPropertyType, ComponentPropertyValue, ExperienceDataSource, ExperienceUnboundValues, Breakpoint, ExperienceComponentTree, ExperienceUsedComponents, ExperienceComponentSettings, ValuesByBreakpoint, PrimitiveValue } from '@contentful/experiences-validators';
6
5
  export { BoundValue, Breakpoint, ComponentDefinitionPropertyType as ComponentDefinitionVariableType, ComponentPropertyValue, ComponentTreeNode, ComponentValue, DesignValue, ExperienceComponentSettings, ExperienceDataSource, ExperienceUnboundValues, PrimitiveValue, SchemaVersions, UnboundValue, ValuesByBreakpoint } from '@contentful/experiences-validators';
@@ -282,7 +281,7 @@ interface HoveredElement {
282
281
  nodeId: string | undefined;
283
282
  blockId: string | undefined;
284
283
  }
285
- interface Experience<T extends EntityStore = EntityStore> {
284
+ interface Experience<T = unknown> {
286
285
  hyperlinkPattern?: string;
287
286
  entityStore?: T;
288
287
  }
@@ -1,6 +1,7 @@
1
1
  import { Entry, Asset } from 'contentful/dist/types/types';
2
2
  import { ComponentPropertyValue, ExperienceUnboundValues, ExperienceDataSource, ExperienceComponentSettings } from '@contentful/experiences-validators';
3
- import { Experience, StyleProps, DesignTokensDefinition } from '../../types.js';
3
+ import { StyleProps, DesignTokensDefinition } from '../../types.js';
4
+ import { Experience } from '../../types/Experience.js';
4
5
 
5
6
  type FlattenedDesignTokens = Record<string, string | {
6
7
  width?: string;
@@ -1,6 +1,6 @@
1
1
  import { ResolveDesignValueType, ComponentDefinitionVariable, BoundComponentPropertyTypes } from '../../types.js';
2
- import { UnresolvedLink } from 'contentful';
3
2
  import { EntityStoreBase } from '../../entity/EntityStoreBase.js';
3
+ import { UnresolvedLink } from 'contentful';
4
4
  import { ComponentTreeNode } from '@contentful/experiences-validators';
5
5
 
6
6
  declare const transformBoundContentValue: (variables: ComponentTreeNode["variables"], entityStore: EntityStoreBase, binding: UnresolvedLink<"Entry" | "Asset">, resolveDesignValue: ResolveDesignValueType, variableName: string, variableDefinition: ComponentDefinitionVariable, path: string) => BoundComponentPropertyTypes;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-core",
3
- "version": "1.28.0-dev-20250115T1128-04df9c2.0",
3
+ "version": "1.28.0-prerelease-20250115T2332-646080a.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
@@ -69,11 +69,11 @@
69
69
  "vitest": "^2.1.1"
70
70
  },
71
71
  "dependencies": {
72
- "@contentful/experiences-validators": "1.28.0-dev-20250115T1128-04df9c2.0",
72
+ "@contentful/experiences-validators": "1.28.0-prerelease-20250115T2332-646080a.0",
73
73
  "@contentful/rich-text-types": "^17.0.0"
74
74
  },
75
75
  "peerDependencies": {
76
76
  "contentful": ">=10.6.0"
77
77
  },
78
- "gitHead": "b84e927d40607dcd4c72b4bcac3a66d3a120c9d2"
78
+ "gitHead": "9f98c937e5e866a910a38ad5c4e085996ed4f6e5"
79
79
  }