@trismegisto/maps 3.4.0 → 4.0.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 +56 -56
- package/MIGRATION.md +831 -0
- package/NOTICE +29 -62
- package/README.md +19 -5
- package/dist/src/core/basemap.d.ts +5 -5
- package/dist/src/core/basemap.js +1 -1
- package/dist/src/core/basemap.js.map +1 -1
- package/dist/src/core/cluster-groups.d.ts +3 -3
- package/dist/src/core/cluster-groups.js.map +1 -1
- package/dist/src/core/engine.d.ts +22 -18
- package/dist/src/core/engine.js +36 -32
- package/dist/src/core/engine.js.map +1 -1
- package/dist/src/core/geo.d.ts +17 -17
- package/dist/src/core/geo.js +12 -12
- package/dist/src/core/geo.js.map +1 -1
- package/dist/src/core/geojson.d.ts +5 -5
- package/dist/src/core/geojson.js +7 -7
- package/dist/src/core/geojson.js.map +1 -1
- package/dist/src/core/interactions.d.ts +13 -36
- package/dist/src/core/interactions.js +64 -249
- package/dist/src/core/interactions.js.map +1 -1
- package/dist/src/core/map-layers.d.ts +13 -13
- package/dist/src/core/map-layers.js +7 -7
- package/dist/src/core/map-layers.js.map +1 -1
- package/dist/src/core/projection.d.ts +8 -8
- package/dist/src/core/projection.js +7 -7
- package/dist/src/core/projection.js.map +1 -1
- package/dist/src/core/route-view.d.ts +4 -4
- package/dist/src/core/route-view.js +5 -5
- package/dist/src/core/route-view.js.map +1 -1
- package/dist/src/core/route.d.ts +8 -8
- package/dist/src/core/route.js +11 -11
- package/dist/src/core/route.js.map +1 -1
- package/dist/src/core/shapes.d.ts +6 -6
- package/dist/src/core/shapes.js +5 -5
- package/dist/src/core/shapes.js.map +1 -1
- package/dist/src/core/tiles.d.ts +25 -17
- package/dist/src/core/tiles.js +32 -31
- package/dist/src/core/tiles.js.map +1 -1
- package/dist/src/core/vector.d.ts +5 -5
- package/dist/src/core/vector.js +3 -3
- package/dist/src/core/vector.js.map +1 -1
- package/dist/src/core/view.d.ts +12 -12
- package/dist/src/core/view.js +27 -27
- package/dist/src/core/view.js.map +1 -1
- package/package.json +44 -43
package/MIGRATION.md
ADDED
|
@@ -0,0 +1,831 @@
|
|
|
1
|
+
# Atualizando o Trismegisto da 3.x para a 4.0
|
|
2
|
+
|
|
3
|
+
Guia para quem usa os pacotes `@trismegisto/*` numa aplicação e vai sair da 3.x (a última foi a 3.4.0) para a 4.0.0.
|
|
4
|
+
A 4.0 é uma versão maior: há mudanças que quebram a compilação e algumas que mudam o que aparece na tela. Não há API
|
|
5
|
+
depreciada nem nome antigo mantido por compatibilidade, exceto os nomes antigos de ícone, que continuam resolvendo
|
|
6
|
+
(ver [Ícones](#icones-trismegistoicons)).
|
|
7
|
+
|
|
8
|
+
Este mesmo texto vai dentro de cada pacote publicado, como `MIGRATION.md`.
|
|
9
|
+
|
|
10
|
+
## Requisitos
|
|
11
|
+
|
|
12
|
+
| Item | Versão |
|
|
13
|
+
|---|---|
|
|
14
|
+
| Pacotes `@trismegisto/*` | todos na **mesma versão** (`^4.0.0`): as 12 libs andam juntas e dependem umas das outras por `peerDependencies` `^4.0.0` |
|
|
15
|
+
| Angular (`@trismegisto/angular`) | `@angular/core`, `common`, `forms`, `router`, `platform-browser` e `cdk` **21 ou mais novo** (sem mudança desde a 3.4) |
|
|
16
|
+
| React (`@trismegisto/react`) | `react` e `react-dom` **19 ou mais novo**; `react-router` **7** quando usar as peças de navegação (sem mudança desde a 3.4) |
|
|
17
|
+
| Node.js | os pacotes não declaram `engines`; use a versão que o seu framework pede (o Angular 21 pede Node 20.19+, 22.12+ ou 24+). A lib é construída e testada com Node 24 |
|
|
18
|
+
| TypeScript | o que o seu framework pede; os tipos publicados são ES2022 |
|
|
19
|
+
|
|
20
|
+
Peers opcionais que continuam iguais: `@orfeu/angular` `^1.0.0` / `@orfeu/react` `^1.7.1` (só para o `spine`),
|
|
21
|
+
`marked` e `dompurify` (Markdown), `@apollo/client`, `graphql`, `graphql-ws`, `apollo-angular` e `rxjs` (só para as
|
|
22
|
+
peças GraphQL do `spine`).
|
|
23
|
+
|
|
24
|
+
## Ordem recomendada de atualização
|
|
25
|
+
|
|
26
|
+
1. **Atualize todos os `@trismegisto/*` de uma vez**, na mesma versão. Misturar 3.x e 4.x não funciona (os peers
|
|
27
|
+
pedem `^4.0.0`):
|
|
28
|
+
|
|
29
|
+
```bash
|
|
30
|
+
# Angular
|
|
31
|
+
npm install @trismegisto/tokens@^4.0.0 @trismegisto/icons@^4.0.0 @trismegisto/primitives@^4.0.0 \
|
|
32
|
+
@trismegisto/core@^4.0.0 @trismegisto/angular@^4.0.0
|
|
33
|
+
# React
|
|
34
|
+
npm install @trismegisto/tokens@^4.0.0 @trismegisto/icons@^4.0.0 @trismegisto/primitives@^4.0.0 \
|
|
35
|
+
@trismegisto/core@^4.0.0 @trismegisto/react@^4.0.0
|
|
36
|
+
# e os núcleos que o app já usa, na mesma versão:
|
|
37
|
+
npm install @trismegisto/charts@^4.0.0 @trismegisto/maps@^4.0.0 @trismegisto/terminal@^4.0.0 @trismegisto/spine@^4.0.0
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
2. **Ícones**: troque os nomes antigos pelos novos (eles ainda resolvem, mas os 7 da seção de logotipos não) e os
|
|
41
|
+
imports de constantes. É a mudança que mais aparece no código e a mais mecânica.
|
|
42
|
+
3. **Gráficos** (`hm-chart` / `Chart` cru e quem usa o motor direto). Os gráficos tipados (`hm-bar-chart`,
|
|
43
|
+
`BarChart`, `hm-line-chart`…) não mudam.
|
|
44
|
+
4. **Mapas** (`hm-map` / `MapView` e quem usa o `MapEngine` direto).
|
|
45
|
+
5. **Terminal** (`hm-terminal` / `HermesTerminal` e quem usa o núcleo direto).
|
|
46
|
+
6. **Spine** (só quem usa as funções do "Conectar um agente de IA").
|
|
47
|
+
7. **CSS próprio** que sobrescreve classes da lib (seção [Core e tokens](#core-e-tokens-trismegistocore-e-trismegistotokens)).
|
|
48
|
+
8. Rode o build e os testes do app, e confira na tela as páginas com gráfico, mapa, terminal e ícones.
|
|
49
|
+
|
|
50
|
+
## Pacotes novos
|
|
51
|
+
|
|
52
|
+
Dois núcleos sem framework entram na 4.0. São opcionais: só instale se usar as peças deles.
|
|
53
|
+
|
|
54
|
+
### `@trismegisto/media`
|
|
55
|
+
|
|
56
|
+
Visualizador de arquivos e mídia: detecção de tipo (MIME, extensão e assinatura), leitura parcial, visualizadores
|
|
57
|
+
(imagem, PDF, texto, código, JSON, Markdown, CSV, ZIP/TAR, HTML renderizado sem scripts), reprodutor de áudio e vídeo
|
|
58
|
+
com legendas, capítulos e transcrição, miniaturas e galeria. As cascas ficam em `@trismegisto/angular/media` e
|
|
59
|
+
`@trismegisto/angular/media/player`, e em `@trismegisto/react/media` e `@trismegisto/react/media/player`.
|
|
60
|
+
|
|
61
|
+
```bash
|
|
62
|
+
npm install @trismegisto/media@^4.0.0
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
```ts
|
|
66
|
+
// Angular
|
|
67
|
+
import { FileViewerComponent, FilePreviewComponent, FileGalleryComponent } from '@trismegisto/angular/media'; // <hm-file-viewer>…
|
|
68
|
+
import { MediaPlayerComponent } from '@trismegisto/angular/media/player'; // <hm-media-player>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
```tsx
|
|
72
|
+
// React
|
|
73
|
+
import { FileViewer, FilePreview, FileGallery } from '@trismegisto/react/media';
|
|
74
|
+
import { MediaPlayer } from '@trismegisto/react/media/player';
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### `@trismegisto/topology`
|
|
78
|
+
|
|
79
|
+
Motor de topologia de rede: modelo, estados, layouts, roteamento de enlaces, renderização (SVG e, em escala, Canvas e
|
|
80
|
+
WebGL), teclado, edição do layout, grupos e submapas, atualização ao vivo e textos. As cascas são
|
|
81
|
+
`@trismegisto/angular/topology` (`hm-topology`, `hm-topology-legend`) e `@trismegisto/react/topology` (`Topology`,
|
|
82
|
+
`TopologyLegend`). O fundo geográfico é opcional e usa o `@trismegisto/maps`.
|
|
83
|
+
|
|
84
|
+
```bash
|
|
85
|
+
npm install @trismegisto/topology@^4.0.0
|
|
86
|
+
# fundo geográfico (opcional):
|
|
87
|
+
npm install @trismegisto/maps@^4.0.0
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
Os dois ficam fora do barrel principal (`@trismegisto/angular` / `@trismegisto/react`): importe sempre pelo ponto de
|
|
91
|
+
entrada próprio, para quem não usa não levar o código.
|
|
92
|
+
|
|
93
|
+
## Resumo das quebras por pacote
|
|
94
|
+
|
|
95
|
+
| Pacote | Quebra a compilação? | O que mudou |
|
|
96
|
+
|---|---|---|
|
|
97
|
+
| `@trismegisto/tokens` | não | só tokens novos; nenhum removido nem renomeado |
|
|
98
|
+
| `@trismegisto/icons` | sim, para quem importa constantes | catálogo redesenhado; 149 nomes trocados (o antigo ainda resolve); 7 aliases de logotipo removidos; constantes antigas removidas; categorias novas |
|
|
99
|
+
| `@trismegisto/primitives` | não | só adições |
|
|
100
|
+
| `@trismegisto/core` | não (CSS) | classes do convite do agente removidas; tipografia por papéis em vários componentes; largura do modal por variável |
|
|
101
|
+
| `@trismegisto/charts` | sim, para quem usa `hm-chart`/`Chart` cru ou o motor | formato de opções anterior removido; o motor recebe `ChartSpec` e cria com `createChart` |
|
|
102
|
+
| `@trismegisto/maps` | sim | vocabulário próprio: `GeoPoint`, `GeoBox`, `RasterLayer`, `moveTo`, `fitTo`, `toScreen`, `toGeo`, `boundary` |
|
|
103
|
+
| `@trismegisto/terminal` | sim | `createTerminal(host, opções)` devolve um `TerminalHandle`; complementos viram opções; eventos devolvem a função de desligar |
|
|
104
|
+
| `@trismegisto/spine` | sim, só para quem usava o modelo de vários servidores do MCP | `mcpBadgesFor`, `toggleMcpServer` e `mcpConnectStart` removidos |
|
|
105
|
+
| `@trismegisto/angular` | sim | cascas de gráfico, mapa e terminal seguem os núcleos |
|
|
106
|
+
| `@trismegisto/react` | sim | cascas de gráfico, mapa e terminal seguem os núcleos |
|
|
107
|
+
| `@trismegisto/media` | — | pacote novo |
|
|
108
|
+
| `@trismegisto/topology` | — | pacote novo |
|
|
109
|
+
|
|
110
|
+
## Gráficos (`@trismegisto/charts`)
|
|
111
|
+
|
|
112
|
+
Quem usa **só os gráficos tipados** (`hm-bar-chart`, `hm-line-chart`, `hm-pie-chart`… / `BarChart`, `LineChart`,
|
|
113
|
+
`PieChart`…) não precisa mudar nada. A quebra é para quem desenha com o gráfico cru (`hm-chart` / `Chart`) ou usa o
|
|
114
|
+
motor direto (`@trismegisto/charts/engine`).
|
|
115
|
+
|
|
116
|
+
### O gráfico cru: `option` vira `spec`
|
|
117
|
+
|
|
118
|
+
O formato de opções anterior saiu inteiro. O gráfico agora é descrito por um **`ChartSpec`**, orientado a dados: o tipo
|
|
119
|
+
(`kind`), as séries com os pontos (`series: [{ id, name, points }]`) e os componentes em volta (`axes`, `plane`,
|
|
120
|
+
`legend`, `tooltip`, `colorScale`, `referenceMarks`…).
|
|
121
|
+
|
|
122
|
+
Angular, antes (3.x):
|
|
123
|
+
|
|
124
|
+
```ts
|
|
125
|
+
readonly option: HmChartOption = {
|
|
126
|
+
xAxis: { type: 'category', data: ['jan', 'fev', 'mar'] },
|
|
127
|
+
yAxis: { type: 'value' },
|
|
128
|
+
series: [{ type: 'bar', name: 'Vendas', data: [120, 200, 150] }],
|
|
129
|
+
tooltip: { trigger: 'axis' },
|
|
130
|
+
};
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
```html
|
|
134
|
+
<hm-chart label="Vendas por mês" [option]="option" />
|
|
135
|
+
```
|
|
136
|
+
|
|
137
|
+
Angular, depois (4.0):
|
|
138
|
+
|
|
139
|
+
```ts
|
|
140
|
+
import type { ChartSpec } from '@trismegisto/angular/charts';
|
|
141
|
+
|
|
142
|
+
readonly spec: ChartSpec = {
|
|
143
|
+
kind: 'bar',
|
|
144
|
+
axes: { x: { type: 'category', categories: ['jan', 'fev', 'mar'] }, y: { type: 'value' } },
|
|
145
|
+
series: [{ id: 'vendas', name: 'Vendas', points: [120, 200, 150] }],
|
|
146
|
+
tooltip: { mode: 'axis' },
|
|
147
|
+
};
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
```html
|
|
151
|
+
<hm-chart label="Vendas por mês" [spec]="spec" />
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
React, antes (3.x):
|
|
155
|
+
|
|
156
|
+
```tsx
|
|
157
|
+
<Chart label="Vendas por mês" option={{ xAxis: { type: 'category', data: meses }, yAxis: { type: 'value' },
|
|
158
|
+
series: [{ type: 'bar', data: vendas }] }} />
|
|
159
|
+
```
|
|
160
|
+
|
|
161
|
+
React, depois (4.0):
|
|
162
|
+
|
|
163
|
+
```tsx
|
|
164
|
+
import { Chart, type ChartSpec } from '@trismegisto/react/charts';
|
|
165
|
+
|
|
166
|
+
<Chart label="Vendas por mês" spec={{ kind: 'bar', axes: { x: { categories: meses } }, series: [{ points: vendas }] }} />
|
|
167
|
+
```
|
|
168
|
+
|
|
169
|
+
### Tabela de equivalência
|
|
170
|
+
|
|
171
|
+
| 3.x | 4.0 |
|
|
172
|
+
|---|---|
|
|
173
|
+
| `[option]` (Angular) / `option` (React), tipo `HmChartOption` | `[spec]` / `spec`, tipo `ChartSpec` |
|
|
174
|
+
| `xAxis`, `yAxis`, `grid` | `axes: { x, y }`, `plane: { inset, fitLabels }` |
|
|
175
|
+
| `xAxis.data` | `axes.x.categories` |
|
|
176
|
+
| `series: [{ type, data, itemStyle, emphasis… }]` | `kind` (no spec ou na série) + `series: [{ id, name, points, color, highlight… }]` |
|
|
177
|
+
| `visualMap` | `colorScale` |
|
|
178
|
+
| `markPoint` | `callouts` (selos sobre pontos da linha) |
|
|
179
|
+
| `aria.decal` | `patterns: true` |
|
|
180
|
+
| `tooltip.trigger: 'item' \| 'axis'` | `tooltip.mode: 'item' \| 'axis'` |
|
|
181
|
+
| `tooltip.formatter(params)` | `tooltip.content(items)` (recebe `TooltipInfo[]`, devolve HTML) |
|
|
182
|
+
| `tooltip.valueFormatter(v, i, p)` | `tooltip.value(v, info)` |
|
|
183
|
+
| templates `{a}`, `{b}`, `{c}`, `{d}` | `{series}`, `{name}`, `{value}`, `{percent}` |
|
|
184
|
+
| símbolos `emptyCircle`, `rect`, `roundRect`, `pin`, `path://…` | `ring`, `square`, `rounded-square`, `drop`, `{ path: 'M…' }` (mais `circle`, `triangle`, `diamond`, `arrow`, `none`) |
|
|
185
|
+
| templates de string no tooltip | só funções (`content`, `value`) |
|
|
186
|
+
| dataset e mescla de opção | saíram: passe o spec inteiro a cada mudança |
|
|
187
|
+
| tipos `HmChartOption`, `Hm*SeriesOption`, `HmChartInstance`, `HmChartEvent` | `ChartSpec`, `*SeriesSpec` (`BarSeriesSpec`, `LineSeriesSpec`…), `ChartInstance`, `ChartEvent` |
|
|
188
|
+
| seção `engine` do catálogo `ChartsMessages` | saiu (a descrição acessível vem do resumo e da tabela do próprio gráfico) |
|
|
189
|
+
|
|
190
|
+
### Eventos e ações no gráfico cru
|
|
191
|
+
|
|
192
|
+
| 3.x | 4.0 |
|
|
193
|
+
|---|---|
|
|
194
|
+
| `chart.instance.on('mouseover', h)` / `off` | `const off = chart.listen('pointerenter', h)` no componente (Angular) ou no `ref` (React); chame `off()` para desligar |
|
|
195
|
+
| `chart.instance.dispatchAction({ type: 'highlight' | 'downplay', … })` | `chart.highlight(alvo)` / `chart.clearHighlight(alvo?)` |
|
|
196
|
+
| `dispatchAction({ type: 'showTip' | 'hideTip', … })` | `chart.instance.showTooltip(alvo)` / `chart.instance.hideTooltip()` |
|
|
197
|
+
| `ChartHandle` do React com só `instance` e `leave()` | o `ref` também tem `listen`, `highlight` e `clearHighlight` |
|
|
198
|
+
| eventos `mouseover`, `mouseout`, `downplay`, `legendselectchanged`, `finished` | `pointerenter`, `pointerleave`, `clearhighlight`, `legendtoggle`, `settled` (mais `click`, `highlight`, `rendered`, `sweep*`); o evento traz `pointIndex` e `detail` |
|
|
199
|
+
|
|
200
|
+
Angular, depois:
|
|
201
|
+
|
|
202
|
+
```ts
|
|
203
|
+
@ViewChild(HmChartComponent) chart!: HmChartComponent;
|
|
204
|
+
|
|
205
|
+
ngAfterViewInit(): void {
|
|
206
|
+
this.off = this.chart.listen('click', (event) => this.abrir(event.pointIndex));
|
|
207
|
+
}
|
|
208
|
+
ngOnDestroy(): void {
|
|
209
|
+
this.off?.();
|
|
210
|
+
}
|
|
211
|
+
```
|
|
212
|
+
|
|
213
|
+
React, depois:
|
|
214
|
+
|
|
215
|
+
```tsx
|
|
216
|
+
const ref = useRef<ChartHandle>(null);
|
|
217
|
+
useEffect(() => ref.current?.listen('click', (event) => abrir(event.pointIndex)), []);
|
|
218
|
+
<Chart ref={ref} label="Vendas" spec={spec} />
|
|
219
|
+
```
|
|
220
|
+
|
|
221
|
+
### Motor direto (`@trismegisto/charts/engine`)
|
|
222
|
+
|
|
223
|
+
| 3.x | 4.0 |
|
|
224
|
+
|---|---|
|
|
225
|
+
| `init(el)`, `getInstanceByDom(el)`, `dispose(el)` | `const chart = createChart(el, { theme, locale, width, height })` (criar de novo no mesmo elemento descarta o anterior), `chart.dispose()` |
|
|
226
|
+
| `use()`, `registerTheme()`, `registerLocale()` | saíram: tema por papel (`ChartTheme`) e idioma (`ChartLocale`) nas opções do `createChart` ou em `setTheme` |
|
|
227
|
+
| `setOption(option)` / `getOption()` | `render(spec)` / `spec()` |
|
|
228
|
+
| `dispatchAction`, `on`/`off`, `getDom` | `highlight`/`clearHighlight`/`showTooltip`/`hideTooltip`, `listen` (devolve quem desliga), `element` |
|
|
229
|
+
| `renderToSVGString`, `getDataURL`, `convertToPixel`/`convertFromPixel`, `containPixel` | `toSVG`, `toDataURL`, `toPixel`/`fromPixel` (e `containsPixel`) |
|
|
230
|
+
|
|
231
|
+
Quem estende os gráficos tipados no núcleo (`@trismegisto/charts`, sem casca): `ChartView.option` → `ChartView.spec`;
|
|
232
|
+
`ChartHost.setOption`/`on`/`dispatch` → `render`/`listen`/`highlight` e `clearHighlight`; `finalChartOption` →
|
|
233
|
+
`finalChartSpec`; `chartLegendAction` → `chartLegendTarget`; `engineLocale` devolve um `ChartLocale`.
|
|
234
|
+
|
|
235
|
+
### Mudanças visuais nos gráficos (sem quebra de compilação)
|
|
236
|
+
|
|
237
|
+
- **Passo do eixo de valor**: critério próprio (passos de 1, 2, 2,5 e 5 × 10ⁿ, o mais perto das divisões pedidas).
|
|
238
|
+
Alguns eixos mostram marcas diferentes (ex.: 0 a 100 em 4 divisões dá 25 em 25). Se um teste de tela conferia as
|
|
239
|
+
marcas, fixe `axes.y.step` ou atualize a captura.
|
|
240
|
+
- **Legenda em lista** (rosca, pizza e séries com `legend` em lista): itens compactos com marca, nome e valor; na rosca
|
|
241
|
+
e na pizza, a área de desenho fica quadrada e a lista ao lado. O `<ul class="hm-chart-legend">` sempre traz
|
|
242
|
+
`data-flow="row"` (faixa em linha) ou `data-flow="column"` (um item por linha), e o corpo da moldura ganha
|
|
243
|
+
`data-shape="square"` (sem rótulos em volta) ou `data-shape="wide"` (com rótulos) e a variável `--hm-chart-plot-size`
|
|
244
|
+
na pizza e na rosca. CSS do app que dependia da ausência
|
|
245
|
+
de `data-flow` precisa ser revisto.
|
|
246
|
+
- Setas de página da legenda nas cores do tema; série de linha sem cor própria usa a cor do traço (`stroke.color`).
|
|
247
|
+
|
|
248
|
+
### Como achar os usos no seu projeto
|
|
249
|
+
|
|
250
|
+
```bash
|
|
251
|
+
grep -rnE "\[option\]|option=\{|HmChartOption|Hm[A-Za-z]+SeriesOption|HmChartInstance|HmChartEvent" src
|
|
252
|
+
grep -rnE "dispatchAction|setOption|getInstanceByDom|registerTheme|\.dispatch\(" src
|
|
253
|
+
grep -rnE "\{a\}|\{b\}|\{c\}|\{d\}|emptyCircle|roundRect|path://" src
|
|
254
|
+
```
|
|
255
|
+
|
|
256
|
+
## Mapas (`@trismegisto/maps`)
|
|
257
|
+
|
|
258
|
+
A API pública ganhou vocabulário próprio. Os nomes antigos saíram sem alias: o TypeScript aponta cada uso.
|
|
259
|
+
|
|
260
|
+
### Componente de mapa
|
|
261
|
+
|
|
262
|
+
Angular, antes:
|
|
263
|
+
|
|
264
|
+
```html
|
|
265
|
+
<hm-map label="Lojas" [maxBounds]="limite" [maxNativeZoom]="18" [zoomControl]="true" [scrollWheelZoom]="false"
|
|
266
|
+
tileUrl="https://{s}.tiles.exemplo.com/{z}/{x}/{y}.png" [subdomains]="'abc'">
|
|
267
|
+
<hm-map-polyline [points]="rota" [weight]="3" dashArray="4 2" />
|
|
268
|
+
</hm-map>
|
|
269
|
+
```
|
|
270
|
+
|
|
271
|
+
```ts
|
|
272
|
+
this.map.setView([-15.79, -47.88], 12);
|
|
273
|
+
this.map.fitBounds(area);
|
|
274
|
+
this.map.invalidateSize();
|
|
275
|
+
```
|
|
276
|
+
|
|
277
|
+
Angular, depois:
|
|
278
|
+
|
|
279
|
+
```html
|
|
280
|
+
<hm-map label="Lojas" [boundary]="limite" [tileMaxZoom]="18" [zoomButtons]="true" [wheelZoom]="false"
|
|
281
|
+
[tileUrl]="['https://a.tiles.exemplo.com/{z}/{x}/{y}.png', 'https://b.tiles.exemplo.com/{z}/{x}/{y}.png']">
|
|
282
|
+
<hm-map-polyline [points]="rota" [strokeWidth]="3" dash="4 2" />
|
|
283
|
+
</hm-map>
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
```ts
|
|
287
|
+
this.map.moveTo([-15.79, -47.88], 12);
|
|
288
|
+
this.map.fitTo(area);
|
|
289
|
+
this.map.refreshSize();
|
|
290
|
+
```
|
|
291
|
+
|
|
292
|
+
React, antes:
|
|
293
|
+
|
|
294
|
+
```tsx
|
|
295
|
+
<MapView ref={mapa} label="Lojas" maxBounds={limite} maxNativeZoom={18} zoomControl scrollWheelZoom={false}
|
|
296
|
+
tileUrl="https://{s}.tiles.exemplo.com/{z}/{x}/{y}.png" subdomains="abc">
|
|
297
|
+
<MapPolyline points={rota} weight={3} dashArray="4 2" />
|
|
298
|
+
</MapView>
|
|
299
|
+
// mapa.current.setView(centro, 12); mapa.current.fitBounds(area); mapa.current.invalidateSize();
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
React, depois:
|
|
303
|
+
|
|
304
|
+
```tsx
|
|
305
|
+
<MapView ref={mapa} label="Lojas" boundary={limite} tileMaxZoom={18} zoomButtons wheelZoom={false}
|
|
306
|
+
tileUrl={['https://a.tiles.exemplo.com/{z}/{x}/{y}.png', 'https://b.tiles.exemplo.com/{z}/{x}/{y}.png']}>
|
|
307
|
+
<MapPolyline points={rota} strokeWidth={3} dash="4 2" />
|
|
308
|
+
</MapView>
|
|
309
|
+
// mapa.current.moveTo(centro, 12); mapa.current.fitTo(area); mapa.current.refreshSize();
|
|
310
|
+
```
|
|
311
|
+
|
|
312
|
+
O endereço dos tiles (`TileSource`) é um texto com `{z}`, `{x}` e `{y}`, ou uma **lista de endereços espelho** entre os
|
|
313
|
+
quais os tiles se distribuem. As marcações `{s}`, `{r}` e `{-y}` e a opção `subdomains` saíram: troque `{s}` pela lista
|
|
314
|
+
de espelhos e `{-y}` por `tileInvertY` (`[tileInvertY]="true"` / `tileInvertY`), que conta as linhas a partir do sul.
|
|
315
|
+
|
|
316
|
+
| Componente (3.x) | 4.0 |
|
|
317
|
+
|---|---|
|
|
318
|
+
| `maxBounds` | `boundary` |
|
|
319
|
+
| `maxNativeZoom` | `tileMaxZoom` |
|
|
320
|
+
| `zoomControl` | `zoomButtons` |
|
|
321
|
+
| `scrollWheelZoom` | `wheelZoom` |
|
|
322
|
+
| `subdomains`, `{s}`, `{r}`, `{-y}` no `tileUrl` | lista de espelhos em `tileUrl`; `tileInvertY` |
|
|
323
|
+
| `setView` / `fitBounds` / `invalidateSize` (componente, handle e `HmMapContext`) | `moveTo` / `fitTo` / `refreshSize` |
|
|
324
|
+
| `weight` / `dashArray` em `hm-map-polyline`, `hm-map-polygon`, `hm-map-circle` / `MapPolyline`, `MapPolygon`, `MapCircle` | `strokeWidth` / `dash` |
|
|
325
|
+
| tipos `LatLngLike` / `LatLngBoundsLike` | `GeoPointInput` / `GeoBoxInput` |
|
|
326
|
+
|
|
327
|
+
### Núcleo (`@trismegisto/maps`)
|
|
328
|
+
|
|
329
|
+
| 3.x | 4.0 |
|
|
330
|
+
|---|---|
|
|
331
|
+
| `LatLng`, `LatLngLike`, `latLng()` | `GeoPoint`, `GeoPointInput`, `geoPoint()` |
|
|
332
|
+
| `toLatLng`, `sameLatLng` | `toGeoPoint`, `sameGeoPoint` |
|
|
333
|
+
| `LatLngBounds`, `LatLngBoundsLike` | `GeoBox`, `GeoBoxInput` |
|
|
334
|
+
| `toLatLngBounds`, `isLatLngBounds` | `toGeoBox`, `isGeoBox` |
|
|
335
|
+
| `boundsOf`, `boundsCenter`, `containsLatLng` | `boxOf`, `boxCenter`, `boxContains` |
|
|
336
|
+
| `PixelBounds` | `PixelBox` |
|
|
337
|
+
| `positionToLatLng`, `geoJsonBounds`, `routeBounds`, `padBounds` | `positionToGeo`, `geoJsonBox`, `routeBox`, `padBox` |
|
|
338
|
+
| `latLngToPixel`, `pixelToLatLng`, `latLngToTile`, `tileToLatLng` | `geoToPixel`, `pixelToGeo`, `geoToTile`, `tileToGeo` |
|
|
339
|
+
| `boundsOffset`, `projectBounds`, `boundsZoom`, `fitBoundsView`, `viewBounds` | `boxOffset`, `projectBox`, `fitZoom`, `fitView`, `visibleBox` |
|
|
340
|
+
| `ViewLimits.maxBounds` (e em `MapLimitsInput`) | `ViewLimits.boundary` |
|
|
341
|
+
| `TileLayer`, `TileLayerOptions` | `RasterLayer`, `RasterLayerOptions` |
|
|
342
|
+
| `TileLayerOptions.maxNativeZoom`, `keepBuffer` | `RasterLayerOptions.tileMaxZoom`, `retainMargin` |
|
|
343
|
+
| `subdomains` (padrão `'abc'`), `retinaSuffix`, `{s}`, `{r}`, `{-y}` | saíram; `url` é um `TileSource`; `invertY` conta as linhas a partir do sul |
|
|
344
|
+
| — | `tileUrl(source, tile, invertY?)` e `tileSourceList()` |
|
|
345
|
+
| `MapEngine.setView`, `fitBounds`, `setTiles` | `moveTo`, `fitTo`, `setRaster` |
|
|
346
|
+
| `MapEngine.latLngToLayerPoint`, `latLngToContainerPoint`, `containerPointToLatLng` | `toLayer`, `toScreen`, `toGeo` |
|
|
347
|
+
| opções do `MapEngine` `maxBounds`, `tiles` | `boundary`, `raster` |
|
|
348
|
+
| `InteractionOptions.dragging`, `scrollWheelZoom`, `doubleClickZoom`, `touchZoom` | `drag`, `wheelZoom`, `doubleTapZoom`, `pinchZoom` |
|
|
349
|
+
| `InteractionOptions.keyboardPanDelta`, `wheelPxPerZoomLevel` | `keyStep`, `wheelStep` |
|
|
350
|
+
| `MapPathStyle` / `MapPathItem`: `weight`, `dashArray` | `strokeWidth`, `dash` |
|
|
351
|
+
|
|
352
|
+
Antes:
|
|
353
|
+
|
|
354
|
+
```ts
|
|
355
|
+
import { TileLayer, latLng, toLatLngBounds } from '@trismegisto/maps';
|
|
356
|
+
|
|
357
|
+
const tiles = new TileLayer(container, { url: 'https://{s}.tiles.exemplo.com/{z}/{x}/{y}.png', subdomains: 'abc', maxNativeZoom: 18 });
|
|
358
|
+
engine.setView(latLng(-23.55, -46.63), 10);
|
|
359
|
+
engine.fitBounds(toLatLngBounds([[-33.7, -73.9], [5.3, -34.8]]));
|
|
360
|
+
const ponto = engine.latLngToContainerPoint(latLng(-23.55, -46.63));
|
|
361
|
+
const volta = engine.containerPointToLatLng(ponto);
|
|
362
|
+
```
|
|
363
|
+
|
|
364
|
+
Depois:
|
|
365
|
+
|
|
366
|
+
```ts
|
|
367
|
+
import { RasterLayer, geoPoint, toGeoBox } from '@trismegisto/maps';
|
|
368
|
+
|
|
369
|
+
const tiles = new RasterLayer(container, {
|
|
370
|
+
url: ['https://a.tiles.exemplo.com/{z}/{x}/{y}.png', 'https://b.tiles.exemplo.com/{z}/{x}/{y}.png'],
|
|
371
|
+
tileMaxZoom: 18,
|
|
372
|
+
});
|
|
373
|
+
engine.moveTo(geoPoint(-23.55, -46.63), 10);
|
|
374
|
+
engine.fitTo(toGeoBox([[-33.7, -73.9], [5.3, -34.8]]));
|
|
375
|
+
const ponto = engine.toScreen(geoPoint(-23.55, -46.63));
|
|
376
|
+
const volta = engine.toGeo(ponto);
|
|
377
|
+
```
|
|
378
|
+
|
|
379
|
+
(`engine` é o `MapEngine`, que as cascas expõem no contexto do mapa.)
|
|
380
|
+
|
|
381
|
+
### Como achar os usos
|
|
382
|
+
|
|
383
|
+
```bash
|
|
384
|
+
grep -rnE "LatLng|latLng\(|Bounds\b|BoundsLike|TileLayer|maxBounds|maxNativeZoom|subdomains|\{s\}|\{-y\}" src
|
|
385
|
+
grep -rnE "setView|fitBounds|invalidateSize|zoomControl|scrollWheelZoom|dashArray|\[weight\]|weight=" src
|
|
386
|
+
```
|
|
387
|
+
|
|
388
|
+
## Terminal (`@trismegisto/terminal`)
|
|
389
|
+
|
|
390
|
+
### Núcleo: `createTerminal(host, opções)` → `TerminalHandle`
|
|
391
|
+
|
|
392
|
+
A classe `Terminal`, os complementos `*Addon` com `loadAddon`, os tipos com prefixo `I` e `applyTerminalOptions` saíram.
|
|
393
|
+
O terminal é montado por `createTerminal`, os recursos são opções e cada evento `onX(ouvinte)` devolve a função que o
|
|
394
|
+
desliga.
|
|
395
|
+
|
|
396
|
+
Antes:
|
|
397
|
+
|
|
398
|
+
```ts
|
|
399
|
+
import { FitAddon, WebLinksAddon, Terminal } from '@trismegisto/terminal';
|
|
400
|
+
|
|
401
|
+
const term = new Terminal({ fontSize: 13, scrollback: 5000, cursorStyle: 'bar', convertEol: true });
|
|
402
|
+
const fit = new FitAddon();
|
|
403
|
+
term.loadAddon(fit);
|
|
404
|
+
term.loadAddon(new WebLinksAddon());
|
|
405
|
+
term.open(document.getElementById('terminal')!);
|
|
406
|
+
fit.fit();
|
|
407
|
+
const sub = term.onData((data) => socket.send(data));
|
|
408
|
+
term.writeln('pronto');
|
|
409
|
+
// ao sair: sub.dispose(); term.dispose();
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
Depois:
|
|
413
|
+
|
|
414
|
+
```ts
|
|
415
|
+
import { createTerminal, terminalThemeFromTokens } from '@trismegisto/terminal';
|
|
416
|
+
|
|
417
|
+
const host = document.getElementById('terminal')!;
|
|
418
|
+
const term = createTerminal(host, {
|
|
419
|
+
fontSize: 13, scrollback: 5000, cursorShape: 'bar', lineFeedAsNewline: true,
|
|
420
|
+
fit: true, links: true, theme: terminalThemeFromTokens(host),
|
|
421
|
+
});
|
|
422
|
+
const off = term.onInput((data) => socket.send(data));
|
|
423
|
+
term.writeLine('pronto');
|
|
424
|
+
// ao sair: off(); term.dispose();
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
| Complemento (3.x) | Opção (4.0) |
|
|
428
|
+
|---|---|
|
|
429
|
+
| `FitAddon` (`fit.fit()`) | `fit: true` (ajusta sempre que o host muda de tamanho); `term.fit()` e `term.proposeSize()` sob demanda |
|
|
430
|
+
| `WebLinksAddon` | `links: true` ou `{ … }` |
|
|
431
|
+
| `SearchAddon` | `search` (ligada por padrão); `term.search.next/previous/clear/onResults` |
|
|
432
|
+
| `ClipboardAddon` | `clipboard: true` ou `{ provider, codec }` |
|
|
433
|
+
| `ImageAddon` | `images: true` ou `{ … }` (carrega sob demanda; `term.ready` resolve quando entrou) |
|
|
434
|
+
| `WebglAddon` | `gpu: true` (carrega sob demanda; sem WebGL fica o DOM) |
|
|
435
|
+
| `Unicode11Addon` / `UnicodeGraphemesAddon` | `unicode: '11'` / `unicode: 'graphemes'` |
|
|
436
|
+
| `LigaturesAddon` | `ligatures: true` |
|
|
437
|
+
| `ProgressAddon` / `ProgramStatusAddon` | `progress: true` / `programStatus: true` (`term.onProgress`, `term.onProgramStatus`) |
|
|
438
|
+
| `WebFontsAddon` | `webFonts: true` |
|
|
439
|
+
| `SerializeAddon` | `term.serialize()` / `term.serializeHtml()` |
|
|
440
|
+
| `AttachAddon` | `const off = term.connect(socket, { bidirectional })` |
|
|
441
|
+
| `term.parser.registerCsiHandler` / `Esc` / `Osc` / `Dcs` / `Apc` | `term.sequences.csi` / `esc` / `osc` / `dcs` / `apc` |
|
|
442
|
+
|
|
443
|
+
Os recursos podem ser ligados e desligados depois com `term.configure({ … })`.
|
|
444
|
+
|
|
445
|
+
| Opção (3.x) | 4.0 |
|
|
446
|
+
|---|---|
|
|
447
|
+
| `cursorStyle` | `cursorShape` |
|
|
448
|
+
| `cursorInactiveStyle` | `cursorUnfocusedShape` |
|
|
449
|
+
| `cursorWidth` | `cursorBarWidth` |
|
|
450
|
+
| `convertEol` | `lineFeedAsNewline` |
|
|
451
|
+
| `disableStdin` | `readOnly` |
|
|
452
|
+
| `screenReaderMode` | `screenReader` |
|
|
453
|
+
| `fontWeightBold` | `boldFontWeight` |
|
|
454
|
+
| `drawBoldTextInBrightColors` | `boldAsBright` |
|
|
455
|
+
| `minimumContrastRatio` | `minimumContrast` |
|
|
456
|
+
| `customGlyphs` | `builtinBoxGlyphs` |
|
|
457
|
+
| `rescaleOverlappingGlyphs` | `squeezeWideGlyphs` |
|
|
458
|
+
| `allowTransparency` | `transparentBackground` |
|
|
459
|
+
| `blinkIntervalDuration` | `textBlinkInterval` |
|
|
460
|
+
| `ignoreBracketedPasteMode` | `plainPaste` |
|
|
461
|
+
| `macOptionIsMeta` | `optionAsMeta` |
|
|
462
|
+
| `macOptionClickForcesSelection` | `optionClickSelects` |
|
|
463
|
+
| `altClickMovesCursor` | `moveCursorOnAltClick` |
|
|
464
|
+
| `rightClickSelectsWord` | `contextMenuSelectsWord` |
|
|
465
|
+
| `mouseEventsRequireAlt` | `mouseReportNeedsAlt` |
|
|
466
|
+
| `wordSeparator` | `wordSeparators` |
|
|
467
|
+
| `tabStopWidth` | `tabWidth` |
|
|
468
|
+
| `scrollSensitivity` | `scrollFactor` |
|
|
469
|
+
| `fastScrollModifier` / `fastScrollSensitivity` | `fastScrollKey` / `fastScrollFactor` |
|
|
470
|
+
| `smoothScrollDuration` | `smoothScrollTime` |
|
|
471
|
+
| `scrollOnUserInput` | `followInput` |
|
|
472
|
+
| `scrollOnEraseInDisplay` | `eraseScrollsIntoHistory` |
|
|
473
|
+
| `reflowCursorLine` | `rewrapCursorLine` |
|
|
474
|
+
| `vtExtensions` | `extensions` |
|
|
475
|
+
| `quirks.allowSetCursorBlink` | `extensions.cursorBlinkMode` |
|
|
476
|
+
| `windowOptions` | `windowOps` |
|
|
477
|
+
| `windowsPty: { backend, buildNumber }` | `windowsPty: { reflow?: boolean }` |
|
|
478
|
+
| `linkHandler` | `hyperlinkHandler` |
|
|
479
|
+
| `documentOverride` | `targetDocument` |
|
|
480
|
+
| `allowProposedApi` | saiu (toda a API é pública) |
|
|
481
|
+
| `cols`, `rows`, `scrollback`, `theme`, `fontFamily`, `fontSize`, `fontWeight`, `letterSpacing`, `lineHeight`, `cursorBlink`, `scrollbar`, `logLevel`, `logger` | iguais |
|
|
482
|
+
|
|
483
|
+
Tipos sem o prefixo `I`: `ITerminalOptions` → `TerminalOptions`, `ITheme` → `TerminalTheme`, `IBuffer` →
|
|
484
|
+
`ScreenBuffer`, `IBufferLine` → `ScreenLine`, `IBufferCell` → `ScreenCell`, `IBufferCellPosition`/`IBufferRange` →
|
|
485
|
+
`CellPosition`/`CellRange`, `IMarker` → `TerminalMarker`, `IDecoration` → `TerminalDecoration`, `ILink` →
|
|
486
|
+
`TerminalLink`, `ILinkProvider` → `LinkSource`, `IModes` → `TerminalModes`, `IScrollbarOptions` → `ScrollbarOptions`,
|
|
487
|
+
`IVtExtensions` → `TerminalExtensions`, `ILinkHandler` → `HyperlinkHandler`, `ILocalizableStrings` → `TerminalStrings`;
|
|
488
|
+
`ITerminalAddon` saiu. Sem tema, a paleta
|
|
489
|
+
padrão passa a ser a escura dos tokens (`ANSI_DEFAULTS`); `terminalThemeFromTokens(host)` usa o tema do escopo.
|
|
490
|
+
|
|
491
|
+
Eventos: `onData` → `onInput`, `onBinary` → `onBinaryInput`, `onTitleChange` → `onTitle`, `onSelectionChange` →
|
|
492
|
+
`onSelection`, `onCursorMove` → `onCursor`, `onWriteParsed` → `onParsed`, `onBufferChange` → `onScreenChange`,
|
|
493
|
+
`onDimensionsChange` → `onMetrics`; `onResize`, `onBell`, `onKey`, `onRender`, `onScroll`, `onLineFeed` e `onDispose`
|
|
494
|
+
mantêm o nome. Novos: `onProgress`, `onProgramStatus` e `search.onResults`. Todos devolvem `() => void` (não um objeto com
|
|
495
|
+
`dispose()`).
|
|
496
|
+
|
|
497
|
+
### Casca Angular (`hm-terminal`)
|
|
498
|
+
|
|
499
|
+
Antes:
|
|
500
|
+
|
|
501
|
+
```html
|
|
502
|
+
<hm-terminal label="Console" cursorStyle="bar" convertEol disableStdin screenReaderMode [webLinks]="true"
|
|
503
|
+
[options]="opcoes" (data)="enviar($event)" (binary)="enviarBinario($event)" (ready)="pronto($event)" />
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
```ts
|
|
507
|
+
this.terminal.writeln('ok');
|
|
508
|
+
```
|
|
509
|
+
|
|
510
|
+
Depois:
|
|
511
|
+
|
|
512
|
+
```html
|
|
513
|
+
<hm-terminal label="Console" cursorShape="bar" lineFeedAsNewline readOnly screenReader [links]="true"
|
|
514
|
+
[options]="opcoes" (userInput)="enviar($event)" (binaryInput)="enviarBinario($event)" (ready)="pronto($event)" />
|
|
515
|
+
```
|
|
516
|
+
|
|
517
|
+
```ts
|
|
518
|
+
this.terminal.writeLine('ok');
|
|
519
|
+
// (ready) e terminal() entregam o TerminalHandle; [options] é TerminalOptions (aceita images, gpu, unicode…)
|
|
520
|
+
```
|
|
521
|
+
|
|
522
|
+
### Casca React (`HermesTerminal`)
|
|
523
|
+
|
|
524
|
+
Antes:
|
|
525
|
+
|
|
526
|
+
```tsx
|
|
527
|
+
<HermesTerminal label="Console" cursorStyle="bar" convertEol disableStdin screenReaderMode webLinks
|
|
528
|
+
onData={enviar} onBinary={enviarBinario} onReady={(t) => t.writeln('ok')} />
|
|
529
|
+
```
|
|
530
|
+
|
|
531
|
+
Depois:
|
|
532
|
+
|
|
533
|
+
```tsx
|
|
534
|
+
<HermesTerminal label="Console" cursorShape="bar" lineFeedAsNewline readOnly screenReader links
|
|
535
|
+
onUserInput={enviar} onBinaryInput={enviarBinario} onReady={(t) => t.writeLine('ok')} />
|
|
536
|
+
// ref.current.terminal é o TerminalHandle
|
|
537
|
+
```
|
|
538
|
+
|
|
539
|
+
### Como achar os usos
|
|
540
|
+
|
|
541
|
+
```bash
|
|
542
|
+
grep -rnE "Addon|loadAddon|new Terminal\(|ITerminalOptions|\bI[A-Z][A-Za-z]+\b.*@trismegisto/terminal|writeln" src
|
|
543
|
+
grep -rnE "cursorStyle|convertEol|disableStdin|screenReaderMode|webLinks|\(data\)=|\(binary\)=|onData=|onBinary=" src
|
|
544
|
+
```
|
|
545
|
+
|
|
546
|
+
## Ícones (`@trismegisto/icons`)
|
|
547
|
+
|
|
548
|
+
### O que mudou
|
|
549
|
+
|
|
550
|
+
- **Catálogo inteiro redesenhado** numa gramática única (traço 1,75, mesmos ângulos e respiros): mesmos significados, só
|
|
551
|
+
o desenho muda. Capturas de tela que contêm ícones vão mudar.
|
|
552
|
+
- **149 nomes trocados** pela convenção nova (inglês, minúsculas com hífen, grafia corrigida, sem número de variante).
|
|
553
|
+
O nome antigo **continua resolvendo** como alias: `shape="send-arrow"` desenha o `paper-plane`. Troque mesmo assim,
|
|
554
|
+
para o código seguir o catálogo. Alguns nomes foram fundidos num só (ex.: `bars` e `menu-hamburguer` → `menu`).
|
|
555
|
+
- **Constantes antigas removidas** (quebra a compilação): o export nomeado de cada ícone é o nome novo em camelCase.
|
|
556
|
+
`import { sendArrow } from '@trismegisto/icons/catalog'` passa a ser `import { paperPlane } …`.
|
|
557
|
+
- **7 aliases de logotipo removidos**: os nomes antigos de logotipos de marcas de terceiros (um sistema operacional
|
|
558
|
+
móvel, uma ferramenta de design, uma de documentação de componentes, o padrão de componentes web, um fornecedor de
|
|
559
|
+
virtualização, um sistema de pagamento instantâneo e um de transmissão de tela) deixam de resolver. No lugar, use os
|
|
560
|
+
ícones genéricos equivalentes: `mobile`, `color-palette`, `book`, `plugin`, `vm`, `instant-payment` e `cast`
|
|
561
|
+
(respectivamente: o celular, a paleta, o livro, o encaixe de plugin, a máquina virtual, o pagamento instantâneo e a
|
|
562
|
+
transmissão de tela). Os nomes antigos não estão na tabela abaixo; para achá-los, procure no código os nomes de ícone
|
|
563
|
+
que terminam em `-logo`, `-icon` ou `-app`, que começam com `icon-` ou que são nome de produto, e confira com
|
|
564
|
+
`lookupIcon` (abaixo). Um nome que não resolve não quebra a tela: desenha o ícone genérico de três traços e, em desenvolvimento,
|
|
565
|
+
avisa uma vez no console com o prefixo `[hermes-icons]`.
|
|
566
|
+
- **Categorias novas** (campo `categories`): `navigation`, `actions`, `files`, `media`, `communication`, `people`,
|
|
567
|
+
`commerce`, `data`, `development`, `network`, `devices`, `mobile`, `status`, `time`, `maps`, `text-edit`, `security`,
|
|
568
|
+
`layout`. Saem `essential`, `foundation`, `technology`, `social`, `travel` e `chart`. Só afeta quem filtra o
|
|
569
|
+
catálogo por categoria.
|
|
570
|
+
- Ícones novos, entre eles os de rede (`l3-switch`, `load-balancer`, `access-point`, `vpn-gateway`, `virtual-machine`,
|
|
571
|
+
`datacenter`, `subnet`, `topology`…), os do reprodutor (`subtitle`, `speed-gauge`, `picture-in-picture`) e o alias
|
|
572
|
+
`settings` de `cog`.
|
|
573
|
+
|
|
574
|
+
### Como achar os usos
|
|
575
|
+
|
|
576
|
+
1. **Nomes que não resolvem mais.** Com o catálogo registrado, `lookupIcon(nome)` devolve `undefined` para o que
|
|
577
|
+
não existe. Um teste rápido no app:
|
|
578
|
+
|
|
579
|
+
```ts
|
|
580
|
+
import { lookupIcon, registerIcons } from '@trismegisto/icons';
|
|
581
|
+
import { HERMES_ICONS } from '@trismegisto/icons/catalog';
|
|
582
|
+
|
|
583
|
+
registerIcons(HERMES_ICONS);
|
|
584
|
+
const usados = ['bell', 'send-arrow' /* … os nomes que o app passa em shape/icon */];
|
|
585
|
+
console.log(usados.filter((nome) => !lookupIcon(nome)));
|
|
586
|
+
```
|
|
587
|
+
|
|
588
|
+
Em desenvolvimento, o aviso `[hermes-icons]` no console aponta também os nomes não registrados.
|
|
589
|
+
|
|
590
|
+
2. **Nomes antigos que ainda resolvem** (troque pelo novo): procure no código os nomes da coluna "3.x" da tabela
|
|
591
|
+
abaixo, em `shape="…"`, `icon="…"`, `[icon]`, `icon={…}` e nos objetos de menu e rota.
|
|
592
|
+
|
|
593
|
+
```bash
|
|
594
|
+
grep -rnoE "(shape|icon)=\"[a-zA-Z0-9-]+\"|icon: '[a-zA-Z0-9-]+'" src | sort -u
|
|
595
|
+
```
|
|
596
|
+
|
|
597
|
+
3. **Constantes**: procure `from '@trismegisto/icons/catalog'` e troque cada constante pela da coluna "constante 4.0".
|
|
598
|
+
|
|
599
|
+
### Tabela de nomes (3.x → 4.0)
|
|
600
|
+
|
|
601
|
+
149 nomes. O nome da coluna "3.x" ainda resolve como alias na 4.0; a constante da coluna "constante 3.x" não existe mais.
|
|
602
|
+
|
|
603
|
+
| 3.x | 4.0 | constante 3.x | constante 4.0 |
|
|
604
|
+
|---|---|---|---|
|
|
605
|
+
| `accessibility-1` | `accessibility` | `accessibility1` | `accessibility` |
|
|
606
|
+
| `accessibility-2` | `person-standing` | `accessibility2` | `personStanding` |
|
|
607
|
+
| `align-decending` | `align-descending` | `alignDecending` | `alignDescending` |
|
|
608
|
+
| `applications` | `grid-view` | `applications` | `gridView` |
|
|
609
|
+
| `arroba-email` | `at-sign` | `arrobaEmail` | `atSign` |
|
|
610
|
+
| `arrow-backward` | `rewind` | `arrowBackward` | `rewind` |
|
|
611
|
+
| `arrow-element` | `box-arrow-in` | `arrowElement` | `boxArrowIn` |
|
|
612
|
+
| `arrow-lr` | `arrows-horizontal` | `arrowLr` | `arrowsHorizontal` |
|
|
613
|
+
| `arrow-send` | `paper-plane` | `arrowSend` | `paperPlane` |
|
|
614
|
+
| `arrow-share` | `pop-out` | `arrowShare` | `popOut` |
|
|
615
|
+
| `autism-icon` | `puzzle-piece` | `autismIcon` | `puzzlePiece` |
|
|
616
|
+
| `avatar-circle` | `user-circle` | `avatarCircle` | `userCircle` |
|
|
617
|
+
| `axis-chart` | `line-chart` | `axisChart` | `lineChart` |
|
|
618
|
+
| `bag-close` | `bag-x` | `bagClose` | `bagX` |
|
|
619
|
+
| `ballon-hands` | `chat-hands` | `ballonHands` | `chatHands` |
|
|
620
|
+
| `ballon-message` | `chat` | `ballonMessage` | `chat` |
|
|
621
|
+
| `ballon-plus` | `chat-plus` | `ballonPlus` | `chatPlus` |
|
|
622
|
+
| `ballon-question` | `chat-question` | `ballonQuestion` | `chatQuestion` |
|
|
623
|
+
| `bank-cross` | `bank-x` | `bankCross` | `bankX` |
|
|
624
|
+
| `bars` | `menu` | `bars` | `menu` |
|
|
625
|
+
| `bell-symbol` | `bell-unread` | `bellSymbol` | `bellUnread` |
|
|
626
|
+
| `block` | `ban` | `block` | `ban` |
|
|
627
|
+
| `blocks-group` | `grid-view` | `blocksGroup` | `gridView` |
|
|
628
|
+
| `book-bookmarkopen` | `book-open-bookmark` | `bookBookmarkopen` | `bookOpenBookmark` |
|
|
629
|
+
| `bookmark-element` | `bookmark-plus` | `bookmarkElement` | `bookmarkPlus` |
|
|
630
|
+
| `bubble-exclamation` | `chat-alert` | `bubbleExclamation` | `chatAlert` |
|
|
631
|
+
| `bullet-list` | `list-bullets` | `bulletList` | `listBullets` |
|
|
632
|
+
| `bullseye` | `target` | `bullseye` | `target` |
|
|
633
|
+
| `business-chart-1` | `presentation-chart` | `businessChart1` | `presentationChart` |
|
|
634
|
+
| `calendar-checkmark` | `calendar-check` | `calendarCheckmark` | `calendarCheck` |
|
|
635
|
+
| `calendar-one` | `calendar` | `calendarOne` | `calendar` |
|
|
636
|
+
| `card-checkmark` | `card-check` | `cardCheckmark` | `cardCheck` |
|
|
637
|
+
| `card-close` | `card-x` | `cardClose` | `cardX` |
|
|
638
|
+
| `card-exclamation` | `card-alert` | `cardExclamation` | `cardAlert` |
|
|
639
|
+
| `card-icon` | `card-chip` | `cardIcon` | `cardChip` |
|
|
640
|
+
| `card-mutiple` | `credit-cards` | `cardMutiple` | `creditCards` |
|
|
641
|
+
| `cash-delete` | `cash-x` | `cashDelete` | `cashX` |
|
|
642
|
+
| `cash-remove` | `cash-minus` | `cashRemove` | `cashMinus` |
|
|
643
|
+
| `chart-documentlist` | `file-chart` | `chartDocumentlist` | `fileChart` |
|
|
644
|
+
| `checkmark-bigsquare` | `check-square` | `checkmarkBigsquare` | `checkSquare` |
|
|
645
|
+
| `circle-arrow` | `arrow-circle` | `circleArrow` | `arrowCircle` |
|
|
646
|
+
| `circle-delete` | `times-circle` | `circleDelete` | `timesCircle` |
|
|
647
|
+
| `circle-dollar` | `dollar-circle` | `circleDollar` | `dollarCircle` |
|
|
648
|
+
| `circle-empty` | `circle-dashed` | `circleEmpty` | `circleDashed` |
|
|
649
|
+
| `circle-information` | `info-circle` | `circleInformation` | `infoCircle` |
|
|
650
|
+
| `circle-stroke` | `target` | `circleStroke` | `target` |
|
|
651
|
+
| `clip-papper` | `paperclip-vertical` | `clipPapper` | `paperclipVertical` |
|
|
652
|
+
| `clock-reload` | `history` | `clockReload` | `history` |
|
|
653
|
+
| `comment-message` | `chat` | `commentMessage` | `chat` |
|
|
654
|
+
| `credit-cardlock` | `credit-card-lock` | `creditCardlock` | `creditCardLock` |
|
|
655
|
+
| `data-doc` | `file-text` | `dataDoc` | `fileText` |
|
|
656
|
+
| `date-arrow` | `calendar-arrow` | `dateArrow` | `calendarArrow` |
|
|
657
|
+
| `delete-circle` | `times-circle` | `deleteCircle` | `timesCircle` |
|
|
658
|
+
| `details` | `list-bullets` | `details` | `listBullets` |
|
|
659
|
+
| `doc-checkmark` | `file-check` | `docCheckmark` | `fileCheck` |
|
|
660
|
+
| `document-cross` | `file-x` | `documentCross` | `fileX` |
|
|
661
|
+
| `document-doc` | `file-text` | `documentDoc` | `fileText` |
|
|
662
|
+
| `dots-checkmark` | `check-dots` | `dotsCheckmark` | `checkDots` |
|
|
663
|
+
| `dots-three` | `ellipsis-horizontal` | `dotsThree` | `ellipsisHorizontal` |
|
|
664
|
+
| `dotted-plus` | `plus-dots` | `dottedPlus` | `plusDots` |
|
|
665
|
+
| `employee-group` | `users` | `employeeGroup` | `users` |
|
|
666
|
+
| `envelope` | `mail` | `envelope` | `mail` |
|
|
667
|
+
| `error-standard` | `exclamation-octagon` | `errorStandard` | `exclamationOctagon` |
|
|
668
|
+
| `exclamation-close` | `exclamation-x` | `exclamationClose` | `exclamationX` |
|
|
669
|
+
| `eye-close` | `eye-closed` | `eyeClose` | `eyeClosed` |
|
|
670
|
+
| `face-emoji` | `face-happy` | `faceEmoji` | `faceHappy` |
|
|
671
|
+
| `file-share-2` | `file-export` | `fileShare2` | `fileExport` |
|
|
672
|
+
| `fill-document` | `file-text` | `fillDocument` | `fileText` |
|
|
673
|
+
| `filter-2` | `filter-lines` | `filter2` | `filterLines` |
|
|
674
|
+
| `filter-close` | `filter-x` | `filterClose` | `filterX` |
|
|
675
|
+
| `floppy-checkmark` | `floppy-check` | `floppyCheckmark` | `floppyCheck` |
|
|
676
|
+
| `gift-packge` | `gift-package` | `giftPackge` | `giftPackage` |
|
|
677
|
+
| `glasses-invisble` | `incognito` | `glassesInvisble` | `incognito` |
|
|
678
|
+
| `globe-earth` | `globe` | `globeEarth` | `globe` |
|
|
679
|
+
| `hand-cardplus` | `hand-card-plus` | `handCardplus` | `handCardPlus` |
|
|
680
|
+
| `happy-face` | `face-happy` | `happyFace` | `faceHappy` |
|
|
681
|
+
| `health-weelchair` | `wheelchair` | `healthWeelchair` | `wheelchair` |
|
|
682
|
+
| `help-info` | `chat-question` | `helpInfo` | `chatQuestion` |
|
|
683
|
+
| `hexagon-disabled` | `hexagon-off` | `hexagonDisabled` | `hexagonOff` |
|
|
684
|
+
| `hexagon-exclamation` | `exclamation-hexagon` | `hexagonExclamation` | `exclamationHexagon` |
|
|
685
|
+
| `hierarchy-add` | `hierarchy-plus` | `hierarchyAdd` | `hierarchyPlus` |
|
|
686
|
+
| `imagem-cross` | `image-x` | `imagemCross` | `imageX` |
|
|
687
|
+
| `info-standard` | `info-square` | `infoStandard` | `infoSquare` |
|
|
688
|
+
| `lock-close` | `lock-keyhole` | `lockClose` | `lockKeyhole` |
|
|
689
|
+
| `lock-open` | `unlock` | `lockOpen` | `unlock` |
|
|
690
|
+
| `medal-reward` | `medal` | `medalReward` | `medal` |
|
|
691
|
+
| `menu-hamburguer` | `menu` | `menuHamburguer` | `menu` |
|
|
692
|
+
| `money-dollar` | `dollar-circle` | `moneyDollar` | `dollarCircle` |
|
|
693
|
+
| `network-globe` | `globe` | `networkGlobe` | `globe` |
|
|
694
|
+
| `no-access` | `ban` | `noAccess` | `ban` |
|
|
695
|
+
| `noSmoking` | `smoking-off` | `nosmoking` | `smokingOff` |
|
|
696
|
+
| `open-expand` | `expand` | `openExpand` | `expand` |
|
|
697
|
+
| `palmTree` | `palm-tree` | `palmtree` | `palmTree` |
|
|
698
|
+
| `paste` | `clipboard` | `paste` | `clipboard` |
|
|
699
|
+
| `pig-oinc` | `pig` | `pigOinc` | `pig` |
|
|
700
|
+
| `pin-map` | `map-marker` | `pinMap` | `mapMarker` |
|
|
701
|
+
| `planeTicket` | `plane-ticket` | `planeticket` | `planeTicket` |
|
|
702
|
+
| `plus-cash` | `banknote-plus` | `plusCash` | `banknotePlus` |
|
|
703
|
+
| `plus-dotted` | `plus-square-dashed` | `plusDotted` | `plusSquareDashed` |
|
|
704
|
+
| `pregnant-icon` | `pregnant` | `pregnantIcon` | `pregnant` |
|
|
705
|
+
| `profile-card` | `id-card` | `profileCard` | `idCard` |
|
|
706
|
+
| `qrcode-square` | `qr-scan` | `qrcodeSquare` | `qrScan` |
|
|
707
|
+
| `question-add` | `help-plus` | `questionAdd` | `helpPlus` |
|
|
708
|
+
| `recicle-arrows` | `arrows-cycle` | `recicleArrows` | `arrowsCycle` |
|
|
709
|
+
| `resize` | `expand` | `resize` | `expand` |
|
|
710
|
+
| `retangle-c` | `rectangle-rounded` | `retangleC` | `rectangleRounded` |
|
|
711
|
+
| `retangle-d` | `rectangle-frame` | `retangleD` | `rectangleFrame` |
|
|
712
|
+
| `reward-medal` | `medal-first` | `rewardMedal` | `medalFirst` |
|
|
713
|
+
| `rodagem-dupla` | `tires-dual` | `rodagemDupla` | `tiresDual` |
|
|
714
|
+
| `rodagem-simples` | `tire-single` | `rodagemSimples` | `tireSingle` |
|
|
715
|
+
| `scan-dolar` | `scan-dollar` | `scanDolar` | `scanDollar` |
|
|
716
|
+
| `send-arrow` | `paper-plane` | `sendArrow` | `paperPlane` |
|
|
717
|
+
| `setting-gear` | `cog` | `settingGear` | `cog` |
|
|
718
|
+
| `shop-store` | `store` | `shopStore` | `store` |
|
|
719
|
+
| `single-add` | `user-plus` | `singleAdd` | `userPlus` |
|
|
720
|
+
| `slice-exclamation` | `pie-chart-alert` | `sliceExclamation` | `pieChartAlert` |
|
|
721
|
+
| `sort-horizontal` | `arrows-horizontal` | `sortHorizontal` | `arrowsHorizontal` |
|
|
722
|
+
| `square-information` | `info-square` | `squareInformation` | `infoSquare` |
|
|
723
|
+
| `step-forward-2` | `fast-forward` | `stepForward2` | `fastForward` |
|
|
724
|
+
| `store-establishment` | `store` | `storeEstablishment` | `store` |
|
|
725
|
+
| `success-standard` | `check-circle` | `successStandard` | `checkCircle` |
|
|
726
|
+
| `suitcase-job` | `briefcase` | `suitcaseJob` | `briefcase` |
|
|
727
|
+
| `suitcase2` | `luggage` | `suitcase2` | `luggage` |
|
|
728
|
+
| `sun-bright` | `sun` | `sunBright` | `sun` |
|
|
729
|
+
| `tag-dolar` | `tag-dollar` | `tagDolar` | `tagDollar` |
|
|
730
|
+
| `text-size` | `font-size` | `textSize` | `fontSize` |
|
|
731
|
+
| `thrash-x` | `trash-x` | `thrashX` | `trashX` |
|
|
732
|
+
| `three-list` | `list-bullets` | `threeList` | `listBullets` |
|
|
733
|
+
| `tool-wench` | `wrench` | `toolWench` | `wrench` |
|
|
734
|
+
| `transportation-bus` | `bus` | `transportationBus` | `bus` |
|
|
735
|
+
| `transportation-car` | `car` | `transportationCar` | `car` |
|
|
736
|
+
| `transportation-truck` | `truck-pickup` | `transportationTruck` | `truckPickup` |
|
|
737
|
+
| `transportation-wagon` | `wagon` | `transportationWagon` | `wagon` |
|
|
738
|
+
| `unknown-status` | `help` | `unknownStatus` | `help` |
|
|
739
|
+
| `up-money` | `banknote-arrow-up` | `upMoney` | `banknoteArrowUp` |
|
|
740
|
+
| `user-ballon` | `user-chat` | `userBallon` | `userChat` |
|
|
741
|
+
| `user-checkmark` | `user-check` | `userCheckmark` | `userCheck` |
|
|
742
|
+
| `user-circleplus` | `user-circle-plus` | `userCircleplus` | `userCirclePlus` |
|
|
743
|
+
| `user-cross` | `user-x` | `userCross` | `userX` |
|
|
744
|
+
| `user-group` | `users` | `userGroup` | `users` |
|
|
745
|
+
| `user-id` | `id-card` | `userId` | `idCard` |
|
|
746
|
+
| `user-profile` | `user-circle` | `userProfile` | `userCircle` |
|
|
747
|
+
| `user-profilegroup` | `id-card` | `userProfilegroup` | `idCard` |
|
|
748
|
+
| `view-cards` | `grid-view` | `viewCards` | `gridView` |
|
|
749
|
+
| `view-list` | `list-bullets` | `viewList` | `listBullets` |
|
|
750
|
+
| `warning-standard` | `exclamation-triangle` | `warningStandard` | `exclamationTriangle` |
|
|
751
|
+
| `windows-cross` | `window-x` | `windowsCross` | `windowX` |
|
|
752
|
+
| `world` | `globe` | `world` | `globe` |
|
|
753
|
+
| `x-cross` | `times-circle` | `xCross` | `timesCircle` |
|
|
754
|
+
|
|
755
|
+
|
|
756
|
+
## Core e tokens (`@trismegisto/core` e `@trismegisto/tokens`)
|
|
757
|
+
|
|
758
|
+
Nada quebra a compilação. O que pode afetar o app é CSS próprio que sobrescreve classes da lib e testes de captura de
|
|
759
|
+
tela.
|
|
760
|
+
|
|
761
|
+
### Tokens
|
|
762
|
+
|
|
763
|
+
Nenhum token foi removido nem renomeado. Entram 173 tokens novos, entre eles:
|
|
764
|
+
|
|
765
|
+
- **Papéis de texto** `--hm-type-<papel>-size`, `-weight` e `-line-height` para `body`, `secondary`, `caption`,
|
|
766
|
+
`label`, `data`, `metric`, `heading-1`, `heading-2`, `heading-3` e `code` (mais `--hm-type-code-family`). Prefira os
|
|
767
|
+
papéis à escala de tamanhos; no CSS, as classes `.hm-text-body`, `.hm-text-secondary`, `.hm-text-caption`,
|
|
768
|
+
`.hm-text-label`, `.hm-text-data`, `.hm-text-metric`, `.hm-text-heading-1` … `-3` e `.hm-text-code`.
|
|
769
|
+
- **Tons fortes de status** `--hm-danger-strong`, `--hm-warning-strong` e `--hm-success-strong` (texto sobre o véu do
|
|
770
|
+
próprio tom).
|
|
771
|
+
- **Toque e tela de celular**: `--hm-touch-target`, `--hm-touch-target-min`, `--hm-touch-target-comfortable`,
|
|
772
|
+
`--hm-touch-target-spacing`, `--hm-control-height-touch`, `--hm-input-font-size-touch`, `--hm-safe-top|right|bottom|left`,
|
|
773
|
+
`--hm-keyboard-inset`, `--hm-viewport-height`, `--hm-viewport-offset-top`, `--hm-pressed`, `--hm-pressed-scale`.
|
|
774
|
+
- Tokens de componente dos gráficos (`--hm-chart-legend-*`, `--hm-chart-reference-*`, `--hm-chart-range-*`,
|
|
775
|
+
`--hm-chart-live-*`, `--hm-chart-meter-*`), da agenda (`--hm-event-calendar-*`), do envio de arquivos
|
|
776
|
+
(`--hm-file-upload-*`), da mídia (`--hm-media-*`, `--hm-file-viewer-*`, `--hm-file-preview-*`,
|
|
777
|
+
`--hm-camera-preview-max-height`), do editor rico (`--hm-rich-text-*`), do `hm-secret` (`--hm-secret-*`) e da
|
|
778
|
+
topologia (`--hm-topology-*`).
|
|
779
|
+
|
|
780
|
+
### Classes removidas
|
|
781
|
+
|
|
782
|
+
| Classe (3.x) | O que fazer |
|
|
783
|
+
|---|---|
|
|
784
|
+
| `.spine-agent-fab__dock` (o X por cima do balão do agente) | saiu: tirar o balão da tela passa a ser um botão no cabeçalho do painel |
|
|
785
|
+
| `.spine-agent-greeting--figure`, `.spine-agent-greeting__figure`, `.spine-agent-greeting__content` | saíram com o convite novo (rosto, divisória, saudação e perguntas em pílula) |
|
|
786
|
+
| `.spine-agent__intro` | saiu com a conversa vazia nova (`.spine-agent__welcome*`, `.spine-agent__hero-*`) |
|
|
787
|
+
|
|
788
|
+
### Mudanças visuais
|
|
789
|
+
|
|
790
|
+
- Tipografia por papéis em vários componentes: a célula do `hm-data-grid` e o valor do `hm-description-list` no papel
|
|
791
|
+
`data` (o valor deixa de ser seminegrito); título de coluna, termo, rótulo de campo e rótulo do `hm-stat-card` no
|
|
792
|
+
`label` (13px seminegrito; antes 12px ou 14px médio); título do card e do painel de detalhe no `heading-3`; título do
|
|
793
|
+
`hm-page-header` no `heading-1` (entrelinha 1,25).
|
|
794
|
+
- `hm-modal`: a largura de cada tamanho vem da variável interna `--hm-modal-width` (320px, 640px, 960px, 1280px e 100%
|
|
795
|
+
no `full`) e respeita o tamanho também com `scope="content"`; o corpo rola por dentro quando o conteúdo passa da
|
|
796
|
+
altura.
|
|
797
|
+
- `hm-button` de ênfase média e mínima nos tons de status: texto no tom forte; o mínimo ganha fundo próprio.
|
|
798
|
+
- Gráficos: legenda em lista compacta (ver [Gráficos](#mudancas-visuais-nos-graficos-sem-quebra-de-compilacao)).
|
|
799
|
+
- `hm-media-player` (novo): o vídeo fica centralizado e a barra de controles acompanha a largura dele.
|
|
800
|
+
|
|
801
|
+
## Spine (`@trismegisto/spine`)
|
|
802
|
+
|
|
803
|
+
O "Conectar um agente de IA" passou a gerar um token e um `.mcp.json` com **um** servidor, escolhido pelo nível de acesso.
|
|
804
|
+
|
|
805
|
+
| 3.x | 4.0 |
|
|
806
|
+
|---|---|
|
|
807
|
+
| `mcpBadgesFor`, `toggleMcpServer`, `mcpConnectStart` | `mcpServersForBadge`, `mcpConnectChoice`, `mcpConnectFirstBadge` |
|
|
808
|
+
| textos `accountFeatures.mcpConnectServers`, `mcpConnectSelectServer`, `mcpConnectNoServers` | `accountFeatures.mcpConnectServer`, `mcpConnectNoServerForBadge` (`{badge}`) |
|
|
809
|
+
| `buildMcpConfig(servidores[])` | aceita um servidor (a lista continua aceita) |
|
|
810
|
+
| `SpineAgentConfirmationRequest` sem `kind` | `kind` obrigatório (`'file'` ou `'tool'`) |
|
|
811
|
+
|
|
812
|
+
Quem só usa os componentes do spine (`spine-mcp-connect` / `SpineMcpConnect`, o chat e o convite do agente) não precisa
|
|
813
|
+
mudar código. Quem tem catálogo de textos próprio deve trocar as três chaves acima.
|
|
814
|
+
|
|
815
|
+
## Angular e React: outras mudanças de comportamento
|
|
816
|
+
|
|
817
|
+
- `hmColumnHeader` (Angular) / `columnHeaders` (React) na grade: o template entra **no lugar do texto do título**,
|
|
818
|
+
dentro do cabeçalho padrão; a ordenação e o filtro continuam. Antes o template substituía o cabeçalho inteiro (e o
|
|
819
|
+
botão de ordenar sumia). Se o seu template desenhava o próprio botão de ordenar, remova-o.
|
|
820
|
+
- Convite do agente do spine (`spine-ai-agent-launcher` / `SpineAiAgentLauncher`): no React, o app que recebe ícone de
|
|
821
|
+
sugestão do cadastro precisa registrar esses ícones (o convite só desenha ícone registrado).
|
|
822
|
+
|
|
823
|
+
## Conferência final
|
|
824
|
+
|
|
825
|
+
- [ ] Todos os `@trismegisto/*` em `^4.0.0` no `package.json` e no lockfile.
|
|
826
|
+
- [ ] Nenhum `HmChartOption`, `[option]`/`option=` em gráfico cru, `setOption` ou `dispatchAction`.
|
|
827
|
+
- [ ] Nenhum `LatLng*`, `*Bounds*`, `TileLayer`, `setView`, `fitBounds`, `invalidateSize`, `weight`/`dashArray` de mapa.
|
|
828
|
+
- [ ] Nenhum `*Addon`, `new Terminal(`, `writeln`, `cursorStyle`, `convertEol`, `disableStdin`, `(data)`/`onData` de terminal.
|
|
829
|
+
- [ ] Nomes de ícone pela tabela acima e nenhum aviso `[hermes-icons]` no console.
|
|
830
|
+
- [ ] CSS próprio sem as classes removidas.
|
|
831
|
+
- [ ] Build, testes e uma passada na tela pelas páginas com gráfico, mapa, terminal e ícones.
|