@localess/react 0.8.6-next.20251221-195553.0 → 0.8.6
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.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +6 -0
- package/dist/index.mjs +4 -1
- package/package.json +2 -2
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, ContentRichText, LocalessClient } from '@localess/js-client';
|
|
4
|
-
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, Translations, llEditable, llEditableField, localessEditable, localessEditableField } from '@localess/js-client';
|
|
4
|
+
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, Translations, isBrowser, isIframe, isServer, llEditable, llEditableField, localessEditable, localessEditableField } from '@localess/js-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, ContentRichText, LocalessClient } from '@localess/js-client';
|
|
4
|
-
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, Translations, llEditable, llEditableField, localessEditable, localessEditableField } from '@localess/js-client';
|
|
4
|
+
export { Content, ContentAsset, ContentData, ContentDataField, ContentDataSchema, ContentLink, ContentMetadata, ContentReference, ContentRichText, EventCallback, EventToApp, EventToAppType, Links, LocalessClient, LocalessSync, Translations, isBrowser, isIframe, isServer, llEditable, llEditableField, localessEditable, localessEditableField } from '@localess/js-client';
|
|
5
5
|
|
|
6
6
|
type LocalessOptions = LocalessClientOptions & {
|
|
7
7
|
/**
|
package/dist/index.js
CHANGED
|
@@ -24,6 +24,9 @@ __export(index_exports, {
|
|
|
24
24
|
getComponent: () => getComponent,
|
|
25
25
|
getFallbackComponent: () => getFallbackComponent,
|
|
26
26
|
getLocalessClient: () => getLocalessClient,
|
|
27
|
+
isBrowser: () => import_js_client3.isBrowser,
|
|
28
|
+
isIframe: () => import_js_client3.isIframe,
|
|
29
|
+
isServer: () => import_js_client3.isServer,
|
|
27
30
|
isSyncEnabled: () => isSyncEnabled,
|
|
28
31
|
llEditable: () => import_js_client3.llEditable,
|
|
29
32
|
llEditableField: () => import_js_client3.llEditableField,
|
|
@@ -175,6 +178,9 @@ function isSyncEnabled() {
|
|
|
175
178
|
getComponent,
|
|
176
179
|
getFallbackComponent,
|
|
177
180
|
getLocalessClient,
|
|
181
|
+
isBrowser,
|
|
182
|
+
isIframe,
|
|
183
|
+
isServer,
|
|
178
184
|
isSyncEnabled,
|
|
179
185
|
llEditable,
|
|
180
186
|
llEditableField,
|
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 { llEditable, llEditableField, localessEditable as localessEditable2, localessEditableField } from "@localess/js-client";
|
|
9
|
+
import { llEditable, llEditableField, localessEditable as localessEditable2, localessEditableField, isBrowser, isServer, isIframe } from "@localess/js-client";
|
|
10
10
|
|
|
11
11
|
// src/localess-componenet.tsx
|
|
12
12
|
import { forwardRef } from "react";
|
|
@@ -136,6 +136,9 @@ export {
|
|
|
136
136
|
getComponent,
|
|
137
137
|
getFallbackComponent,
|
|
138
138
|
getLocalessClient,
|
|
139
|
+
isBrowser,
|
|
140
|
+
isIframe,
|
|
141
|
+
isServer,
|
|
139
142
|
isSyncEnabled,
|
|
140
143
|
llEditable,
|
|
141
144
|
llEditableField,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localess/react",
|
|
3
|
-
"version": "0.8.6
|
|
3
|
+
"version": "0.8.6",
|
|
4
4
|
"description": "ReactJS JavaScript/TypeScript SDK for Localess's API.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"localess",
|
|
@@ -44,7 +44,7 @@
|
|
|
44
44
|
"react-dom": "^17 || ^18 || ^19"
|
|
45
45
|
},
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@localess/js-client": "0.8.
|
|
47
|
+
"@localess/js-client": "0.8.3",
|
|
48
48
|
"@tiptap/static-renderer": "^3.14.0",
|
|
49
49
|
"@tiptap/html": "^3.14.0",
|
|
50
50
|
"@tiptap/extension-bold": "^3.14.0",
|