@trendmed/site-builder-contract 0.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/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 TrendMed
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,25 @@
1
+ # @trendmed/site-builder-contract
2
+
3
+ Contrato compartilhado do construtor de sites TrendMed.
4
+
5
+ O pacote concentra apenas contratos estáveis, sem componentes visuais ou regras de
6
+ negócio específicas de LenteFy ou TrendSites.
7
+
8
+ ## Exportações atuais
9
+
10
+ - `opticalPresetKeys` e `OpticalPresetKey`
11
+ - `OpticalSectionStyle`
12
+
13
+ ## Consumo local
14
+
15
+ Os aplicativos usam a dependência local abaixo durante o desenvolvimento integrado:
16
+
17
+ ```json
18
+ "@trendmed/site-builder-contract": "file:../packages/site-builder-contract"
19
+ ```
20
+
21
+ ## Publicação externa
22
+
23
+ Antes de publicar uma release, definir o registro (npm ou GitHub Packages), a
24
+ identidade publicadora e a política de versões semânticas. O pacote já expõe runtime
25
+ em JavaScript e tipos TypeScript por meio de `exports`.
package/package.json ADDED
@@ -0,0 +1,21 @@
1
+ {
2
+ "name": "@trendmed/site-builder-contract",
3
+ "version": "0.1.0",
4
+ "description": "Contratos compartilhados do construtor de sites TrendMed.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "exports": {
8
+ ".": {
9
+ "types": "./src/index.d.ts",
10
+ "default": "./src/index.js"
11
+ }
12
+ },
13
+ "files": [
14
+ "src"
15
+ ],
16
+ "publishConfig": {
17
+ "access": "public",
18
+ "registry": "https://registry.npmjs.org/"
19
+ },
20
+ "sideEffects": false
21
+ }
package/src/index.d.ts ADDED
@@ -0,0 +1,16 @@
1
+ export declare const opticalPresetKeys: readonly [
2
+ 'optica-institucional',
3
+ 'optica-campanha',
4
+ 'optica-premium-local',
5
+ ]
6
+
7
+ export type OpticalPresetKey = (typeof opticalPresetKeys)[number]
8
+
9
+ export type OpticalSectionStyle = {
10
+ surface?: 'default' | 'muted' | 'primary' | 'accent' | 'dark' | 'image'
11
+ spacing?: 'compact' | 'normal' | 'generous'
12
+ container?: 'narrow' | 'default' | 'wide' | 'full'
13
+ textAlign?: 'left' | 'center'
14
+ headingSize?: 'default' | 'prominent'
15
+ imageOverlay?: 'none' | 'light' | 'dark'
16
+ }
package/src/index.js ADDED
@@ -0,0 +1,5 @@
1
+ export const opticalPresetKeys = [
2
+ 'optica-institucional',
3
+ 'optica-campanha',
4
+ 'optica-premium-local',
5
+ ]