nucleus-core-ts 0.10.197 → 0.10.199

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/.build-ok CHANGED
@@ -1 +1 @@
1
- 0.10.197
1
+ 0.10.199
@@ -530,6 +530,7 @@ export function numberCounterTable(): {
530
530
  }[];
531
531
  };
532
532
  };
533
+ export function nucleusRuntimeOf(value2: any): any;
533
534
  export function nextNumber(unit: any, sequence: any, clock?: {}): Promise<{
534
535
  reference: string;
535
536
  counter: any;
@@ -862,6 +863,7 @@ export function createNucleusServer(options: any): Promise<{
862
863
  raw: Bun.Server<undefined>;
863
864
  } & {
864
865
  data: any;
866
+ runtime: any;
865
867
  }>;
866
868
  export function createDocumentStore(type4: any): {
867
869
  type: any;
@@ -24,6 +24,15 @@ import { InputMessage } from './InputMessage';
24
24
  }, theme), 'cursor-text', wrapperClassName),
25
25
  onMouseEnter: onMouseEnter,
26
26
  onMouseLeave: onMouseLeave,
27
+ onMouseDown: (event)=>{
28
+ // A press on the frame (its padding, the floating label, a unit) focuses the input at once. The frame is a label, which
29
+ // only focuses its input on click (mouse up): until then focus sits on the page and a fast first keystroke is lost. A
30
+ // press on the input itself or on a control inside the frame (the password toggle) keeps its own behaviour.
31
+ const target = event.target;
32
+ if (disabled || !(target instanceof Element) || target.closest('input, textarea, select, button, a, [role="button"]')) return;
33
+ event.preventDefault();
34
+ inputRef.current?.focus();
35
+ },
27
36
  children: [
28
37
  leadingIcon && /*#__PURE__*/ _jsx(InputAdornment, {
29
38
  side: "left",
package/dist/index.d.ts CHANGED
@@ -20,7 +20,9 @@ export { hashPassword, validatePasswordStrength } from './src/Nucleus/routes/aut
20
20
  * boot when it is missing; this is what makes it easy to get right.
21
21
  */
22
22
  export { requiredBodyCeiling } from './src/Nucleus/routes/shared/bodyCeiling';
23
- export type { NucleusContext, NucleusRuntime } from './src/Nucleus/runtime';
23
+ export type { NucleusContext, NucleusRuntime, ReadinessReport } from './src/Nucleus/runtime';
24
+ export { nucleusRuntimeOf } from './src/Nucleus/runtime';
25
+ export type { RuntimeFiles, StoredFileRef } from './src/Nucleus/runtimeFiles';
24
26
  export { type ConfigIssue, formatConfigIssues, type NucleusConfigValidation, type ValidatableNucleusOptions, validateNucleusConfig, } from './src/Nucleus/validateConfig';
25
27
  /**
26
28
  * The same product on `Bun.serve`, with Elysia nowhere in the request path.