@krak-stack/registry 0.11.6 → 0.11.9

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 (123) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +39 -0
  3. package/dist/components/app-switcher/html.d.ts +2 -2
  4. package/dist/components/asset-input/html.d.ts +70 -0
  5. package/dist/components/asset-input/html.js +1549 -0
  6. package/dist/components/asset-input/index.d.ts +280 -0
  7. package/dist/components/asset-input/react.d.ts +32 -0
  8. package/dist/components/asset-input/react.js +2269 -0
  9. package/dist/components/asset-input/schema.d.ts +93 -0
  10. package/dist/components/asset-input/upload.d.ts +15 -0
  11. package/dist/components/asset-table/html.d.ts +110 -0
  12. package/dist/components/asset-table/html.js +4934 -0
  13. package/dist/components/asset-table/index.d.ts +225 -0
  14. package/dist/components/asset-table/react.d.ts +21 -0
  15. package/dist/components/asset-table/react.js +8241 -0
  16. package/dist/components/asset-table/schema.d.ts +73 -0
  17. package/dist/components/audit-log-table/classes.d.ts +1 -0
  18. package/dist/components/audit-log-table/html.d.ts +158 -0
  19. package/dist/components/audit-log-table/html.js +3294 -0
  20. package/dist/components/audit-log-table/index.d.ts +37 -0
  21. package/dist/components/audit-log-table/react.d.ts +3 -51
  22. package/dist/components/audit-log-table/react.js +130 -89
  23. package/dist/components/audit-log-table/schema.d.ts +122 -0
  24. package/dist/components/danger-confirmation/html.d.ts +2 -2
  25. package/dist/components/danger-confirmation/index.d.ts +2 -2
  26. package/dist/components/data-table/classes.d.ts +3 -0
  27. package/dist/components/data-table/html.d.ts +70 -12
  28. package/dist/components/data-table/html.js +56 -19
  29. package/dist/components/data-table/index.d.ts +51 -1
  30. package/dist/components/data-table/react.d.ts +1 -0
  31. package/dist/components/data-table/react.js +46 -16
  32. package/dist/components/data-table/schema.d.ts +93 -3
  33. package/dist/components/docs/html.js +22 -4
  34. package/dist/components/docs/react.js +33 -2
  35. package/dist/components/editable-text/html.d.ts +2 -2
  36. package/dist/components/editable-text/index.d.ts +4 -4
  37. package/dist/components/effect-form/react.js +343 -138
  38. package/dist/components/email-editor/legacy-editor.html.d.ts +6 -6
  39. package/dist/components/file-input/classes.d.ts +1 -1
  40. package/dist/components/file-input/file-type.d.ts +1 -0
  41. package/dist/components/file-input/html.d.ts +8 -1
  42. package/dist/components/file-input/html.js +170 -12
  43. package/dist/components/file-input/index.d.ts +1 -0
  44. package/dist/components/file-input/react.d.ts +9 -1
  45. package/dist/components/file-input/react.js +277 -127
  46. package/dist/components/file-input/schema.d.ts +1 -0
  47. package/dist/components/form/react.js +343 -138
  48. package/dist/components/icon-input/html.js +19 -5
  49. package/dist/components/icon-input/react.js +70 -13
  50. package/dist/components/map-menu/html.d.ts +6 -0
  51. package/dist/components/map-menu/html.js +13 -8
  52. package/dist/components/map-menu/index.d.ts +5 -4
  53. package/dist/components/map-menu/react.d.ts +28 -17
  54. package/dist/components/map-menu/react.js +84 -178
  55. package/dist/components/map-menu/schema.d.ts +6 -0
  56. package/dist/components/map-menu/shared.d.ts +4 -0
  57. package/dist/components/permissions-input/classes.d.ts +8 -0
  58. package/dist/components/permissions-input/html.d.ts +41 -0
  59. package/dist/components/permissions-input/html.js +130 -0
  60. package/dist/components/permissions-input/index.d.ts +80 -0
  61. package/dist/components/permissions-input/react.d.ts +7 -0
  62. package/dist/components/permissions-input/react.js +201 -0
  63. package/dist/components/permissions-input/schema.d.ts +33 -0
  64. package/dist/components/phone-number-input/html.js +48 -14
  65. package/dist/components/phone-number-input/react.js +67 -10
  66. package/dist/components/search-menu/html.d.ts +2 -2
  67. package/dist/components/select-with-custom-input/html.d.ts +2 -2
  68. package/dist/components/sidebar-layout/html.d.ts +3 -2
  69. package/dist/components/sidebar-layout/html.js +20 -2
  70. package/dist/components/sidebar-layout/index.d.ts +1 -0
  71. package/dist/components/sidebar-layout/react.js +33 -2
  72. package/dist/components/switch/react.d.ts +14 -0
  73. package/dist/components/switch/react.js +55 -0
  74. package/dist/components/theme-switcher/html.d.ts +2 -2
  75. package/dist/components/time-input/html.d.ts +2 -2
  76. package/dist/components/timezone-input/html.js +48 -14
  77. package/dist/components/timezone-input/react.js +67 -10
  78. package/dist/components/tracking-notice/classes.d.ts +6 -0
  79. package/dist/components/tracking-notice/html.d.ts +85 -0
  80. package/dist/components/tracking-notice/html.js +354 -0
  81. package/dist/components/tracking-notice/index.d.ts +95 -0
  82. package/dist/components/tracking-notice/react.d.ts +5 -27
  83. package/dist/components/tracking-notice/react.js +189 -59
  84. package/dist/components/tracking-notice/schema.d.ts +45 -0
  85. package/dist/components/upload-attachment/classes.d.ts +3 -2
  86. package/dist/components/upload-attachment/html.d.ts +5 -5
  87. package/dist/components/upload-attachment/html.js +7 -5
  88. package/dist/components/upload-attachment/react.d.ts +3 -1
  89. package/dist/components/upload-attachment/react.js +25 -17
  90. package/dist/components/virtualized-combobox/classes.d.ts +12 -0
  91. package/dist/components/virtualized-combobox/html.d.ts +42 -0
  92. package/dist/components/virtualized-combobox/html.js +48 -14
  93. package/dist/components/virtualized-combobox/index.d.ts +55 -4
  94. package/dist/components/virtualized-combobox/react.d.ts +6 -2
  95. package/dist/components/virtualized-combobox/react.js +67 -10
  96. package/dist/components/virtualized-combobox/schema.d.ts +60 -4
  97. package/dist/components/webhook-delivery-table/html.js +56 -19
  98. package/dist/components/webhook-delivery-table/react.js +46 -16
  99. package/dist/lib/access/index.d.ts +61 -0
  100. package/dist/lib/access/index.js +92 -0
  101. package/dist/lib/access/table/classes.d.ts +13 -0
  102. package/dist/lib/access/table/html.d.ts +39 -0
  103. package/dist/lib/access/table/html.js +157 -0
  104. package/dist/lib/access/table/index.d.ts +32 -0
  105. package/dist/lib/access/table/react.d.ts +3 -0
  106. package/dist/lib/access/table/react.js +195 -0
  107. package/dist/lib/access/table/schema.d.ts +43 -0
  108. package/dist/lib/docs.integrations.server.js +23 -1
  109. package/dist/lib/docs.js +33 -2
  110. package/dist/lib/docs.server.js +29 -2
  111. package/dist/lib/documentation-toolkit.js +23 -1
  112. package/dist/lib/effect-ui-adapter/use-model.d.ts +1 -1
  113. package/dist/lib/effect-ui-adapter/use-model.js +19 -11
  114. package/dist/lib/lucide-effect.d.ts +19 -19
  115. package/dist/lib/lucide-effect.js +38 -38
  116. package/dist/services/assets/library.d.ts +221 -0
  117. package/dist/services/assets/schema.d.ts +3 -0
  118. package/dist/services/assets/url.d.ts +12 -0
  119. package/dist/services/assets/use-library.d.ts +20 -0
  120. package/dist/services/events/browser.js +39 -26
  121. package/dist/services/events/index.js +23 -19
  122. package/dist/services/opentelemetry/web-vitals.js +27 -23
  123. package/package.json +21 -1
@@ -0,0 +1,73 @@
1
+ import { Schema } from "effect";
2
+ export declare const AssetTableItemSchema: Schema.Struct<{
3
+ readonly id: Schema.NonEmptyString;
4
+ readonly name: Schema.String;
5
+ readonly mimeType: Schema.String;
6
+ readonly byteSize: Schema.Finite;
7
+ readonly createdAt: Schema.Date;
8
+ readonly updatedAt: Schema.Date;
9
+ /** Stable, authorized file URL. Do not pass an expiring signed URL. */
10
+ readonly url: Schema.optionalKey<Schema.String>;
11
+ }>;
12
+ export type AssetTableItem = typeof AssetTableItemSchema.Type;
13
+ export declare const AssetTableMessagesSchema: Schema.$Record<Schema.String, Schema.Struct<{
14
+ readonly id: Schema.optionalKey<Schema.String>;
15
+ readonly name: Schema.optionalKey<Schema.String>;
16
+ readonly type: Schema.optionalKey<Schema.String>;
17
+ readonly size: Schema.optionalKey<Schema.String>;
18
+ readonly created: Schema.optionalKey<Schema.String>;
19
+ readonly updated: Schema.optionalKey<Schema.String>;
20
+ readonly download: Schema.optionalKey<Schema.String>;
21
+ readonly replace: Schema.optionalKey<Schema.String>;
22
+ readonly delete: Schema.optionalKey<Schema.String>;
23
+ readonly deleteSelected: Schema.optionalKey<Schema.String>;
24
+ readonly empty: Schema.optionalKey<Schema.String>;
25
+ readonly loadFailed: Schema.optionalKey<Schema.String>;
26
+ readonly deleteFailed: Schema.optionalKey<Schema.String>;
27
+ readonly title: Schema.optionalKey<Schema.String>;
28
+ readonly copyLink: Schema.optionalKey<Schema.String>;
29
+ readonly linkCopied: Schema.optionalKey<Schema.String>;
30
+ readonly copyLinkUnavailable: Schema.optionalKey<Schema.String>;
31
+ readonly close: Schema.optionalKey<Schema.String>;
32
+ }>>;
33
+ export declare const AssetTablePropsSchema: Schema.Struct<{
34
+ readonly assets: Schema.optionalKey<Schema.$Array<Schema.Struct<{
35
+ readonly id: Schema.NonEmptyString;
36
+ readonly name: Schema.String;
37
+ readonly mimeType: Schema.String;
38
+ readonly byteSize: Schema.Finite;
39
+ readonly createdAt: Schema.Date;
40
+ readonly updatedAt: Schema.Date;
41
+ /** Stable, authorized file URL. Do not pass an expiring signed URL. */
42
+ readonly url: Schema.optionalKey<Schema.String>;
43
+ }>>>;
44
+ readonly access: Schema.optionalKey<Schema.Struct<{
45
+ readonly scopeKey: Schema.NonEmptyString;
46
+ readonly permissions: Schema.$Array<Schema.Literals<readonly ["list", "read", "create", "update", "delete"]>>;
47
+ }>>;
48
+ readonly locale: Schema.optionalKey<Schema.String>;
49
+ readonly timeZone: Schema.optionalKey<Schema.String>;
50
+ readonly messages: Schema.optionalKey<Schema.$Record<Schema.String, Schema.Struct<{
51
+ readonly id: Schema.optionalKey<Schema.String>;
52
+ readonly name: Schema.optionalKey<Schema.String>;
53
+ readonly type: Schema.optionalKey<Schema.String>;
54
+ readonly size: Schema.optionalKey<Schema.String>;
55
+ readonly created: Schema.optionalKey<Schema.String>;
56
+ readonly updated: Schema.optionalKey<Schema.String>;
57
+ readonly download: Schema.optionalKey<Schema.String>;
58
+ readonly replace: Schema.optionalKey<Schema.String>;
59
+ readonly delete: Schema.optionalKey<Schema.String>;
60
+ readonly deleteSelected: Schema.optionalKey<Schema.String>;
61
+ readonly empty: Schema.optionalKey<Schema.String>;
62
+ readonly loadFailed: Schema.optionalKey<Schema.String>;
63
+ readonly deleteFailed: Schema.optionalKey<Schema.String>;
64
+ readonly title: Schema.optionalKey<Schema.String>;
65
+ readonly copyLink: Schema.optionalKey<Schema.String>;
66
+ readonly linkCopied: Schema.optionalKey<Schema.String>;
67
+ readonly copyLinkUnavailable: Schema.optionalKey<Schema.String>;
68
+ readonly close: Schema.optionalKey<Schema.String>;
69
+ }>>>;
70
+ }>;
71
+ export type AssetTableSharedProps = typeof AssetTablePropsSchema.Type;
72
+ export declare const AssetActionSchema: Schema.Literals<readonly ["download", "copyLink", "replace", "delete"]>;
73
+ export type AssetAction = typeof AssetActionSchema.Type;
@@ -0,0 +1 @@
1
+ export declare const auditTableLayout = "flex min-h-0 flex-1 flex-col";
@@ -0,0 +1,158 @@
1
+ import { Schema } from "effect";
2
+ import { Component } from "effect/ui";
3
+ import { Html } from "effect/ui/html";
4
+ export type { AuditLogMessages, AuditLogTableProps } from "./schema.js";
5
+ export { EventQuery as AuditLogQuerySchema } from "../../services/events/schema.js";
6
+ export type { EventQuery as AuditLogQuery } from "../../services/events/schema.js";
7
+ /** The host owns the query and supplies the matching server page. */
8
+ export declare const AuditLogTable: Component.Component<"AuditLogTable", {
9
+ readonly entries: readonly {
10
+ readonly eventName: string;
11
+ readonly timeUnixNano: string;
12
+ readonly observedTimeUnixNano?: string | undefined;
13
+ readonly severityNumber?: number | undefined;
14
+ readonly traceId?: string | undefined;
15
+ readonly spanId?: string | undefined;
16
+ readonly attributes: readonly {
17
+ readonly key: string;
18
+ readonly value: {
19
+ readonly [x: string]: Schema.Json;
20
+ readonly stringValue?: string | undefined;
21
+ };
22
+ }[];
23
+ }[];
24
+ readonly rowCount: number;
25
+ readonly events?: readonly {
26
+ readonly value: string;
27
+ readonly label: string;
28
+ }[] | undefined;
29
+ readonly state?: {
30
+ readonly page: number;
31
+ readonly pageSize: number;
32
+ readonly globalFilter?: string | undefined;
33
+ readonly sort?: readonly {
34
+ readonly id: string;
35
+ readonly direction: "asc" | "desc";
36
+ }[] | undefined;
37
+ readonly filters?: readonly ({
38
+ readonly id: string;
39
+ readonly kind: "number";
40
+ readonly min?: number | undefined;
41
+ readonly max?: number | undefined;
42
+ } | {
43
+ readonly id: string;
44
+ readonly kind: "date";
45
+ readonly from?: string | undefined;
46
+ readonly to?: string | undefined;
47
+ } | {
48
+ readonly id: string;
49
+ readonly kind: "text";
50
+ readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
51
+ readonly value: string;
52
+ } | {
53
+ readonly id: string;
54
+ readonly kind: "boolean";
55
+ readonly value: boolean;
56
+ } | {
57
+ readonly id: string;
58
+ readonly kind: "values";
59
+ readonly values: readonly [string, ...string[]];
60
+ })[] | undefined;
61
+ readonly eventName?: string | undefined;
62
+ } | undefined;
63
+ readonly timeZone?: string | undefined;
64
+ readonly locale?: string | undefined;
65
+ readonly messages?: {
66
+ readonly [x: string]: {
67
+ readonly title?: string | undefined;
68
+ readonly event?: string | undefined;
69
+ readonly allEvents?: string | undefined;
70
+ readonly time?: string | undefined;
71
+ readonly action?: string | undefined;
72
+ readonly target?: string | undefined;
73
+ readonly actor?: string | undefined;
74
+ readonly method?: string | undefined;
75
+ readonly actorMember?: string | undefined;
76
+ readonly impersonatedBy?: string | undefined;
77
+ readonly actorOrganization?: string | undefined;
78
+ readonly methodApiKey?: string | undefined;
79
+ readonly methodSession?: string | undefined;
80
+ readonly methodUnknown?: string | undefined;
81
+ };
82
+ } | undefined;
83
+ readonly loading?: boolean | undefined;
84
+ readonly error?: string | undefined;
85
+ readonly empty?: string | undefined;
86
+ }, null, {
87
+ readonly _tag: "StateChanged";
88
+ readonly state: {
89
+ readonly page: number;
90
+ readonly pageSize: number;
91
+ readonly globalFilter?: string | undefined;
92
+ readonly sort?: readonly {
93
+ readonly id: string;
94
+ readonly direction: "asc" | "desc";
95
+ }[] | undefined;
96
+ readonly filters?: readonly ({
97
+ readonly id: string;
98
+ readonly kind: "number";
99
+ readonly min?: number | undefined;
100
+ readonly max?: number | undefined;
101
+ } | {
102
+ readonly id: string;
103
+ readonly kind: "date";
104
+ readonly from?: string | undefined;
105
+ readonly to?: string | undefined;
106
+ } | {
107
+ readonly id: string;
108
+ readonly kind: "text";
109
+ readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
110
+ readonly value: string;
111
+ } | {
112
+ readonly id: string;
113
+ readonly kind: "boolean";
114
+ readonly value: boolean;
115
+ } | {
116
+ readonly id: string;
117
+ readonly kind: "values";
118
+ readonly values: readonly [string, ...string[]];
119
+ })[] | undefined;
120
+ readonly eventName?: string | undefined;
121
+ };
122
+ }, {
123
+ readonly _tag: "StateChanged";
124
+ readonly state: {
125
+ readonly page: number;
126
+ readonly pageSize: number;
127
+ readonly globalFilter?: string | undefined;
128
+ readonly sort?: readonly {
129
+ readonly id: string;
130
+ readonly direction: "asc" | "desc";
131
+ }[] | undefined;
132
+ readonly filters?: readonly ({
133
+ readonly id: string;
134
+ readonly kind: "number";
135
+ readonly min?: number | undefined;
136
+ readonly max?: number | undefined;
137
+ } | {
138
+ readonly id: string;
139
+ readonly kind: "date";
140
+ readonly from?: string | undefined;
141
+ readonly to?: string | undefined;
142
+ } | {
143
+ readonly id: string;
144
+ readonly kind: "text";
145
+ readonly operator: "contains" | "endsWith" | "equals" | "startsWith";
146
+ readonly value: string;
147
+ } | {
148
+ readonly id: string;
149
+ readonly kind: "boolean";
150
+ readonly value: boolean;
151
+ } | {
152
+ readonly id: string;
153
+ readonly kind: "values";
154
+ readonly values: readonly [string, ...string[]];
155
+ })[] | undefined;
156
+ readonly eventName?: string | undefined;
157
+ };
158
+ }, any, Html.Elements, {}, never>;