@griddo/core 10.1.60 → 10.1.62
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.
|
@@ -4,6 +4,7 @@ import { GriddoLinkProps } from "../../components/GriddoLink";
|
|
|
4
4
|
import { Image, Menu } from "../api-response-fields";
|
|
5
5
|
import locales from "../constants/locales";
|
|
6
6
|
import timezone from "../constants/timezone";
|
|
7
|
+
import { Replace } from "../utilities";
|
|
7
8
|
export type Renderers = "gatsby" | "editor" | "preview";
|
|
8
9
|
export type SocialName = "instagram" | "linkedIn" | "facebook" | "twitter" | "youTube" | "flickr" | "tiktok" | "snapchat" | "newsletter";
|
|
9
10
|
export type Breadcrumb = Array<{
|
|
@@ -273,6 +274,7 @@ export interface LibraryComponentProps {
|
|
|
273
274
|
export type LocaleTranslations = Partial<Record<(typeof locales)[number], Record<string, unknown>>>;
|
|
274
275
|
/** Locale zone codes */
|
|
275
276
|
export type Locale = (typeof locales)[number];
|
|
277
|
+
export type ISOLocale = Replace<Locale, "_", "-">;
|
|
276
278
|
/** Time zone codes */
|
|
277
279
|
export type TimeZone = (typeof timezone)[number];
|
|
278
280
|
export interface ResponsiveImageProps {
|
|
@@ -5,3 +5,4 @@ export type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
|
5
5
|
export type ContentTypeNameOfUnion<T> = T extends {
|
|
6
6
|
__contentTypeName: string;
|
|
7
7
|
} ? T["__contentTypeName"] : never;
|
|
8
|
+
export type Replace<S extends string, From extends string, To extends string> = From extends "" ? S : S extends `${infer Start}${From}${infer Rest}` ? `${Start}${To}${Replace<Rest, From, To>}` : S;
|
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.1.
|
|
5
|
+
"version": "10.1.62",
|
|
6
6
|
"authors": [
|
|
7
7
|
"Álvaro Sánchez' <alvaro.sanches@secuoyas.com>",
|
|
8
8
|
"Diego M. Béjar <diego.bejar@secuoyas.com>",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"resolutions": {
|
|
79
79
|
"colors": "1.4.0"
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "8e6738551f24e2cfbd56410003b31147b6c3031f"
|
|
82
82
|
}
|