@localess/js-client 0.3.2-next.20250109-090340.0 → 0.4.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 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 EventType = 'input' | 'save' | 'publish' | 'change';
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: ContentData;
261
+ data: any;
262
+ } | {
263
+ type: 'enterSchema' | 'hoverSchema';
264
+ id: string;
262
265
  };
263
266
  interface LocalessSync {
264
- on: (event: EventType | EventType[], callback: EventCallback) => void;
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 EventType, type Links, type LinksFetchParams, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, loadLocalessSync, localessClient };
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 EventType = 'input' | 'save' | 'publish' | 'change';
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: ContentData;
261
+ data: any;
262
+ } | {
263
+ type: 'enterSchema' | 'hoverSchema';
264
+ id: string;
262
265
  };
263
266
  interface LocalessSync {
264
- on: (event: EventType | EventType[], callback: EventCallback) => void;
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 EventType, type Links, type LinksFetchParams, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, loadLocalessSync, localessClient };
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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@localess/js-client",
3
- "version": "0.3.2-next.20250109-090340.0",
3
+ "version": "0.4.0",
4
4
  "description": "Universal JavaScript/TypeScript SDK for Localess's API.",
5
5
  "keywords": [
6
6
  "localess",