@localess/react 3.0.8-dev.20260514092749 → 3.0.9-dev.20260520205852
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/SKILL.md +23 -1
- package/dist/core/state.d.ts +2 -2
- package/dist/core/state.js +1 -1
- package/dist/core/state.mjs +27 -26
- package/dist/core/utils/index.d.ts +1 -1
- package/dist/core/utils/index.mjs +2 -2
- package/dist/index.js +1 -1
- package/dist/index.mjs +6 -6
- package/dist/rsc/index.js +1 -1
- package/dist/rsc/index.mjs +7 -7
- package/dist/ssr/index.js +1 -1
- package/dist/ssr/index.mjs +5 -5
- package/package.json +2 -2
package/SKILL.md
CHANGED
|
@@ -477,14 +477,35 @@ const Article = ({ data }) => (
|
|
|
477
477
|
|
|
478
478
|
```typescript
|
|
479
479
|
import { resolveAsset } from "@localess/react";
|
|
480
|
+
import type { AssetTransformParams } from "@localess/react";
|
|
480
481
|
|
|
481
|
-
// ContentAsset → full URL
|
|
482
|
+
// ContentAsset → full URL (no transform)
|
|
482
483
|
const imageUrl = resolveAsset(data.heroImage);
|
|
483
484
|
// Returns: https://my-localess.web.app/api/v1/spaces/{spaceId}/assets/{uri}
|
|
485
|
+
|
|
486
|
+
// With transform params
|
|
487
|
+
const imageUrl = resolveAsset(data.heroImage, { w: 800, h: 600, f: 'webp', q: 90 });
|
|
488
|
+
// Returns: .../assets/{uri}?w=800&h=600&q=90&f=webp
|
|
489
|
+
|
|
490
|
+
// Thumbnail from video/animated image
|
|
491
|
+
const thumb = resolveAsset(data.video, { w: 400, thumbnail: true });
|
|
484
492
|
```
|
|
485
493
|
|
|
486
494
|
Set up automatically during `localessInit()` from `origin` + `spaceId`.
|
|
487
495
|
|
|
496
|
+
#### AssetTransformParams
|
|
497
|
+
|
|
498
|
+
| Param | Type | Description |
|
|
499
|
+
|-------------|---------------------------------------|-----------------------------------------------------------------------------|
|
|
500
|
+
| `w` | `number` | Target width in pixels. With `h` → cover crop. Without → scale proportionally. |
|
|
501
|
+
| `h` | `number` | Target height in pixels. With `w` → cover crop. Without → scale proportionally. |
|
|
502
|
+
| `q` | `number` (1–100) | Output quality. Applies to JPEG, WebP, AVIF. Ignored for PNG. Default: 85. |
|
|
503
|
+
| `f` | `'webp' \| 'jpeg' \| 'png' \| 'avif'` | Convert to this output format. |
|
|
504
|
+
| `download` | `boolean` | `true` → force browser download (Content-Disposition: form-data). |
|
|
505
|
+
| `thumbnail` | `boolean` | `true` → extract first frame from animated WebP/GIF or video frame via FFmpeg. |
|
|
506
|
+
|
|
507
|
+
SVG files are always passed through unchanged. `w`/`h`/`f` are ignored for SVG.
|
|
508
|
+
|
|
488
509
|
---
|
|
489
510
|
|
|
490
511
|
## Component Registry Management
|
|
@@ -620,6 +641,7 @@ export { llEditable, llEditableField } // Deprecated
|
|
|
620
641
|
export { isBrowser, isServer, isIframe }
|
|
621
642
|
|
|
622
643
|
// Types (re-exported from @localess/client + local)
|
|
644
|
+
export type { AssetTransformParams } // Image transform params for resolveAsset
|
|
623
645
|
export type { LocalessClient, LocalessOptions }
|
|
624
646
|
export type { LocalessSync, EventToApp, EventCallback, EventToAppType }
|
|
625
647
|
export type {
|
package/dist/core/state.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LocalessClient } from '@localess/client';
|
|
1
|
+
import { AssetTransformParams, LocalessClient } from '@localess/client';
|
|
2
2
|
import { default as React } from 'react';
|
|
3
3
|
import { ContentAsset, LocalessOptions } from './models';
|
|
4
4
|
/**
|
|
@@ -124,4 +124,4 @@ export declare function getOrigin(): string;
|
|
|
124
124
|
* <img src={resolveAsset(data.heroImage)} alt={data.heroImage.alt} />
|
|
125
125
|
* ```
|
|
126
126
|
*/
|
|
127
|
-
export declare function resolveAsset(asset: ContentAsset): string;
|
|
127
|
+
export declare function resolveAsset(asset: ContentAsset, params?: AssetTransformParams): string;
|
package/dist/core/state.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
const e=require(`../console.js`);let t=require(`@localess/client`);var n=void 0,r=void 0,i={},a=void 0,o=!1,s=``;function c(e){let{components:c,fallbackComponent:l,enableSync:u,...d}=e;return r=(0,t.localessClient)(d),n=d.origin,s=`${e.origin}/api/v1/spaces/${e.spaceId}/assets/`,i=c||{},a=l,u&&(o=!0,(0,t.loadLocalessSync)(d.origin)),r}function l(){if(!r)throw console.error(`[Localess] No client found. Please check if the Localess is initialized. Use localessInit function.`),Error(`[Localess] No client found.`);return r}function u(e,t){i[e]=t}function d(e){delete i[e]}function f(e){i=e}function p(t){if(Object.hasOwn(i,t))return i[t];console.error(`[Localess] component %c${t}%c can't be found.`,e.FONT_BOLD,e.FONT_NORMAL)}function m(e){a=e}function h(){return a}function g(){return o}function _(){if(!n)throw console.error(`[Localess] No origin found. Please check if the Localess is initialized. Use localessInit function.`),Error(`[Localess] No origin found.`);return n}function v(e){
|
|
1
|
+
const e=require(`../console.js`);let t=require(`@localess/client`);var n=void 0,r=void 0,i={},a=void 0,o=!1,s=``;function c(e){let{components:c,fallbackComponent:l,enableSync:u,...d}=e;return r=(0,t.localessClient)(d),n=d.origin,s=`${e.origin}/api/v1/spaces/${e.spaceId}/assets/`,i=c||{},a=l,u&&(o=!0,(0,t.loadLocalessSync)(d.origin)),r}function l(){if(!r)throw console.error(`[Localess] No client found. Please check if the Localess is initialized. Use localessInit function.`),Error(`[Localess] No client found.`);return r}function u(e,t){i[e]=t}function d(e){delete i[e]}function f(e){i=e}function p(t){if(Object.hasOwn(i,t))return i[t];console.error(`[Localess] component %c${t}%c can't be found.`,e.FONT_BOLD,e.FONT_NORMAL)}function m(e){a=e}function h(){return a}function g(){return o}function _(){if(!n)throw console.error(`[Localess] No origin found. Please check if the Localess is initialized. Use localessInit function.`),Error(`[Localess] No origin found.`);return n}function v(e,n){let r=`${s}${e.uri}`,i=(0,t.buildAssetQueryString)(n);return i?`${r}?${i}`:r}exports.getComponent=p,exports.getFallbackComponent=h,exports.getLocalessClient=l,exports.getOrigin=_,exports.isSyncEnabled=g,exports.localessInit=c,exports.registerComponent=u,exports.resolveAsset=v,exports.setComponents=f,exports.setFallbackComponent=m,exports.unregisterComponent=d;
|
package/dist/core/state.mjs
CHANGED
|
@@ -1,43 +1,44 @@
|
|
|
1
1
|
import { FONT_BOLD as e, FONT_NORMAL as t } from "../console.mjs";
|
|
2
|
-
import {
|
|
2
|
+
import { buildAssetQueryString as n, loadLocalessSync as r, localessClient as i } from "@localess/client";
|
|
3
3
|
//#region src/core/state.ts
|
|
4
|
-
var
|
|
5
|
-
function
|
|
6
|
-
let { components: t, fallbackComponent:
|
|
7
|
-
return
|
|
4
|
+
var a = void 0, o = void 0, s = {}, c = void 0, l = !1, u = "";
|
|
5
|
+
function d(e) {
|
|
6
|
+
let { components: t, fallbackComponent: n, enableSync: d, ...f } = e;
|
|
7
|
+
return o = i(f), a = f.origin, u = `${e.origin}/api/v1/spaces/${e.spaceId}/assets/`, s = t || {}, c = n, d && (l = !0, r(f.origin)), o;
|
|
8
8
|
}
|
|
9
|
-
function
|
|
10
|
-
if (!
|
|
11
|
-
return
|
|
12
|
-
}
|
|
13
|
-
function f(e, t) {
|
|
14
|
-
o[e] = t;
|
|
9
|
+
function f() {
|
|
10
|
+
if (!o) throw console.error("[Localess] No client found. Please check if the Localess is initialized. Use localessInit function."), Error("[Localess] No client found.");
|
|
11
|
+
return o;
|
|
15
12
|
}
|
|
16
|
-
function p(e) {
|
|
17
|
-
|
|
13
|
+
function p(e, t) {
|
|
14
|
+
s[e] = t;
|
|
18
15
|
}
|
|
19
16
|
function m(e) {
|
|
20
|
-
|
|
21
|
-
}
|
|
22
|
-
function h(n) {
|
|
23
|
-
if (Object.hasOwn(o, n)) return o[n];
|
|
24
|
-
console.error(`[Localess] component %c${n}%c can't be found.`, e, t);
|
|
17
|
+
delete s[e];
|
|
25
18
|
}
|
|
26
|
-
function
|
|
19
|
+
function h(e) {
|
|
27
20
|
s = e;
|
|
28
21
|
}
|
|
29
|
-
function
|
|
30
|
-
return s;
|
|
22
|
+
function g(n) {
|
|
23
|
+
if (Object.hasOwn(s, n)) return s[n];
|
|
24
|
+
console.error(`[Localess] component %c${n}%c can't be found.`, e, t);
|
|
25
|
+
}
|
|
26
|
+
function _(e) {
|
|
27
|
+
c = e;
|
|
31
28
|
}
|
|
32
29
|
function v() {
|
|
33
30
|
return c;
|
|
34
31
|
}
|
|
35
32
|
function y() {
|
|
36
|
-
|
|
37
|
-
|
|
33
|
+
return l;
|
|
34
|
+
}
|
|
35
|
+
function b() {
|
|
36
|
+
if (!a) throw console.error("[Localess] No origin found. Please check if the Localess is initialized. Use localessInit function."), Error("[Localess] No origin found.");
|
|
37
|
+
return a;
|
|
38
38
|
}
|
|
39
|
-
function
|
|
40
|
-
|
|
39
|
+
function x(e, t) {
|
|
40
|
+
let r = `${u}${e.uri}`, i = n(t);
|
|
41
|
+
return i ? `${r}?${i}` : r;
|
|
41
42
|
}
|
|
42
43
|
//#endregion
|
|
43
|
-
export {
|
|
44
|
+
export { g as getComponent, v as getFallbackComponent, f as getLocalessClient, b as getOrigin, y as isSyncEnabled, d as localessInit, p as registerComponent, x as resolveAsset, h as setComponents, _ as setFallbackComponent, m as unregisterComponent };
|
|
@@ -16,4 +16,4 @@
|
|
|
16
16
|
* '/not-found' when the link cannot be resolved.
|
|
17
17
|
*/
|
|
18
18
|
export * from './link.util';
|
|
19
|
-
export { isBrowser, isIframe, isServer, localessEditable, localessEditableField } from '@localess/client';
|
|
19
|
+
export { AssetTransformParams, isBrowser, isIframe, isServer, localessEditable, localessEditableField } from '@localess/client';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import "./link.util.mjs";
|
|
2
|
-
import {
|
|
3
|
-
export { e as
|
|
2
|
+
import { AssetTransformParams as e, isBrowser as t, isIframe as n, isServer as r, localessEditable as i, localessEditableField as a } from "@localess/client";
|
|
3
|
+
export { e as AssetTransformParams, t as isBrowser, n as isIframe, r as isServer, i as localessEditable, a as localessEditableField };
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core/state.js`),t=require(`./core/utils/link.util.js`),n=require(`./core/components/localess-component.js`),r=require(`./core/components/localess-document.js`),i=require(`./core/hooks/use-localess.js`),a=require(`./core/richtext.js`);let o=require(`@localess/client`);exports.LocalessComponent=n.LocalessComponent,exports.LocalessDocument=r.LocalessDocument,exports.findLink=t.findLink,exports.getComponent=e.getComponent,exports.getFallbackComponent=e.getFallbackComponent,exports.getLocalessClient=e.getLocalessClient,exports.getOrigin=e.getOrigin,Object.defineProperty(exports,`isBrowser`,{enumerable:!0,get:function(){return o.isBrowser}}),Object.defineProperty(exports,`isIframe`,{enumerable:!0,get:function(){return o.isIframe}}),Object.defineProperty(exports,`isServer`,{enumerable:!0,get:function(){return o.isServer}}),exports.isSyncEnabled=e.isSyncEnabled,Object.defineProperty(exports,`localessEditable`,{enumerable:!0,get:function(){return o.localessEditable}}),Object.defineProperty(exports,`localessEditableField`,{enumerable:!0,get:function(){return o.localessEditableField}}),exports.localessInit=e.localessInit,exports.registerComponent=e.registerComponent,exports.renderRichTextToReact=a.renderRichTextToReact,exports.resolveAsset=e.resolveAsset,exports.setComponents=e.setComponents,exports.setFallbackComponent=e.setFallbackComponent,exports.unregisterComponent=e.unregisterComponent,exports.useLocaless=i.useLocaless;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`./core/state.js`),t=require(`./core/utils/link.util.js`),n=require(`./core/components/localess-component.js`),r=require(`./core/components/localess-document.js`),i=require(`./core/hooks/use-localess.js`),a=require(`./core/richtext.js`);let o=require(`@localess/client`);Object.defineProperty(exports,`AssetTransformParams`,{enumerable:!0,get:function(){return o.AssetTransformParams}}),exports.LocalessComponent=n.LocalessComponent,exports.LocalessDocument=r.LocalessDocument,exports.findLink=t.findLink,exports.getComponent=e.getComponent,exports.getFallbackComponent=e.getFallbackComponent,exports.getLocalessClient=e.getLocalessClient,exports.getOrigin=e.getOrigin,Object.defineProperty(exports,`isBrowser`,{enumerable:!0,get:function(){return o.isBrowser}}),Object.defineProperty(exports,`isIframe`,{enumerable:!0,get:function(){return o.isIframe}}),Object.defineProperty(exports,`isServer`,{enumerable:!0,get:function(){return o.isServer}}),exports.isSyncEnabled=e.isSyncEnabled,Object.defineProperty(exports,`localessEditable`,{enumerable:!0,get:function(){return o.localessEditable}}),Object.defineProperty(exports,`localessEditableField`,{enumerable:!0,get:function(){return o.localessEditableField}}),exports.localessInit=e.localessInit,exports.registerComponent=e.registerComponent,exports.renderRichTextToReact=a.renderRichTextToReact,exports.resolveAsset=e.resolveAsset,exports.setComponents=e.setComponents,exports.setFallbackComponent=e.setFallbackComponent,exports.unregisterComponent=e.unregisterComponent,exports.useLocaless=i.useLocaless;
|
package/dist/index.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { getComponent as e, getFallbackComponent as t, getLocalessClient as n, getOrigin as r, isSyncEnabled as i, localessInit as a, registerComponent as o, resolveAsset as s, setComponents as c, setFallbackComponent as l, unregisterComponent as u } from "./core/state.mjs";
|
|
2
2
|
import { findLink as d } from "./core/utils/link.util.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { LocalessComponent as
|
|
5
|
-
import { LocalessDocument as
|
|
6
|
-
import { useLocaless as
|
|
7
|
-
import { renderRichTextToReact as
|
|
8
|
-
export {
|
|
3
|
+
import { AssetTransformParams as f, isBrowser as p, isIframe as m, isServer as h, localessEditable as g, localessEditableField as _ } from "./core/utils/index.mjs";
|
|
4
|
+
import { LocalessComponent as v } from "./core/components/localess-component.mjs";
|
|
5
|
+
import { LocalessDocument as y } from "./core/components/localess-document.mjs";
|
|
6
|
+
import { useLocaless as b } from "./core/hooks/use-localess.mjs";
|
|
7
|
+
import { renderRichTextToReact as x } from "./core/richtext.mjs";
|
|
8
|
+
export { f as AssetTransformParams, v as LocalessComponent, y as LocalessDocument, d as findLink, e as getComponent, t as getFallbackComponent, n as getLocalessClient, r as getOrigin, p as isBrowser, m as isIframe, h as isServer, i as isSyncEnabled, g as localessEditable, _ as localessEditableField, a as localessInit, o as registerComponent, x as renderRichTextToReact, s as resolveAsset, c as setComponents, l as setFallbackComponent, u as unregisterComponent, b as useLocaless };
|
package/dist/rsc/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../core/state.js`),t=require(`../core/utils/link.util.js`),n=require(`../core/components/localess-component.js`),r=require(`../core/richtext.js`),i=require(`../ssr/localess-component.js`),a=require(`../ssr/localess-document.js`),o=require(`./localess-document.js`);let s=require(`@localess/client`);exports.LocalessComponent=n.LocalessComponent,exports.LocalessDocument=o.LocalessDocument,exports.LocalessServerComponent=i.LocalessServerComponent,exports.LocalessServerDocument=a.LocalessServerDocument,exports.findLink=t.findLink,exports.getComponent=e.getComponent,exports.getFallbackComponent=e.getFallbackComponent,exports.getLocalessClient=e.getLocalessClient,Object.defineProperty(exports,`isBrowser`,{enumerable:!0,get:function(){return s.isBrowser}}),Object.defineProperty(exports,`isIframe`,{enumerable:!0,get:function(){return s.isIframe}}),Object.defineProperty(exports,`isServer`,{enumerable:!0,get:function(){return s.isServer}}),exports.isSyncEnabled=e.isSyncEnabled,Object.defineProperty(exports,`localessEditable`,{enumerable:!0,get:function(){return s.localessEditable}}),Object.defineProperty(exports,`localessEditableField`,{enumerable:!0,get:function(){return s.localessEditableField}}),exports.localessInit=e.localessInit,exports.registerComponent=e.registerComponent,exports.renderRichTextToReact=r.renderRichTextToReact,exports.resolveAsset=e.resolveAsset,exports.unregisterComponent=e.unregisterComponent;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../core/state.js`),t=require(`../core/utils/link.util.js`),n=require(`../core/components/localess-component.js`),r=require(`../core/richtext.js`),i=require(`../ssr/localess-component.js`),a=require(`../ssr/localess-document.js`),o=require(`./localess-document.js`);let s=require(`@localess/client`);Object.defineProperty(exports,`AssetTransformParams`,{enumerable:!0,get:function(){return s.AssetTransformParams}}),exports.LocalessComponent=n.LocalessComponent,exports.LocalessDocument=o.LocalessDocument,exports.LocalessServerComponent=i.LocalessServerComponent,exports.LocalessServerDocument=a.LocalessServerDocument,exports.findLink=t.findLink,exports.getComponent=e.getComponent,exports.getFallbackComponent=e.getFallbackComponent,exports.getLocalessClient=e.getLocalessClient,Object.defineProperty(exports,`isBrowser`,{enumerable:!0,get:function(){return s.isBrowser}}),Object.defineProperty(exports,`isIframe`,{enumerable:!0,get:function(){return s.isIframe}}),Object.defineProperty(exports,`isServer`,{enumerable:!0,get:function(){return s.isServer}}),exports.isSyncEnabled=e.isSyncEnabled,Object.defineProperty(exports,`localessEditable`,{enumerable:!0,get:function(){return s.localessEditable}}),Object.defineProperty(exports,`localessEditableField`,{enumerable:!0,get:function(){return s.localessEditableField}}),exports.localessInit=e.localessInit,exports.registerComponent=e.registerComponent,exports.renderRichTextToReact=r.renderRichTextToReact,exports.resolveAsset=e.resolveAsset,exports.unregisterComponent=e.unregisterComponent;
|
package/dist/rsc/index.mjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { getComponent as e, getFallbackComponent as t, getLocalessClient as n, isSyncEnabled as r, localessInit as i, registerComponent as a, resolveAsset as o, unregisterComponent as s } from "../core/state.mjs";
|
|
2
2
|
import { findLink as c } from "../core/utils/link.util.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { LocalessComponent as
|
|
5
|
-
import { renderRichTextToReact as
|
|
6
|
-
import { LocalessServerComponent as
|
|
7
|
-
import { LocalessServerDocument as
|
|
8
|
-
import { LocalessDocument as
|
|
9
|
-
export {
|
|
3
|
+
import { AssetTransformParams as l, isBrowser as u, isIframe as d, isServer as f, localessEditable as p, localessEditableField as m } from "../core/utils/index.mjs";
|
|
4
|
+
import { LocalessComponent as h } from "../core/components/localess-component.mjs";
|
|
5
|
+
import { renderRichTextToReact as g } from "../core/richtext.mjs";
|
|
6
|
+
import { LocalessServerComponent as _ } from "../ssr/localess-component.mjs";
|
|
7
|
+
import { LocalessServerDocument as v } from "../ssr/localess-document.mjs";
|
|
8
|
+
import { LocalessDocument as y } from "./localess-document.mjs";
|
|
9
|
+
export { l as AssetTransformParams, h as LocalessComponent, y as LocalessDocument, _ as LocalessServerComponent, v as LocalessServerDocument, c as findLink, e as getComponent, t as getFallbackComponent, n as getLocalessClient, u as isBrowser, d as isIframe, f as isServer, r as isSyncEnabled, p as localessEditable, m as localessEditableField, i as localessInit, a as registerComponent, g as renderRichTextToReact, o as resolveAsset, s as unregisterComponent };
|
package/dist/ssr/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../core/state.js`),t=require(`../core/utils/link.util.js`),n=require(`../core/richtext.js`),r=require(`./localess-component.js`),i=require(`./localess-document.js`);let a=require(`@localess/client`);exports.LocalessServerComponent=r.LocalessServerComponent,exports.LocalessServerDocument=i.LocalessServerDocument,exports.findLink=t.findLink,exports.getComponent=e.getComponent,exports.getFallbackComponent=e.getFallbackComponent,exports.getLocalessClient=e.getLocalessClient,Object.defineProperty(exports,`isBrowser`,{enumerable:!0,get:function(){return a.isBrowser}}),Object.defineProperty(exports,`isIframe`,{enumerable:!0,get:function(){return a.isIframe}}),Object.defineProperty(exports,`isServer`,{enumerable:!0,get:function(){return a.isServer}}),Object.defineProperty(exports,`localessEditable`,{enumerable:!0,get:function(){return a.localessEditable}}),Object.defineProperty(exports,`localessEditableField`,{enumerable:!0,get:function(){return a.localessEditableField}}),exports.localessInit=e.localessInit,exports.registerComponent=e.registerComponent,exports.renderRichTextToReact=n.renderRichTextToReact,exports.resolveAsset=e.resolveAsset,exports.unregisterComponent=e.unregisterComponent;
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require(`../core/state.js`),t=require(`../core/utils/link.util.js`),n=require(`../core/richtext.js`),r=require(`./localess-component.js`),i=require(`./localess-document.js`);let a=require(`@localess/client`);Object.defineProperty(exports,`AssetTransformParams`,{enumerable:!0,get:function(){return a.AssetTransformParams}}),exports.LocalessServerComponent=r.LocalessServerComponent,exports.LocalessServerDocument=i.LocalessServerDocument,exports.findLink=t.findLink,exports.getComponent=e.getComponent,exports.getFallbackComponent=e.getFallbackComponent,exports.getLocalessClient=e.getLocalessClient,Object.defineProperty(exports,`isBrowser`,{enumerable:!0,get:function(){return a.isBrowser}}),Object.defineProperty(exports,`isIframe`,{enumerable:!0,get:function(){return a.isIframe}}),Object.defineProperty(exports,`isServer`,{enumerable:!0,get:function(){return a.isServer}}),Object.defineProperty(exports,`localessEditable`,{enumerable:!0,get:function(){return a.localessEditable}}),Object.defineProperty(exports,`localessEditableField`,{enumerable:!0,get:function(){return a.localessEditableField}}),exports.localessInit=e.localessInit,exports.registerComponent=e.registerComponent,exports.renderRichTextToReact=n.renderRichTextToReact,exports.resolveAsset=e.resolveAsset,exports.unregisterComponent=e.unregisterComponent;
|
package/dist/ssr/index.mjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { getComponent as e, getFallbackComponent as t, getLocalessClient as n, localessInit as r, registerComponent as i, resolveAsset as a, unregisterComponent as o } from "../core/state.mjs";
|
|
2
2
|
import { findLink as s } from "../core/utils/link.util.mjs";
|
|
3
|
-
import {
|
|
4
|
-
import { renderRichTextToReact as
|
|
5
|
-
import { LocalessServerComponent as
|
|
6
|
-
import { LocalessServerDocument as
|
|
7
|
-
export {
|
|
3
|
+
import { AssetTransformParams as c, isBrowser as l, isIframe as u, isServer as d, localessEditable as f, localessEditableField as p } from "../core/utils/index.mjs";
|
|
4
|
+
import { renderRichTextToReact as m } from "../core/richtext.mjs";
|
|
5
|
+
import { LocalessServerComponent as h } from "./localess-component.mjs";
|
|
6
|
+
import { LocalessServerDocument as g } from "./localess-document.mjs";
|
|
7
|
+
export { c as AssetTransformParams, h as LocalessServerComponent, g as LocalessServerDocument, s as findLink, e as getComponent, t as getFallbackComponent, n as getLocalessClient, l as isBrowser, u as isIframe, d as isServer, f as localessEditable, p as localessEditableField, r as localessInit, i as registerComponent, m as renderRichTextToReact, a as resolveAsset, o as unregisterComponent };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localess/react",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9-dev.20260520205852",
|
|
4
4
|
"description": "ReactJS JavaScript/TypeScript SDK for Localess's API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"localess",
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"react-dom": "^17 || ^18 || ^19"
|
|
62
62
|
},
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@localess/client": "3.0.
|
|
64
|
+
"@localess/client": "3.0.9-dev.20260520205852",
|
|
65
65
|
"@tiptap/extension-bold": "^3.22.5",
|
|
66
66
|
"@tiptap/extension-bullet-list": "^3.22.5",
|
|
67
67
|
"@tiptap/extension-code": "^3.22.5",
|