@griddo/core 10.2.17 → 10.2.19
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.
- package/dist/autotypes.cjs.js +1 -1
- package/dist/autotypes.cjs.js.map +1 -1
- package/dist/autotypes.js +1 -1
- package/dist/autotypes.js.map +1 -1
- package/dist/hooks/__mocks__/page-provider-props.d.ts +4 -0
- package/dist/hooks/__mocks__/site-provider-props.d.ts +2 -0
- package/dist/hooks/__tests__/formatLocaleDate.test.d.ts +1 -0
- package/dist/hooks/__tests__/useLocaleDate.test.d.ts +1 -0
- package/dist/hooks/__tests__/usei18n.test.d.ts +1 -0
- package/dist/hooks/index.d.ts +2 -1
- package/dist/hooks/useI18n.d.ts +2 -4
- package/dist/hooks/useLocaleDate.d.ts +31 -0
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/schema-fields/base.d.ts +1 -4
- package/dist/types/schema-fields/props.d.ts +4 -0
- package/dist/types/schema-fields/ui-fields.d.ts +2 -2
- package/package.json +3 -3
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import __AT__ from "../../../../../../autotypes";
|
|
1
|
+
import { Option, ThemeColors, ThemeFixedColors, ThemeVisualUniqueSelection, ThumbnailOption, WithDisabled, WithEntity, WithGroup, WithSource } from "./props";
|
|
3
2
|
import { HTMLHeadingTag } from "../global";
|
|
4
3
|
import { DistributiveOmit } from "../utilities";
|
|
5
4
|
/** Type generator options */
|
|
@@ -218,8 +217,6 @@ export interface BaseReferenceField extends GenericField {
|
|
|
218
217
|
selectionType?: Array<"auto" | "manual">;
|
|
219
218
|
/** Only manual mode. */
|
|
220
219
|
maxItems?: number;
|
|
221
|
-
/** Array with the structured data types that the field has to load. */
|
|
222
|
-
source: Array<__AT__.PageContentTypes | __AT__.SimpleContentTypes | __AT__.TaxonomyContentTypes>;
|
|
223
220
|
}
|
|
224
221
|
export interface BaseRichText extends GenericField {
|
|
225
222
|
/** TextArea with simple editor that exports to markdown or html. Uses the draft.js and react-draft-wysiwyg.js libraries. */
|
|
@@ -138,3 +138,7 @@ export type WithRelations_AutoTypes = {
|
|
|
138
138
|
relations?: boolean | "off" | "simple" | "full";
|
|
139
139
|
};
|
|
140
140
|
};
|
|
141
|
+
export type WithDataSources = {
|
|
142
|
+
/** Array with the structured data types that the field has to load. */
|
|
143
|
+
source: Array<__AT__.PageContentTypes | __AT__.SimpleContentTypes | __AT__.TaxonomyContentTypes>;
|
|
144
|
+
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { BaseArrayFieldGroup, BaseAsyncCheckGroup, BaseAsyncSelect, BaseCheckGroup, BaseColorPicker, BaseComponentArray, BaseComponentContainer, BaseConditionalField, BaseDateField, BaseFieldGroup, BaseFieldsDivider, BaseFileField, BaseHeadingField, BaseImageField, BaseLinkField, BaseMultiCheckSelect, BaseMultiCheckSelectGroup, BaseNoteField, BaseNumberField, BaseRadioGroup, BaseReferenceField, BaseRichText, BaseSelect, BaseSliderField, BaseTagsField, BaseTextArea, BaseTextField, BaseTimeField, BaseToggleField, BaseUniqueCheck, BaseUrlField, BaseVisualUniqueSelection, BaseWysiwyg } from "./base";
|
|
2
|
-
import { WithAuxText, WithBackground, WithFullWidth, WithHelpText, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
2
|
+
import { WithAuxText, WithBackground, WithDataSources, WithFullWidth, WithHelpText, WithHideable, WithHumanReadable, WithIsMockup, WithPlaceHolder, WithPrefix, WithReadonly, WithRelations_AutoTypes, WithSlugTo, WithValidators, WithWhiteList } from "./props";
|
|
3
3
|
export type ArrayFieldGroup = BaseArrayFieldGroup<UIFields> & WithHelpText & WithHideable;
|
|
4
4
|
export type AsyncCheckGroup = BaseAsyncCheckGroup & WithHelpText & WithHideable;
|
|
5
5
|
export type AsyncSelect = BaseAsyncSelect & WithHelpText & WithHideable & WithPlaceHolder;
|
|
@@ -20,7 +20,7 @@ export type MultiCheckSelectGroup = BaseMultiCheckSelectGroup & WithRelations_Au
|
|
|
20
20
|
export type NoteField = BaseNoteField & WithHelpText & WithHideable;
|
|
21
21
|
export type NumberField = BaseNumberField & WithValidators & WithHelpText & WithHideable;
|
|
22
22
|
export type RadioGroup = BaseRadioGroup & WithHelpText & WithHideable;
|
|
23
|
-
export type ReferenceField = BaseReferenceField & WithHelpText & WithHideable;
|
|
23
|
+
export type ReferenceField = BaseReferenceField & WithHelpText & WithHideable & WithDataSources;
|
|
24
24
|
export type RichText = BaseRichText & WithIsMockup & WithValidators & WithPlaceHolder & WithHumanReadable & WithHelpText & WithHideable;
|
|
25
25
|
export type Select = BaseSelect & WithValidators & WithHelpText & WithHideable & WithPlaceHolder;
|
|
26
26
|
export type SliderField = BaseSliderField & WithValidators & WithHelpText & WithHideable;
|
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.
|
|
5
|
+
"version": "10.2.19",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"prepare": "yarn build",
|
|
29
29
|
"start:storybook": "start-storybook -p 6006",
|
|
30
30
|
"test": "jest",
|
|
31
|
-
"watch:test": "jest --
|
|
31
|
+
"watch:test": "jest --watch",
|
|
32
32
|
"test:coverage": "jest --coverage",
|
|
33
33
|
"test:clear": "jest --clearCache"
|
|
34
34
|
},
|
|
@@ -80,5 +80,5 @@
|
|
|
80
80
|
"resolutions": {
|
|
81
81
|
"colors": "1.4.0"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "098f21c232cae6a7b9af920d9b09f95667aad6d7"
|
|
84
84
|
}
|