@griddo/core 11.0.25 → 11.0.26

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 (58) hide show
  1. package/README.md +0 -1
  2. package/dist/autotypes.js +1 -1
  3. package/dist/autotypes.js.map +1 -1
  4. package/dist/bin-tools/autotypes/misc/ascii.d.ts +2 -2
  5. package/dist/bin-tools/autotypes/misc/utils.d.ts +66 -3
  6. package/dist/bin-tools/autotypes/parser/index.d.ts +23 -0
  7. package/dist/bin-tools/autotypes/parsers-list/components-name.d.ts +5 -0
  8. package/dist/bin-tools/autotypes/parsers-list/data-templates-names.d.ts +5 -0
  9. package/dist/bin-tools/autotypes/parsers-list/datapacks.d.ts +8 -0
  10. package/dist/bin-tools/autotypes/parsers-list/form-fields.d.ts +5 -0
  11. package/dist/bin-tools/autotypes/parsers-list/form-templates.d.ts +5 -0
  12. package/dist/bin-tools/autotypes/parsers-list/index.d.ts +42 -0
  13. package/dist/bin-tools/autotypes/parsers-list/languages.d.ts +5 -0
  14. package/dist/bin-tools/autotypes/parsers-list/menu-items.d.ts +6 -0
  15. package/dist/bin-tools/autotypes/parsers-list/module-categories.d.ts +5 -0
  16. package/dist/bin-tools/autotypes/parsers-list/modules-name.d.ts +5 -0
  17. package/dist/bin-tools/autotypes/parsers-list/page-data-props.d.ts +5 -0
  18. package/dist/bin-tools/autotypes/parsers-list/page-data.d.ts +5 -0
  19. package/dist/bin-tools/autotypes/parsers-list/simple-data-props.d.ts +5 -0
  20. package/dist/bin-tools/autotypes/parsers-list/simple-data.d.ts +5 -0
  21. package/dist/bin-tools/autotypes/parsers-list/taxonomy-props.d.ts +5 -0
  22. package/dist/bin-tools/autotypes/parsers-list/taxonomy.d.ts +5 -0
  23. package/dist/bin-tools/autotypes/parsers-list/template-section-list.d.ts +5 -0
  24. package/dist/bin-tools/autotypes/parsers-list/templates-name.d.ts +5 -0
  25. package/dist/bin-tools/autotypes/parsers-list/themes.d.ts +8 -0
  26. package/dist/bin-tools/autotypes/{factories/props/getUIAndData/utils.d.ts → parsers-list/ui-data-props.d.ts} +6 -2
  27. package/dist/contexts/Page/index.d.ts +1 -1
  28. package/dist/hooks/index.d.ts +1 -2
  29. package/dist/index.d.ts +2 -2
  30. package/dist/index.js +1 -1
  31. package/dist/index.js.map +1 -1
  32. package/dist/types/core/index.d.ts +0 -3
  33. package/dist/types/schemas/SimpleContentType.d.ts +34 -11
  34. package/package.json +2 -2
  35. package/dist/bin-tools/autotypes/autotypes.d.ts +0 -11
  36. package/dist/bin-tools/autotypes/factories/index.d.ts +0 -20
  37. package/dist/bin-tools/autotypes/factories/names/getComponents.d.ts +0 -2
  38. package/dist/bin-tools/autotypes/factories/names/getDetailTemplates.d.ts +0 -2
  39. package/dist/bin-tools/autotypes/factories/names/getFormFieldsNames.d.ts +0 -2
  40. package/dist/bin-tools/autotypes/factories/names/getFormTemplatesNames.d.ts +0 -2
  41. package/dist/bin-tools/autotypes/factories/names/getModules.d.ts +0 -2
  42. package/dist/bin-tools/autotypes/factories/names/getPageData.d.ts +0 -2
  43. package/dist/bin-tools/autotypes/factories/names/getSimpleData.d.ts +0 -2
  44. package/dist/bin-tools/autotypes/factories/names/getTaxonomy.d.ts +0 -2
  45. package/dist/bin-tools/autotypes/factories/names/getTemplates.d.ts +0 -2
  46. package/dist/bin-tools/autotypes/factories/props/getPageData.d.ts +0 -2
  47. package/dist/bin-tools/autotypes/factories/props/getSectionList.d.ts +0 -8
  48. package/dist/bin-tools/autotypes/factories/props/getSimpleData.d.ts +0 -2
  49. package/dist/bin-tools/autotypes/factories/props/getTaxonomyData.d.ts +0 -2
  50. package/dist/bin-tools/autotypes/factories/props/getTypeFromField/index.d.ts +0 -25
  51. package/dist/bin-tools/autotypes/factories/props/getTypeFromField/utils.d.ts +0 -41
  52. package/dist/bin-tools/autotypes/factories/props/getUIAndData/index.d.ts +0 -2
  53. package/dist/bin-tools/autotypes/factories/schemas/getDataPacks.d.ts +0 -5
  54. package/dist/bin-tools/autotypes/factories/schemas/getLanguages.d.ts +0 -2
  55. package/dist/bin-tools/autotypes/factories/schemas/getMenuItems.d.ts +0 -2
  56. package/dist/bin-tools/autotypes/factories/schemas/getModuleCategories.d.ts +0 -14
  57. package/dist/bin-tools/autotypes/factories/schemas/getThemes.d.ts +0 -5
  58. package/dist/hooks/useSitemap.d.ts +0 -7
@@ -1,2 +1,2 @@
1
- declare const HEAD_DESIGN = "/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-use-before-define */\n//\n//\n// ' ____\n// /\\ \\\n// \u00BA / /\\ \\\n// ' / / \\ _>\n// ' _\\ \\__> \\__\n// ' O ( __;\u00B7;______ ) AutoTypes\n// O \u00BA, | , , \\ \\\\ \u00B7..~~.\u00B7~.\u00B7\n// ,,, /| , , /\\ <\\\\\n// \\''\\-' \u23A9, <\\/\\ \\ \\\n// \\_/ /\\_____\u23A9/ > > >\n// '___' <_(_)__> / \\ <\n// / / \u00B4 \\ | \\___//\\\\\n// / / | / > > \\\\\n// \u00B7 \u00B7\u00B7~~~~\u00B7~\u00B7~~~~~~~\u00B7~\u00B7\u00B7~~~~~\u00B7~\u00B7~~\u00B7~~~~\u00B7~~~~~\u00B7\u00B7 \u00B7 \u00B7\n//\n// Embrace the beauty of effortless typing by indulging in the benefits of them\n// sans the actual typing!\n//\n// Behold! These dynamically generated types were conjured from the schemas\n// nestled within this repository. However, should you yearn to expand upon\n// these types, kindly abstain from doing so in this file, lest AutoTypes'\n// magic shall smite your changes with each schema modification.\n//\n// Check out the details of Griddo AutoTypes in:\n// https://griddoio.notion.site/Griddo-AutoTypes-e7420867dd2e489c8da34a493b763cd8>\n//\n// Happy magic types!\n//\nimport { Core, Fields, Hideable, NonEmptyArray } from \"@griddo/core\"\n//\n";
2
- export { HEAD_DESIGN };
1
+ declare const head = "/* eslint-disable @typescript-eslint/ban-types */\n/* eslint-disable @typescript-eslint/no-unused-vars */\n/* eslint-disable no-use-before-define */\n//\n//\n// ' ____\n// /\\ \\\n// \u00BA / /\\ \\\n// ' / / \\ _>\n// ' _\\ \\__> \\__\n// ' O ( __;\u00B7;______ ) AutoTypes\n// O \u00BA, | , , \\ \\\\ \u00B7..~~.\u00B7~.\u00B7\n// ,,, /| , , /\\ <\\\\\n// \\''\\-' \u23A9, <\\/\\ \\ \\\n// \\_/ /\\_____\u23A9/ > > >\n// '___' <_(_)__> / \\ <\n// / / \u00B4 \\ | \\___//\\\\\n// / / | / > > \\\\\n// \u00B7 \u00B7\u00B7~~~~\u00B7~\u00B7~~~~~~~\u00B7~\u00B7\u00B7~~~~~\u00B7~\u00B7~~\u00B7~~~~\u00B7~~~~~\u00B7\u00B7 \u00B7 \u00B7\n//\n// Embrace the beauty of effortless typing by indulging in the benefits of them\n// sans the actual typing!\n//\n// Behold! These dynamically generated types were conjured from the schemas\n// nestled within this repository. However, should you yearn to expand upon\n// these types, kindly abstain from doing so in this file, lest AutoTypes'\n// magic shall smite your changes with each schema modification.\n//\n// Check out the details of Griddo AutoTypes in:\n// https://griddoio.notion.site/Griddo-AutoTypes-e7420867dd2e489c8da34a493b763cd8>\n//\n// Happy magic types!\n//\nimport { Core, Fields, Hideable, NonEmptyArray } from \"@griddo/core\"\n//\n";
2
+ export { head };
@@ -1,5 +1,50 @@
1
+ import type { FieldReturnTypes, Fields, KindSchema, SchemaFieldTypes, SchemaTypeWithComponentProp } from "./types";
1
2
  import type { Schema } from "../../..";
2
- import type { AutoTypesConfig } from "../../../types/schemas";
3
+ import type { PageContentTypeFields } from "../../../types/schema-fields/page-content-type-fields";
4
+ import type { SimpleContentTypeFields } from "../../../types/schema-fields/simple-content-type-fields";
5
+ import type { UIFields } from "../../../types/schema-fields/ui-fields";
6
+ import type { UIFormFields } from "../../../types/schema-fields/ui-form-fields";
7
+ import type { UITemplateFields } from "../../../types/schema-fields/ui-template-fields";
8
+ import type { AutoTypesConfig, Module } from "../../../types/schemas";
9
+ /**
10
+ * Return a string separated by the pipe char "|" using the `value` from object array.
11
+ */
12
+ declare function getGenericFromOptions<T = unknown>(options: Array<{
13
+ value: T;
14
+ }>): string;
15
+ /**
16
+ * Return a string separated by the pipe char "|" using the `name` from object array.
17
+ */
18
+ declare function getGenericFromCheckBoxOptions<T>(options: Array<{
19
+ name: T;
20
+ }>): string;
21
+ declare function getGenericFromWhitelist(whiteList: Array<string>): string;
22
+ declare function returnType(type: SchemaFieldTypes): FieldReturnTypes;
23
+ /** Build a interface prop based on the field from the schema.
24
+ * Optionally it can receives a custom value for the type and a generic string to use as generic value
25
+ *
26
+ * @example
27
+ * getGriddoFieldPropType(TextFieldObjectFromSchema)
28
+ * // -> TextFieldObjectFromSchema.key: Fields.TextField
29
+ * getGriddoFieldPropType(TextFieldObjectFromSchema, 'MyCustomValue', 'foo')
30
+ * // -> TextFieldObjectFromSchema.key: MyCustomValue<foo>
31
+ */
32
+ type GetInterfacePropTypeOptions = {
33
+ returnTypeName?: FieldReturnTypes;
34
+ generic?: string;
35
+ };
36
+ /**
37
+ * Return a serialized type from a Griddo schema field.
38
+ *
39
+ * @param Fields A Griddo field object
40
+ * @param options An options object
41
+ * @returns A string that represent a interface prop type.
42
+ * @example
43
+ * interface SomeInterface {
44
+ * prop: boolean; // this function returns a string for this: `prop: boolean`
45
+ * }
46
+ */
47
+ declare function getGriddoFieldPropType(field: Fields, options?: GetInterfacePropTypeOptions): string;
3
48
  declare function prettify(input: string): Promise<string>;
4
49
  /**
5
50
  * Returns the instance or monorepo paths.
@@ -10,8 +55,26 @@ declare function resolveInstancePath(): string;
10
55
  declare function extractMergedSchemas(configFile: any): {
11
56
  categoryContentTypes: Record<string, Schema.CategoryContentType>;
12
57
  pageContentTypes: Record<string, Schema.PageContentType>;
13
- simpleContentTypes: Record<string, Schema.SimpleContentType<unknown>>;
58
+ simpleContentTypes: Record<string, Schema.SimpleContentType>;
14
59
  components: Record<string, Schema.Component<unknown>>;
15
60
  };
16
61
  declare function readConfig(): AutoTypesConfig;
17
- export { extractMergedSchemas, prettify, readConfig, resolveInstancePath };
62
+ /**
63
+ * Return an optional property (the key in some Griddo field) and its value
64
+ * (some Griddo field type) serialized based on a schema field.
65
+ *
66
+ * @param field A Griddo field object
67
+ * @param kind Schema type in order to later do some operations with fields
68
+ * @param options Object options
69
+ * @example
70
+ * getTypeFromField({ type: 'TextField', key: 'cardTitle', ... }, "component")
71
+ * // returns -> "cardTitle?: Fields.Text"
72
+ */
73
+ declare function getTypeFromField(field: UIFields | UIFormFields | UITemplateFields | SimpleContentTypeFields | PageContentTypeFields, kind: KindSchema, options: {
74
+ hasDistributorData: boolean;
75
+ getStaticData: boolean;
76
+ moduleSchemas: Array<Module | undefined>;
77
+ schema: SchemaTypeWithComponentProp;
78
+ allSchemas: any;
79
+ }): string | undefined;
80
+ export { extractMergedSchemas, getGenericFromCheckBoxOptions, getGenericFromOptions, getGenericFromWhitelist, getGriddoFieldPropType, getTypeFromField, prettify, readConfig, resolveInstancePath, returnType, };
@@ -0,0 +1,23 @@
1
+ interface Parser {
2
+ parse(shema: unknown): string;
3
+ }
4
+ declare class AutoTypes {
5
+ private parser?;
6
+ setParser(parser: Parser): void;
7
+ parse(schema: unknown): string;
8
+ }
9
+ /**
10
+ * Parse a list of schemas with their corresponding parsers and return an array
11
+ * with each parsed schema as string.
12
+ * @example
13
+ * const output = parseSchemas([
14
+ * { schema: languages, parser: parsers.LanguagesParser },
15
+ * { schema: menuItems, parser: parsers.MenuItemsParser },
16
+ * ])
17
+ * // returns ["language-schema-parsed", "menu-items-schema-parsed"]
18
+ */
19
+ declare function parseSchemas(schemaParserMap: {
20
+ schema: unknown;
21
+ parser: new () => Parser;
22
+ }[]): string[];
23
+ export { AutoTypes, Parser, parseSchemas };
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class ComponentsNameParser implements Parser {
4
+ parse(schema: Record<string, Schema.Component>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class DataTemplatesNameParser implements Parser {
4
+ parse(schema: Record<string, Schema.Template | Schema.ListTemplate | Schema.PaginatedDataTemplate>): string;
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class DataPacksParser implements Parser {
4
+ parse(schema: Record<string, Schema.DataPack>): string;
5
+ }
6
+ export declare class DataPacksCategoryParser implements Parser {
7
+ parse(schema: Record<string, Schema.DataPackCategory>): string;
8
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class FormFieldsParser implements Parser {
4
+ parse(schema: Record<string, Schema.FormTemplate>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class FormTemplatesParser implements Parser {
4
+ parse(schema: Record<string, Schema.FormTemplate>): string;
5
+ }
@@ -0,0 +1,42 @@
1
+ import { ComponentsNameParser } from "./components-name";
2
+ import { DataTemplatesNameParser } from "./data-templates-names";
3
+ import { DataPacksCategoryParser, DataPacksParser } from "./datapacks";
4
+ import { FormFieldsParser } from "./form-fields";
5
+ import { FormTemplatesParser } from "./form-templates";
6
+ import { LanguagesParser } from "./languages";
7
+ import { MenuItemsParser } from "./menu-items";
8
+ import { ModuleCateogiresParser } from "./module-categories";
9
+ import { ModulesNameParser } from "./modules-name";
10
+ import { PageContentTypeParser } from "./page-data";
11
+ import { PageDataPropsParser } from "./page-data-props";
12
+ import { SimpleContentTypeParser } from "./simple-data";
13
+ import { SimpleDataPropsParser } from "./simple-data-props";
14
+ import { TaxonomyParser } from "./taxonomy";
15
+ import { TaxonomyPropsParser } from "./taxonomy-props";
16
+ import { TemplateSectionListParser } from "./template-section-list";
17
+ import { TemplatesNameParser } from "./templates-name";
18
+ import { SubthemesParser, ThemesParser } from "./themes";
19
+ import { UIAndDataPropsParser } from "./ui-data-props";
20
+ export declare const parsers: {
21
+ ComponentsNameParser: typeof ComponentsNameParser;
22
+ DataPacksCategoryParser: typeof DataPacksCategoryParser;
23
+ DataPacksParser: typeof DataPacksParser;
24
+ DataTemplatesNameParser: typeof DataTemplatesNameParser;
25
+ FormFieldsParser: typeof FormFieldsParser;
26
+ FormTemplatesParser: typeof FormTemplatesParser;
27
+ LanguagesParser: typeof LanguagesParser;
28
+ MenuItemsParser: typeof MenuItemsParser;
29
+ ModuleCateogiresParser: typeof ModuleCateogiresParser;
30
+ ModulesNameParser: typeof ModulesNameParser;
31
+ PageContentTypeParser: typeof PageContentTypeParser;
32
+ PageDataPropsParser: typeof PageDataPropsParser;
33
+ SimpleContentTypeParser: typeof SimpleContentTypeParser;
34
+ SimpleDataPropsParser: typeof SimpleDataPropsParser;
35
+ SubthemesParser: typeof SubthemesParser;
36
+ TaxonomyParser: typeof TaxonomyParser;
37
+ TaxonomyPropsParser: typeof TaxonomyPropsParser;
38
+ TemplateSectionListParser: typeof TemplateSectionListParser;
39
+ TemplatesNameParser: typeof TemplatesNameParser;
40
+ ThemesParser: typeof ThemesParser;
41
+ UIAndDataPropsParser: typeof UIAndDataPropsParser;
42
+ };
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class LanguagesParser implements Parser {
4
+ parse(schema: Schema.Languages): string;
5
+ }
@@ -0,0 +1,6 @@
1
+ import type { MenuItemsSchema } from "../misc/types";
2
+ import type { Parser } from "../parser";
3
+ export declare class MenuItemsParser implements Parser {
4
+ private getMenuItemsProps;
5
+ parse(schema: MenuItemsSchema): string;
6
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class ModuleCateogiresParser implements Parser {
4
+ parse(schema: Schema.ModuleCategories): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class ModulesNameParser implements Parser {
4
+ parse(schema: Record<string, Schema.Module>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class PageDataPropsParser implements Parser {
4
+ parse(schema: Record<string, Schema.PageContentType>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class PageContentTypeParser implements Parser {
4
+ parse(schema: Record<string, Schema.PageContentType>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class SimpleDataPropsParser implements Parser {
4
+ parse(schema: Record<string, Schema.SimpleContentType>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class SimpleContentTypeParser implements Parser {
4
+ parse(schema: Record<string, Schema.SimpleContentType>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class TaxonomyPropsParser implements Parser {
4
+ parse(schema: Record<string, Schema.CategoryContentType>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class TaxonomyParser implements Parser {
4
+ parse(schema: Record<string, Schema.CategoryContentType>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class TemplateSectionListParser implements Parser {
4
+ parse(schema: Record<string, Schema.Template | Schema.ListTemplate | Schema.PaginatedDataTemplate>): string;
5
+ }
@@ -0,0 +1,5 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class TemplatesNameParser implements Parser {
4
+ parse(schema: Record<string, Schema.Template>): string;
5
+ }
@@ -0,0 +1,8 @@
1
+ import type { Schema } from "../../..";
2
+ import type { Parser } from "../parser";
3
+ export declare class ThemesParser implements Parser {
4
+ parse(schema: Array<Schema.ThemeEntry>): string;
5
+ }
6
+ export declare class SubthemesParser implements Parser {
7
+ parse(schema: Array<string>): string;
8
+ }
@@ -1,5 +1,9 @@
1
- import type { Schema } from "../../../../..";
2
- import type { GlobalState, SchemaType, SchemaTypeWithComponentProp } from "../../../misc/types";
1
+ import type { Schema } from "../../..";
2
+ import type { GlobalState, SchemaType, SchemaTypeWithComponentProp } from "../misc/types";
3
+ import type { Parser } from "../parser";
4
+ export declare class UIAndDataPropsParser implements Parser {
5
+ parse(schema: Record<string, SchemaType>): string;
6
+ }
3
7
  declare function getExtra(schema: SchemaTypeWithComponentProp): string;
4
8
  declare function isUISchema(schema: SchemaTypeWithComponentProp): schema is Schema.Component | Schema.ContentTypeModule | Schema.MultiPageModule | Schema.Module | Schema.Template | Schema.ListTemplate;
5
9
  declare function isContentTypeSchema(schema: SchemaTypeWithComponentProp): schema is (Schema.SimpleContentType & {
@@ -7,7 +7,7 @@ declare const PageContext: React.Context<PageContextProps>;
7
7
  * This provider component inject some props in the context of the page. Then you can retrieve the context values using the `usePage()` hook.
8
8
  */
9
9
  declare function PageProvider(props: PageProviderProps): JSX.Element;
10
- type PageProps = Pick<Page, "activeSectionBase" | "activeSectionSlug" | "apiUrl" | "breadcrumb" | "canonicalURL" | "componentList" | "dimensions" | "firstModule" | "footer" | "footerTheme" | "fullPath" | "fullUrl" | "header" | "headerTheme" | "id" | "isHome" | "isIndexed" | "languageId" | "metaDescription" | "metasAdvanced" | "metaTitle" | "modified" | "origin" | "pageLanguages" | "published" | "sectionModules" | "site" | "siteMetadata" | "siteSlug" | "socialDescription" | "socialImage" | "socialTitle" | "structuredData" | "structuredDataContent" | "template" | "theme" | "title">;
10
+ type PageProps = Pick<Page, "activeSectionBase" | "activeSectionSlug" | "apiUrl" | "breadcrumb" | "canonicalURL" | "componentList" | "dimensions" | "footer" | "footerTheme" | "fullPath" | "fullUrl" | "header" | "headerTheme" | "id" | "isHome" | "isIndexed" | "languageId" | "metaDescription" | "metasAdvanced" | "metaTitle" | "modified" | "origin" | "pageLanguages" | "published" | "sectionModules" | "site" | "siteMetadata" | "siteSlug" | "socialDescription" | "socialImage" | "socialTitle" | "structuredData" | "structuredDataContent" | "template" | "theme" | "title">;
11
11
  export type PageContextProps = Partial<PageProps> & {
12
12
  /** The locale code for the page language */
13
13
  locale?: Locale;
@@ -26,6 +26,5 @@ import { useReferenceFieldData } from "./useReferenceFieldData";
26
26
  import { useScript } from "./useScript";
27
27
  import { useSession } from "./useSession";
28
28
  import { useSite } from "./useSite";
29
- import { useSitemap } from "./useSitemap";
30
29
  import { useSSR } from "./useSSR";
31
- export { useAiAnswers, useAiSearch, useContentType, useContentTypeNavigation, useDataFilters, useReferenceFieldData as useDistributorData, useFetch, useGlobalTheme, useGriddoImage, useGriddoImageExp, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useListWithDefaultStaticPage, useLocaleDate, useNavigation, usePage, usePageRelatedContent, useReferenceFieldData, useScript, useSession, useSite, useSitemap, useSSR, useTheme, useThemeColors, useThemeFont, useThemePrimitives, };
30
+ export { useAiAnswers, useAiSearch, useContentType, useContentTypeNavigation, useDataFilters, useReferenceFieldData as useDistributorData, useFetch, useGlobalTheme, useGriddoImage, useGriddoImageExp, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useListWithDefaultStaticPage, useLocaleDate, useNavigation, usePage, usePageRelatedContent, useReferenceFieldData, useScript, useSession, useSite, useSSR, useTheme, useThemeColors, useThemeFont, useThemePrimitives, };
package/dist/index.d.ts CHANGED
@@ -8,7 +8,7 @@ import { PageProps } from "./components/Page";
8
8
  import { PreviewProps } from "./components/Preview";
9
9
  import { PageContext, PageProvider, SessionContext, SessionProvider, SiteContext, SiteProvider } from "./contexts";
10
10
  import { SiteProviderProps } from "./contexts/Site";
11
- import { useAiAnswers, useAiSearch, useContentType, useContentTypeNavigation, useDataFilters, useGlobalTheme, useGriddoImage, useGriddoImageExp, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useListWithDefaultStaticPage, useLocaleDate, useNavigation, usePage, usePageRelatedContent, useReferenceFieldData, useSSR, useScript, useSession, useSite, useSitemap, useTheme, useThemeColors, useThemeFont, useThemePrimitives } from "./hooks";
11
+ import { useAiAnswers, useAiSearch, useContentType, useContentTypeNavigation, useDataFilters, useGlobalTheme, useGriddoImage, useGriddoImageExp, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useListWithDefaultStaticPage, useLocaleDate, useNavigation, usePage, usePageRelatedContent, useReferenceFieldData, useSSR, useScript, useSession, useSite, useTheme, useThemeColors, useThemeFont, useThemePrimitives } from "./hooks";
12
12
  import { UseDataFilterSetUrlAction, UseDataFiltersReturn, UseDataFiltersSetQueryProps, UseDataFiltersState } from "./hooks/useDataFilters";
13
13
  import { GenerateImageChunkProps, ImageChunk, ImageConfig, UseGriddoImageProps, UseGriddoImageReturn } from "./hooks/useGriddoImage";
14
14
  import { GenerateImageChunkPropsExperimental, ImageChunkExperimental, ImageConfigExperimental, UseGriddoImagePropsExperimental, UseGriddoImageReturnExperimental } from "./hooks/useGriddoImageExp";
@@ -28,4 +28,4 @@ import * as UIFields from "./types/schema-fields/ui-fields";
28
28
  import * as UITemplateFields from "./types/schema-fields/ui-template-fields";
29
29
  import * as Schema from "./types/schemas";
30
30
  import * as Theme from "./types/theme";
31
- export { CloudinaryBackgroundImage, CloudinaryImage, CloudinaryImageCrop, CloudinaryImageFormat, CloudinaryImageProps, CloudinaryResponsiveImageProps, Component, ComponentProps, Core, Fields, FiltersDataApiQueryResponseProps, GenerateImageChunkProps, GenerateImageChunkPropsExperimental, GriddoAlertRegisterProps, GriddoBackgroundImage, GriddoImage, GriddoImageCommonProps, GriddoImageCommonPropsExperimental, GriddoImageExp, GriddoImageGif, GriddoImageGifExperimental, GriddoImageJpgWebpAvif, GriddoImageJpgWebpAvifExperimental, GriddoImageProps, GriddoImagePropsExperimental, GriddoImageSvg, GriddoImageSvgExperimental, GriddoLink, GriddoLinkProps, HLocation, HTMLHeadingTag, Hideable, ImageChunk, ImageChunkExperimental, ImageConfig, ImageConfigExperimental, LdJson, Link, LinkGetProps, ListApiQueryResponseProps, ModulePreviewProps, NonEmptyArray, Page, PageContentTypeFields, PageContext, PageProps, PageProvider, PickRename, Pretty, Preview, PreviewProps, Schema, SessionContext, SessionProvider, SetQueryProps, SimpleContentTypeFields, SiteContext, SiteProvider, SiteProviderProps, Theme, UIFields, UITemplateFields, UseDataFilterSetUrlAction, UseDataFiltersReturn, UseDataFiltersSetQueryProps, UseDataFiltersState, UseGriddoImageProps, UseGriddoImagePropsExperimental, UseGriddoImageReturn, UseGriddoImageReturnExperimental, UseI18nProps, UseImageProps, UseListSetQueryProps, UseListSetUrlAction, WindowLocation, formatLocaleDate, getComponent, getLang, getSiteID, getToken, griddoAlertRegister, useAiAnswers, useAiSearch, useContentType, useContentTypeNavigation, useDataFilters, useReferenceFieldData as useDistributorData, useGlobalTheme, useGriddoImage, useGriddoImageExp, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useListWithDefaultStaticPage, useLocaleDate, useNavigation, usePage, usePageRelatedContent, useReferenceFieldData, useSSR, useScript, useSession, useSite, useSitemap, useTheme, useThemeColors, useThemeFont, useThemePrimitives, };
31
+ export { CloudinaryBackgroundImage, CloudinaryImage, CloudinaryImageCrop, CloudinaryImageFormat, CloudinaryImageProps, CloudinaryResponsiveImageProps, Component, ComponentProps, Core, Fields, FiltersDataApiQueryResponseProps, GenerateImageChunkProps, GenerateImageChunkPropsExperimental, GriddoAlertRegisterProps, GriddoBackgroundImage, GriddoImage, GriddoImageCommonProps, GriddoImageCommonPropsExperimental, GriddoImageExp, GriddoImageGif, GriddoImageGifExperimental, GriddoImageJpgWebpAvif, GriddoImageJpgWebpAvifExperimental, GriddoImageProps, GriddoImagePropsExperimental, GriddoImageSvg, GriddoImageSvgExperimental, GriddoLink, GriddoLinkProps, HLocation, HTMLHeadingTag, Hideable, ImageChunk, ImageChunkExperimental, ImageConfig, ImageConfigExperimental, LdJson, Link, LinkGetProps, ListApiQueryResponseProps, ModulePreviewProps, NonEmptyArray, Page, PageContentTypeFields, PageContext, PageProps, PageProvider, PickRename, Pretty, Preview, PreviewProps, Schema, SessionContext, SessionProvider, SetQueryProps, SimpleContentTypeFields, SiteContext, SiteProvider, SiteProviderProps, Theme, UIFields, UITemplateFields, UseDataFilterSetUrlAction, UseDataFiltersReturn, UseDataFiltersSetQueryProps, UseDataFiltersState, UseGriddoImageProps, UseGriddoImagePropsExperimental, UseGriddoImageReturn, UseGriddoImageReturnExperimental, UseI18nProps, UseImageProps, UseListSetQueryProps, UseListSetUrlAction, WindowLocation, formatLocaleDate, getComponent, getLang, getSiteID, getToken, griddoAlertRegister, useAiAnswers, useAiSearch, useContentType, useContentTypeNavigation, useDataFilters, useReferenceFieldData as useDistributorData, useGlobalTheme, useGriddoImage, useGriddoImageExp, useI18n, useImage, useIsClient, useIsFirstRender, useLink, useList, useListWithDefaultStaticPage, useLocaleDate, useNavigation, usePage, usePageRelatedContent, useReferenceFieldData, useSSR, useScript, useSession, useSite, useTheme, useThemeColors, useThemeFont, useThemePrimitives, };