@zerotal/flow 1.9.0 → 1.11.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/api-surface.md CHANGED
@@ -524,16 +524,16 @@ interface FlashMessage = {
524
524
  }
525
525
 
526
526
  interface FlashOptions = {
527
- actions?: FlashAction[]
528
- dismissible?: boolean
529
- duration?: number
530
- icon?: string | false
531
- level?: 'success' | 'error' | 'warning' | 'info'
532
- onClose?: FlashCallback
533
- position?: FlashPosition
534
- progressBar?: boolean
535
- title?: string
536
- type?: 'success' | 'error' | 'warning' | 'info'
527
+ actions?: FlashAction[] | undefined
528
+ dismissible?: boolean | undefined
529
+ duration?: number | undefined
530
+ icon?: string | false | undefined
531
+ level?: 'success' | 'error' | 'warning' | 'info' | undefined
532
+ onClose?: FlashCallback | undefined
533
+ position?: FlashPosition | undefined
534
+ progressBar?: boolean | undefined
535
+ title?: string | undefined
536
+ type?: 'success' | 'error' | 'warning' | 'info' | undefined
537
537
  }
538
538
 
539
539
  interface FlashProps = {
@@ -735,8 +735,8 @@ interface SelectProps = {
735
735
  }
736
736
 
737
737
  interface SessionOptions = {
738
- key?: string
739
- scoped?: boolean
738
+ key?: string | undefined
739
+ scoped?: boolean | undefined
740
740
  }
741
741
 
742
742
  interface SkeletonProps = {
@@ -845,8 +845,8 @@ interface UploadRef = {
845
845
  }
846
846
 
847
847
  interface UrlOptions = {
848
- as?: string
849
- history?: 'replace' | 'push'
848
+ as?: string | undefined
849
+ history?: 'replace' | 'push' | undefined
850
850
  }
851
851
 
852
852
  interface VirtualizeProps = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zerotal/flow",
3
- "version": "1.9.0",
3
+ "version": "1.11.0",
4
4
  "license": "MIT",
5
5
  "maturity": "stable",
6
6
  "private": false,
@@ -47,15 +47,15 @@
47
47
  "@alpinejs/morph": "^3.14.9",
48
48
  "@alpinejs/persist": "^3.14.9",
49
49
  "@alpinejs/resize": "^3.14.9",
50
- "@zerotal/client": "1.9.0",
51
- "@zerotal/core": "1.9.0",
52
- "@zerotal/orm": "1.9.0",
53
- "@zerotal/validator": "1.9.0",
50
+ "@zerotal/client": "1.11.0",
51
+ "@zerotal/core": "1.11.0",
52
+ "@zerotal/orm": "1.11.0",
53
+ "@zerotal/validator": "1.11.0",
54
54
  "alpinejs": "^3.14.9",
55
55
  "typescript": "^5.8.0"
56
56
  },
57
57
  "devDependencies": {
58
- "@zerotal/broadcasting": "1.9.0",
58
+ "@zerotal/broadcasting": "1.11.0",
59
59
  "@types/alpinejs": "^3.13.10",
60
60
  "@types/alpinejs__anchor": "^3.13.1",
61
61
  "@types/alpinejs__collapse": "^3.13.4",
package/src/Component.ts CHANGED
@@ -306,21 +306,21 @@ export interface RedirectFlash {
306
306
  * for `level` (Tailwind/Notyf parlance).
307
307
  */
308
308
  export interface FlashOptions {
309
- level?: FlashLevel;
309
+ level?: FlashLevel | undefined;
310
310
  /** Alias for `level`. */
311
- type?: FlashLevel;
312
- title?: string;
313
- position?: FlashPosition;
311
+ type?: FlashLevel | undefined;
312
+ title?: string | undefined;
313
+ position?: FlashPosition | undefined;
314
314
  /** Auto-dismiss after N ms. `0` keeps the toast until dismissed. */
315
- duration?: number;
316
- dismissible?: boolean;
315
+ duration?: number | undefined;
316
+ dismissible?: boolean | undefined;
317
317
  /** Custom icon (emoji/text), or `false` to hide the status icon. */
318
- icon?: string | false;
319
- progressBar?: boolean;
318
+ icon?: string | false | undefined;
319
+ progressBar?: boolean | undefined;
320
320
  /** Action buttons that each invoke a `@expose` method on click. */
321
- actions?: FlashAction[];
321
+ actions?: FlashAction[] | undefined;
322
322
  /** A `@expose` method invoked when the toast is dismissed. */
323
- onClose?: FlashCallback;
323
+ onClose?: FlashCallback | undefined;
324
324
  }
325
325
 
326
326
  /**
@@ -32,12 +32,12 @@ const DEFAULT_TIMEOUT_MS = 10_000;
32
32
  /** @internal */
33
33
  export interface OpenOptions {
34
34
  /** Milliseconds to wait for the page to load and Flow to connect. */
35
- timeout?: number;
35
+ timeout?: number | undefined;
36
36
  /**
37
37
  * Wait for Flow's WebSocket to report itself online before returning.
38
38
  * Default: true. Set false for a page with no Flow component on it.
39
39
  */
40
- waitForConnection?: boolean;
40
+ waitForConnection?: boolean | undefined;
41
41
  }
42
42
 
43
43
  export class FlowBrowser {
@@ -15,17 +15,17 @@ export interface ConfirmDialogOptions {
15
15
  /** Body text (the description, or the heading when no `title` is given). */
16
16
  message: string;
17
17
  /** Bold heading above the message. */
18
- title?: string;
18
+ title?: string | undefined;
19
19
  /** Confirm button label (default: "Confirm", or "Delete" for danger). */
20
- confirmLabel?: string;
20
+ confirmLabel?: string | undefined;
21
21
  /** Cancel button label (default: "Cancel"). */
22
- cancelLabel?: string;
22
+ cancelLabel?: string | undefined;
23
23
  /** `danger` = destructive (red); `primary` = neutral/indigo (default). */
24
- variant?: "danger" | "primary";
24
+ variant?: "danger" | "primary" | undefined;
25
25
  /** Custom icon (emoji/text/SVG markup), or `false` to hide the icon entirely. */
26
- icon?: string | false;
26
+ icon?: string | false | undefined;
27
27
  /** Show a type-to-confirm input; Confirm unlocks only when the value matches this. */
28
- prompt?: string;
28
+ prompt?: string | undefined;
29
29
  }
30
30
 
31
31
  const ICONS = {
package/src/client/url.ts CHANGED
@@ -11,9 +11,9 @@ export interface CurrentUrlOptions {
11
11
  * `null`, `undefined`, or `""` removes the param; anything else is stringified
12
12
  * and set. Params not listed here are preserved.
13
13
  */
14
- query?: Record<string, unknown>;
14
+ query?: Record<string, unknown> | undefined;
15
15
  /** Replace the URL hash. `""` clears it; omit to leave the hash untouched. */
16
- hash?: string;
16
+ hash?: string | undefined;
17
17
  }
18
18
 
19
19
  /**
package/src/decorators.ts CHANGED
@@ -1068,9 +1068,9 @@ export function resolveListeners(
1068
1068
  */
1069
1069
  export interface UrlOptions {
1070
1070
  /** Override the URL query parameter name. Defaults to the property name. */
1071
- as?: string;
1071
+ as?: string | undefined;
1072
1072
  /** Push a new history entry or replace the current one. Defaults to `'replace'`. */
1073
- history?: "push" | "replace";
1073
+ history?: "push" | "replace" | undefined;
1074
1074
  }
1075
1075
 
1076
1076
  type UrlDecorator = (value: unknown, context: ClassFieldDecoratorContext) => void;
@@ -1196,13 +1196,13 @@ function _paramDecorator(source: ParamSource): ParamDecorator {
1196
1196
  /** Options for {@link session}. */
1197
1197
  export interface SessionOptions {
1198
1198
  /** Session key to read and write. Defaults to the property's own name. */
1199
- key?: string;
1199
+ key?: string | undefined;
1200
1200
  /**
1201
1201
  * Namespace the key to this component (`flow:<Component>:<key>`), so the value belongs to
1202
1202
  * this page alone and cannot collide with another component's field of the same name.
1203
1203
  * Default: `false` — the key is the session's own.
1204
1204
  */
1205
- scoped?: boolean;
1205
+ scoped?: boolean | undefined;
1206
1206
  }
1207
1207
 
1208
1208
  type SessionDecorator = (value: unknown, context: ClassFieldDecoratorContext) => void;