@dyrected/admin 2.5.55 → 2.5.58

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/admin.css CHANGED
@@ -4958,6 +4958,10 @@
4958
4958
  color: hsl(var(--destructive));
4959
4959
  }
4960
4960
 
4961
+ .focus\:dy-opacity-100:focus{
4962
+ opacity: 1;
4963
+ }
4964
+
4961
4965
  .focus\:dy-outline-none:focus{
4962
4966
  outline: 2px solid transparent;
4963
4967
  outline-offset: 2px;
@@ -5874,11 +5878,6 @@
5874
5878
  padding-right: 2.5rem;
5875
5879
  }
5876
5880
 
5877
- .sm\:dy-px-3{
5878
- padding-left: 0.75rem;
5879
- padding-right: 0.75rem;
5880
- }
5881
-
5882
5881
  .sm\:dy-px-4{
5883
5882
  padding-left: 1rem;
5884
5883
  padding-right: 1rem;
@@ -1,3 +1,4 @@
1
+ import { HeadingLevel, RichTextFeature } from '@dyrected/core';
1
2
  import * as React from "react";
2
3
  interface RichTextEditorProps {
3
4
  value: string;
@@ -5,6 +6,10 @@ interface RichTextEditorProps {
5
6
  label?: string;
6
7
  disabled?: boolean;
7
8
  collection?: string;
9
+ /** Enabled editor capabilities. When omitted, every feature is enabled. */
10
+ features?: RichTextFeature[];
11
+ /** Heading levels offered by the `heading` feature. Defaults to `[1, 2, 3]`. */
12
+ headingLevels?: HeadingLevel[];
8
13
  }
9
- export declare function RichTextEditor({ value, onChange, label, disabled, collection }: RichTextEditorProps): React.JSX.Element;
14
+ export declare function RichTextEditor({ value, onChange, label, disabled, collection, features, headingLevels }: RichTextEditorProps): React.JSX.Element;
10
15
  export {};