@oktis-works/theme-sdk 0.5.5 → 0.6.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/types.d.ts +12 -23
- package/dist/types.d.ts.map +1 -1
- package/package.json +4 -1
package/dist/types.d.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
|
+
import type { ThemeManifest as CanonicalThemeManifest, ThemeSettingField as CanonicalThemeSettingField } from '@oktis-works/types';
|
|
1
2
|
export type ComponentType = 'layout' | 'component' | 'page' | 'partial';
|
|
2
|
-
export type SettingType = '
|
|
3
|
-
export
|
|
4
|
-
name: string;
|
|
5
|
-
type: SettingType;
|
|
6
|
-
label: string;
|
|
7
|
-
default: string | boolean;
|
|
8
|
-
options?: string[];
|
|
9
|
-
}
|
|
3
|
+
export type SettingType = NonNullable<CanonicalThemeSettingField['type']>;
|
|
4
|
+
export type ThemeSetting = CanonicalThemeSettingField;
|
|
10
5
|
export interface ThemeComponent {
|
|
11
6
|
name: string;
|
|
12
7
|
type: ComponentType;
|
|
@@ -21,8 +16,14 @@ export interface ThemeStyleConfig {
|
|
|
21
16
|
entry?: string;
|
|
22
17
|
/** Saída relativa ao tema (ex: dist/theme.css). Se omitido, dist/theme.css isolado. */
|
|
23
18
|
output?: string;
|
|
24
|
-
/**
|
|
25
|
-
|
|
19
|
+
/**
|
|
20
|
+
* Isolamento fino BUSI-040 via [data-theme="nome"]:
|
|
21
|
+
* - `true` — o pipeline de build escopa o CSS ( engines com build: scss/tailwind ).
|
|
22
|
+
* - `'manual'` — o AUTOR entrega o CSS já isolado; válido apenas com engine css
|
|
23
|
+
* (tema sem build, `dist/theme.css` servido como está). `false` é rejeitado
|
|
24
|
+
* em validação; `'manual'` fora do css é rejeitado.
|
|
25
|
+
*/
|
|
26
|
+
isolation?: true | 'manual';
|
|
26
27
|
}
|
|
27
28
|
export interface ThemeProvides {
|
|
28
29
|
layouts?: string[];
|
|
@@ -30,19 +31,7 @@ export interface ThemeProvides {
|
|
|
30
31
|
styles?: string[];
|
|
31
32
|
assets?: string[];
|
|
32
33
|
}
|
|
33
|
-
export
|
|
34
|
-
name: string;
|
|
35
|
-
version: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
author?: string;
|
|
38
|
-
screenshot?: string;
|
|
39
|
-
parent?: string;
|
|
40
|
-
provides?: ThemeProvides;
|
|
41
|
-
/** Configuração de portabilidade de estilos (tailwind OU scss) */
|
|
42
|
-
stylesConfig?: ThemeStyleConfig;
|
|
43
|
-
settings?: ThemeSetting[];
|
|
44
|
-
components?: ThemeComponent[];
|
|
45
|
-
}
|
|
34
|
+
export type ThemeManifest = CanonicalThemeManifest;
|
|
46
35
|
export interface RenderContext {
|
|
47
36
|
content: string;
|
|
48
37
|
tenant: string;
|
package/dist/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,aAAa,IAAI,sBAAsB,EACvC,iBAAiB,IAAI,0BAA0B,EAChD,MAAM,oBAAoB,CAAC;AAE5B,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,SAAS,CAAC;AAExE,MAAM,MAAM,WAAW,GAAG,WAAW,CAAC,0BAA0B,CAAC,MAAM,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,YAAY,GAAG,0BAA0B,CAAC;AAEtD,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,CAAC;IACpB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CACjC;AAED,MAAM,MAAM,WAAW,GAAG,UAAU,GAAG,MAAM,GAAG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|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -21,6 +21,9 @@
|
|
|
21
21
|
"files": [
|
|
22
22
|
"dist"
|
|
23
23
|
],
|
|
24
|
+
"dependencies": {
|
|
25
|
+
"@oktis-works/types": "^0.9.1"
|
|
26
|
+
},
|
|
24
27
|
"publishConfig": {
|
|
25
28
|
"access": "public",
|
|
26
29
|
"registry": "https://registry.npmjs.org/"
|