@incodetech/web 0.0.0-dev-20260814-a427a729 → 0.0.0-dev-20260817-9145f76e

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.
@@ -2,7 +2,6 @@ import { a as useTranslation } from "../uiConfig-gHDoLEFm.js";
2
2
  import { _ as y, d as T, l as A, v as u } from "../vendor-preact-mvwZ8mJj.js";
3
3
  import { G as PasswordInputComposed, Z as VerificationResult, _t as useModuleTerminalCallbacks, at as withStandaloneModuleBootstrap, ct as Page, rt as AutoFocusTitle, tt as IncodeComponent, yt as useManager } from "../extensibility-BqVgyHa-.js";
4
4
  import { t as Spacer } from "../spacer-Bev-wMBC.js";
5
- import { o as TypographyH5 } from "../spinner-Ds8bck-6.js";
6
5
  import { k as Button, u as SuccessIcon } from "../dropdownComposed-CH8FoLKA.js";
7
6
  import { t as registerIncodeModuleElement } from "../incodeModule-CPafHixS.js";
8
7
  import { MIN_PASSWORD_LENGTH, PASSWORD_VALIDATION_KEYS, REQUIREMENT_I18N_KEYS, createCertificateIssuanceManager } from "@incodetech/core/certificate-issuance";
@@ -38,7 +37,7 @@ var DownloadScreen = ({ blob, onDownloaded, onError }) => {
38
37
  /* @__PURE__ */ u(Spacer, {}),
39
38
  /* @__PURE__ */ u("div", {
40
39
  className: "IncodeCertificateIssuanceScreenArea",
41
- children: [/* @__PURE__ */ u(AutoFocusTitle, { children: t("certificateIssuance.v2.download.title") }), /* @__PURE__ */ u(TypographyH5, {
40
+ children: [/* @__PURE__ */ u(AutoFocusTitle, { children: t("certificateIssuance.v2.download.title") }), /* @__PURE__ */ u("p", {
42
41
  className: "IncodeCertificateIssuanceScreenText",
43
42
  children: t("certificateIssuance.v2.download.text")
44
43
  })]
@@ -54,6 +53,7 @@ var DownloadScreen = ({ blob, onDownloaded, onError }) => {
54
53
  }),
55
54
  /* @__PURE__ */ u(Button, {
56
55
  onClick: handleDownload,
56
+ "data-testid": "certificate-download",
57
57
  children: t("certificateIssuance.download.button")
58
58
  })
59
59
  ]
@@ -82,9 +82,12 @@ var PasswordScreen = ({ password, passwordValidations, canSubmit, onPasswordChan
82
82
  children: /* @__PURE__ */ u(PasswordInputComposed, {
83
83
  id: "certificate-password",
84
84
  "data-testid": "certificate-password",
85
+ "aria-label": t("certificateIssuance.password.placeholder"),
86
+ "aria-describedby": "certificate-password-requirements-heading",
85
87
  placeholder: t("certificateIssuance.password.placeholder"),
86
88
  value: password,
87
89
  autocomplete: "new-password",
90
+ required: true,
88
91
  showPasswordAriaLabel: t("certificateIssuance.password.show"),
89
92
  hidePasswordAriaLabel: t("certificateIssuance.password.hide"),
90
93
  requirementsHeading: t("certificateIssuance.passwordRequirements.description"),
@@ -99,6 +102,7 @@ var PasswordScreen = ({ password, passwordValidations, canSubmit, onPasswordChan
99
102
  }), /* @__PURE__ */ u(Button, {
100
103
  disabled: !canSubmit,
101
104
  onClick: onSubmit,
105
+ "data-testid": "certificate-password-submit",
102
106
  children: t("certificateIssuance.continue")
103
107
  })]
104
108
  })
@@ -118,7 +122,7 @@ var SuccessScreen = ({ onDone }) => {
118
122
  /* @__PURE__ */ u(Spacer, { size: 16 }),
119
123
  /* @__PURE__ */ u("div", {
120
124
  className: "IncodeCertificateIssuanceScreenArea",
121
- children: [/* @__PURE__ */ u(AutoFocusTitle, { children: t("certificateIssuance.success.title") }), /* @__PURE__ */ u(TypographyH5, {
125
+ children: [/* @__PURE__ */ u(AutoFocusTitle, { children: t("certificateIssuance.success.title") }), /* @__PURE__ */ u("p", {
122
126
  className: "IncodeCertificateIssuanceScreenText",
123
127
  children: t("certificateIssuance.success.text")
124
128
  })]
@@ -126,6 +130,7 @@ var SuccessScreen = ({ onDone }) => {
126
130
  /* @__PURE__ */ u(Spacer, {}),
127
131
  /* @__PURE__ */ u(Button, {
128
132
  onClick: onDone,
133
+ "data-testid": "certificate-done",
129
134
  children: t("certificateIssuance.success.done")
130
135
  })
131
136
  ]
@@ -138,6 +143,7 @@ var CertificateIssuanceContent = ({ config, manager: externalManager, onFinish }
138
143
  const { t } = useTranslation();
139
144
  const [state, manager] = useManager(() => {
140
145
  if (externalManager) return externalManager;
146
+ if (!config) throw new Error("CertificateIssuance config is required");
141
147
  return createCertificateIssuanceManager({ config });
142
148
  }, { manageLifecycle: !externalManager });
143
149
  y(() => {
@@ -179,7 +185,7 @@ var CertificateIssuanceContent = ({ config, manager: externalManager, onFinish }
179
185
  }
180
186
  };
181
187
  var CertificateIssuanceWithLocalConfig = ({ config, manager, onFinish }) => {
182
- if (!config) return null;
188
+ if (!config && !manager) return null;
183
189
  return /* @__PURE__ */ u(IncodeComponent, { children: /* @__PURE__ */ u(CertificateIssuanceContent, {
184
190
  config,
185
191
  manager,
@@ -52,9 +52,7 @@ export declare const CertificateIssuance: FC<Omit<CertificateIssuanceProps, "con
52
52
  config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
53
53
  }>;
54
54
 
55
- declare type CertificateIssuanceProps = IncodeModuleProps<CertificateIssuanceConfig> & {
56
- manager?: CertificateIssuanceManager;
57
- };
55
+ declare type CertificateIssuanceProps = IncodeModuleProps<CertificateIssuanceConfig, void, CertificateIssuanceManager>;
58
56
 
59
57
  /**
60
58
  * A module `config` intersected with the per-instance override maps. Typed at
@@ -146,6 +144,8 @@ export { }
146
144
 
147
145
  declare global {
148
146
  interface HTMLElementTagNameMap {
149
- 'incode-certificate-issuance': HTMLElement & IncodeModuleProps<CertificateIssuanceConfig>;
147
+ 'incode-certificate-issuance': HTMLElement & IncodeModuleProps<CertificateIssuanceConfig,
148
+ void,
149
+ CertificateIssuanceManager>;
150
150
  }
151
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260814-a427a729",
3
+ "version": "0.0.0-dev-20260817-9145f76e",
4
4
  "license": "ISC",
5
5
  "repository": {
6
6
  "type": "git",
@@ -292,7 +292,7 @@
292
292
  "qrcode": "^1.5.4",
293
293
  "signature_pad": "^5.1.3",
294
294
  "tailwindcss": "^4.1.17",
295
- "@incodetech/core": "0.0.0-dev-20260814-a427a729"
295
+ "@incodetech/core": "0.0.0-dev-20260817-9145f76e"
296
296
  },
297
297
  "devDependencies": {
298
298
  "@microsoft/api-extractor": "^7.53.3",