@nutrient-sdk/document-authoring 1.8.0-preview.202507281634.9fda88b6830d2ddefebb5e985576eb688cede7e5 → 1.8.0-preview.202507290749.188b17d3b70daf3f3b472c91c400a08dd8638bb5

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
@@ -78,7 +78,7 @@ the SDK via `npm`).
78
78
 
79
79
  ### Example
80
80
 
81
- You can download an example project demoing both TypeScript and JavaScript integration from [here](https://document-authoring.cdn.staging.nutrient.io/releases/document-authoring-1.8.0-preview.202507281634.9fda88b6830d2ddefebb5e985576eb688cede7e5-example.zip), unzip it and run:
81
+ You can download an example project demoing both TypeScript and JavaScript integration from [here](https://document-authoring.cdn.staging.nutrient.io/releases/document-authoring-1.8.0-preview.202507290749.188b17d3b70daf3f3b472c91c400a08dd8638bb5-example.zip), unzip it and run:
82
82
 
83
83
  ```bash
84
84
  npm install
@@ -92,7 +92,7 @@ By default, the Document Authoring SDK will fetch the required files (fonts, emo
92
92
 
93
93
  ### Self-hosting the assets
94
94
 
95
- To host the assets on your own infrastructure you can download them from [here](https://document-authoring.cdn.staging.nutrient.io/releases/document-authoring-1.8.0-preview.202507281634.9fda88b6830d2ddefebb5e985576eb688cede7e5-assets.zip) and deploy them to a suitable location.
95
+ To host the assets on your own infrastructure you can download them from [here](https://document-authoring.cdn.staging.nutrient.io/releases/document-authoring-1.8.0-preview.202507290749.188b17d3b70daf3f3b472c91c400a08dd8638bb5-assets.zip) and deploy them to a suitable location.
96
96
  Provide an appropriate base path when initializing the Document Authoring SDK.
97
97
 
98
98
  #### Example:
package/lib/docauth.mjs CHANGED
@@ -1,4 +1,4 @@
1
- const t={type:"default-index"},e=async t=>(await(async t=>{const e=new URL(t??"https://document-authoring.cdn.staging.nutrient.io/2025/1/",window.location.href).href,a=new URL("docauth-impl-a2fad2c2d9e6b5b1.js",e).href;return import(
1
+ const t={type:"default-index"},e=async t=>(await(async t=>{const e=new URL(t??"https://document-authoring.cdn.staging.nutrient.io/2025/1/",window.location.href).href,n=new URL("docauth-impl-1824c899dc0f1de9.js",e).href;return import(
2
2
  /*webpackIgnore: true*/
3
3
  /* @vite-ignore */
4
- a)})(t?.assets?.base)).createDocAuthSystem(t);var a={createDocAuthSystem:e,defaultFontIndex:t};export{e as createDocAuthSystem,a as default,t as defaultFontIndex};
4
+ n)})(t?.assets?.base)).createDocAuthSystem(t);var n={createDocAuthSystem:e,defaultFontIndex:t};export{e as createDocAuthSystem,n as default,t as defaultFontIndex};
@@ -1,4 +1,4 @@
1
- !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DocAuth={})}(this,(function(e){"use strict";const t={type:"default-index"},n=async e=>(await(async e=>{const t=new URL(e??"https://document-authoring.cdn.staging.nutrient.io/2025/1/",window.location.href).href,n=new URL("docauth-impl-a2fad2c2d9e6b5b1.js",t).href;return import(
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).DocAuth={})}(this,(function(e){"use strict";const t={type:"default-index"},n=async e=>(await(async e=>{const t=new URL(e??"https://document-authoring.cdn.staging.nutrient.io/2025/1/",window.location.href).href,n=new URL("docauth-impl-1824c899dc0f1de9.js",t).href;return import(
2
2
  /*webpackIgnore: true*/
3
3
  /* @vite-ignore */
4
4
  n)})(e?.assets?.base)).createDocAuthSystem(e);var o={createDocAuthSystem:n,defaultFontIndex:t};e.createDocAuthSystem=n,e.default=o,e.defaultFontIndex=t,Object.defineProperty(e,"__esModule",{value:!0})}));
package/lib/index.d.cts CHANGED
@@ -206,7 +206,7 @@ export declare type DocAuthEditor = {
206
206
  *
207
207
  * @internal
208
208
  */
209
- on: <K extends keyof DocAuthEditorEvents>(event: K, handler: DocAuthEditorEvents[K] extends void ? () => void : (payload: DocAuthEditorEvents[K]) => void) => DocAuthEditor;
209
+ on: <EventName extends keyof DocAuthEditorEvents>(event: EventName, handler: DocAuthEditorEventHandler<EventName>) => DocAuthEditor;
210
210
  /**
211
211
  * Removes an event listener. If no handler is provided, removes all listeners for the event.
212
212
  *
@@ -225,7 +225,7 @@ export declare type DocAuthEditor = {
225
225
  *
226
226
  * @internal
227
227
  */
228
- off: <K extends keyof DocAuthEditorEvents>(event: K, handler?: DocAuthEditorEvents[K] extends void ? () => void : (payload: DocAuthEditorEvents[K]) => void) => DocAuthEditor;
228
+ off: <EventName extends keyof DocAuthEditorEvents>(event: EventName, handler?: DocAuthEditorEventHandler<EventName>) => DocAuthEditor;
229
229
  /**
230
230
  * Adds an event listener that will be called only once when the specified event is emitted.
231
231
  * The listener is automatically removed after being called.
@@ -243,9 +243,14 @@ export declare type DocAuthEditor = {
243
243
  *
244
244
  * @internal
245
245
  */
246
- once: <K extends keyof DocAuthEditorEvents>(event: K, handler: DocAuthEditorEvents[K] extends void ? () => void : (payload: DocAuthEditorEvents[K]) => void) => DocAuthEditor;
246
+ once: <EventName extends keyof DocAuthEditorEvents>(event: EventName, handler: DocAuthEditorEventHandler<EventName>) => DocAuthEditor;
247
247
  };
248
248
 
249
+ /**
250
+ * @internal
251
+ */
252
+ export declare type DocAuthEditorEventHandler<EventName extends keyof DocAuthEditorEvents> = DocAuthEditorEvents[EventName] extends void ? () => void : (payload: DocAuthEditorEvents[EventName]) => void;
253
+
249
254
  /**
250
255
  * @internal
251
256
  */
package/lib/index.d.mts CHANGED
@@ -206,7 +206,7 @@ export declare type DocAuthEditor = {
206
206
  *
207
207
  * @internal
208
208
  */
209
- on: <K extends keyof DocAuthEditorEvents>(event: K, handler: DocAuthEditorEvents[K] extends void ? () => void : (payload: DocAuthEditorEvents[K]) => void) => DocAuthEditor;
209
+ on: <EventName extends keyof DocAuthEditorEvents>(event: EventName, handler: DocAuthEditorEventHandler<EventName>) => DocAuthEditor;
210
210
  /**
211
211
  * Removes an event listener. If no handler is provided, removes all listeners for the event.
212
212
  *
@@ -225,7 +225,7 @@ export declare type DocAuthEditor = {
225
225
  *
226
226
  * @internal
227
227
  */
228
- off: <K extends keyof DocAuthEditorEvents>(event: K, handler?: DocAuthEditorEvents[K] extends void ? () => void : (payload: DocAuthEditorEvents[K]) => void) => DocAuthEditor;
228
+ off: <EventName extends keyof DocAuthEditorEvents>(event: EventName, handler?: DocAuthEditorEventHandler<EventName>) => DocAuthEditor;
229
229
  /**
230
230
  * Adds an event listener that will be called only once when the specified event is emitted.
231
231
  * The listener is automatically removed after being called.
@@ -243,9 +243,14 @@ export declare type DocAuthEditor = {
243
243
  *
244
244
  * @internal
245
245
  */
246
- once: <K extends keyof DocAuthEditorEvents>(event: K, handler: DocAuthEditorEvents[K] extends void ? () => void : (payload: DocAuthEditorEvents[K]) => void) => DocAuthEditor;
246
+ once: <EventName extends keyof DocAuthEditorEvents>(event: EventName, handler: DocAuthEditorEventHandler<EventName>) => DocAuthEditor;
247
247
  };
248
248
 
249
+ /**
250
+ * @internal
251
+ */
252
+ export declare type DocAuthEditorEventHandler<EventName extends keyof DocAuthEditorEvents> = DocAuthEditorEvents[EventName] extends void ? () => void : (payload: DocAuthEditorEvents[EventName]) => void;
253
+
249
254
  /**
250
255
  * @internal
251
256
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nutrient-sdk/document-authoring",
3
- "version": "1.8.0-preview.202507281634.9fda88b6830d2ddefebb5e985576eb688cede7e5",
3
+ "version": "1.8.0-preview.202507290749.188b17d3b70daf3f3b472c91c400a08dd8638bb5",
4
4
  "description": "A web SDK for word processing and rich text capabilities.",
5
5
  "type": "commonjs",
6
6
  "main": "lib/docauth.umd.js",