@localess/js-client 0.8.0 → 0.8.1-next.20250512-070002.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 +4 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.js +7 -0
- package/dist/index.mjs +6 -0
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -253,6 +253,9 @@ declare function llEditable(content: ContentDataSchema): {
|
|
|
253
253
|
'data-ll-id': string;
|
|
254
254
|
'data-ll-schema': string;
|
|
255
255
|
};
|
|
256
|
+
declare function llEditableField(fieldName: string): {
|
|
257
|
+
'data-ll-field': string;
|
|
258
|
+
};
|
|
256
259
|
|
|
257
260
|
/**
|
|
258
261
|
* Inject Localess Sync Script in Header
|
|
@@ -281,4 +284,4 @@ declare global {
|
|
|
281
284
|
}
|
|
282
285
|
}
|
|
283
286
|
|
|
284
|
-
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 LocalessClient, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, loadLocalessSync, localessClient };
|
|
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 EventToApp, type EventToAppType, type Links, type LinksFetchParams, type LocalessClient, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, llEditableField, loadLocalessSync, localessClient };
|
package/dist/index.d.ts
CHANGED
|
@@ -253,6 +253,9 @@ declare function llEditable(content: ContentDataSchema): {
|
|
|
253
253
|
'data-ll-id': string;
|
|
254
254
|
'data-ll-schema': string;
|
|
255
255
|
};
|
|
256
|
+
declare function llEditableField(fieldName: string): {
|
|
257
|
+
'data-ll-field': string;
|
|
258
|
+
};
|
|
256
259
|
|
|
257
260
|
/**
|
|
258
261
|
* Inject Localess Sync Script in Header
|
|
@@ -281,4 +284,4 @@ declare global {
|
|
|
281
284
|
}
|
|
282
285
|
}
|
|
283
286
|
|
|
284
|
-
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 LocalessClient, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, loadLocalessSync, localessClient };
|
|
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 EventToApp, type EventToAppType, type Links, type LinksFetchParams, type LocalessClient, type LocalessClientOptions, type LocalessSync, type Translations, llEditable, llEditableField, loadLocalessSync, localessClient };
|
package/dist/index.js
CHANGED
|
@@ -21,6 +21,7 @@ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: tru
|
|
|
21
21
|
var index_exports = {};
|
|
22
22
|
__export(index_exports, {
|
|
23
23
|
llEditable: () => llEditable,
|
|
24
|
+
llEditableField: () => llEditableField,
|
|
24
25
|
loadLocalessSync: () => loadLocalessSync,
|
|
25
26
|
localessClient: () => localessClient
|
|
26
27
|
});
|
|
@@ -166,6 +167,11 @@ function llEditable(content) {
|
|
|
166
167
|
"data-ll-schema": content._schema || content.schema
|
|
167
168
|
};
|
|
168
169
|
}
|
|
170
|
+
function llEditableField(fieldName) {
|
|
171
|
+
return {
|
|
172
|
+
"data-ll-field": fieldName
|
|
173
|
+
};
|
|
174
|
+
}
|
|
169
175
|
|
|
170
176
|
// src/sync.ts
|
|
171
177
|
var JS_SYNC_ID = "localess-js-sync";
|
|
@@ -189,6 +195,7 @@ function loadLocalessSync(origin, force = false) {
|
|
|
189
195
|
// Annotate the CommonJS export names for ESM import in node:
|
|
190
196
|
0 && (module.exports = {
|
|
191
197
|
llEditable,
|
|
198
|
+
llEditableField,
|
|
192
199
|
loadLocalessSync,
|
|
193
200
|
localessClient
|
|
194
201
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -138,6 +138,11 @@ function llEditable(content) {
|
|
|
138
138
|
"data-ll-schema": content._schema || content.schema
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
|
+
function llEditableField(fieldName) {
|
|
142
|
+
return {
|
|
143
|
+
"data-ll-field": fieldName
|
|
144
|
+
};
|
|
145
|
+
}
|
|
141
146
|
|
|
142
147
|
// src/sync.ts
|
|
143
148
|
var JS_SYNC_ID = "localess-js-sync";
|
|
@@ -160,6 +165,7 @@ function loadLocalessSync(origin, force = false) {
|
|
|
160
165
|
}
|
|
161
166
|
export {
|
|
162
167
|
llEditable,
|
|
168
|
+
llEditableField,
|
|
163
169
|
loadLocalessSync,
|
|
164
170
|
localessClient
|
|
165
171
|
};
|