@nuvler/theme-sdk 1.2.0 → 1.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.
- package/dist/index.d.ts +11 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { ComponentType, ReactNode } from "react";
|
|
2
2
|
export declare const THEME_SCHEMA_VERSION: 1;
|
|
3
|
-
export declare const THEME_API_VERSION: "1.2.
|
|
3
|
+
export declare const THEME_API_VERSION: "1.2.1";
|
|
4
4
|
export declare const THEME_RUNTIME_VERSION: "1";
|
|
5
5
|
export interface ThemeApiCompatibility {
|
|
6
6
|
themeApi: string;
|
|
@@ -211,6 +211,7 @@ export interface ThemeContext {
|
|
|
211
211
|
navigation: {
|
|
212
212
|
pages: ThemeNavigationPage[];
|
|
213
213
|
categories: ThemeCategory[];
|
|
214
|
+
menu?: ThemeNavigationItem[];
|
|
214
215
|
};
|
|
215
216
|
home: ThemeHome;
|
|
216
217
|
catalog: {
|
|
@@ -223,6 +224,14 @@ export interface ThemeContext {
|
|
|
223
224
|
cases: ThemeEditorialItem[];
|
|
224
225
|
};
|
|
225
226
|
}
|
|
227
|
+
export type ThemeNavigationItemType = "CATEGORY" | "BLOG" | "SERVICES" | "CASES" | "PAGE";
|
|
228
|
+
export interface ThemeNavigationItem {
|
|
229
|
+
key: string;
|
|
230
|
+
type: ThemeNavigationItemType;
|
|
231
|
+
label: string;
|
|
232
|
+
href: string;
|
|
233
|
+
order: number;
|
|
234
|
+
}
|
|
226
235
|
export interface SiteTemplate {
|
|
227
236
|
announcement: string;
|
|
228
237
|
footerTagline: string;
|
|
@@ -243,6 +252,7 @@ export interface HeaderProps {
|
|
|
243
252
|
site: ThemeSite;
|
|
244
253
|
categories: ThemeCategory[];
|
|
245
254
|
pages: ThemePageSummary[];
|
|
255
|
+
menu?: ThemeNavigationItem[];
|
|
246
256
|
template: SiteTemplate;
|
|
247
257
|
cart?: ReactNode;
|
|
248
258
|
suggestionsEndpoint?: string;
|
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAU,CAAC;AAC/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAgB,CAAC;AAClD,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAU,CAAC;AAC/C,MAAM,CAAC,MAAM,iBAAiB,GAAG,OAAgB,CAAC;AAClD,MAAM,CAAC,MAAM,qBAAqB,GAAG,GAAY,CAAC;AA2clD,MAAM,UAAU,WAAW,CAAkD,KAAa;IACxF,OAAO,KAAK,CAAC;AACf,CAAC"}
|