@localess/js-client 0.8.2-next.20250615-165147.0 → 0.8.2-next.20250625-083423.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/dist/index.d.mts +6 -3
- package/dist/index.d.ts +6 -3
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -264,18 +264,21 @@ declare function llEditableField(fieldName: string): {
|
|
|
264
264
|
*/
|
|
265
265
|
declare function loadLocalessSync(origin: string, force?: boolean): void;
|
|
266
266
|
|
|
267
|
-
type EventToAppType = 'save' | 'publish' | 'input' | 'change' | 'enterSchema' | 'hoverSchema';
|
|
267
|
+
type EventToAppType = 'save' | 'publish' | 'pong' | 'input' | 'change' | 'enterSchema' | 'hoverSchema';
|
|
268
268
|
type EventCallback = (event: EventToApp) => void;
|
|
269
269
|
type EventToApp = {
|
|
270
|
-
type: 'save' | 'publish';
|
|
270
|
+
type: 'save' | 'publish' | 'pong';
|
|
271
271
|
} | {
|
|
272
272
|
type: 'input' | 'change';
|
|
273
273
|
data: any;
|
|
274
274
|
} | {
|
|
275
275
|
type: 'enterSchema' | 'hoverSchema';
|
|
276
276
|
id: string;
|
|
277
|
+
schema: string;
|
|
278
|
+
field?: string;
|
|
277
279
|
};
|
|
278
280
|
interface LocalessSync {
|
|
281
|
+
onChange: (callback: EventCallback) => void;
|
|
279
282
|
on: (event: EventToAppType | EventToAppType[], callback: EventCallback) => void;
|
|
280
283
|
}
|
|
281
284
|
declare global {
|
|
@@ -284,4 +287,4 @@ declare global {
|
|
|
284
287
|
}
|
|
285
288
|
}
|
|
286
289
|
|
|
287
|
-
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type
|
|
290
|
+
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type Links, type LinksFetchParams, type LocalessClient, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, llEditableField, loadLocalessSync, localessClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -264,18 +264,21 @@ declare function llEditableField(fieldName: string): {
|
|
|
264
264
|
*/
|
|
265
265
|
declare function loadLocalessSync(origin: string, force?: boolean): void;
|
|
266
266
|
|
|
267
|
-
type EventToAppType = 'save' | 'publish' | 'input' | 'change' | 'enterSchema' | 'hoverSchema';
|
|
267
|
+
type EventToAppType = 'save' | 'publish' | 'pong' | 'input' | 'change' | 'enterSchema' | 'hoverSchema';
|
|
268
268
|
type EventCallback = (event: EventToApp) => void;
|
|
269
269
|
type EventToApp = {
|
|
270
|
-
type: 'save' | 'publish';
|
|
270
|
+
type: 'save' | 'publish' | 'pong';
|
|
271
271
|
} | {
|
|
272
272
|
type: 'input' | 'change';
|
|
273
273
|
data: any;
|
|
274
274
|
} | {
|
|
275
275
|
type: 'enterSchema' | 'hoverSchema';
|
|
276
276
|
id: string;
|
|
277
|
+
schema: string;
|
|
278
|
+
field?: string;
|
|
277
279
|
};
|
|
278
280
|
interface LocalessSync {
|
|
281
|
+
onChange: (callback: EventCallback) => void;
|
|
279
282
|
on: (event: EventToAppType | EventToAppType[], callback: EventCallback) => void;
|
|
280
283
|
}
|
|
281
284
|
declare global {
|
|
@@ -284,4 +287,4 @@ declare global {
|
|
|
284
287
|
}
|
|
285
288
|
}
|
|
286
289
|
|
|
287
|
-
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type
|
|
290
|
+
export { type Content, type ContentAsset, type ContentData, type ContentDataField, type ContentDataSchema, type ContentFetchParams, type ContentLink, type ContentMetadata, type ContentReference, type ContentRichText, type EventCallback, type Links, type LinksFetchParams, type LocalessClient, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, llEditableField, loadLocalessSync, localessClient };
|