@localess/js-client 0.3.2-next.20250109-154209.0 → 0.4.1-next.20250109-193323.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/README.md +0 -5
- package/dist/index.d.mts +7 -4
- package/dist/index.d.ts +7 -4
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,8 +60,3 @@ import {loadLocalessSync} from "@localess/js-client";
|
|
|
60
60
|
// A fully qualified domain name with protocol (http/https) and port.
|
|
61
61
|
loadLocalessSync('https://my-localess.web.app')
|
|
62
62
|
````
|
|
63
|
-
|
|
64
|
-
## Proxy
|
|
65
|
-
|
|
66
|
-
If you are behind a proxy, make sure to set the environment variables before using the client.
|
|
67
|
-
The client will read environment variables to determine the PROXY (HTTPS_PROXY, https_proxy, HTTP_PROXY, http_proxy) and use it to make requests to the Localess API.
|
package/dist/index.d.mts
CHANGED
|
@@ -252,16 +252,19 @@ declare function llEditable(content: ContentDataSchema): {
|
|
|
252
252
|
*/
|
|
253
253
|
declare function loadLocalessSync(origin: string, force?: boolean): void;
|
|
254
254
|
|
|
255
|
-
type
|
|
255
|
+
type EventToAppType = 'save' | 'publish' | 'input' | 'change' | 'enterSchema' | 'hoverSchema';
|
|
256
256
|
type EventCallback = (event: EventToApp) => void;
|
|
257
257
|
type EventToApp = {
|
|
258
258
|
type: 'save' | 'publish';
|
|
259
259
|
} | {
|
|
260
260
|
type: 'input' | 'change';
|
|
261
|
-
data:
|
|
261
|
+
data: any;
|
|
262
|
+
} | {
|
|
263
|
+
type: 'enterSchema' | 'hoverSchema';
|
|
264
|
+
id: string;
|
|
262
265
|
};
|
|
263
266
|
interface LocalessSync {
|
|
264
|
-
on: (event:
|
|
267
|
+
on: (event: EventToAppType | EventToAppType[], callback: EventCallback) => void;
|
|
265
268
|
}
|
|
266
269
|
declare global {
|
|
267
270
|
interface Window {
|
|
@@ -269,4 +272,4 @@ declare global {
|
|
|
269
272
|
}
|
|
270
273
|
}
|
|
271
274
|
|
|
272
|
-
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type EventToApp, type
|
|
275
|
+
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type EventToApp, type EventToAppType, type Links, type LinksFetchParams, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, loadLocalessSync, localessClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -252,16 +252,19 @@ declare function llEditable(content: ContentDataSchema): {
|
|
|
252
252
|
*/
|
|
253
253
|
declare function loadLocalessSync(origin: string, force?: boolean): void;
|
|
254
254
|
|
|
255
|
-
type
|
|
255
|
+
type EventToAppType = 'save' | 'publish' | 'input' | 'change' | 'enterSchema' | 'hoverSchema';
|
|
256
256
|
type EventCallback = (event: EventToApp) => void;
|
|
257
257
|
type EventToApp = {
|
|
258
258
|
type: 'save' | 'publish';
|
|
259
259
|
} | {
|
|
260
260
|
type: 'input' | 'change';
|
|
261
|
-
data:
|
|
261
|
+
data: any;
|
|
262
|
+
} | {
|
|
263
|
+
type: 'enterSchema' | 'hoverSchema';
|
|
264
|
+
id: string;
|
|
262
265
|
};
|
|
263
266
|
interface LocalessSync {
|
|
264
|
-
on: (event:
|
|
267
|
+
on: (event: EventToAppType | EventToAppType[], callback: EventCallback) => void;
|
|
265
268
|
}
|
|
266
269
|
declare global {
|
|
267
270
|
interface Window {
|
|
@@ -269,4 +272,4 @@ declare global {
|
|
|
269
272
|
}
|
|
270
273
|
}
|
|
271
274
|
|
|
272
|
-
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type EventToApp, type
|
|
275
|
+
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type EventToApp, type EventToAppType, type Links, type LinksFetchParams, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, loadLocalessSync, localessClient };
|