eddyter 1.3.41 → 1.3.42

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.
@@ -1,3 +1,11 @@
1
+ export declare class ApiKeyRequiredError extends Error {
2
+ code: string;
3
+ constructor(message: string, code: string);
4
+ }
5
+ export declare class CreditError extends Error {
6
+ code: string;
7
+ constructor(message: string, code: string);
8
+ }
1
9
  type AiStreamType = {
2
10
  content: string;
3
11
  onMessage: (message: string) => void;
@@ -7,8 +15,9 @@ export declare const AiJsonResponse: ({ content, apiKey }: {
7
15
  content: string;
8
16
  apiKey?: string | undefined;
9
17
  }) => Promise<any>;
10
- export declare const AiImageResponse: ({ content }: {
18
+ export declare const AiImageResponse: ({ content, apiKey }: {
11
19
  content: string;
20
+ apiKey?: string | undefined;
12
21
  }) => Promise<any>;
13
22
  export declare const AiEditorAction: ({ content, provider, apiKey, }: {
14
23
  content: string;
@@ -3671,6 +3671,54 @@ body .EmojiPickerReact{
3671
3671
  --epr-category-label-text-color:hsl(var(--cteditorf47ac10b-foreground));
3672
3672
  }
3673
3673
 
3674
+ /* Editor spacing rules - override Tailwind's preflight reset for proper block spacing */
3675
+
3676
+ .cteditor-content h1,
3677
+ .cteditor-content h2,
3678
+ .cteditor-content h3,
3679
+ .cteditor-content h4,
3680
+ .cteditor-content h5,
3681
+ .cteditor-content h6 {
3682
+ margin-top: 0.83em !important;
3683
+ margin-bottom: 0.5em !important;
3684
+ }
3685
+
3686
+ .cteditor-content h1:first-child,
3687
+ .cteditor-content h2:first-child,
3688
+ .cteditor-content h3:first-child,
3689
+ .cteditor-content h4:first-child,
3690
+ .cteditor-content h5:first-child,
3691
+ .cteditor-content h6:first-child {
3692
+ margin-top: 0 !important;
3693
+ }
3694
+
3695
+ .cteditor-content code + h1,
3696
+ .cteditor-content code + h2,
3697
+ .cteditor-content code + h3,
3698
+ .cteditor-content code + h4,
3699
+ .cteditor-content code + h5,
3700
+ .cteditor-content code + h6 {
3701
+ margin-top: 1.5em !important;
3702
+ }
3703
+
3704
+ .cteditor-content code + p {
3705
+ margin-top: 1em !important;
3706
+ }
3707
+
3708
+ .cteditor-content p + p {
3709
+ margin-top: 1em !important;
3710
+ }
3711
+
3712
+ .cteditor-content p + code,
3713
+ .cteditor-content h1 + code,
3714
+ .cteditor-content h2 + code,
3715
+ .cteditor-content h3 + code,
3716
+ .cteditor-content h4 + code,
3717
+ .cteditor-content h5 + code,
3718
+ .cteditor-content h6 + code {
3719
+ margin-top: 0.5em !important;
3720
+ }
3721
+
3674
3722
  .\*\:cteditor-size-5 > *{
3675
3723
  width: 1.25rem;
3676
3724
  height: 1.25rem;
@@ -5432,6 +5480,28 @@ body .EmojiPickerReact{
5432
5480
  margin-top: 0;
5433
5481
  }
5434
5482
 
5483
+ /* Heading after code block needs extra space */
5484
+ .cteditor-content code + h1,
5485
+ .cteditor-content code + h2,
5486
+ .cteditor-content code + h3,
5487
+ .cteditor-content code + h4,
5488
+ .cteditor-content code + h5,
5489
+ .cteditor-content code + h6,
5490
+ .cteditor-content code.PlaygroundEditorTheme__code + h1,
5491
+ .cteditor-content code.PlaygroundEditorTheme__code + h2,
5492
+ .cteditor-content code.PlaygroundEditorTheme__code + h3,
5493
+ .cteditor-content code.PlaygroundEditorTheme__code + h4,
5494
+ .cteditor-content code.PlaygroundEditorTheme__code + h5,
5495
+ .cteditor-content code.PlaygroundEditorTheme__code + h6 {
5496
+ margin-top: 1.5em !important;
5497
+ }
5498
+
5499
+ /* Paragraph after code block needs spacing */
5500
+ .cteditor-content code + p,
5501
+ .cteditor-content code.PlaygroundEditorTheme__code + p {
5502
+ margin-top: 1em !important;
5503
+ }
5504
+
5435
5505
  .cteditor-content h1{
5436
5506
  font-size: 24px;
5437
5507
  font-weight: 600;
@@ -5490,6 +5560,21 @@ body .EmojiPickerReact{
5490
5560
  margin-top: 1.5em;
5491
5561
  }
5492
5562
 
5563
+ /* Heading after code block needs extra space above */
5564
+ .PlaygroundEditorTheme__code + .PlaygroundEditorTheme__h1,
5565
+ .PlaygroundEditorTheme__code + .PlaygroundEditorTheme__h2,
5566
+ .PlaygroundEditorTheme__code + .PlaygroundEditorTheme__h3,
5567
+ .PlaygroundEditorTheme__code + .PlaygroundEditorTheme__h4,
5568
+ .PlaygroundEditorTheme__code + .PlaygroundEditorTheme__h5,
5569
+ .PlaygroundEditorTheme__code + .PlaygroundEditorTheme__h6 {
5570
+ margin-top: 1.5em;
5571
+ }
5572
+
5573
+ /* Paragraph after code block needs spacing */
5574
+ .PlaygroundEditorTheme__code + .PlaygroundEditorTheme__paragraph {
5575
+ margin-top: 1em;
5576
+ }
5577
+
5493
5578
  .PlaygroundEditorTheme__indent {
5494
5579
  --lexical-indent-base-value: 40px;
5495
5580
  }
@@ -4,7 +4,7 @@ var __publicField = (obj, key, value) => {
4
4
  __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
5
5
  return value;
6
6
  };
7
- import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-7b5e3701.js";
7
+ import { g as getDefaultExportFromCjs, c as commonjsGlobal } from "./index-9ff3d80c.js";
8
8
  function _mergeNamespaces(n, m) {
9
9
  for (var i = 0; i < m.length; i++) {
10
10
  const e = m[i];
@@ -46125,4 +46125,4 @@ const html2pdf_bundle$1 = /* @__PURE__ */ _mergeNamespaces({
46125
46125
  export {
46126
46126
  html2pdf_bundle$1 as h
46127
46127
  };
46128
- //# sourceMappingURL=html2pdf.bundle-85e30143.js.map
46128
+ //# sourceMappingURL=html2pdf.bundle-2448d0c9.js.map