@intlayer/editor-react 5.1.0 → 5.1.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.
@@ -23,6 +23,7 @@ __export(EditorProvider_exports, {
23
23
  });
24
24
  module.exports = __toCommonJS(EditorProvider_exports);
25
25
  var import_jsx_runtime = require("react/jsx-runtime");
26
+ var import_ChangedContentContext = require('./ChangedContentContext.cjs');
26
27
  var import_CommunicatorContext = require('./CommunicatorContext.cjs');
27
28
  var import_ConfigurationContext = require('./ConfigurationContext.cjs');
28
29
  var import_DictionariesRecordContext = require('./DictionariesRecordContext.cjs');
@@ -37,7 +38,7 @@ const EditorProvider = ({
37
38
  children,
38
39
  configuration,
39
40
  ...props
40
- }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EditorEnabledContext.EditorEnabledProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ConfigurationContext.ConfigurationProvider, { configuration, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EditorProviderEnabled, { ...props, children }) }) });
41
+ }) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ChangedContentContext.ChangedContentProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_EditorEnabledContext.EditorEnabledProvider, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ConfigurationContext.ConfigurationProvider, { configuration, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(EditorProviderEnabled, { ...props, children }) }) }) });
41
42
  // Annotate the CommonJS export names for ESM import in node:
42
43
  0 && (module.exports = {
43
44
  EditorProvider
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/EditorProvider.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, type PropsWithChildren } from 'react';\nimport {\n type CommunicatorProviderProps,\n CommunicatorProvider,\n} from './CommunicatorContext';\nimport {\n type ConfigurationProviderProps,\n ConfigurationProvider,\n} from './ConfigurationContext';\nimport { DictionariesRecordProvider } from './DictionariesRecordContext';\nimport { EditedContentProvider } from './EditedContentContext';\nimport {\n EditorEnabledProvider,\n useEditorEnabled,\n} from './EditorEnabledContext';\nimport { FocusDictionaryProvider } from './FocusDictionaryContext';\n\ntype EditorProviderEnabledProps = CommunicatorProviderProps & {\n mode: 'editor' | 'client';\n};\n\nconst EditorProviderEnabled: FC<\n PropsWithChildren<EditorProviderEnabledProps>\n> = ({ mode, children, ...props }) => {\n const { enabled } = useEditorEnabled();\n\n return enabled || mode === 'editor' ? (\n <CommunicatorProvider {...props}>\n <DictionariesRecordProvider>\n <EditedContentProvider>\n <FocusDictionaryProvider>{children}</FocusDictionaryProvider>\n </EditedContentProvider>\n </DictionariesRecordProvider>\n </CommunicatorProvider>\n ) : (\n children\n );\n};\n\nexport type EditorProviderProps = EditorProviderEnabledProps &\n ConfigurationProviderProps;\n\nexport const EditorProvider: FC<PropsWithChildren<EditorProviderProps>> = ({\n children,\n configuration,\n ...props\n}) => (\n <EditorEnabledProvider>\n <ConfigurationProvider configuration={configuration}>\n <EditorProviderEnabled {...props}>{children}</EditorProviderEnabled>\n </ConfigurationProvider>\n </EditorEnabledProvider>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAgCU;AA7BV,iCAGO;AACP,kCAGO;AACP,uCAA2C;AAC3C,kCAAsC;AACtC,kCAGO;AACP,oCAAwC;AAMxC,MAAM,wBAEF,CAAC,EAAE,MAAM,UAAU,GAAG,MAAM,MAAM;AACpC,QAAM,EAAE,QAAQ,QAAI,8CAAiB;AAErC,SAAO,WAAW,SAAS,WACzB,4CAAC,mDAAsB,GAAG,OACxB,sDAAC,+DACC,sDAAC,qDACC,sDAAC,yDAAyB,UAAS,GACrC,GACF,GACF,IAEA;AAEJ;AAKO,MAAM,iBAA6D,CAAC;AAAA,EACzE;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACE,4CAAC,qDACC,sDAAC,qDAAsB,eACrB,sDAAC,yBAAuB,GAAG,OAAQ,UAAS,GAC9C,GACF;","names":[]}
1
+ {"version":3,"sources":["../../src/EditorProvider.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, type PropsWithChildren } from 'react';\nimport { ChangedContentProvider } from './ChangedContentContext';\nimport {\n type CommunicatorProviderProps,\n CommunicatorProvider,\n} from './CommunicatorContext';\nimport {\n type ConfigurationProviderProps,\n ConfigurationProvider,\n} from './ConfigurationContext';\nimport { DictionariesRecordProvider } from './DictionariesRecordContext';\nimport { EditedContentProvider } from './EditedContentContext';\nimport {\n EditorEnabledProvider,\n useEditorEnabled,\n} from './EditorEnabledContext';\nimport { FocusDictionaryProvider } from './FocusDictionaryContext';\n\ntype EditorProviderEnabledProps = CommunicatorProviderProps & {\n mode: 'editor' | 'client';\n};\n\nconst EditorProviderEnabled: FC<\n PropsWithChildren<EditorProviderEnabledProps>\n> = ({ mode, children, ...props }) => {\n const { enabled } = useEditorEnabled();\n\n return enabled || mode === 'editor' ? (\n <CommunicatorProvider {...props}>\n <DictionariesRecordProvider>\n <EditedContentProvider>\n <FocusDictionaryProvider>{children}</FocusDictionaryProvider>\n </EditedContentProvider>\n </DictionariesRecordProvider>\n </CommunicatorProvider>\n ) : (\n children\n );\n};\n\nexport type EditorProviderProps = EditorProviderEnabledProps &\n ConfigurationProviderProps;\n\nexport const EditorProvider: FC<PropsWithChildren<EditorProviderProps>> = ({\n children,\n configuration,\n ...props\n}) => (\n <ChangedContentProvider>\n <EditorEnabledProvider>\n <ConfigurationProvider configuration={configuration}>\n <EditorProviderEnabled {...props}>{children}</EditorProviderEnabled>\n </ConfigurationProvider>\n </EditorEnabledProvider>\n </ChangedContentProvider>\n);\n"],"mappings":";;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAiCU;AA9BV,mCAAuC;AACvC,iCAGO;AACP,kCAGO;AACP,uCAA2C;AAC3C,kCAAsC;AACtC,kCAGO;AACP,oCAAwC;AAMxC,MAAM,wBAEF,CAAC,EAAE,MAAM,UAAU,GAAG,MAAM,MAAM;AACpC,QAAM,EAAE,QAAQ,QAAI,8CAAiB;AAErC,SAAO,WAAW,SAAS,WACzB,4CAAC,mDAAsB,GAAG,OACxB,sDAAC,+DACC,sDAAC,qDACC,sDAAC,yDAAyB,UAAS,GACrC,GACF,GACF,IAEA;AAEJ;AAKO,MAAM,iBAA6D,CAAC;AAAA,EACzE;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACE,4CAAC,uDACC,sDAAC,qDACC,sDAAC,qDAAsB,eACrB,sDAAC,yBAAuB,GAAG,OAAQ,UAAS,GAC9C,GACF,GACF;","names":[]}
@@ -1,5 +1,6 @@
1
1
  "use client";
2
2
  import { jsx } from "react/jsx-runtime";
3
+ import { ChangedContentProvider } from "./ChangedContentContext.mjs";
3
4
  import {
4
5
  CommunicatorProvider
5
6
  } from "./CommunicatorContext.mjs";
@@ -21,7 +22,7 @@ const EditorProvider = ({
21
22
  children,
22
23
  configuration,
23
24
  ...props
24
- }) => /* @__PURE__ */ jsx(EditorEnabledProvider, { children: /* @__PURE__ */ jsx(ConfigurationProvider, { configuration, children: /* @__PURE__ */ jsx(EditorProviderEnabled, { ...props, children }) }) });
25
+ }) => /* @__PURE__ */ jsx(ChangedContentProvider, { children: /* @__PURE__ */ jsx(EditorEnabledProvider, { children: /* @__PURE__ */ jsx(ConfigurationProvider, { configuration, children: /* @__PURE__ */ jsx(EditorProviderEnabled, { ...props, children }) }) }) });
25
26
  export {
26
27
  EditorProvider
27
28
  };
@@ -1 +1 @@
1
- {"version":3,"sources":["../../src/EditorProvider.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, type PropsWithChildren } from 'react';\nimport {\n type CommunicatorProviderProps,\n CommunicatorProvider,\n} from './CommunicatorContext';\nimport {\n type ConfigurationProviderProps,\n ConfigurationProvider,\n} from './ConfigurationContext';\nimport { DictionariesRecordProvider } from './DictionariesRecordContext';\nimport { EditedContentProvider } from './EditedContentContext';\nimport {\n EditorEnabledProvider,\n useEditorEnabled,\n} from './EditorEnabledContext';\nimport { FocusDictionaryProvider } from './FocusDictionaryContext';\n\ntype EditorProviderEnabledProps = CommunicatorProviderProps & {\n mode: 'editor' | 'client';\n};\n\nconst EditorProviderEnabled: FC<\n PropsWithChildren<EditorProviderEnabledProps>\n> = ({ mode, children, ...props }) => {\n const { enabled } = useEditorEnabled();\n\n return enabled || mode === 'editor' ? (\n <CommunicatorProvider {...props}>\n <DictionariesRecordProvider>\n <EditedContentProvider>\n <FocusDictionaryProvider>{children}</FocusDictionaryProvider>\n </EditedContentProvider>\n </DictionariesRecordProvider>\n </CommunicatorProvider>\n ) : (\n children\n );\n};\n\nexport type EditorProviderProps = EditorProviderEnabledProps &\n ConfigurationProviderProps;\n\nexport const EditorProvider: FC<PropsWithChildren<EditorProviderProps>> = ({\n children,\n configuration,\n ...props\n}) => (\n <EditorEnabledProvider>\n <ConfigurationProvider configuration={configuration}>\n <EditorProviderEnabled {...props}>{children}</EditorProviderEnabled>\n </ConfigurationProvider>\n </EditorEnabledProvider>\n);\n"],"mappings":";AAgCU;AA7BV;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP,SAAS,kCAAkC;AAC3C,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,+BAA+B;AAMxC,MAAM,wBAEF,CAAC,EAAE,MAAM,UAAU,GAAG,MAAM,MAAM;AACpC,QAAM,EAAE,QAAQ,IAAI,iBAAiB;AAErC,SAAO,WAAW,SAAS,WACzB,oBAAC,wBAAsB,GAAG,OACxB,8BAAC,8BACC,8BAAC,yBACC,8BAAC,2BAAyB,UAAS,GACrC,GACF,GACF,IAEA;AAEJ;AAKO,MAAM,iBAA6D,CAAC;AAAA,EACzE;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACE,oBAAC,yBACC,8BAAC,yBAAsB,eACrB,8BAAC,yBAAuB,GAAG,OAAQ,UAAS,GAC9C,GACF;","names":[]}
1
+ {"version":3,"sources":["../../src/EditorProvider.tsx"],"sourcesContent":["'use client';\n\nimport { type FC, type PropsWithChildren } from 'react';\nimport { ChangedContentProvider } from './ChangedContentContext';\nimport {\n type CommunicatorProviderProps,\n CommunicatorProvider,\n} from './CommunicatorContext';\nimport {\n type ConfigurationProviderProps,\n ConfigurationProvider,\n} from './ConfigurationContext';\nimport { DictionariesRecordProvider } from './DictionariesRecordContext';\nimport { EditedContentProvider } from './EditedContentContext';\nimport {\n EditorEnabledProvider,\n useEditorEnabled,\n} from './EditorEnabledContext';\nimport { FocusDictionaryProvider } from './FocusDictionaryContext';\n\ntype EditorProviderEnabledProps = CommunicatorProviderProps & {\n mode: 'editor' | 'client';\n};\n\nconst EditorProviderEnabled: FC<\n PropsWithChildren<EditorProviderEnabledProps>\n> = ({ mode, children, ...props }) => {\n const { enabled } = useEditorEnabled();\n\n return enabled || mode === 'editor' ? (\n <CommunicatorProvider {...props}>\n <DictionariesRecordProvider>\n <EditedContentProvider>\n <FocusDictionaryProvider>{children}</FocusDictionaryProvider>\n </EditedContentProvider>\n </DictionariesRecordProvider>\n </CommunicatorProvider>\n ) : (\n children\n );\n};\n\nexport type EditorProviderProps = EditorProviderEnabledProps &\n ConfigurationProviderProps;\n\nexport const EditorProvider: FC<PropsWithChildren<EditorProviderProps>> = ({\n children,\n configuration,\n ...props\n}) => (\n <ChangedContentProvider>\n <EditorEnabledProvider>\n <ConfigurationProvider configuration={configuration}>\n <EditorProviderEnabled {...props}>{children}</EditorProviderEnabled>\n </ConfigurationProvider>\n </EditorEnabledProvider>\n </ChangedContentProvider>\n);\n"],"mappings":";AAiCU;AA9BV,SAAS,8BAA8B;AACvC;AAAA,EAEE;AAAA,OACK;AACP;AAAA,EAEE;AAAA,OACK;AACP,SAAS,kCAAkC;AAC3C,SAAS,6BAA6B;AACtC;AAAA,EACE;AAAA,EACA;AAAA,OACK;AACP,SAAS,+BAA+B;AAMxC,MAAM,wBAEF,CAAC,EAAE,MAAM,UAAU,GAAG,MAAM,MAAM;AACpC,QAAM,EAAE,QAAQ,IAAI,iBAAiB;AAErC,SAAO,WAAW,SAAS,WACzB,oBAAC,wBAAsB,GAAG,OACxB,8BAAC,8BACC,8BAAC,yBACC,8BAAC,2BAAyB,UAAS,GACrC,GACF,GACF,IAEA;AAEJ;AAKO,MAAM,iBAA6D,CAAC;AAAA,EACzE;AAAA,EACA;AAAA,EACA,GAAG;AACL,MACE,oBAAC,0BACC,8BAAC,yBACC,8BAAC,yBAAsB,eACrB,8BAAC,yBAAuB,GAAG,OAAQ,UAAS,GAC9C,GACF,GACF;","names":[]}
@@ -1 +1 @@
1
- {"version":3,"file":"EditorProvider.d.ts","sourceRoot":"","sources":["../../src/EditorProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AACxD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAShC,KAAK,0BAA0B,GAAG,yBAAyB,GAAG;IAC5D,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC3B,CAAC;AAoBF,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,GAC1D,0BAA0B,CAAC;AAE7B,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAUrE,CAAC"}
1
+ {"version":3,"file":"EditorProvider.d.ts","sourceRoot":"","sources":["../../src/EditorProvider.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,EAAE,EAAE,KAAK,iBAAiB,EAAE,MAAM,OAAO,CAAC;AAExD,OAAO,EACL,KAAK,yBAAyB,EAE/B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,KAAK,0BAA0B,EAEhC,MAAM,wBAAwB,CAAC;AAShC,KAAK,0BAA0B,GAAG,yBAAyB,GAAG;IAC5D,IAAI,EAAE,QAAQ,GAAG,QAAQ,CAAC;CAC3B,CAAC;AAoBF,MAAM,MAAM,mBAAmB,GAAG,0BAA0B,GAC1D,0BAA0B,CAAC;AAE7B,eAAO,MAAM,cAAc,EAAE,EAAE,CAAC,iBAAiB,CAAC,mBAAmB,CAAC,CAYrE,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intlayer/editor-react",
3
- "version": "5.1.0",
3
+ "version": "5.1.1",
4
4
  "private": false,
5
5
  "description": "Provides the states, contexts, hooks and components to interact with the Intlayer editor for a React application",
6
6
  "keywords": [
@@ -52,9 +52,9 @@
52
52
  ],
53
53
  "dependencies": {
54
54
  "uuid": "^11.0.5",
55
- "@intlayer/config": "^5.1.0",
56
- "@intlayer/core": "5.1.0",
57
- "@intlayer/editor": "5.1.0"
55
+ "@intlayer/config": "^5.1.1",
56
+ "@intlayer/core": "5.1.1",
57
+ "@intlayer/editor": "5.1.1"
58
58
  },
59
59
  "devDependencies": {
60
60
  "@types/node": "^22.10.6",
@@ -76,9 +76,9 @@
76
76
  "peerDependencies": {
77
77
  "react": ">=16.0.0",
78
78
  "react-dom": ">=16.0.0",
79
- "@intlayer/config": "5.1.0",
80
- "@intlayer/editor": "5.1.0",
81
- "@intlayer/core": "^5.1.0"
79
+ "@intlayer/config": "5.1.1",
80
+ "@intlayer/core": "^5.1.1",
81
+ "@intlayer/editor": "5.1.1"
82
82
  },
83
83
  "engines": {
84
84
  "node": ">=14.18"