@tiptap/extension-image 3.31.4 → 3.32.1

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.cts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Node, ResizableNodeViewDirection } from "@tiptap/core";
2
2
  //#region src/image.d.ts
3
- interface ImageOptions {
3
+ export interface ImageOptions {
4
4
  /**
5
5
  * Controls if the image node should be inline or not.
6
6
  * @default false
@@ -33,7 +33,7 @@ interface ImageOptions {
33
33
  alwaysPreserveAspectRatio?: boolean;
34
34
  } | false;
35
35
  }
36
- interface SetImageOptions {
36
+ export interface SetImageOptions {
37
37
  src: string;
38
38
  alt?: string;
39
39
  title?: string;
@@ -58,12 +58,12 @@ declare module '@tiptap/core' {
58
58
  /**
59
59
  * Matches an image to a ![image](src "title") on input.
60
60
  */
61
- declare const inputRegex: RegExp;
61
+ export declare const inputRegex: RegExp;
62
62
  /**
63
63
  * This extension allows you to insert images.
64
64
  * @see https://www.tiptap.dev/api/nodes/image
65
65
  */
66
- declare const Image: Node<ImageOptions, any>;
66
+ export declare const Image: Node<ImageOptions, any>;
67
67
  //#endregion
68
- export { Image, Image as default, ImageOptions, SetImageOptions, inputRegex };
68
+ export { Image as default };
69
69
  //# sourceMappingURL=index.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/image.ts"],"mappings":";;UASiB;;;;;;EAMf;;;;;;;EAQA;;;;;;EAOA,gBAAgB;;;;;;EAOhB;IAEM;IACA,aAAa;IACb;IACA;IACA;;;UAKS;EACf;EACA;EACA;EACA;EACA;;;YAIU,SAAS;IACjB;;;;;;;;;MASE,WAAW,SAAS,oBAAoB;;;;;;;cAQjC,YAAU;;;;;cAMV,OAAK,KAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/image.ts"],"mappings":";;iBASiB;;;;;;EAMf;;;;;;;EAQA;;;;;;EAOA,gBAAgB;;;;;;EAOhB;IAEM;IACA,aAAa;IACb;IACA;IACA;;;iBAKS;EACf;EACA;EACA;EACA;EACA;;;YAIU,SAAS;IACjB;;;;;;;;;MASE,WAAW,SAAS,oBAAoB;;;;;;;qBAQjC,YAAU;;;;;qBAMV,OAAK,KAAA"}
package/dist/index.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { Node, ResizableNodeViewDirection } from "@tiptap/core";
2
2
  //#region src/image.d.ts
3
- interface ImageOptions {
3
+ export interface ImageOptions {
4
4
  /**
5
5
  * Controls if the image node should be inline or not.
6
6
  * @default false
@@ -33,7 +33,7 @@ interface ImageOptions {
33
33
  alwaysPreserveAspectRatio?: boolean;
34
34
  } | false;
35
35
  }
36
- interface SetImageOptions {
36
+ export interface SetImageOptions {
37
37
  src: string;
38
38
  alt?: string;
39
39
  title?: string;
@@ -58,12 +58,12 @@ declare module '@tiptap/core' {
58
58
  /**
59
59
  * Matches an image to a ![image](src "title") on input.
60
60
  */
61
- declare const inputRegex: RegExp;
61
+ export declare const inputRegex: RegExp;
62
62
  /**
63
63
  * This extension allows you to insert images.
64
64
  * @see https://www.tiptap.dev/api/nodes/image
65
65
  */
66
- declare const Image: Node<ImageOptions, any>;
66
+ export declare const Image: Node<ImageOptions, any>;
67
67
  //#endregion
68
- export { Image, Image as default, ImageOptions, SetImageOptions, inputRegex };
68
+ export { Image as default };
69
69
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","names":[],"sources":["../src/image.ts"],"mappings":";;UASiB;;;;;;EAMf;;;;;;;EAQA;;;;;;EAOA,gBAAgB;;;;;;EAOhB;IAEM;IACA,aAAa;IACb;IACA;IACA;;;UAKS;EACf;EACA;EACA;EACA;EACA;;;YAIU,SAAS;IACjB;;;;;;;;;MASE,WAAW,SAAS,oBAAoB;;;;;;;cAQjC,YAAU;;;;;cAMV,OAAK,KAAA"}
1
+ {"version":3,"file":"index.d.ts","names":[],"sources":["../src/image.ts"],"mappings":";;iBASiB;;;;;;EAMf;;;;;;;EAQA;;;;;;EAOA,gBAAgB;;;;;;EAOhB;IAEM;IACA,aAAa;IACb;IACA;IACA;;;iBAKS;EACf;EACA;EACA;EACA;EACA;;;YAIU,SAAS;IACjB;;;;;;;;;MASE,WAAW,SAAS,oBAAoB;;;;;;;qBAQjC,YAAU;;;;;qBAMV,OAAK,KAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiptap/extension-image",
3
- "version": "3.31.4",
3
+ "version": "3.32.1",
4
4
  "description": "image extension for tiptap",
5
5
  "keywords": [
6
6
  "tiptap",
@@ -39,10 +39,10 @@
39
39
  }
40
40
  },
41
41
  "devDependencies": {
42
- "@tiptap/core": "^3.31.4"
42
+ "@tiptap/core": "^3.32.1"
43
43
  },
44
44
  "peerDependencies": {
45
- "@tiptap/core": "3.31.4"
45
+ "@tiptap/core": "3.32.1"
46
46
  },
47
47
  "scripts": {
48
48
  "build": "vp pack"