@griddo/core 10.2.7 → 10.2.9

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,4 +1,5 @@
1
1
  import { DataPacks, Thumbnails, _AutoTypes } from "./props";
2
+ import __AT__ from "../../../../../../autotypes";
2
3
  interface BaseContentType extends _AutoTypes {
3
4
  /** Title for the Content Type */
4
5
  title: string;
@@ -35,16 +36,14 @@ interface BaseUI extends DataPacks, _AutoTypes {
35
36
  /** If `true` it will only be possible to create one page of this type of template. */
36
37
  singleInstance?: boolean;
37
38
  /** React component name for the schema. */
38
- component: string;
39
+ component: Capitalize<string>;
39
40
  /** Category name previously exported as `moduleCategories` for Griddo. Categories are used to distribute and sort modules in the Griddo editor interface. */
40
- category?: string;
41
+ category?: __AT__.ModuleCategories;
41
42
  /** Name to represent the component, module or template in the Griddo editor interface. */
42
43
  displayName: string;
43
44
  /** WhiteList indicating which section of a template a module may appear. You may want to use this prop if the module is related to a DataPack. */
44
- sectionList?: Record<string, Array<string>>;
45
+ sectionList?: __AT__.SectionList;
45
46
  /** Images that represent the component, module or template in the Griddo editor. */
46
- thumbnails?: Thumbnails | {
47
- [key: string]: Thumbnails;
48
- };
47
+ thumbnails?: Thumbnails | Record<__AT__.Themes, Thumbnails>;
49
48
  }
50
49
  export { BaseContentType, BaseUI };
@@ -1,7 +1,9 @@
1
+ import __AT__ from "../../../../../../autotypes";
1
2
  import { UIFields } from "../schema-fields/ui-fields";
3
+ import { NonEmptyArray } from "../utilities";
2
4
  type DataPacks = {
3
5
  /** Sets the Data Packs to which this schema belongs. */
4
- dataPacks?: Array<string> | null;
6
+ dataPacks?: NonEmptyArray<__AT__.Datapacks> | null;
5
7
  };
6
8
  interface Dimension {
7
9
  /** Key with which to send the value to the dataLayer. */
@@ -43,7 +43,7 @@ export interface BaseThemeNormal extends BaseThemeBase {
43
43
  }
44
44
  export type BaseTheme = BaseThemeWithColorScheme | BaseThemeNormal;
45
45
  export type GlobalTheme = BaseTheme & {
46
- id: "global";
46
+ id: string;
47
47
  selector: ":root";
48
48
  customMedia?: {
49
49
  [key: `--${string}`]: string;
@@ -1,4 +1,4 @@
1
- export type NonEmptyArray<T> = [T, ...T[]];
1
+ export type NonEmptyArray<T> = [T, ...Array<T>];
2
2
  export type DistributiveOmit<T, K extends keyof any> = T extends any ? Omit<T, K> : never;
3
3
  export type PartiallyRequired<T, K extends keyof T> = Omit<T, K> & Required<Pick<T, K>>;
4
4
  export type KeysOfUnion<T> = T extends T ? keyof T : never;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@griddo/core",
3
3
  "description": "Reload version of Griddo Core",
4
4
  "license": "UNLICENSED",
5
- "version": "10.2.7",
5
+ "version": "10.2.9",
6
6
  "authors": [
7
7
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
8
8
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -24,9 +24,7 @@
24
24
  "scripts": {
25
25
  "build": "rollup -c --sourcemap --bundleConfigAsCjs",
26
26
  "watch": "rollup -cw --bundleConfigAsCjs",
27
- "build-storybook": "build-storybook",
28
27
  "clean": "rm -rf ./dist",
29
- "publish:stable": "yarn build && npm version patch && npm publish",
30
28
  "prepare": "yarn build",
31
29
  "start:storybook": "start-storybook -p 6006"
32
30
  },
@@ -78,5 +76,5 @@
78
76
  "resolutions": {
79
77
  "colors": "1.4.0"
80
78
  },
81
- "gitHead": "444b3c42afdba17065e7eb8cc14369f7a2c5427a"
79
+ "gitHead": "1472fba90d2631dc4c80cdd3e359611ef7030ccb"
82
80
  }