@adatechnology/notification-ui 0.1.0-rc.6 → 0.1.0-rc.8

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 CHANGED
@@ -128,6 +128,16 @@ type NotificationSettingsWorkspaceProps = {
128
128
  * em `data:`, tabela desbalanceada). Ausente, nenhum aviso aparece.
129
129
  */
130
130
  readonly validateEmailHtml?: (html: string) => EmailHtmlReport;
131
+ /**
132
+ * Ações do produto no cabeçalho do EDITOR, ao lado de Fechar — recebe a chave do template aberto.
133
+ *
134
+ * É onde entra "Enviar teste": provar que a mensagem chega é operação do produto, não do pacote.
135
+ * O pacote não sabe para quem mandar, por qual rota, nem o que fazer com o resultado; ele sabe
136
+ * qual template está aberto, e é só isso que o slot precisa entregar.
137
+ */
138
+ readonly renderEditorActions?: (params: {
139
+ readonly templateKey: string;
140
+ }) => ReactNode;
131
141
  /** Substitui o cabeçalho padrão — a página que já tem título próprio evita o segundo `<h1>`. */
132
142
  readonly renderHeader?: () => ReactNode;
133
143
  /** Ações do produto no cabeçalho. */
@@ -141,7 +151,7 @@ type NotificationSettingsWorkspaceProps = {
141
151
  /** Rótulo humano de uma categoria (`auth` → "Acesso"). Ausente, mostra a própria chave. */
142
152
  readonly categoryLabelOf?: (category: string) => string;
143
153
  };
144
- declare function NotificationSettingsWorkspace({ labels: labelsOverride, channels, categories, previewPayload, templateLabelOf, renderChannelFields, validateEmailHtml, renderHeader, renderHeaderActions, className, senderName, categoryLabelOf, }: NotificationSettingsWorkspaceProps): react.JSX.Element;
154
+ declare function NotificationSettingsWorkspace({ labels: labelsOverride, channels, categories, previewPayload, templateLabelOf, renderChannelFields, renderEditorActions, validateEmailHtml, renderHeader, renderHeaderActions, className, senderName, categoryLabelOf, }: NotificationSettingsWorkspaceProps): react.JSX.Element;
145
155
 
146
156
  /**
147
157
  * Copyright (c) 2026 Ada Technology. MIT License.
package/dist/index.js CHANGED
@@ -935,6 +935,7 @@ function NotificationSettingsWorkspace({
935
935
  previewPayload,
936
936
  templateLabelOf,
937
937
  renderChannelFields,
938
+ renderEditorActions,
938
939
  validateEmailHtml,
939
940
  renderHeader,
940
941
  renderHeaderActions,
@@ -1222,9 +1223,12 @@ function NotificationSettingsWorkspace({
1222
1223
  editor.selected?.version
1223
1224
  ] })
1224
1225
  ] }),
1225
- /* @__PURE__ */ jsxs10("button", { type: "button", className: "adn-settings__close", onClick: editor.clear, children: [
1226
- /* @__PURE__ */ jsx10(X, { className: "adn-settings__button-icon", "aria-hidden": "true" }),
1227
- label("settings.close")
1226
+ /* @__PURE__ */ jsxs10("div", { className: "adn-settings__editor-actions", children: [
1227
+ editor.selected && renderEditorActions?.({ templateKey: editor.selected.key }),
1228
+ /* @__PURE__ */ jsxs10("button", { type: "button", className: "adn-settings__close", onClick: editor.clear, children: [
1229
+ /* @__PURE__ */ jsx10(X, { className: "adn-settings__button-icon", "aria-hidden": "true" }),
1230
+ label("settings.close")
1231
+ ] })
1228
1232
  ] })
1229
1233
  ] }),
1230
1234
  !editor.isIdentityLocked && /* @__PURE__ */ jsxs10("div", { className: "adn-settings__identity", children: [