@nuvler/theme-sdk 1.0.0 → 1.1.0

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/README.md CHANGED
@@ -10,11 +10,16 @@ export const theme = defineTheme({
10
10
  schemaVersion: 1,
11
11
  id: "meu-tema",
12
12
  name: "Meu tema",
13
- version: "1.0.0",
13
+ version: "1.0.1",
14
14
  runtimeVersion: THEME_RUNTIME_VERSION,
15
15
  sdkVersion: `^${THEME_API_VERSION}`,
16
16
  entry: "src/theme.tsx",
17
17
  styles: ["src/theme.css"],
18
+ presentation: {
19
+ description: "Tema da minha loja",
20
+ colors: { primary: "#1d4ed8", secondary: "#f59e0b", background: "#f8fafc", text: "#0f172a" },
21
+ layout: { containerWidth: 1200, borderRadius: 16 },
22
+ },
18
23
  },
19
24
  // tokens, template e components
20
25
  });
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.0.0";
3
+ export declare const THEME_API_VERSION: "1.1.0";
4
4
  export declare const THEME_RUNTIME_VERSION: "1";
5
5
  export interface ThemeApiCompatibility {
6
6
  themeApi: string;
@@ -15,6 +15,7 @@ export interface ThemeManifest {
15
15
  sdkVersion: string;
16
16
  entry: string;
17
17
  styles?: string[];
18
+ presentation?: ThemePresentation;
18
19
  }
19
20
  /** Manifesto imutável entregue junto ao bundle publicado no Registry. */
20
21
  export interface ThemeArtifactManifest {
@@ -26,6 +27,7 @@ export interface ThemeArtifactManifest {
26
27
  sdkVersion: string;
27
28
  entry: "./theme.js";
28
29
  style?: "./theme.css";
30
+ presentation?: ThemePresentation;
29
31
  }
30
32
  export interface ThemeImage {
31
33
  url: string | null;
@@ -51,6 +53,13 @@ export interface ThemeSettings {
51
53
  borderRadius: number;
52
54
  };
53
55
  }
56
+ /** Metadados usados pelo painel para apresentar e configurar um tema publicado. */
57
+ export interface ThemePresentation {
58
+ description: string;
59
+ templateId?: string;
60
+ colors: ThemeSiteColors;
61
+ layout: ThemeSettings["layout"];
62
+ }
54
63
  export interface ThemeContact {
55
64
  email?: string;
56
65
  phone?: string;
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export const THEME_SCHEMA_VERSION = 1;
2
- export const THEME_API_VERSION = "1.0.0";
2
+ export const THEME_API_VERSION = "1.1.0";
3
3
  export const THEME_RUNTIME_VERSION = "1";
4
4
  export function defineTheme(theme) {
5
5
  return theme;
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;AAmalD,MAAM,UAAU,WAAW,CAAkD,KAAa;IACxF,OAAO,KAAK,CAAC;AACf,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;AA6alD,MAAM,UAAU,WAAW,CAAkD,KAAa;IACxF,OAAO,KAAK,CAAC;AACf,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvler/theme-sdk",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Contrato público para temas da plataforma Nuvler",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",