@contentful/experiences-sdk-react 1.28.0-dev-20250103T2247-b6bc301.0 → 1.28.0-dev-20250108T2237-ba7ba90.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/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import * as _contentful_experiences_core_constants from '@contentful/experiences
8
8
  export { CF_STYLE_ATTRIBUTES, CONTENTFUL_COMPONENTS, LATEST_SCHEMA_VERSION } from '@contentful/experiences-core/constants';
9
9
  import { ContentfulClientApi } from 'contentful';
10
10
 
11
- declare const SDK_VERSION = "1.28.0-dev-20250103T2247-b6bc301.0";
11
+ declare const SDK_VERSION = "1.28.0-dev-20250108T2237-ba7ba90.0";
12
12
 
13
13
  type ExperienceRootProps = {
14
14
  experience?: Experience<EntityStore> | string | null;
@@ -1,4 +1,4 @@
1
- const SDK_VERSION = '1.28.0-dev-20250103T2247-b6bc301.0';
1
+ const SDK_VERSION = '1.28.0-dev-20250108T2237-ba7ba90.0';
2
2
 
3
3
  export { SDK_VERSION };
4
4
  //# sourceMappingURL=sdkVersion.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdkVersion.js","sources":["../../src/sdkVersion.ts"],"sourcesContent":["export const SDK_VERSION = '1.28.0-dev-20250103T2247-b6bc301.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;;;"}
1
+ {"version":3,"file":"sdkVersion.js","sources":["../../src/sdkVersion.ts"],"sourcesContent":["export const SDK_VERSION = '1.28.0-dev-20250108T2237-ba7ba90.0';\n"],"names":[],"mappings":"AAAO,MAAM,WAAW,GAAG;;;;"}
@@ -1 +1 @@
1
- export declare const SDK_VERSION = "1.28.0-dev-20250103T2247-b6bc301.0";
1
+ export declare const SDK_VERSION = "1.28.0-dev-20250108T2237-ba7ba90.0";
@@ -19,7 +19,7 @@ function withComponentWrapper(Component, options = {
19
19
  const component = options.wrapComponent ? (jsxs("div", { "data-component-wrapper": true, className: classNames(classes, className, dragClassName), ...restOfDragProps, ref: (refNode) => {
20
20
  if (innerRef && refNode)
21
21
  innerRef(refNode);
22
- }, ...props, children: [ToolTipAndPlaceholder, jsx(Component, { className: classNames(classes), ...props })] })) : (React.createElement(Component, {
22
+ }, children: [ToolTipAndPlaceholder, jsx(Component, { className: classNames(classes), ...props })] })) : (React.createElement(Component, {
23
23
  className: classNames(classes, className),
24
24
  ...props,
25
25
  }));
@@ -1 +1 @@
1
- {"version":3,"file":"withComponentWrapper.js","sources":["../../../src/utils/withComponentWrapper.tsx"],"sourcesContent":["import { ComponentRegistration } from '@contentful/experiences-core/types';\nimport classNames from 'classnames';\nimport React from 'react';\ninterface CFProps extends React.HtmlHTMLAttributes<HTMLElement> {\n /**\n * Classes to be applied to the container component if `wrapComponent` is true, or directly to the child component if false.\n */\n className?: string;\n /**\n * Classes to be applied to the child component if `wrapComponent` is true, or directly to the child component if false.\n */\n classes?: string;\n dragProps?: any;\n}\n\n/**\n * Sets up a component to be consumed by Experience Builder. This function can be used to wrap a component with a container component, or to pass props to the component directly.\n * @param Component Component to be used by Experience Builder.\n * @param options Options for the `withComponentWrapper` function.\n * @default { wrapComponent: true, wrapContainerTag: 'div' }\n * @returns A component that can be passed to `defineComponents`.\n */\nexport function withComponentWrapper<T>(\n Component: React.ElementType,\n options: ComponentRegistration['options'] = {\n wrapComponent: true,\n wrapContainerTag: 'div',\n wrapContainer: 'div',\n },\n) {\n const Wrapped: React.FC<CFProps & T> = ({\n classes = '',\n className = '',\n dragProps = {},\n ...props\n }) => {\n const {\n innerRef,\n className: dragClassName,\n ToolTipAndPlaceholder,\n ...restOfDragProps\n } = dragProps;\n const component = options.wrapComponent ? (\n <div\n data-component-wrapper\n className={classNames(classes, className, dragClassName)}\n {...restOfDragProps}\n ref={(refNode: HTMLElement | null) => {\n if (innerRef && refNode) innerRef(refNode);\n }}\n {...props}>\n {ToolTipAndPlaceholder}\n <Component className={classNames(classes)} {...(props as T)} />\n </div>\n ) : (\n React.createElement(Component, {\n className: classNames(classes, className),\n ...(props as T),\n })\n );\n return component;\n };\n\n return Wrapped;\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;AAeA;;;;;;AAMG;AACa,SAAA,oBAAoB,CAClC,SAA4B,EAC5B,OAA4C,GAAA;AAC1C,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,aAAa,EAAE,KAAK;AACrB,CAAA,EAAA;IAED,MAAM,OAAO,GAA0B,CAAC,EACtC,OAAO,GAAG,EAAE,EACZ,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,EAAE,EACd,GAAG,KAAK,EACT,KAAI;AACH,QAAA,MAAM,EACJ,QAAQ,EACR,SAAS,EAAE,aAAa,EACxB,qBAAqB,EACrB,GAAG,eAAe,EACnB,GAAG,SAAS,CAAC;AACd,QAAA,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,IACrCA,IAAA,CAAA,KAAA,EAAA,EAAA,wBAAA,EAAA,IAAA,EAEE,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC,EACpD,GAAA,eAAe,EACnB,GAAG,EAAE,CAAC,OAA2B,KAAI;gBACnC,IAAI,QAAQ,IAAI,OAAO;oBAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;AAC7C,aAAC,EACG,GAAA,KAAK,EACR,QAAA,EAAA,CAAA,qBAAqB,EACtBC,GAAA,CAAC,SAAS,EAAA,EAAC,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,EAAO,GAAA,KAAW,EAAI,CAAA,CAAA,EAAA,CAC3D,KAEN,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE;AAC7B,YAAA,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC;AACzC,YAAA,GAAI,KAAW;AAChB,SAAA,CAAC,CACH,CAAC;AACF,QAAA,OAAO,SAAS,CAAC;AACnB,KAAC,CAAC;AAEF,IAAA,OAAO,OAAO,CAAC;AACjB;;;;"}
1
+ {"version":3,"file":"withComponentWrapper.js","sources":["../../../src/utils/withComponentWrapper.tsx"],"sourcesContent":["import { ComponentRegistration } from '@contentful/experiences-core/types';\nimport classNames from 'classnames';\nimport React from 'react';\ninterface CFProps extends React.HtmlHTMLAttributes<HTMLElement> {\n /**\n * Classes to be applied to the container component if `wrapComponent` is true, or directly to the child component if false.\n */\n className?: string;\n /**\n * Classes to be applied to the child component if `wrapComponent` is true, or directly to the child component if false.\n */\n classes?: string;\n dragProps?: any;\n}\n\n/**\n * Sets up a component to be consumed by Experience Builder. This function can be used to wrap a component with a container component, or to pass props to the component directly.\n * @param Component Component to be used by Experience Builder.\n * @param options Options for the `withComponentWrapper` function.\n * @default { wrapComponent: true, wrapContainerTag: 'div' }\n * @returns A component that can be passed to `defineComponents`.\n */\nexport function withComponentWrapper<T>(\n Component: React.ElementType,\n options: ComponentRegistration['options'] = {\n wrapComponent: true,\n wrapContainerTag: 'div',\n wrapContainer: 'div',\n },\n) {\n const Wrapped: React.FC<CFProps & T> = ({\n classes = '',\n className = '',\n dragProps = {},\n ...props\n }) => {\n const {\n innerRef,\n className: dragClassName,\n ToolTipAndPlaceholder,\n ...restOfDragProps\n } = dragProps;\n const component = options.wrapComponent ? (\n <div\n data-component-wrapper\n className={classNames(classes, className, dragClassName)}\n {...restOfDragProps}\n ref={(refNode: HTMLElement | null) => {\n if (innerRef && refNode) innerRef(refNode);\n }}>\n {ToolTipAndPlaceholder}\n <Component className={classNames(classes)} {...(props as T)} />\n </div>\n ) : (\n React.createElement(Component, {\n className: classNames(classes, className),\n ...(props as T),\n })\n );\n return component;\n };\n\n return Wrapped;\n}\n"],"names":["_jsxs","_jsx"],"mappings":";;;;AAeA;;;;;;AAMG;AACa,SAAA,oBAAoB,CAClC,SAA4B,EAC5B,OAA4C,GAAA;AAC1C,IAAA,aAAa,EAAE,IAAI;AACnB,IAAA,gBAAgB,EAAE,KAAK;AACvB,IAAA,aAAa,EAAE,KAAK;AACrB,CAAA,EAAA;IAED,MAAM,OAAO,GAA0B,CAAC,EACtC,OAAO,GAAG,EAAE,EACZ,SAAS,GAAG,EAAE,EACd,SAAS,GAAG,EAAE,EACd,GAAG,KAAK,EACT,KAAI;AACH,QAAA,MAAM,EACJ,QAAQ,EACR,SAAS,EAAE,aAAa,EACxB,qBAAqB,EACrB,GAAG,eAAe,EACnB,GAAG,SAAS,CAAC;AACd,QAAA,MAAM,SAAS,GAAG,OAAO,CAAC,aAAa,IACrCA,IAAA,CAAA,KAAA,EAAA,EAAA,wBAAA,EAAA,IAAA,EAEE,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,SAAS,EAAE,aAAa,CAAC,EACpD,GAAA,eAAe,EACnB,GAAG,EAAE,CAAC,OAA2B,KAAI;gBACnC,IAAI,QAAQ,IAAI,OAAO;oBAAE,QAAQ,CAAC,OAAO,CAAC,CAAC;aAC5C,EAAA,QAAA,EAAA,CACA,qBAAqB,EACtBC,GAAC,CAAA,SAAS,EAAC,EAAA,SAAS,EAAE,UAAU,CAAC,OAAO,CAAC,EAAA,GAAO,KAAW,EAAI,CAAA,CAAA,EAAA,CAC3D,KAEN,KAAK,CAAC,aAAa,CAAC,SAAS,EAAE;AAC7B,YAAA,SAAS,EAAE,UAAU,CAAC,OAAO,EAAE,SAAS,CAAC;AACzC,YAAA,GAAI,KAAW;AAChB,SAAA,CAAC,CACH,CAAC;AACF,QAAA,OAAO,SAAS,CAAC;AACnB,KAAC,CAAC;AAEF,IAAA,OAAO,OAAO,CAAC;AACjB;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@contentful/experiences-sdk-react",
3
- "version": "1.28.0-dev-20250103T2247-b6bc301.0",
3
+ "version": "1.28.0-dev-20250108T2237-ba7ba90.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "typings": "./dist/src/index.d.ts",
@@ -41,11 +41,11 @@
41
41
  "depcruise": "depcruise src"
42
42
  },
43
43
  "dependencies": {
44
- "@contentful/experiences-components-react": "1.28.0-dev-20250103T2247-b6bc301.0",
45
- "@contentful/experiences-core": "1.28.0-dev-20250103T2247-b6bc301.0",
46
- "@contentful/experiences-validators": "1.28.0-dev-20250103T2247-b6bc301.0",
47
- "@contentful/experiences-visual-editor-react": "1.28.0-dev-20250103T2247-b6bc301.0",
48
- "@contentful/rich-text-types": "^16.2.1",
44
+ "@contentful/experiences-components-react": "1.28.0-dev-20250108T2237-ba7ba90.0",
45
+ "@contentful/experiences-core": "1.28.0-dev-20250108T2237-ba7ba90.0",
46
+ "@contentful/experiences-validators": "1.28.0-dev-20250108T2237-ba7ba90.0",
47
+ "@contentful/experiences-visual-editor-react": "1.28.0-dev-20250108T2237-ba7ba90.0",
48
+ "@contentful/rich-text-types": "^17.0.0",
49
49
  "classnames": "^2.3.2",
50
50
  "csstype": "^3.1.2",
51
51
  "immer": "^10.0.3",
@@ -102,5 +102,5 @@
102
102
  "dist",
103
103
  "package.json"
104
104
  ],
105
- "gitHead": "fc4ecfed7229cdd0e5f43df8e3a21cf145a02e28"
105
+ "gitHead": "d2cf99ad9314b8a633ccf6ddb001803f124462c9"
106
106
  }