@contentful/experiences-sdk-react 0.0.1-alpha.8 → 0.0.1-beta.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.
@@ -3,6 +3,7 @@ export declare const enrichComponentDefinition: ({ component, definition, option
3
3
  export declare const componentRegistry: Map<string, ComponentRegistration>;
4
4
  export declare const optionalBuiltInComponents: string[];
5
5
  export declare const sendRegisteredComponentsMessage: () => void;
6
+ export declare const runRegisteredComponentValidations: () => void;
6
7
  export declare const sendConnectedEventWithRegisteredComponents: () => void;
7
8
  /**
8
9
  * Registers multiple components and their component definitions at once
@@ -21,3 +22,11 @@ export declare const createAssemblyRegistration: ({ definitionId, definitionName
21
22
  definitionName?: string | undefined;
22
23
  component: ComponentRegistration['component'];
23
24
  }) => ComponentRegistration | undefined;
25
+ /**
26
+ * @deprecated This method is used to maintain the basic component ids (without the prefix 'contentful-') in order to be compatible
27
+ * with experiences created with an older alpha version of the SDK. Components in these experiences should be migrated to use
28
+ * the components with the 'contentful-' prefix. To do so, load the experience in the editor, and replace any older basic components
29
+ * (marked with [OLD] in the UI) with the new components (without the [OLD]). This method (and functionality for the older components)
30
+ * will be removed in the next major release.
31
+ */
32
+ export declare const maintainBasicComponentIdsWithoutPrefix: () => void;
@@ -0,0 +1 @@
1
+ export {};
@@ -1,6 +1,6 @@
1
1
  export { ExperienceRoot } from './ExperienceRoot';
2
2
  export { useFetchById, useFetchBySlug } from './hooks';
3
- export { defineComponents } from './core/componentRegistry';
3
+ export { defineComponents, maintainBasicComponentIdsWithoutPrefix } from './core/componentRegistry';
4
4
  export { defineDesignTokens, VisualEditorMode, fetchById, fetchBySlug, createExperience, } from '@contentful/experiences-core';
5
5
  export { CONTENTFUL_COMPONENTS, LATEST_SCHEMA_VERSION, CF_STYLE_ATTRIBUTES, } from '@contentful/experiences-core/constants';
6
6
  export type { ExternalSDKMode, ComponentDefinition } from '@contentful/experiences-core/types';
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "0.0.1-alpha.7";
1
+ export declare const SDK_VERSION = "0.0.1-alpha.13";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-sdk-react",
3
- "version": "0.0.1-alpha.8",
3
+ "version": "0.0.1-beta.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "typings": "./dist/src/index.d.ts",
@@ -31,9 +31,9 @@
31
31
  "depcruise": "depcruise src"
32
32
  },
33
33
  "dependencies": {
34
- "@contentful/experiences-components-react": "0.0.1-alpha.6",
35
- "@contentful/experiences-core": "0.0.1-alpha.6",
36
- "@contentful/experiences-visual-editor-react": "0.0.1-alpha.8",
34
+ "@contentful/experiences-components-react": "0.0.1-beta.0",
35
+ "@contentful/experiences-core": "0.0.1-beta.0",
36
+ "@contentful/experiences-visual-editor-react": "0.0.1-beta.0",
37
37
  "@contentful/rich-text-types": "^16.2.1",
38
38
  "classnames": "^2.3.2",
39
39
  "csstype": "^3.1.2",
@@ -88,5 +88,5 @@
88
88
  "dist",
89
89
  "package.json"
90
90
  ],
91
- "gitHead": "88c846c29852302aaf21ccaf395878f203665525"
91
+ "gitHead": "7dd5f4c79bdf539080dbde14d70b25c3257bf279"
92
92
  }