esender-email-editor 1.1.0 → 1.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.
package/dist/index.d.ts CHANGED
@@ -35,37 +35,6 @@ interface TemplateApiResponse {
35
35
  template?: TemplateDocument;
36
36
  }
37
37
 
38
- /**
39
- * Module-level API configuration for the editor.
40
- *
41
- * Consumers override these via the `apiConfig` prop on <Package />. Internal
42
- * modules (axiosClient, license, template, UploadMedia) read from this module
43
- * instead of hardcoded constants so the editor can talk to any backend that
44
- * implements the same contract.
45
- *
46
- * Endpoint defaults follow the spec paths (e.g. /template/create). The host
47
- * URL (`baseUrl`) defaults to the eSender production API.
48
- *
49
- * Template URLs may contain :projectId / :templateId placeholders, which
50
- * `resolveTemplatePath` substitutes at call time.
51
- */
52
- interface ApiConfig {
53
- /** API host. No trailing slash. */
54
- baseUrl?: string;
55
- /** POST — exchange apiKey for access + refresh tokens. */
56
- verifyUrl?: string;
57
- /** POST — exchange refresh token for new access token. */
58
- refreshUrl?: string;
59
- /** POST — create or update a template (templateId in body for update). */
60
- saveTemplateUrl?: string;
61
- /** GET — load the project's current template. `:projectId` is substituted. */
62
- getTemplatesUrl?: string;
63
- /** GET — load a specific template. `:projectId` / `:templateId` are substituted. */
64
- getTemplateByIdUrl?: string;
65
- /** POST (multipart) — upload an image. Receives a hosted URL back. */
66
- uploadMediaUrl?: string;
67
- }
68
-
69
38
  /**
70
39
  * Editor event callbacks exposed to consumers via <Package />.
71
40
  *
@@ -134,11 +103,6 @@ interface PackageProps extends EditorEventCallbacks {
134
103
  * backwards-compatible prop signatures during the migration. Ignored at runtime.
135
104
  */
136
105
  projectId?: string;
137
- /**
138
- * Override default API endpoints (base URL + per-route paths). Consumers
139
- * who self-host the backend pass this to point the editor at their server.
140
- */
141
- apiConfig?: ApiConfig;
142
106
  onLicenseError?: (error: LicenseError) => void;
143
107
  customButtons?: ReactNode;
144
108
  showUndoRedo?: boolean;
@@ -146,4 +110,4 @@ interface PackageProps extends EditorEventCallbacks {
146
110
  declare const Package: React.ForwardRefExoticComponent<PackageProps & React.RefAttributes<EditorHandle>>;
147
111
 
148
112
  export { Package, Package as default };
149
- export type { ApiConfig, EditorEventCallbacks, EditorHandle, LicenseError, LicenseErrorCode, LoadEvent, LoadTemplateOptions, MediaUploadEvent, PackageProps, RefreshTokenResponse, SaveEvent, SaveTemplateOptions, TemplateApiResponse, TemplateDocument, VerifyLicenseResponse };
113
+ export type { EditorEventCallbacks, EditorHandle, LicenseError, LicenseErrorCode, LoadEvent, LoadTemplateOptions, MediaUploadEvent, PackageProps, RefreshTokenResponse, SaveEvent, SaveTemplateOptions, TemplateApiResponse, TemplateDocument, VerifyLicenseResponse };