unlayer-types 1.270.0 → 1.272.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 +15 -5
  2. package/package.json +1 -1
package/embed.d.ts CHANGED
@@ -144,6 +144,11 @@ declare module "editor/components/editors/types" {
144
144
  _languages?: LanguageOverride;
145
145
  };
146
146
  }
147
+ declare module "state/types/RootState" {
148
+ import { StateType } from 'typesafe-actions';
149
+ import reducer from '../reducer';
150
+ export type RootState = StateType<typeof reducer>;
151
+ }
147
152
  declare module "editor/themes/types" {
148
153
  import { AppearanceConfig } from "state/types/types";
149
154
  import { DeepPartial } from "editor/components/editors/types";
@@ -1295,9 +1300,11 @@ declare module "engine/utils/zod/schemas" {
1295
1300
  declare module "state/types/types" {
1296
1301
  import * as Ariakit from '@ariakit/react';
1297
1302
  import { MutableRefObject, ReactInstance } from 'react';
1303
+ import { Dispatch } from 'redux';
1298
1304
  import { z } from 'zod';
1299
1305
  import { State as Design } from '../reducer/design';
1300
1306
  import { CollaborationThread } from "editor/components/editors/types";
1307
+ import { RootState } from "state/types/RootState";
1301
1308
  import { ThemeExtension, ThemeNamePlusLightDark } from "editor/themes/types";
1302
1309
  import { collections } from "engine/constants";
1303
1310
  import { DisplayConditionZodSchema } from "engine/utils/zod/schemas";
@@ -1621,6 +1628,13 @@ declare module "state/types/types" {
1621
1628
  [toolId: string]: StyleGuideToolConfig | undefined;
1622
1629
  };
1623
1630
  }
1631
+ export type InsertItemAsync = (collection: Collection, toParent: Location, data: {
1632
+ [key: string]: any;
1633
+ type: string;
1634
+ values: {
1635
+ [id: string]: unknown;
1636
+ };
1637
+ }, placeholder: string) => (dispatch: Dispatch, getState: () => RootState) => Promise<void>;
1624
1638
  export interface JSONSchema {
1625
1639
  }
1626
1640
  }
@@ -1672,6 +1686,7 @@ declare module "engine/config/features" {
1672
1686
  };
1673
1687
  } | boolean;
1674
1688
  preheaderText?: boolean;
1689
+ headersAndFooters?: boolean;
1675
1690
  stockImages?: {
1676
1691
  enabled: true;
1677
1692
  safeSearch: true;
@@ -2298,11 +2313,6 @@ declare module "editor/themes/index" {
2298
2313
  };
2299
2314
  export default themes;
2300
2315
  }
2301
- declare module "state/types/RootState" {
2302
- import { StateType } from 'typesafe-actions';
2303
- import reducer from '../reducer';
2304
- export type RootState = StateType<typeof reducer>;
2305
- }
2306
2316
  declare module "editor/hooks/useTheme" {
2307
2317
  import React from 'react';
2308
2318
  import { DeprecatedTheme, Theme } from "editor/themes/types";
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "name": "unlayer-types",
3
- "version": "1.270.0",
3
+ "version": "1.272.0",
4
4
  "license": "MIT"
5
5
  }