@griddo/core 11.1.17-rc.2 → 11.2.1

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,13 +1,21 @@
1
1
  import type { ImagePosition } from "../core";
2
2
  import type { FilterItemFromFilterEndPoint, HTMLHeadingTag } from "../global";
3
+ /** Return the `__contentTypeName` if it exists. */
3
4
  type ContentTypeName<T> = T extends {
4
5
  __contentTypeName: string;
5
6
  } ? T["__contentTypeName"] : T;
7
+ /** Return the `____relatedContentTypeNames` if it exists as a Union Type. */
6
8
  type RelatedContentTypeNames<T> = T extends {
7
9
  __relatedContentTypeNames: string[];
8
10
  } ? T["__relatedContentTypeNames"][number] : string;
9
11
  type FieldsDivider = string;
10
12
  type ArrayFieldGroup<Fields> = Array<Fields>;
13
+ /**
14
+ * TODO: Unificar en API los relations, ahora creo que va así. Con nombres y
15
+ * valores distintos:
16
+ * API pública: relations: "off"|"simple"|"full"
17
+ * API privada: fullRelations: true|false
18
+ */
11
19
  type AsyncSelect<Relations, FromList, RelatedContentType, FromDistributor> = FromList extends true ? Relations extends true | "simple" ? {
12
20
  id?: number;
13
21
  label?: string;
@@ -26,8 +34,8 @@ type ColorPickerFixed = {
26
34
  hex: string;
27
35
  };
28
36
  type ComponentArray<ComponentProps> = Array<ComponentProps>;
29
- export type FormContainer<T> = T;
30
- export type FormFieldArray<T> = Array<T>;
37
+ type FormContainer<T> = T;
38
+ type FormFieldArray<T> = Array<T>;
31
39
  type ComponentContainer<ComponentProps> = ComponentProps;
32
40
  type Conditional<Values> = Values;
33
41
  type Date = string;
@@ -363,4 +371,4 @@ interface AIReference {
363
371
  fields?: Array<string>;
364
372
  area?: string;
365
373
  }
366
- export type { AIReference, ArrayFieldGroup, AsyncCheckGroup, AsyncSelect, BaseContentType, BaseLinkElement, CheckGroup, ColorPicker, ColorPickerFixed, ComponentArray, ComponentContainer, Conditional, ContentTypeName, Date, ExtraContentTypePropsInAutoType, ExtraListTemplateProps, FieldGroup, FieldsDivider, File, FormCategorySelect, GroupMenuElement, Heading, Image, Link, LinkMenuElement, Menu, MenuElement, MenuItemsKind, MultiCheckSelect, MultiCheckSelectGroup, MultiCheckSelectWithNoRelations, MultiCheckSelectWithRelations, Note, Number, PageContentType, QueriedData, QueriedDataItem, QueriedNavigationData, QueriedNavigationDataItem, RadioGroup, Reference, ReferenceNavigation, RelatedContentTypeNames, RichText, ScrollableUniqueSelection, Select, SimpleContentType, Slider, Source, Tags, TemplateSection, Text, TextArea, Time, Toggle, UniqueCheck, Url, VisualUniqueSelection, Wysiwyg, };
374
+ export type { AIReference, ArrayFieldGroup, AsyncCheckGroup, AsyncSelect, BaseContentType, BaseLinkElement, CheckGroup, ColorPicker, ColorPickerFixed, ComponentArray, ComponentContainer, Conditional, ContentTypeName, Date, ExtraContentTypePropsInAutoType, ExtraListTemplateProps, FieldGroup, FieldsDivider, File, FormCategorySelect, FormContainer, FormFieldArray, GroupMenuElement, Heading, Image, Link, LinkMenuElement, Menu, MenuElement, MenuItemsKind, MultiCheckSelect, MultiCheckSelectGroup, MultiCheckSelectWithNoRelations, MultiCheckSelectWithRelations, Note, Number, PageContentType, QueriedData, QueriedDataItem, QueriedNavigationData, QueriedNavigationDataItem, RadioGroup, Reference, ReferenceNavigation, RelatedContentTypeNames, RichText, ScrollableUniqueSelection, Select, SimpleContentType, Slider, Source, Tags, TemplateSection, Text, TextArea, Time, Toggle, UniqueCheck, Url, VisualUniqueSelection, Wysiwyg, };
@@ -6,7 +6,7 @@ import type { Image, Menu } from "../api-response-fields";
6
6
  import type locales from "../constants/locales";
7
7
  import type timezone from "../constants/timezone";
8
8
  import type { Replace } from "../utilities";
9
- type Renderers = "gatsby" | "editor" | "preview" | "forms";
9
+ type Renderers = "gatsby" | "editor" | "preview" | "forms" | "ssg";
10
10
  type ContentTypeRelations = "off" | "full" | "simple" | boolean;
11
11
  type SocialName = "instagram" | "linkedIn" | "facebook" | "twitter" | "youTube" | "flickr" | "tiktok" | "snapchat" | "newsletter";
12
12
  type Breadcrumb = Array<{
@@ -310,6 +310,7 @@ type ListContentType<Item> = Item & {
310
310
  id: number;
311
311
  title: string;
312
312
  url: string;
313
+ urlCanonical?: string;
313
314
  };
314
315
  interface NavigationModule {
315
316
  component: "Header" | "Footer";
@@ -320,7 +321,7 @@ interface FooterModule extends Omit<NavigationModule, "component"> {
320
321
  component: "Footer";
321
322
  }
322
323
  interface HeaderModule extends Omit<NavigationModule, "component"> {
323
- component: "Header";
324
+ component: string;
324
325
  }
325
326
  interface PageIntegration {
326
327
  id: number;
@@ -1,6 +1,6 @@
1
1
  import type { Core } from "../..";
2
2
  import type { SimpleContentType, Source } from "../api-response-fields";
3
- import type __AT__ from "@autoTypes";
3
+ import type __AT__ from "@/autotypes";
4
4
  type WithAuxText = {
5
5
  /** Sets a label text to show besides the toggle field control */
6
6
  auxText?: string;
@@ -1,4 +1,4 @@
1
- import type __AT__ from "@autoTypes";
1
+ import type __AT__ from "@/autotypes";
2
2
  interface DataPack {
3
3
  /** Title of the Data Pack that will appear in the Griddo editor. */
4
4
  title: string;
@@ -1,4 +1,4 @@
1
- import type __AT__ from "@autoTypes";
1
+ import type __AT__ from "@/autotypes";
2
2
  interface ThemeElements {
3
3
  datapacks?: Array<__AT__.Datapacks>;
4
4
  templates?: Array<Exclude<__AT__.Templates, "BasicTemplate">>;
@@ -4,7 +4,7 @@ import type { BaseUI } from "./base";
4
4
  import type { ConfigTabs, Dimension, Thumbnails } from "./props";
5
5
  import type { UIFormTemplateFields } from "../schema-fields/ui-form-template-fields";
6
6
  import type { UITemplateFields } from "../schema-fields/ui-template-fields";
7
- import type __AT__ from "@autoTypes";
7
+ import type __AT__ from "@/autotypes";
8
8
  interface ComponentAndModuleBase extends BaseUI {
9
9
  /** Type of schema. */
10
10
  schemaType: "component" | "module" | "template" | "formComponent";
@@ -1,5 +1,5 @@
1
1
  import type { DataPacks, Thumbnails, _AutoTypes } from "./props";
2
- import type __AT__ from "@autoTypes";
2
+ import type __AT__ from "@/autotypes";
3
3
  interface BaseContentType extends _AutoTypes {
4
4
  /** Title for the Content Type */
5
5
  title: string;
@@ -1,6 +1,6 @@
1
1
  import type { UIFields } from "../schema-fields/ui-fields";
2
2
  import type { NonEmptyArray } from "../utilities";
3
- import type __AT__ from "@autoTypes";
3
+ import type __AT__ from "@/autotypes";
4
4
  type DataPacks = {
5
5
  /** Sets the Data Packs to which this schema belongs. */
6
6
  dataPacks?: NonEmptyArray<__AT__.Datapacks> | null;
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": "11.1.17-rc.2",
5
+ "version": "11.2.1",
6
6
  "authors": [
7
7
  "Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
8
8
  "Diego M. Béjar <diego.bejar@secuoyas.com>",
@@ -128,5 +128,5 @@
128
128
  "publishConfig": {
129
129
  "access": "public"
130
130
  },
131
- "gitHead": "8b2333c6fe413855a5d8c740a16b77f832cebebb"
131
+ "gitHead": "a514efa59aad467bc3014a908621eff9356c4078"
132
132
  }