@innovastudio/contentbox 1.6.201 → 1.6.203

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/index.d.ts CHANGED
@@ -64,6 +64,12 @@ interface ContentBoxOptions {
64
64
  contentResizeHandles?: boolean;
65
65
  /** Superscript & subscript buttons on the Text panel. Default: false. */
66
66
  subscriptSuperscript?: boolean;
67
+ /** Insert Image button on the Text panel. Default: false. */
68
+ image?: boolean;
69
+ /** Insert Icon button on the Text panel. Default: true. */
70
+ icons?: boolean;
71
+ /** Insert SVG button on the Text panel. Default: false. */
72
+ svg?: boolean;
67
73
  /** Insert Symbol button on the Text panel. Default: false. */
68
74
  symbols?: boolean;
69
75
  /** Search & Replace button on the Text panel. Default: false. */
@@ -311,6 +317,15 @@ interface ContentBoxOptions {
311
317
  undoRedoStyles?: boolean;
312
318
  undoContainerOnly?: boolean;
313
319
  absolutePath?: boolean;
320
+ /** Stop browser extensions from running inside the editing areas. Default false (saved content is cleaned either way). */
321
+ disableEditorExtensions?: boolean;
322
+ /** Extra markup to remove from the saved HTML, on top of the built-in browser-extension lists. */
323
+ extensionArtifacts?: {
324
+ elements?: string[];
325
+ wrappers?: string[];
326
+ attributePrefixes?: string[];
327
+ stylePrefixes?: string[];
328
+ };
314
329
  maxEmbedImageWidth?: number;
315
330
  zoom?: number;
316
331
  shiftDisableBreakpoint?: number;
@@ -545,6 +560,12 @@ interface ContentBoxOptions {
545
560
  autoSave?: () => void | Promise<void>;
546
561
 
547
562
  onLoadHtml?: () => void | Promise<void>;
563
+ /** Drag & drop engine.
564
+ * 'letak' (default): one code path for mouse, touch and keyboard, so no
565
+ * iPad fallback is needed and iframeDragDrop is ignored.
566
+ * 'sortable': the previous engine. On an iPad it switches to the iframe
567
+ * drag & drop fallback automatically. */
568
+ dragDropEngine?: 'letak' | 'sortable';
548
569
  iframeDragDrop?: boolean;
549
570
 
550
571
  activeStyleOffset?: number;
@@ -735,6 +756,8 @@ declare class ContentBox {
735
756
  openFileUpload(type?: string, callback?: (url: string) => void): void;
736
757
  /** Select and upload buttons for a URL field in a plugin's settings. Select is included only where an asset manager is configured. */
737
758
  createFileButtons(type?: string, callback?: (url: string) => void): HTMLButtonElement[];
759
+ /** Make a list in a plugin's settings panel sortable. In onSort the list is already in its new order. */
760
+ sortableList(el: HTMLElement, opts?: { handle?: string; animation?: number; onSort?: () => void }): void;
738
761
  openColorPicker(
739
762
  currentColor: string,
740
763
  callback: (color: string) => void,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@innovastudio/contentbox",
4
- "version": "1.6.201",
4
+ "version": "1.6.203",
5
5
  "description": "",
6
6
  "main": "public/contentbox/contentbox.esm.js",
7
7
  "types": "index.d.ts",
@@ -38,6 +38,9 @@
38
38
  "@babel/preset-env": "^7.15.0",
39
39
  "@deepgram/sdk": "^2.3.0",
40
40
  "@fal-ai/client": "^1.4.0",
41
+ "@gltf-transform/core": "^4.5.0",
42
+ "@gltf-transform/extensions": "^4.5.0",
43
+ "@gltf-transform/functions": "^4.5.0",
41
44
  "@google/genai": "^0.10.0",
42
45
  "@rollup/plugin-babel": "^5.3.0",
43
46
  "@rollup/plugin-commonjs": "^25.0.7",
@@ -53,6 +56,7 @@
53
56
  "express": "^4.17.1",
54
57
  "express-session": "^1.17.2",
55
58
  "formidable-serverless": "^1.1.1",
59
+ "meshoptimizer": "^1.2.0",
56
60
  "mime-types": "^3.0.1",
57
61
  "mini-css-extract-plugin": "^2.2.0",
58
62
  "multer": "^1.4.5-lts.1",
@@ -69,13 +73,9 @@
69
73
  "ws": "^8.13.0"
70
74
  },
71
75
  "dependencies": {
72
- "@gltf-transform/core": "^4.5.0",
73
- "@gltf-transform/extensions": "^4.5.0",
74
- "@gltf-transform/functions": "^4.5.0",
75
- "@innovastudio/contentbuilder": "^1.5.219",
76
+ "@innovastudio/contentbuilder": "^1.5.221",
76
77
  "js-beautify": "^1.14.0",
77
78
  "marked": "^17.0.0",
78
- "meshoptimizer": "^1.2.0",
79
79
  "sortablejs": "^1.15.2"
80
80
  }
81
81
  }