@wise/dynamic-flow-types 4.18.0-experimental-2dcb025 → 4.18.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.
Files changed (61) hide show
  1. package/build/renderers/RendererProps.d.ts +2 -3
  2. package/build/renderers/RendererProps.d.ts.map +1 -1
  3. package/build/renderers/constants.d.ts +1 -1
  4. package/build/renderers/constants.d.ts.map +1 -1
  5. package/build/renderers/index.d.ts +0 -1
  6. package/build/renderers/index.d.ts.map +1 -1
  7. package/build/spec/index.d.ts +2 -9
  8. package/build/spec/index.d.ts.map +1 -1
  9. package/build/spec/layout/Layout.d.ts +3 -4
  10. package/build/spec/layout/Layout.d.ts.map +1 -1
  11. package/build/spec/layout/StatusListLayoutItem.d.ts +2 -2
  12. package/build/spec/layout/StatusListLayoutItem.d.ts.map +1 -1
  13. package/build/spec/layout/{ItemCallToAction.d.ts → StatusListLayoutItemCallToAction.d.ts} +2 -2
  14. package/build/spec/layout/StatusListLayoutItemCallToAction.d.ts.map +1 -0
  15. package/build/spec/main.js +48 -115
  16. package/build/spec/main.mjs +48 -115
  17. package/build/spec/misc/Context.d.ts +1 -1
  18. package/build/spec/misc/Context.d.ts.map +1 -1
  19. package/build/spec/misc/media/MediaAvatar.d.ts +2 -2
  20. package/build/spec/misc/media/MediaAvatar.d.ts.map +1 -1
  21. package/build/spec/misc/media/MediaAvatarContent.d.ts +7 -0
  22. package/build/spec/misc/media/MediaAvatarContent.d.ts.map +1 -0
  23. package/build/spec/misc/media/{AvatarTextContent.d.ts → MediaAvatarTextContent.d.ts} +2 -2
  24. package/build/spec/misc/media/MediaAvatarTextContent.d.ts.map +1 -0
  25. package/build/spec/misc/media/{AvatarUriContent.d.ts → MediaAvatarUriContent.d.ts} +2 -2
  26. package/build/spec/misc/media/MediaAvatarUriContent.d.ts.map +1 -0
  27. package/build/spec/responses/search/SearchResultSearch.d.ts +2 -2
  28. package/build/spec/responses/search/SearchResultSearch.d.ts.map +1 -1
  29. package/build/spec/responses/search/{SearchSearchRequest.d.ts → SearchResultSearchSearchRequest.d.ts} +2 -2
  30. package/build/spec/responses/search/SearchResultSearchSearchRequest.d.ts.map +1 -0
  31. package/build/tsconfig.tsbuildinfo +1 -1
  32. package/build/zod/schemas.d.ts +356 -472
  33. package/build/zod/schemas.d.ts.map +1 -1
  34. package/build/zod/schemas.ts +816 -897
  35. package/package.json +3 -3
  36. package/build/renderers/CollectionRendererProps.d.ts +0 -69
  37. package/build/renderers/CollectionRendererProps.d.ts.map +0 -1
  38. package/build/spec/layout/CollectionLayout.d.ts +0 -57
  39. package/build/spec/layout/CollectionLayout.d.ts.map +0 -1
  40. package/build/spec/layout/CollectionLayoutCallToAction.d.ts +0 -19
  41. package/build/spec/layout/CollectionLayoutCallToAction.d.ts.map +0 -1
  42. package/build/spec/layout/CollectionLayoutFilter.d.ts +0 -6
  43. package/build/spec/layout/CollectionLayoutFilter.d.ts.map +0 -1
  44. package/build/spec/layout/CollectionLayoutItem.d.ts +0 -56
  45. package/build/spec/layout/CollectionLayoutItem.d.ts.map +0 -1
  46. package/build/spec/layout/CollectionLayoutSearch.d.ts +0 -18
  47. package/build/spec/layout/CollectionLayoutSearch.d.ts.map +0 -1
  48. package/build/spec/layout/CollectionLayoutSection.d.ts +0 -24
  49. package/build/spec/layout/CollectionLayoutSection.d.ts.map +0 -1
  50. package/build/spec/layout/CollectionLayoutSelectFilter.d.ts +0 -24
  51. package/build/spec/layout/CollectionLayoutSelectFilter.d.ts.map +0 -1
  52. package/build/spec/layout/CollectionLayoutState.d.ts +0 -30
  53. package/build/spec/layout/CollectionLayoutState.d.ts.map +0 -1
  54. package/build/spec/layout/ItemCallToAction.d.ts.map +0 -1
  55. package/build/spec/layout/SelectFilterOption.d.ts +0 -22
  56. package/build/spec/layout/SelectFilterOption.d.ts.map +0 -1
  57. package/build/spec/misc/media/AvatarContent.d.ts +0 -7
  58. package/build/spec/misc/media/AvatarContent.d.ts.map +0 -1
  59. package/build/spec/misc/media/AvatarTextContent.d.ts.map +0 -1
  60. package/build/spec/misc/media/AvatarUriContent.d.ts.map +0 -1
  61. package/build/spec/responses/search/SearchSearchRequest.d.ts.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wise/dynamic-flow-types",
3
- "version": "4.18.0-experimental-2dcb025",
3
+ "version": "4.18.0",
4
4
  "description": "Dynamic Flow TypeScript Types",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -25,14 +25,14 @@
25
25
  "build"
26
26
  ],
27
27
  "devDependencies": {
28
- "@formatjs/cli": "^6.16.11",
28
+ "@formatjs/cli": "^6.16.14",
29
29
  "@typescript/native": "npm:typescript@^7.0.2",
30
30
  "@types/react": "^19.2.17",
31
31
  "esbuild": "^0.28.1",
32
32
  "npm-run-all2": "^9.0.2",
33
33
  "ts-to-zod": "^3.15.0",
34
34
  "typescript": "npm:@typescript/typescript6@^6.0.2",
35
- "typescript-json-schema": "^0.67.0"
35
+ "typescript-json-schema": "^0.68.0"
36
36
  },
37
37
  "dependencies": {
38
38
  "zod": "3.25.76"
@@ -1,69 +0,0 @@
1
- import { ReactNode } from 'react';
2
- import { HttpMethod, SupportingValues } from '../spec';
3
- import { CallToAction } from './CallToAction';
4
- import { Media } from './Media';
5
- import { BaseRendererProps } from './RendererProps';
6
- import { AdditionalInfo, InlineAlert, Margin } from './constants';
7
- export type CollectionRendererProps = BaseRendererProps & {
8
- type: 'collection';
9
- url: string;
10
- method: HttpMethod;
11
- state: {
12
- sections: CollectionSection[];
13
- filters: CollectionFilter[];
14
- beforeSections: ReactNode;
15
- afterSections: ReactNode;
16
- search?: CollectionSearch;
17
- };
18
- status: {
19
- type: 'idle';
20
- loadMore?: () => void;
21
- } | {
22
- type: 'error';
23
- reason: 'search' | 'pagination';
24
- retry: () => void;
25
- } | {
26
- type: 'loading';
27
- reason: 'search' | 'pagination';
28
- };
29
- margin: Margin;
30
- };
31
- export type CollectionSection = {
32
- id: string;
33
- title?: string;
34
- callToAction?: CallToAction;
35
- items: CollectionItem[];
36
- };
37
- export type CollectionItem = {
38
- title?: string;
39
- description?: string;
40
- disabled?: boolean;
41
- additionalInfo?: AdditionalInfo;
42
- supportingValues?: SupportingValues;
43
- inlineAlert?: InlineAlert;
44
- media?: Media;
45
- href?: string;
46
- onClick?: () => void;
47
- callToAction?: CallToAction;
48
- analyticsId?: string;
49
- tags?: string[];
50
- };
51
- export type CollectionSearch = {
52
- title?: string;
53
- hint?: string;
54
- query: string;
55
- onChange: (query: string) => void;
56
- };
57
- export type CollectionFilter = {
58
- type: 'select';
59
- options?: CollectionFilterOption[];
60
- multiSelect?: boolean;
61
- };
62
- export type CollectionFilterOption = {
63
- value: string;
64
- title: string;
65
- accessibilityDescription?: string;
66
- selected: boolean;
67
- onSelect: () => void;
68
- };
69
- //# sourceMappingURL=CollectionRendererProps.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionRendererProps.d.ts","sourceRoot":"","sources":["../../src/renderers/CollectionRendererProps.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAClC,OAAO,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,SAAS,CAAC;AAChC,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAElE,MAAM,MAAM,uBAAuB,GAAG,iBAAiB,GAAG;IACxD,IAAI,EAAE,YAAY,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE;QACL,QAAQ,EAAE,iBAAiB,EAAE,CAAC;QAC9B,OAAO,EAAE,gBAAgB,EAAE,CAAC;QAC5B,cAAc,EAAE,SAAS,CAAC;QAC1B,aAAa,EAAE,SAAS,CAAC;QACzB,MAAM,CAAC,EAAE,gBAAgB,CAAC;KAC3B,CAAC;IACF,MAAM,EACF;QACE,IAAI,EAAE,MAAM,CAAC;QACb,QAAQ,CAAC,EAAE,MAAM,IAAI,CAAC;KACvB,GACD;QACE,IAAI,EAAE,OAAO,CAAC;QACd,MAAM,EAAE,QAAQ,GAAG,YAAY,CAAC;QAChC,KAAK,EAAE,MAAM,IAAI,CAAC;KACnB,GACD;QACE,IAAI,EAAE,SAAS,CAAC;QAChB,MAAM,EAAE,QAAQ,GAAG,YAAY,CAAC;KACjC,CAAC;IACN,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,IAAI,CAAC;IACrB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACjB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG;IAC7B,IAAI,EAAE,QAAQ,CAAC;IACf,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACnC,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,sBAAsB,GAAG;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,MAAM,CAAC;IACd,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,EAAE,OAAO,CAAC;IAClB,QAAQ,EAAE,MAAM,IAAI,CAAC;CACtB,CAAC"}
@@ -1,57 +0,0 @@
1
- import type { HttpMethod } from '../misc/HttpMethod';
2
- import type { CollectionLayoutState } from './CollectionLayoutState';
3
- import type { CollectionLayoutSearch } from './CollectionLayoutSearch';
4
- import type { Size } from '../misc/Size';
5
- /**
6
- * **This API is experimental and likely to change without notice. Please contact us before using this in production flows.**
7
- * A data-intensive list layout that supports grouping, remote filtering, and cursor-based pagination.
8
- * Unlike [ListLayout], which renders a static list of items, `CollectionLayout` owns its own data lifecycle:
9
- * it fetches, filters, and paginates its content via a configured request endpoint.
10
- * <!-- fixture: collection -->
11
- * ## When to use
12
- * - When building lists that require search-as-you-type, filtering, or pagination over large datasets.
13
- * - When the server should control the data lifecycle across paginated responses.
14
- * ## When not to use
15
- * - When all items can be provided statically, consider using [ListLayout] instead.
16
- * - When items represent a choice, consider using [DecisionLayout] instead.
17
- * @experimental This feature may be changed in the future without notice.
18
- */
19
- export type CollectionLayout = {
20
- /**
21
- * It must be `collection`.
22
- */
23
- type: 'collection';
24
- /**
25
- * The endpoint used for filter and pagination requests.
26
- */
27
- url: string;
28
- /**
29
- * The HTTP method used to call the collection endpoint.
30
- */
31
- method: HttpMethod;
32
- /**
33
- * The initial state of the collection, including sections and pagination cursor.
34
- */
35
- initialState: CollectionLayoutState;
36
- /**
37
- * An optional search input configuration.
38
- */
39
- search?: CollectionLayoutSearch;
40
- /**
41
- * Specify a particular control to use to represent the layout. If the control is unknown, it will be ignored.
42
- */
43
- control?: string;
44
- /**
45
- * The vertical margin to apply after this component. Defaults to `md`.
46
- */
47
- margin?: Size;
48
- /**
49
- * An optional identifier to be used in analytics tracking.
50
- */
51
- analyticsId?: string;
52
- /**
53
- * An optional list of identifiers used to configure renderers.
54
- */
55
- tags?: string[];
56
- };
57
- //# sourceMappingURL=CollectionLayout.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayout.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAA;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,cAAc,CAAA;AAExC;;;;;;;;;;;;;EAaE;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;MAEE;IACF,IAAI,EAAE,YAAY,CAAC;IACnB;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ;;MAEE;IACF,MAAM,EAAE,UAAU,CAAC;IACnB;;MAEE;IACF,YAAY,EAAE,qBAAqB,CAAC;IACpC;;MAEE;IACF,MAAM,CAAC,EAAE,sBAAsB,CAAC;IAChC;;MAEE;IACF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB;;MAEE;IACF,MAAM,CAAC,EAAE,IAAI,CAAC;IACd;;MAEE;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;MAEE;IACF,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
@@ -1,19 +0,0 @@
1
- import type { Behavior } from '../feature/Behavior';
2
- /**
3
- * A call to action on a collection item or section.
4
- */
5
- export type CollectionLayoutCallToAction = {
6
- /**
7
- * A user-facing title.
8
- */
9
- title: string;
10
- /**
11
- * A description of the call to action to be used by screen readers.
12
- */
13
- accessibilityDescription?: string;
14
- /**
15
- * The [Behavior] that should be performed when the user interacts with the call to action.
16
- */
17
- behavior: Behavior;
18
- };
19
- //# sourceMappingURL=CollectionLayoutCallToAction.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayoutCallToAction.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayoutCallToAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG;IACzC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,QAAQ,CAAC;CACpB,CAAC"}
@@ -1,6 +0,0 @@
1
- import type { CollectionLayoutSelectFilter } from './CollectionLayoutSelectFilter';
2
- /**
3
- * A filter for a collection. All filter variants share a base shape and are distinguished by [type].
4
- */
5
- export type CollectionLayoutFilter = CollectionLayoutSelectFilter;
6
- //# sourceMappingURL=CollectionLayoutFilter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayoutFilter.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayoutFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAElF;;EAEE;AACF,MAAM,MAAM,sBAAsB,GAAG,4BAA4B,CAAC"}
@@ -1,56 +0,0 @@
1
- import type { Behavior } from '../feature/Behavior';
2
- import type { CollectionLayoutCallToAction } from './CollectionLayoutCallToAction';
3
- import type { AdditionalInfo } from '../misc/AdditionalInfo';
4
- import type { SupportingValues } from '../misc/SupportingValues';
5
- import type { InlineAlert } from '../misc/InlineAlert';
6
- import type { Media } from '../misc/media/Media';
7
- /**
8
- * A single item in a [Section].
9
- */
10
- export type CollectionLayoutItem = {
11
- /**
12
- * A user-facing title.
13
- */
14
- title: string;
15
- /**
16
- * A user-facing description.
17
- */
18
- description?: string;
19
- /**
20
- * If `true`, user interaction is disabled. Defaults to `false`.
21
- */
22
- disabled?: boolean;
23
- /**
24
- * Behavior to be performed when the item is pressed.
25
- */
26
- primaryBehavior?: Behavior;
27
- /**
28
- * An optional call to action which can be performed by the user.
29
- */
30
- callToAction?: CollectionLayoutCallToAction;
31
- /**
32
- * Additional information to be displayed to the user, with optional interactivity.
33
- */
34
- additionalInfo?: AdditionalInfo;
35
- /**
36
- * Two user-facing values, one being clearly more important than the other.
37
- */
38
- supportingValues?: SupportingValues;
39
- /**
40
- * An alert displayed inline with the item.
41
- */
42
- inlineAlert?: InlineAlert;
43
- /**
44
- * A media object (avatar, icon, image) to represent the item.
45
- */
46
- media?: Media;
47
- /**
48
- * An optional identifier to be used in analytics tracking.
49
- */
50
- analyticsId?: string;
51
- /**
52
- * An optional list of identifiers used to configure renderers.
53
- */
54
- tags?: string[];
55
- };
56
- //# sourceMappingURL=CollectionLayoutItem.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayoutItem.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayoutItem.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAClF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAA;AAChE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAA;AACtD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAA;AAEhD;;EAEE;AACF,MAAM,MAAM,oBAAoB,GAAG;IAC/B;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;MAEE;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB;;MAEE;IACF,eAAe,CAAC,EAAE,QAAQ,CAAC;IAC3B;;MAEE;IACF,YAAY,CAAC,EAAE,4BAA4B,CAAC;IAC5C;;MAEE;IACF,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC;;MAEE;IACF,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC;;MAEE;IACF,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B;;MAEE;IACF,KAAK,CAAC,EAAE,KAAK,CAAC;IACd;;MAEE;IACF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;MAEE;IACF,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB,CAAC"}
@@ -1,18 +0,0 @@
1
- /**
2
- * Configuration for a search text input displayed above the list.
3
- */
4
- export type CollectionLayoutSearch = {
5
- /**
6
- * The query/body parameter name sent in the request.
7
- */
8
- param: string;
9
- /**
10
- * A user-facing title displayed as a label for the search field.
11
- */
12
- title?: string;
13
- /**
14
- * Placeholder text shown in the search input field.
15
- */
16
- hint?: string;
17
- };
18
- //# sourceMappingURL=CollectionLayoutSearch.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayoutSearch.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayoutSearch.ts"],"names":[],"mappings":"AAAA;;EAEE;AACF,MAAM,MAAM,sBAAsB,GAAG;IACjC;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;MAEE;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { CollectionLayoutItem } from './CollectionLayoutItem';
2
- import type { CollectionLayoutCallToAction } from './CollectionLayoutCallToAction';
3
- /**
4
- * A section within a collection, containing a group of items with an optional header.
5
- */
6
- export type CollectionLayoutSection = {
7
- /**
8
- * A stable identifier for the section. Used for merging during pagination.
9
- */
10
- id: string;
11
- /**
12
- * The items in this section.
13
- */
14
- items: CollectionLayoutItem[];
15
- /**
16
- * A user-facing title for the section header.
17
- */
18
- title?: string;
19
- /**
20
- * An optional call to action displayed in the section header.
21
- */
22
- callToAction?: CollectionLayoutCallToAction;
23
- };
24
- //# sourceMappingURL=CollectionLayoutSection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayoutSection.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayoutSection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAA;AAClE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAA;AAElF;;EAEE;AACF,MAAM,MAAM,uBAAuB,GAAG;IAClC;;MAEE;IACF,EAAE,EAAE,MAAM,CAAC;IACX;;MAEE;IACF,KAAK,EAAE,oBAAoB,EAAE,CAAC;IAC9B;;MAEE;IACF,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;MAEE;IACF,YAAY,CAAC,EAAE,4BAA4B,CAAC;CAC/C,CAAC"}
@@ -1,24 +0,0 @@
1
- import type { SelectFilterOption } from './SelectFilterOption';
2
- /**
3
- * A select filter rendered as a chip bar above the list. By default, exactly one option can be selected.
4
- * When [multiSelect] is `true`, multiple options may be selected simultaneously.
5
- */
6
- export type CollectionLayoutSelectFilter = {
7
- /**
8
- * It must be `select`.
9
- */
10
- type: 'select';
11
- /**
12
- * The query/body parameter name sent in the request.
13
- */
14
- param: string;
15
- /**
16
- * The available options.
17
- */
18
- options: SelectFilterOption[];
19
- /**
20
- * Whether multiple options can be selected simultaneously. Defaults to `false` (single-select).
21
- */
22
- multiSelect?: boolean;
23
- };
24
- //# sourceMappingURL=CollectionLayoutSelectFilter.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayoutSelectFilter.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayoutSelectFilter.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D;;;EAGE;AACF,MAAM,MAAM,4BAA4B,GAAG;IACvC;;MAEE;IACF,IAAI,EAAE,QAAQ,CAAC;IACf;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAC9B;;MAEE;IACF,WAAW,CAAC,EAAE,OAAO,CAAC;CACzB,CAAC"}
@@ -1,30 +0,0 @@
1
- import type { CollectionLayoutSection } from './CollectionLayoutSection';
2
- import type { CollectionLayoutFilter } from './CollectionLayoutFilter';
3
- import type { Layout } from './Layout';
4
- /**
5
- * Represents a collection with visible sections and an optional pagination cursor.
6
- */
7
- export type CollectionLayoutState = {
8
- /**
9
- * The sections of items to display. A list with a single section (without a title) behaves as an ungrouped list.
10
- */
11
- sections: CollectionLayoutSection[];
12
- /**
13
- * An opaque cursor value the client sends back when requesting the next page.
14
- * A nullish value indicate there are no more pages.
15
- */
16
- nextCursor?: string;
17
- /**
18
- * An array of filter definitions.
19
- */
20
- filters?: CollectionLayoutFilter[];
21
- /**
22
- * A list of layouts to show before the [sections]
23
- */
24
- beforeSections?: Layout[];
25
- /**
26
- * A list of layouts to show after the [sections]
27
- */
28
- afterSections?: Layout[];
29
- };
30
- //# sourceMappingURL=CollectionLayoutState.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"CollectionLayoutState.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/CollectionLayoutState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,2BAA2B,CAAA;AACxE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,0BAA0B,CAAA;AACtE,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AAEtC;;EAEE;AACF,MAAM,MAAM,qBAAqB,GAAG;IAChC;;MAEE;IACF,QAAQ,EAAE,uBAAuB,EAAE,CAAC;IACpC;;;MAGE;IACF,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;MAEE;IACF,OAAO,CAAC,EAAE,sBAAsB,EAAE,CAAC;IACnC;;MAEE;IACF,cAAc,CAAC,EAAE,MAAM,EAAE,CAAC;IAC1B;;MAEE;IACF,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"ItemCallToAction.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/ItemCallToAction.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAA;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAA;AAE9C;;EAEE;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;MAEE;IACF,QAAQ,EAAE,QAAQ,CAAC;IACnB;;MAEE;IACF,OAAO,CAAC,EAAE,OAAO,CAAC;CACrB,CAAC"}
@@ -1,22 +0,0 @@
1
- /**
2
- * An option within a [SelectFilter].
3
- */
4
- export type SelectFilterOption = {
5
- /**
6
- * The value sent in the request when selected.
7
- */
8
- value: string;
9
- /**
10
- * The user-facing label.
11
- */
12
- title: string;
13
- /**
14
- * A description of the filter to be used by screen readers.
15
- */
16
- accessibilityDescription?: string;
17
- /**
18
- * Whether this option is initially selected. Defaults to `false`.
19
- */
20
- selected?: boolean;
21
- };
22
- //# sourceMappingURL=SelectFilterOption.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"SelectFilterOption.d.ts","sourceRoot":"","sources":["../../../src/spec/layout/SelectFilterOption.ts"],"names":[],"mappings":"AAAA;;EAEE;AACF,MAAM,MAAM,kBAAkB,GAAG;IAC7B;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,wBAAwB,CAAC,EAAE,MAAM,CAAC;IAClC;;MAEE;IACF,QAAQ,CAAC,EAAE,OAAO,CAAC;CACtB,CAAC"}
@@ -1,7 +0,0 @@
1
- import type { AvatarTextContent } from './AvatarTextContent';
2
- import type { AvatarUriContent } from './AvatarUriContent';
3
- /**
4
- * Describes the properties of a visual asset. It can be one of two mutually exclusive types: URI or Text.
5
- */
6
- export type AvatarContent = AvatarTextContent | AvatarUriContent;
7
- //# sourceMappingURL=AvatarContent.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarContent.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/AvatarContent.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAE1D;;EAEE;AACF,MAAM,MAAM,aAAa,GAAG,iBAAiB,GAAG,gBAAgB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarTextContent.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/AvatarTextContent.ts"],"names":[],"mappings":"AAAA;;EAEE;AACF,MAAM,MAAM,iBAAiB,GAAG;IAC5B;;MAEE;IACF,IAAI,EAAE,MAAM,CAAC;IACb;;MAEE;IACF,IAAI,EAAE,MAAM,CAAC;IACb;;MAEE;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"AvatarUriContent.d.ts","sourceRoot":"","sources":["../../../../src/spec/misc/media/AvatarUriContent.ts"],"names":[],"mappings":"AAAA;;EAEE;AACF,MAAM,MAAM,gBAAgB,GAAG;IAC3B;;MAEE;IACF,IAAI,EAAE,KAAK,CAAC;IACZ;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ;;MAEE;IACF,QAAQ,CAAC,EAAE,MAAM,CAAC;CACrB,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"SearchSearchRequest.d.ts","sourceRoot":"","sources":["../../../../src/spec/responses/search/SearchSearchRequest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAA;AAEvD;;EAEE;AACF,MAAM,MAAM,mBAAmB,GAAG;IAC9B;;MAEE;IACF,GAAG,EAAE,MAAM,CAAC;IACZ;;MAEE;IACF,MAAM,EAAE,UAAU,CAAC;IACnB;;;;MAIE;IACF,KAAK,EAAE,MAAM,CAAC;IACd;;MAEE;IACF,KAAK,EAAE,MAAM,CAAC;CACjB,CAAC"}