@localess/react 0.9.3 → 0.9.5-next.20260307-154858.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.js +3 -3
- package/dist/index.mjs +3 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -54,7 +54,7 @@ var import_js_client3 = require("@localess/js-client");
|
|
|
54
54
|
var import_react = require("react");
|
|
55
55
|
var import_js_client = require("@localess/js-client");
|
|
56
56
|
var import_jsx_runtime = require("react/jsx-runtime");
|
|
57
|
-
var LocalessComponent = (0, import_react.forwardRef)(({ data, links, ...restProps }, ref) => {
|
|
57
|
+
var LocalessComponent = (0, import_react.forwardRef)(({ data, links, references, ...restProps }, ref) => {
|
|
58
58
|
if (!data) {
|
|
59
59
|
console.error("LocalessComponent property %cdata%c is not provided.", FONT_BOLD, FONT_NORMAL);
|
|
60
60
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { children: [
|
|
@@ -66,11 +66,11 @@ var LocalessComponent = (0, import_react.forwardRef)(({ data, links, ...restProp
|
|
|
66
66
|
const Comp = getComponent(data._schema || data.schema);
|
|
67
67
|
if (Comp) {
|
|
68
68
|
const attr = isSyncEnabled() ? (0, import_js_client.localessEditable)(data) : {};
|
|
69
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, { ref, data, links, ...attr, ...restProps });
|
|
69
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, { ref, data, links, references, ...attr, ...restProps });
|
|
70
70
|
}
|
|
71
71
|
const FallbackComponent = getFallbackComponent();
|
|
72
72
|
if (FallbackComponent) {
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FallbackComponent, { ref, data, links, ...restProps });
|
|
73
|
+
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(FallbackComponent, { ref, data, links, references, ...restProps });
|
|
74
74
|
}
|
|
75
75
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("p", { children: [
|
|
76
76
|
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("b", { children: "LocalessComponent" }),
|
package/dist/index.mjs
CHANGED
|
@@ -12,7 +12,7 @@ import { llEditable, llEditableField, localessEditable as localessEditable2, loc
|
|
|
12
12
|
import { forwardRef } from "react";
|
|
13
13
|
import { localessEditable } from "@localess/js-client";
|
|
14
14
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
15
|
-
var LocalessComponent = forwardRef(({ data, links, ...restProps }, ref) => {
|
|
15
|
+
var LocalessComponent = forwardRef(({ data, links, references, ...restProps }, ref) => {
|
|
16
16
|
if (!data) {
|
|
17
17
|
console.error("LocalessComponent property %cdata%c is not provided.", FONT_BOLD, FONT_NORMAL);
|
|
18
18
|
return /* @__PURE__ */ jsxs("div", { children: [
|
|
@@ -24,11 +24,11 @@ var LocalessComponent = forwardRef(({ data, links, ...restProps }, ref) => {
|
|
|
24
24
|
const Comp = getComponent(data._schema || data.schema);
|
|
25
25
|
if (Comp) {
|
|
26
26
|
const attr = isSyncEnabled() ? localessEditable(data) : {};
|
|
27
|
-
return /* @__PURE__ */ jsx(Comp, { ref, data, links, ...attr, ...restProps });
|
|
27
|
+
return /* @__PURE__ */ jsx(Comp, { ref, data, links, references, ...attr, ...restProps });
|
|
28
28
|
}
|
|
29
29
|
const FallbackComponent = getFallbackComponent();
|
|
30
30
|
if (FallbackComponent) {
|
|
31
|
-
return /* @__PURE__ */ jsx(FallbackComponent, { ref, data, links, ...restProps });
|
|
31
|
+
return /* @__PURE__ */ jsx(FallbackComponent, { ref, data, links, references, ...restProps });
|
|
32
32
|
}
|
|
33
33
|
return /* @__PURE__ */ jsxs("p", { children: [
|
|
34
34
|
/* @__PURE__ */ jsx("b", { children: "LocalessComponent" }),
|