@cntrl-site/components 1.0.12-alpha.20 → 1.0.12-alpha.22

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,5 +1,11 @@
1
1
  import { default as React } from 'react';
2
2
  import { ComponentSchemaV1 } from './SchemaV1';
3
+ export type Breakpoint = 'd' | 't' | 'm';
4
+ export type ComponentSize = {
5
+ width?: number | string;
6
+ height?: number | string;
7
+ };
8
+ export type ComponentDefaultSize = Partial<Record<Breakpoint, ComponentSize>>;
3
9
  export type Component = {
4
10
  element: (props: any) => React.ReactElement;
5
11
  id: string;
@@ -7,10 +13,7 @@ export type Component = {
7
13
  category?: string;
8
14
  version?: number;
9
15
  layoutMode?: 'freeform' | 'structured';
10
- defaultSize?: Record<string, {
11
- width?: number | string;
12
- height?: number | string;
13
- }>;
16
+ defaultSize?: ComponentDefaultSize;
14
17
  schema: any;
15
18
  preview?: {
16
19
  type: 'image' | 'video';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cntrl-site/components",
3
- "version": "1.0.12-alpha.20",
3
+ "version": "1.0.12-alpha.22",
4
4
  "description": "Custom components for control editor and public websites.",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1 +0,0 @@
1
- export declare function getFontBasedOnSystem(): string;