@incodetech/web 0.0.0-dev-20260813-c65eff54 → 0.0.0-dev-20260813-2991a679

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.
@@ -828,12 +828,12 @@
828
828
  }
829
829
 
830
830
  .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions p, .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions h2 {
831
+ text-align: center;
831
832
  font-family: var(--typography-input-dropdown-family);
832
833
  font-size: var(--typography-input-dropdown-m-size);
833
834
  font-weight: var(--typography-input-dropdown-m-weight);
834
835
  line-height: var(--typography-input-dropdown-m-line-height);
835
836
  letter-spacing: var(--typography-input-dropdown-m-letter-spacing);
836
- text-wrap: nowrap;
837
837
  }
838
838
 
839
839
  .IncodeFlowStart {
@@ -84,17 +84,18 @@ var GovernmentVerificationResult = (props) => /* @__PURE__ */ u(VerificationResu
84
84
  hideFooterBranding: false,
85
85
  footerBrandingSlot: /* @__PURE__ */ u(VerifiedByGovIncodeLogo, {})
86
86
  });
87
- var GovernmentValidationContent = ({ config, onFinish }) => {
87
+ var GovernmentValidationContent = ({ config, manager: externalManager, onFinish }) => {
88
88
  const { t } = useTranslation();
89
89
  const [state, manager] = useManager(() => {
90
+ if (externalManager) return externalManager;
90
91
  if (!config) throw new Error("GovernmentValidation config is required");
91
92
  return createGovernmentValidationManager({ config });
92
- });
93
+ }, { manageLifecycle: !externalManager });
93
94
  useModuleTerminalCallbacks({
94
95
  status: state.status === "finished" ? "finished" : "loading",
95
96
  onFinish
96
97
  });
97
- if (config.backgroundExecution || state.status === "finished") return null;
98
+ if (config?.backgroundExecution || state.status === "finished") return null;
98
99
  const isOtpStep = state.status === "awaitingOtp" || state.status === "verifyingOtp";
99
100
  return /* @__PURE__ */ u(k, { children: [
100
101
  (state.status === "idle" || state.status === "loading" || state.status === "processing") && /* @__PURE__ */ u(GovernmentVerificationResult, {
@@ -150,13 +151,14 @@ var GovernmentValidationContent = ({ config, onFinish }) => {
150
151
  })
151
152
  ] });
152
153
  };
153
- var GovernmentValidationWithLocalConfig = ({ config, onFinish }) => {
154
- return /* @__PURE__ */ u(IncodeComponent, { children: config ? /* @__PURE__ */ u(GovernmentValidationContent, {
154
+ var GovernmentValidationWithLocalConfig = ({ config, manager, onFinish }) => {
155
+ return /* @__PURE__ */ u(IncodeComponent, { children: config || manager ? /* @__PURE__ */ u(GovernmentValidationContent, {
155
156
  config,
157
+ manager,
156
158
  onFinish
157
159
  }) : null });
158
160
  };
159
- var GovernmentValidation = withStandaloneModuleBootstrap(GovernmentValidationWithLocalConfig, "GOVT_VALIDATION_PROVISIONING");
161
+ var GovernmentValidation = withStandaloneModuleBootstrap(GovernmentValidationWithLocalConfig, "GOVT_VALIDATION_PROVISIONING", { supportsExternalManager: true });
160
162
  registerIncodeModuleElement(GovernmentValidation, "incode-government-validation");
161
163
  //#endregion
162
164
  export { GovernmentValidation };
@@ -32,10 +32,10 @@
32
32
  }
33
33
 
34
34
  .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions p, .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions h2 {
35
+ text-align: center;
35
36
  font-family: var(--typography-input-dropdown-family);
36
37
  font-size: var(--typography-input-dropdown-m-size);
37
38
  font-weight: var(--typography-input-dropdown-m-weight);
38
39
  line-height: var(--typography-input-dropdown-m-line-height);
39
40
  letter-spacing: var(--typography-input-dropdown-m-letter-spacing);
40
- text-wrap: nowrap;
41
41
  }
@@ -2,6 +2,7 @@ import { DeepPartial } from '@incodetech/core/flow';
2
2
  import { FC } from 'preact/compat';
3
3
  import { FunctionComponent } from 'preact';
4
4
  import { GovernmentValidationConfig } from '@incodetech/core/government-validation';
5
+ import { GovernmentValidationManager } from '@incodetech/core/government-validation';
5
6
  import { SVGProps } from 'preact/compat';
6
7
 
7
8
  /**
@@ -58,7 +59,7 @@ export declare const GovernmentValidation: FC<Omit<GovernmentValidationProps, "c
58
59
  config?: (Omit<unknown, never> & DeepPartial<Pick<unknown, never>>) | undefined;
59
60
  }>;
60
61
 
61
- declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig>;
62
+ declare type GovernmentValidationProps = IncodeModuleProps<GovernmentValidationConfig, void, GovernmentValidationManager>;
62
63
 
63
64
  /**
64
65
  * Extra context passed to `onFinish` alongside the result. Lets a host decide
@@ -959,12 +959,12 @@
959
959
  }
960
960
 
961
961
  .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions p, .IncodeGovtValidation.IncodeGovtValidation--otp .IncodeGovtValidationPage .IncodeGovtValidationOtpInstructions h2 {
962
+ text-align: center;
962
963
  font-family: var(--typography-input-dropdown-family);
963
964
  font-size: var(--typography-input-dropdown-m-size);
964
965
  font-weight: var(--typography-input-dropdown-m-weight);
965
966
  line-height: var(--typography-input-dropdown-m-line-height);
966
967
  letter-spacing: var(--typography-input-dropdown-m-letter-spacing);
967
- text-wrap: nowrap;
968
968
  }
969
969
 
970
970
  .IncodeSrOnly {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@incodetech/web",
3
- "version": "0.0.0-dev-20260813-c65eff54",
3
+ "version": "0.0.0-dev-20260813-2991a679",
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-20260813-c65eff54"
295
+ "@incodetech/core": "0.0.0-dev-20260813-2991a679"
296
296
  },
297
297
  "devDependencies": {
298
298
  "@microsoft/api-extractor": "^7.53.3",