@pexelize/react-editor 2.1.0 → 2.1.2

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.
Files changed (2) hide show
  1. package/dist/index.d.ts +63 -3
  2. package/package.json +1 -1
package/dist/index.d.ts CHANGED
@@ -2,7 +2,6 @@ import React from 'react';
2
2
 
3
3
  /**
4
4
  * Pexelize React Editor Types
5
- * Minimal type definitions for the React wrapper
6
5
  */
7
6
  type EditorMode = "email" | "web" | "popup" | "document";
8
7
  type ThemeMode = "light" | "dark" | "auto" | "pexelize-light" | "pexelize-dark";
@@ -67,8 +66,8 @@ interface Module {
67
66
  id: string;
68
67
  /** Display name */
69
68
  name: string;
70
- /** Category for grouping */
71
- category: string;
69
+ /** Category for grouping (optional) */
70
+ category?: string;
72
71
  /** Module mode - "email" or "web" (editor compatibility) */
73
72
  mode: "email" | "web";
74
73
  /** Module type - "standard" or "synced" (sync behavior) */
@@ -96,10 +95,64 @@ interface SpecialLinkGroup {
96
95
  name: string;
97
96
  specialLinks: SpecialLink[];
98
97
  }
98
+ interface ModulesTabConfig {
99
+ /** Rows accordion configuration */
100
+ rows?: {
101
+ visible?: boolean;
102
+ defaultExpanded?: boolean;
103
+ };
104
+ /** Saved modules accordion configuration */
105
+ savedModules?: {
106
+ visible?: boolean;
107
+ defaultExpanded?: boolean;
108
+ /** Title for the saved modules accordion (default: "Saved Modules") */
109
+ title?: string;
110
+ };
111
+ /** Custom tabs configuration */
112
+ customTabs?: Array<{
113
+ id: string;
114
+ title: string;
115
+ icon?: string;
116
+ defaultExpanded?: boolean;
117
+ items?: Array<{
118
+ id: string;
119
+ name: string;
120
+ thumbnail?: string;
121
+ data?: Record<string, unknown>;
122
+ }>;
123
+ }>;
124
+ }
125
+ interface StylesTabConfig {
126
+ general?: {
127
+ visible?: boolean;
128
+ defaultExpanded?: boolean;
129
+ };
130
+ fonts?: {
131
+ visible?: boolean;
132
+ defaultExpanded?: boolean;
133
+ };
134
+ contentAlignment?: {
135
+ visible?: boolean;
136
+ defaultExpanded?: boolean;
137
+ };
138
+ backgroundImage?: {
139
+ visible?: boolean;
140
+ defaultExpanded?: boolean;
141
+ };
142
+ linkStyles?: {
143
+ visible?: boolean;
144
+ defaultExpanded?: boolean;
145
+ };
146
+ preheader?: {
147
+ visible?: boolean;
148
+ defaultExpanded?: boolean;
149
+ };
150
+ }
99
151
  interface AppearanceConfig {
100
152
  theme?: ThemeMode | object;
101
153
  accentColor?: string;
102
154
  sidePanel?: {
155
+ /** Main tab visibility */
103
156
  tabs?: {
104
157
  content?: {
105
158
  visible?: boolean;
@@ -111,8 +164,15 @@ interface AppearanceConfig {
111
164
  visible?: boolean;
112
165
  };
113
166
  };
167
+ /** Modules tab configuration */
168
+ modulesTab?: ModulesTabConfig;
169
+ /** Styles tab configuration */
170
+ stylesTab?: StylesTabConfig;
171
+ /** Panel position: 'left' or 'right' (default: 'right') */
114
172
  dock?: "left" | "right";
173
+ /** Panel width in pixels (default: 380) */
115
174
  width?: number;
175
+ /** Whether panel can be collapsed (default: false) */
116
176
  collapsible?: boolean;
117
177
  };
118
178
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pexelize/react-editor",
3
- "version": "2.1.0",
3
+ "version": "2.1.2",
4
4
  "type": "module",
5
5
  "description": "React wrapper component for the Pexelize Editor - thin wrapper that exposes raw SDK for maximum flexibility",
6
6
  "main": "dist/index.js",