unlayer-types 1.225.0 → 1.227.0

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/embed.d.ts +171 -49
  2. package/package.json +1 -1
package/embed.d.ts CHANGED
@@ -636,6 +636,127 @@ declare module "editor/themes/types" {
636
636
  };
637
637
  };
638
638
  };
639
+ devTab: {
640
+ text: {
641
+ color: ColorValue;
642
+ };
643
+ container: {
644
+ backgroundColor: ColorValue;
645
+ separator: {
646
+ borderColor: ColorValue;
647
+ };
648
+ warning: {
649
+ borderColor: ColorValue;
650
+ };
651
+ };
652
+ taskItem: {
653
+ backgroundColor: ColorValue;
654
+ textColor: ColorValue;
655
+ borderColor: ColorValue;
656
+ ':hover': {
657
+ backgroundColor: ColorValue;
658
+ };
659
+ complete: {
660
+ textColor: ColorValue;
661
+ backgroundColor: ColorValue;
662
+ borderColor: ColorValue;
663
+ };
664
+ };
665
+ header: {
666
+ title: {
667
+ textColor: ColorValue;
668
+ fontSize: string;
669
+ backgroundColor?: ColorValue;
670
+ };
671
+ subtitle: {
672
+ textColor: ColorValue;
673
+ };
674
+ };
675
+ description: {
676
+ textColor: ColorValue;
677
+ fontSize: string;
678
+ };
679
+ versionInfo: {
680
+ textColor: ColorValue;
681
+ fontSize: string;
682
+ };
683
+ link: {
684
+ textColor: ColorValue;
685
+ fontSize: string;
686
+ ':hover': {
687
+ textColor: ColorValue;
688
+ };
689
+ };
690
+ icon: {
691
+ color: ColorValue;
692
+ help: {
693
+ color: ColorValue;
694
+ ':hover': {
695
+ color: ColorValue;
696
+ };
697
+ };
698
+ success: {
699
+ color: ColorValue;
700
+ };
701
+ warning: {
702
+ color: ColorValue;
703
+ };
704
+ error: {
705
+ color: ColorValue;
706
+ };
707
+ };
708
+ accordion: {
709
+ button: {
710
+ padding: string;
711
+ borderColor: ColorValue;
712
+ };
713
+ };
714
+ error: {
715
+ backgroundColor: ColorValue;
716
+ borderColor: ColorValue;
717
+ textColor: ColorValue;
718
+ };
719
+ login: {
720
+ textColor: ColorValue;
721
+ fontSize: string;
722
+ ':hover': {
723
+ textColor: ColorValue;
724
+ };
725
+ };
726
+ reload: {
727
+ textColor: ColorValue;
728
+ fontSize: string;
729
+ heading: {
730
+ textColor: ColorValue;
731
+ fontSize: string;
732
+ };
733
+ description: {
734
+ textColor: ColorValue;
735
+ fontSize: string;
736
+ };
737
+ button: {
738
+ textColor: ColorValue;
739
+ fontSize: string;
740
+ ':hover': {
741
+ textColor: ColorValue;
742
+ };
743
+ };
744
+ };
745
+ success: {
746
+ icon: {
747
+ color: ColorValue;
748
+ fontSize: string;
749
+ };
750
+ title: {
751
+ textColor: ColorValue;
752
+ fontSize: string;
753
+ };
754
+ description: {
755
+ textColor: ColorValue;
756
+ fontSize: string;
757
+ };
758
+ };
759
+ };
639
760
  };
640
761
  };
641
762
  export type ThemeVariant = 'primary' | 'secondary' | 'tertiary' | 'ai' | 'ai_outline' | 'danger';
@@ -1539,6 +1660,7 @@ declare module "engine/config/features" {
1539
1660
  enabled: boolean;
1540
1661
  search?: boolean;
1541
1662
  };
1663
+ devTab?: boolean;
1542
1664
  undoRedo?: boolean;
1543
1665
  textEditor?: {
1544
1666
  spellChecker?: boolean;
@@ -1700,7 +1822,7 @@ declare module "embed/Config" {
1700
1822
  designId?: string;
1701
1823
  designMode?: string;
1702
1824
  displayMode?: DisplayMode;
1703
- env?: Record<'API_V1_BASE_URL' | 'API_V2_BASE_URL' | 'EVENTS_API_BASE_URL' | 'TOOLS_API_V1_BASE_URL' | 'TOOLS_CDN_BASE_URL', string | undefined>;
1825
+ env?: Record<'API_V1_BASE_URL' | 'API_V2_BASE_URL' | 'EVENTS_API_BASE_URL' | 'TOOLS_API_V1_BASE_URL' | 'TOOLS_CDN_BASE_URL' | 'CONSOLE_BASE_URL', string | undefined>;
1704
1826
  projectId?: number | null;
1705
1827
  user?: User;
1706
1828
  templateId?: number;
@@ -1874,53 +1996,6 @@ declare module "editor/components/common/Modal" {
1874
1996
  }
1875
1997
  export function Modal(props: ModalProps): React.JSX.Element;
1876
1998
  }
1877
- declare module "editor/themes/helpers" {
1878
- import { Theme, ThemeExtension } from "editor/themes/types";
1879
- export function extendTheme<TE extends ThemeExtension, BT extends Theme>(themeExtension: TE, baseTheme: BT): BT;
1880
- export function postprocessTheme<T extends Theme>(theme: T): T;
1881
- export function parseThemeValues<T extends Theme>(theme: T): T;
1882
- }
1883
- declare module "editor/themes/modern/light" {
1884
- import { DeprecatedTheme, Theme } from "editor/themes/types";
1885
- export const unparsedTheme: Theme & DeprecatedTheme;
1886
- }
1887
- declare module "editor/themes/classic/light" {
1888
- export const unparsedTheme: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
1889
- }
1890
- declare module "editor/themes/modern/dark" {
1891
- import { DeprecatedTheme, Theme } from "editor/themes/types";
1892
- export const unparsedTheme: Theme & DeprecatedTheme;
1893
- }
1894
- declare module "editor/themes/classic/dark" {
1895
- export const unparsedTheme: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
1896
- }
1897
- declare module "editor/themes/index" {
1898
- const themes: {
1899
- classic_light: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
1900
- classic_dark: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
1901
- modern_light: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
1902
- modern_dark: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
1903
- };
1904
- export default themes;
1905
- }
1906
- declare module "state/types/RootState" {
1907
- import { StateType } from 'typesafe-actions';
1908
- import reducer from '../reducer';
1909
- export type RootState = StateType<typeof reducer>;
1910
- }
1911
- declare module "editor/hooks/useTheme" {
1912
- import React from 'react';
1913
- import { DeprecatedTheme, Theme } from "editor/themes/types";
1914
- export function getCurrentTheme(): Theme & DeprecatedTheme;
1915
- export function ThemeProvider(props: React.PropsWithChildren): React.JSX.Element;
1916
- export function ThemeConsumer(props: {
1917
- children: React.ReactNode | ((params: {
1918
- theme: any;
1919
- }) => React.ReactNode);
1920
- }): React.ReactNode;
1921
- export function useThemeInternal(): Theme & DeprecatedTheme;
1922
- export function useTheme(): Theme & DeprecatedTheme;
1923
- }
1924
1999
  declare module "editor/components/common/ConditionalWrap" {
1925
2000
  import React from 'react';
1926
2001
  export interface ConditionalWrapProps {
@@ -1942,7 +2017,6 @@ declare module "editor/components/common/Loader" {
1942
2017
  loadedClassName?: string;
1943
2018
  loadingClassName?: string;
1944
2019
  size?: 'small' | 'normal';
1945
- branded?: boolean;
1946
2020
  }
1947
2021
  export function Loader(props: LoaderProps): React.JSX.Element;
1948
2022
  }
@@ -2167,6 +2241,53 @@ declare module "editor/design-system/components/Dropdown" {
2167
2241
  });
2168
2242
  export function Dropdown(props: DropdownProps): React.JSX.Element;
2169
2243
  }
2244
+ declare module "editor/themes/helpers" {
2245
+ import { Theme, ThemeExtension } from "editor/themes/types";
2246
+ export function extendTheme<TE extends ThemeExtension, BT extends Theme>(themeExtension: TE, baseTheme: BT): BT;
2247
+ export function postprocessTheme<T extends Theme>(theme: T): T;
2248
+ export function parseThemeValues<T extends Theme>(theme: T): T;
2249
+ }
2250
+ declare module "editor/themes/modern/light" {
2251
+ import { DeprecatedTheme, Theme } from "editor/themes/types";
2252
+ export const unparsedTheme: Theme & DeprecatedTheme;
2253
+ }
2254
+ declare module "editor/themes/classic/light" {
2255
+ export const unparsedTheme: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
2256
+ }
2257
+ declare module "editor/themes/modern/dark" {
2258
+ import { DeprecatedTheme, Theme } from "editor/themes/types";
2259
+ export const unparsedTheme: Theme & DeprecatedTheme;
2260
+ }
2261
+ declare module "editor/themes/classic/dark" {
2262
+ export const unparsedTheme: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
2263
+ }
2264
+ declare module "editor/themes/index" {
2265
+ const themes: {
2266
+ classic_light: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
2267
+ classic_dark: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
2268
+ modern_light: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
2269
+ modern_dark: import("editor/themes/types").Theme & import("editor/themes/types").DeprecatedTheme;
2270
+ };
2271
+ export default themes;
2272
+ }
2273
+ declare module "state/types/RootState" {
2274
+ import { StateType } from 'typesafe-actions';
2275
+ import reducer from '../reducer';
2276
+ export type RootState = StateType<typeof reducer>;
2277
+ }
2278
+ declare module "editor/hooks/useTheme" {
2279
+ import React from 'react';
2280
+ import { DeprecatedTheme, Theme } from "editor/themes/types";
2281
+ export function getCurrentTheme(): Theme & DeprecatedTheme;
2282
+ export function ThemeProvider(props: React.PropsWithChildren): React.JSX.Element;
2283
+ export function ThemeConsumer(props: {
2284
+ children: React.ReactNode | ((params: {
2285
+ theme: any;
2286
+ }) => React.ReactNode);
2287
+ }): React.ReactNode;
2288
+ export function useThemeInternal(): Theme & DeprecatedTheme;
2289
+ export function useTheme(): Theme & DeprecatedTheme;
2290
+ }
2170
2291
  declare module "editor/design-system/components/CounterInput" {
2171
2292
  import React from 'react';
2172
2293
  import { DisplayMode } from "state/types/types";
@@ -2322,6 +2443,7 @@ declare module "engine/config/env" {
2322
2443
  EVENTS_API_BASE_URL: string;
2323
2444
  TOOLS_API_V1_BASE_URL: string;
2324
2445
  TOOLS_CDN_BASE_URL: string;
2446
+ CONSOLE_BASE_URL: string;
2325
2447
  };
2326
2448
  export function setIsTest(isTest: boolean): void;
2327
2449
  export function isTest(): boolean;
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.225.0",
3
+ "version": "1.227.0",
4
4
  "license": "MIT"
5
5
  }