@localess/react 3.0.0-dev.20260313114528 → 3.0.0-dev.20260323210102
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/README.md +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -5
- package/dist/index.mjs +2 -4
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -99,7 +99,7 @@ import { LocalessComponent } from "@localess/react";
|
|
|
99
99
|
|
|
100
100
|
| Prop | Type | Required | Description |
|
|
101
101
|
|------|------|----------|-------------|
|
|
102
|
-
| `data` | `ContentData` | ✅ | Content data object from Localess. The component looks up `data._schema`
|
|
102
|
+
| `data` | `ContentData` | ✅ | Content data object from Localess. The component looks up `data._schema` in the component registry |
|
|
103
103
|
| `links` | `Links` | ❌ | Resolved content links map, forwarded to the rendered component |
|
|
104
104
|
| `references` | `References` | ❌ | Resolved references map, forwarded to the rendered component |
|
|
105
105
|
| `ref` | `React.Ref<HTMLElement>` | ❌ | Ref forwarded to the rendered component's root element |
|
package/dist/index.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { LocalessClientOptions, ContentData, Links, References, ContentRichText, LocalessClient, ContentAsset } from '@localess/client';
|
|
4
|
-
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, References, Translations, isBrowser, isIframe, isServer,
|
|
4
|
+
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, References, Translations, isBrowser, isIframe, isServer, localessEditable, localessEditableField } from '@localess/client';
|
|
5
5
|
|
|
6
6
|
type LocalessOptions = LocalessClientOptions & {
|
|
7
7
|
/**
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default from 'react';
|
|
3
3
|
import { LocalessClientOptions, ContentData, Links, References, ContentRichText, LocalessClient, ContentAsset } from '@localess/client';
|
|
4
|
-
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, References, Translations, isBrowser, isIframe, isServer,
|
|
4
|
+
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, References, Translations, isBrowser, isIframe, isServer, localessEditable, localessEditableField } from '@localess/client';
|
|
5
5
|
|
|
6
6
|
type LocalessOptions = LocalessClientOptions & {
|
|
7
7
|
/**
|
package/dist/index.js
CHANGED
|
@@ -28,8 +28,6 @@ __export(index_exports, {
|
|
|
28
28
|
isIframe: () => import_client3.isIframe,
|
|
29
29
|
isServer: () => import_client3.isServer,
|
|
30
30
|
isSyncEnabled: () => isSyncEnabled,
|
|
31
|
-
llEditable: () => import_client3.llEditable,
|
|
32
|
-
llEditableField: () => import_client3.llEditableField,
|
|
33
31
|
localessEditable: () => import_client3.localessEditable,
|
|
34
32
|
localessEditableField: () => import_client3.localessEditableField,
|
|
35
33
|
localessInit: () => localessInit,
|
|
@@ -63,7 +61,7 @@ var LocalessComponent = (0, import_react.forwardRef)(({ data, links, references,
|
|
|
63
61
|
" is not provided."
|
|
64
62
|
] });
|
|
65
63
|
}
|
|
66
|
-
const Comp = getComponent(data._schema
|
|
64
|
+
const Comp = getComponent(data._schema);
|
|
67
65
|
if (Comp) {
|
|
68
66
|
const attr = isSyncEnabled() ? (0, import_client.localessEditable)(data) : {};
|
|
69
67
|
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(Comp, { ref, data, links, references, ...attr, ...restProps });
|
|
@@ -188,8 +186,6 @@ function resolveAsset(asset) {
|
|
|
188
186
|
isIframe,
|
|
189
187
|
isServer,
|
|
190
188
|
isSyncEnabled,
|
|
191
|
-
llEditable,
|
|
192
|
-
llEditableField,
|
|
193
189
|
localessEditable,
|
|
194
190
|
localessEditableField,
|
|
195
191
|
localessInit,
|
package/dist/index.mjs
CHANGED
|
@@ -6,7 +6,7 @@ var FONT_BOLD = "font-weight: bold";
|
|
|
6
6
|
var FONT_NORMAL = "font-weight: normal";
|
|
7
7
|
|
|
8
8
|
// src/index.ts
|
|
9
|
-
import {
|
|
9
|
+
import { localessEditable as localessEditable2, localessEditableField, isBrowser, isServer, isIframe } from "@localess/client";
|
|
10
10
|
|
|
11
11
|
// src/localess-componenet.tsx
|
|
12
12
|
import { forwardRef } from "react";
|
|
@@ -21,7 +21,7 @@ var LocalessComponent = forwardRef(({ data, links, references, ...restProps }, r
|
|
|
21
21
|
" is not provided."
|
|
22
22
|
] });
|
|
23
23
|
}
|
|
24
|
-
const Comp = getComponent(data._schema
|
|
24
|
+
const Comp = getComponent(data._schema);
|
|
25
25
|
if (Comp) {
|
|
26
26
|
const attr = isSyncEnabled() ? localessEditable(data) : {};
|
|
27
27
|
return /* @__PURE__ */ jsx(Comp, { ref, data, links, references, ...attr, ...restProps });
|
|
@@ -145,8 +145,6 @@ export {
|
|
|
145
145
|
isIframe,
|
|
146
146
|
isServer,
|
|
147
147
|
isSyncEnabled,
|
|
148
|
-
llEditable,
|
|
149
|
-
llEditableField,
|
|
150
148
|
localessEditable2 as localessEditable,
|
|
151
149
|
localessEditableField,
|
|
152
150
|
localessInit,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localess/react",
|
|
3
|
-
"version": "3.0.0-dev.
|
|
3
|
+
"version": "3.0.0-dev.20260323210102",
|
|
4
4
|
"description": "ReactJS JavaScript/TypeScript SDK for Localess's API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"localess",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"react-dom": "^17 || ^18 || ^19"
|
|
46
46
|
},
|
|
47
47
|
"dependencies": {
|
|
48
|
-
"@localess/client": "3.0.0-dev.
|
|
48
|
+
"@localess/client": "3.0.0-dev.20260323210102",
|
|
49
49
|
"@tiptap/static-renderer": "^3.20.1",
|
|
50
50
|
"@tiptap/html": "^3.20.1",
|
|
51
51
|
"@tiptap/extension-bold": "^3.20.1",
|