@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.
- package/CHANGELOG.md +80 -0
- package/README.md +39 -0
- package/dist/components/app-switcher/html.d.ts +2 -2
- package/dist/components/asset-input/html.d.ts +70 -0
- package/dist/components/asset-input/html.js +1549 -0
- package/dist/components/asset-input/index.d.ts +280 -0
- package/dist/components/asset-input/react.d.ts +32 -0
- package/dist/components/asset-input/react.js +2269 -0
- package/dist/components/asset-input/schema.d.ts +93 -0
- package/dist/components/asset-input/upload.d.ts +15 -0
- package/dist/components/asset-table/html.d.ts +110 -0
- package/dist/components/asset-table/html.js +4934 -0
- package/dist/components/asset-table/index.d.ts +225 -0
- package/dist/components/asset-table/react.d.ts +21 -0
- package/dist/components/asset-table/react.js +8241 -0
- package/dist/components/asset-table/schema.d.ts +73 -0
- package/dist/components/audit-log-table/classes.d.ts +1 -0
- package/dist/components/audit-log-table/html.d.ts +158 -0
- package/dist/components/audit-log-table/html.js +3294 -0
- package/dist/components/audit-log-table/index.d.ts +37 -0
- package/dist/components/audit-log-table/react.d.ts +3 -51
- package/dist/components/audit-log-table/react.js +130 -89
- package/dist/components/audit-log-table/schema.d.ts +122 -0
- package/dist/components/danger-confirmation/html.d.ts +2 -2
- package/dist/components/danger-confirmation/index.d.ts +2 -2
- package/dist/components/data-table/classes.d.ts +3 -0
- package/dist/components/data-table/html.d.ts +70 -12
- package/dist/components/data-table/html.js +56 -19
- package/dist/components/data-table/index.d.ts +51 -1
- package/dist/components/data-table/react.d.ts +1 -0
- package/dist/components/data-table/react.js +46 -16
- package/dist/components/data-table/schema.d.ts +93 -3
- package/dist/components/docs/html.js +22 -4
- package/dist/components/docs/react.js +33 -2
- package/dist/components/editable-text/html.d.ts +2 -2
- package/dist/components/editable-text/index.d.ts +4 -4
- package/dist/components/effect-form/react.js +343 -138
- package/dist/components/email-editor/legacy-editor.html.d.ts +6 -6
- package/dist/components/file-input/classes.d.ts +1 -1
- package/dist/components/file-input/file-type.d.ts +1 -0
- package/dist/components/file-input/html.d.ts +8 -1
- package/dist/components/file-input/html.js +170 -12
- package/dist/components/file-input/index.d.ts +1 -0
- package/dist/components/file-input/react.d.ts +9 -1
- package/dist/components/file-input/react.js +277 -127
- package/dist/components/file-input/schema.d.ts +1 -0
- package/dist/components/form/react.js +343 -138
- package/dist/components/icon-input/html.js +19 -5
- package/dist/components/icon-input/react.js +70 -13
- package/dist/components/map-menu/html.d.ts +6 -0
- package/dist/components/map-menu/html.js +13 -8
- package/dist/components/map-menu/index.d.ts +5 -4
- package/dist/components/map-menu/react.d.ts +28 -17
- package/dist/components/map-menu/react.js +84 -178
- package/dist/components/map-menu/schema.d.ts +6 -0
- package/dist/components/map-menu/shared.d.ts +4 -0
- package/dist/components/permissions-input/classes.d.ts +8 -0
- package/dist/components/permissions-input/html.d.ts +41 -0
- package/dist/components/permissions-input/html.js +130 -0
- package/dist/components/permissions-input/index.d.ts +80 -0
- package/dist/components/permissions-input/react.d.ts +7 -0
- package/dist/components/permissions-input/react.js +201 -0
- package/dist/components/permissions-input/schema.d.ts +33 -0
- package/dist/components/phone-number-input/html.js +48 -14
- package/dist/components/phone-number-input/react.js +67 -10
- package/dist/components/search-menu/html.d.ts +2 -2
- package/dist/components/select-with-custom-input/html.d.ts +2 -2
- package/dist/components/sidebar-layout/html.d.ts +3 -2
- package/dist/components/sidebar-layout/html.js +20 -2
- package/dist/components/sidebar-layout/index.d.ts +1 -0
- package/dist/components/sidebar-layout/react.js +33 -2
- package/dist/components/switch/react.d.ts +14 -0
- package/dist/components/switch/react.js +55 -0
- package/dist/components/theme-switcher/html.d.ts +2 -2
- package/dist/components/time-input/html.d.ts +2 -2
- package/dist/components/timezone-input/html.js +48 -14
- package/dist/components/timezone-input/react.js +67 -10
- package/dist/components/tracking-notice/classes.d.ts +6 -0
- package/dist/components/tracking-notice/html.d.ts +85 -0
- package/dist/components/tracking-notice/html.js +354 -0
- package/dist/components/tracking-notice/index.d.ts +95 -0
- package/dist/components/tracking-notice/react.d.ts +5 -27
- package/dist/components/tracking-notice/react.js +189 -59
- package/dist/components/tracking-notice/schema.d.ts +45 -0
- package/dist/components/upload-attachment/classes.d.ts +3 -2
- package/dist/components/upload-attachment/html.d.ts +5 -5
- package/dist/components/upload-attachment/html.js +7 -5
- package/dist/components/upload-attachment/react.d.ts +3 -1
- package/dist/components/upload-attachment/react.js +25 -17
- package/dist/components/virtualized-combobox/classes.d.ts +12 -0
- package/dist/components/virtualized-combobox/html.d.ts +42 -0
- package/dist/components/virtualized-combobox/html.js +48 -14
- package/dist/components/virtualized-combobox/index.d.ts +55 -4
- package/dist/components/virtualized-combobox/react.d.ts +6 -2
- package/dist/components/virtualized-combobox/react.js +67 -10
- package/dist/components/virtualized-combobox/schema.d.ts +60 -4
- package/dist/components/webhook-delivery-table/html.js +56 -19
- package/dist/components/webhook-delivery-table/react.js +46 -16
- package/dist/lib/access/index.d.ts +61 -0
- package/dist/lib/access/index.js +92 -0
- package/dist/lib/access/table/classes.d.ts +13 -0
- package/dist/lib/access/table/html.d.ts +39 -0
- package/dist/lib/access/table/html.js +157 -0
- package/dist/lib/access/table/index.d.ts +32 -0
- package/dist/lib/access/table/react.d.ts +3 -0
- package/dist/lib/access/table/react.js +195 -0
- package/dist/lib/access/table/schema.d.ts +43 -0
- package/dist/lib/docs.integrations.server.js +23 -1
- package/dist/lib/docs.js +33 -2
- package/dist/lib/docs.server.js +29 -2
- package/dist/lib/documentation-toolkit.js +23 -1
- package/dist/lib/effect-ui-adapter/use-model.d.ts +1 -1
- package/dist/lib/effect-ui-adapter/use-model.js +19 -11
- package/dist/lib/lucide-effect.d.ts +19 -19
- package/dist/lib/lucide-effect.js +38 -38
- package/dist/services/assets/library.d.ts +221 -0
- package/dist/services/assets/schema.d.ts +3 -0
- package/dist/services/assets/url.d.ts +12 -0
- package/dist/services/assets/use-library.d.ts +20 -0
- package/dist/services/events/browser.js +39 -26
- package/dist/services/events/index.js +23 -19
- package/dist/services/opentelemetry/web-vitals.js +27 -23
- package/package.json +21 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,75 @@
|
|
|
1
1
|
# @krak-stack/registry
|
|
2
2
|
|
|
3
|
+
## 0.11.9
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- bac7f20: Add a headless Access registry item and separate React and Effect UI HTML source installs for Access Table. The table renders role grants and optional API-key permissions from a project access definition. Package imports are `@krak-stack/registry/access/table/react` and `/html`.
|
|
8
|
+
- bac7f20: Keep keyboard focus visible on attachment action buttons without outlining the surrounding attachment or clipping the ring in scrolling lists.
|
|
9
|
+
- 386a549: Add built-in Download and Copy link actions and show image thumbnails beside filenames in the React and Effect UI HTML Asset Table. Set a stable, authorized `url` on each row, or keep handling actions in the app.
|
|
10
|
+
|
|
11
|
+
Effect UI HTML Data Table row actions accept an optional icon renderer, which Asset Table uses to match the React row menu icons.
|
|
12
|
+
- bac7f20: Refresh managed image thumbnails after an asset is replaced without changing its shared link. Show image thumbnails in selected Asset Input attachments.
|
|
13
|
+
|
|
14
|
+
Show local image thumbnails in the upload dialog, both before upload and during progress.
|
|
15
|
+
- 386a549: Move the React and Effect UI HTML implementations of Asset Input and Asset Table into the Assets package. Both packages build from that source, so existing registry imports and source installs keep working.
|
|
16
|
+
- bac7f20: Expose project roles, permission policies, and `CurrentActor` through `@krak-stack/registry/access`, without coupling reusable services to an authentication provider. Assets reads the verified request actor directly and ships a standalone `AssetsAccess` role definition. `Assets.apiLayer()` uses those grants by default and accepts an explicit permission matrix for existing projects.
|
|
17
|
+
|
|
18
|
+
Compose Registry access definitions with `.merge(AssetsAccess)`. Matching role names gain the incoming grants without replacing existing grants or importing new roles. Override role matches when the names differ.
|
|
19
|
+
|
|
20
|
+
Mount an authorized asset list and stable file redirects through `Assets.apiLayer`, with a typed `AssetsApi` contract.
|
|
21
|
+
|
|
22
|
+
Expose a typed HTTP client at `@krak-stack/assets/client` and the opt-in `AssetList` Query at `@krak-stack/assets/queries`. List-only callers receive metadata without file URLs.
|
|
23
|
+
|
|
24
|
+
Export `assetWorkflowsLayer` to register document processing and upload scanning together on the application's workflow engine.
|
|
25
|
+
|
|
26
|
+
Complete browser uploads using the reserved asset ID, with a separate attempt ID only for replacements. Poll upload status on the asset URL, and open or download the file using its stable `url`. Organization asset statistics are computed in PostgreSQL.
|
|
27
|
+
|
|
28
|
+
Consolidate asset listing and organization-wide stats into `GET /api/assets`. The route returns all matching assets without server-side pagination.
|
|
29
|
+
|
|
30
|
+
Start uploads at `POST /api/assets`, fetch details at `GET /api/assets/:assetId`, and search or read document chunks at `GET /api/assets/:assetId/chunks`. HTTP clients use chunk IDs instead of processing IDs.
|
|
31
|
+
|
|
32
|
+
Move asset authoring HTTP handlers into the package: document retrieval, statistics, scanned uploads, replacement, and bulk deletion. Upload intents bind actor, organization, and replacement target. Export browser transport and mutation Commands through `@krak-stack/assets/commands`.
|
|
33
|
+
- 386a549: Add built-in image, icon, and description support for virtualized combobox options in React and Effect UI HTML. Asset Input now uses the built-in option layout.
|
|
34
|
+
- 386a549: Add Effect UI HTML versions of Asset Input and Asset Table. Share upload staging, progress, cancellation and publication retry between React and Effect UI, while keeping transport and asset selection application-owned.
|
|
35
|
+
|
|
36
|
+
Keep publication retries isolated to their upload job, preserve cancellation when the HTML field is disabled, and match the React asset picker’s trigger and option alignment.
|
|
37
|
+
- 386a549: Show a rounded progress bar that fills the remaining space beside the Uploading label in React and Effect UI HTML attachments.
|
|
38
|
+
|
|
39
|
+
Restore the default Effect UI HTML attachment icons when no custom file icon is supplied.
|
|
40
|
+
- bac7f20: Add a controlled Permissions Input for React and Effect UI HTML. Hosts supply grouped, assignable permissions and receive selection changes without coupling the picker to an authentication provider.
|
|
41
|
+
- 386a549: Use the same default Data Table row height and separators in React and Effect UI HTML. Override them with `classes.row` on either renderer.
|
|
42
|
+
- 504c0e3: Center the active navigation link when Sidebar Layout opens without scrolling the page or re-centering on every navigation.
|
|
43
|
+
|
|
44
|
+
## 0.11.8
|
|
45
|
+
|
|
46
|
+
### Patch Changes
|
|
47
|
+
|
|
48
|
+
- a1f54d4: Use matching file-type icons in File Input, the asset picker, selected attachments, and upload dialogs. Recognize more formats, including archives, presentations, code, fonts, and ebooks.
|
|
49
|
+
- 03de257: Show only the attachment and its remove control after a single file is selected in File Input. Removing the file restores the picker.
|
|
50
|
+
- 03de257: Add React Asset Input and Asset Table components for selecting, browsing, and uploading files with application-owned transport and publication.
|
|
51
|
+
|
|
52
|
+
Asset Input supports drag-and-drop, local file selection, and choosing an existing asset from attachment cards in one control. It displays the selected asset as a removable attachment.
|
|
53
|
+
|
|
54
|
+
- a1f54d4: Keep long filenames from widening Asset Input previews and upload dialogs.
|
|
55
|
+
- ac36f9a: Allow map visibility, confirmation actions, and browser location to be configured independently.
|
|
56
|
+
|
|
57
|
+
## 0.11.7
|
|
58
|
+
|
|
59
|
+
### Patch Changes
|
|
60
|
+
|
|
61
|
+
- 176df1a: Add an Effect UI HTML Tracking Notice with the same analytics preferences and browser privacy protections as the React version.
|
|
62
|
+
|
|
63
|
+
Share the consent subscription and save command between both renderers.
|
|
64
|
+
|
|
65
|
+
- 176df1a: Show the result count in a sticky footer in React and Effect UI HTML data tables when pagination controls are not shown.
|
|
66
|
+
- 4ff6d8a: Add a React Switch with rectangular and rounded shapes and optional localized on/off text.
|
|
67
|
+
- 176df1a: Let the audit log table fill the available height, with scrollable rows and pagination below them.
|
|
68
|
+
|
|
69
|
+
Add an Effect UI HTML audit log table with the same localized columns and server pagination.
|
|
70
|
+
|
|
71
|
+
- 176df1a: Verify that analytics preference changes are saved to the cookie before reporting success, and use a single consent read when checking whether analytics was accepted before navigation.
|
|
72
|
+
|
|
3
73
|
## 0.11.6
|
|
4
74
|
|
|
5
75
|
### Patch Changes
|
|
@@ -7,6 +77,7 @@
|
|
|
7
77
|
- Add an opt-in badge display for text columns in React and Effect UI data tables. Badges support configurable labels, leading icons, and variants, and filter and export by their original values.
|
|
8
78
|
|
|
9
79
|
List columns can also display each item as a badge. Read-only Effect UI lists open a dropdown even when every item fits in the cell.
|
|
80
|
+
|
|
10
81
|
- Keep boolean cells as checkboxes in Effect UI tables with row activation, and match inset cell focus styling across React and Effect UI.
|
|
11
82
|
- Expose the collapsed icon state to HTML sidebar headers so organization switchers use their compact styling.
|
|
12
83
|
|
|
@@ -17,6 +88,7 @@
|
|
|
17
88
|
- 72c4875: Use the consumer's shadcn and Effect 4.2-compatible effectcn primitives instead of bundling or installing them. Supply the primitives used by your features at `@/components/ui` or `@/components/effectcn` and configure your bundler to resolve those aliases from npm UI imports.
|
|
18
89
|
|
|
19
90
|
The `@krak-stack/select` item and the `@krak-stack/registry/select` and `@krak-stack/registry/effectcn/form` exports have been removed. Import the equivalent primitives from your app; existing installed copies can remain in place.
|
|
91
|
+
|
|
20
92
|
- 72c4875: Match AppBrand padding in the expanded Effect UI and React sidebars while keeping the brand icon visible in the collapsed rail.
|
|
21
93
|
- 72c4875: Show boolean and list filter choices directly in Effect UI data table submenus, and display the active filter count in a badge.
|
|
22
94
|
- 72c4875: Add React and Effect UI documentation layouts and article shells with shared search behavior and a shared props schema.
|
|
@@ -60,10 +132,12 @@
|
|
|
60
132
|
Place search and the menubar inline when space permits, and wrap the toolbar and menu controls on narrow tables.
|
|
61
133
|
|
|
62
134
|
Keep the HTML bulk-action count and targeted rows in sync, move rows between groups when dropped onto a row or card, and request the last valid server page when the current page disappears.
|
|
135
|
+
|
|
63
136
|
- bc3aeab: Keep React DataTable hydration consistent when saved preferences load early, and keep the table mounted while preferences are being saved.
|
|
64
137
|
- 241f843: Use the same Effect UI model for React and HTML DataTable state and saved preferences. Existing React query callbacks and saved browser preferences continue to work.
|
|
65
138
|
|
|
66
139
|
Both renderers also share the row-processing pipeline. Current-page exports now match the rows shown when client-side grouping turns pagination off.
|
|
140
|
+
|
|
67
141
|
- be6c9c6: Rename `DatePicker` to `DateInput` and replace the `date-picker` registry and package paths with `date-input`. The calendar and clear buttons sit inside the field in React and Effect UI HTML and accept overrides through `actionClassName`.
|
|
68
142
|
- be6c9c6: Rename Cron Expression Editor to Cron Input. Use the `CronInput` export from `@krak-stack/registry/cron-input/react` or `@krak-stack/registry/cron-input/html`, and `@krak-stack/cron-input` or `@krak-stack/cron-input-html` for shadcn installs. The docs moved to `/docs/cron-input`. Both renderers use Effect's built-in `Cron` module. The input still accepts five fields, but previews now follow Effect's cron semantics. Check schedules that combine wildcard steps in one day field with a restricted other day field, or use `cron-parser` extensions such as `L` and `#`.
|
|
69
143
|
- Fix source installs under custom component aliases and keep HTML-only registry installs free of React. Preserve the existing Support, Danger Confirmation, Events, and Webhooks React imports. Restore the published React Select defaults and the Map Menu 50 Km preset, and focus the search field when the HTML Search Menu opens. Notifications inbox and administration components now declare the registry version that provides their renderer imports.
|
|
@@ -75,6 +149,7 @@
|
|
|
75
149
|
- 6cc75d9: Add controlled Pagination for Effect UI HTML, with shared React and HTML props, localization, and page-navigation rules.
|
|
76
150
|
|
|
77
151
|
Hide the page number and disable page navigation when there are no pages.
|
|
152
|
+
|
|
78
153
|
- d070a0a: Add Effect UI HTML renderers for more registry components, with shared prop schemas, renderer-neutral behavior where applicable, and separate React and HTML install entries. Existing React imports remain available.
|
|
79
154
|
- 3a7ae58: Let the React Effect UI adapter inherit a message log from context without adding logging props to individual components.
|
|
80
155
|
- 8f17684: Declare the optional TanStack Form Core peer used by the emitted React form types. Install it alongside TanStack React Form when consuming the form declarations.
|
|
@@ -116,12 +191,14 @@
|
|
|
116
191
|
Show Support’s inline schema errors instead of native browser validation popups in both renderers, and mark invalid controls with the theme’s destructive border color.
|
|
117
192
|
|
|
118
193
|
Show separate inline validation messages for the support message and reply email.
|
|
194
|
+
|
|
119
195
|
- 9f769d7: Move shared Support styles from the validation schemas into the component's shared entry point without changing the React or HTML views.
|
|
120
196
|
- f382af2: Use native Tiptap JSONContent and standard Tiptap extensions in RichTextEditor, without the KrakStack versioned rich-text format or conversion layer. This changes the value/onChange contract: old version 1 documents are not accepted or silently migrated.
|
|
121
197
|
|
|
122
198
|
Fix caret placement inside links and apply URL edits or removal to the full existing link.
|
|
123
199
|
|
|
124
200
|
Add Email Composer: a document-style editor using the shared RichTextEditor surface, @react-email/editor extensions, and continuous HTML/plain-text previews with escaped variable samples instead of an export button. Keep programmatic React Email export available. Deprecate the drag-and-drop Email Editor, retaining its frozen legacy document support only for existing integrations.
|
|
201
|
+
|
|
125
202
|
- 247eb93: Use shadcn/ui for React Support and Effect 4.2-compatible effectcn source for its HTML view. Use Tailwind and the app's CSS theme instead of the shared theme package. Remove the KrakStack Button, Dialog, Field, and Theme entries and the Native Button export. The Support component entry points remain available; import `@krak-stack/registry/tailwind.css` from your Tailwind entry sheet for packaged React Support.
|
|
126
203
|
- 2aeb055: Add `features.virtualization.scroll: "internal"` to fill a height-constrained flex column while keeping the toolbar and pagination outside the internal scroll area. `"page"` still scrolls with the browser, and `"table"` retains the existing height cap.
|
|
127
204
|
|
|
@@ -201,14 +278,17 @@
|
|
|
201
278
|
- Place table search alongside the menubar on wider screens, show an icon-only Filters trigger on mobile, and keep internal scroll targets clear of sticky column headers.
|
|
202
279
|
|
|
203
280
|
Match the menubar border and shadow to the search input.
|
|
281
|
+
|
|
204
282
|
- Allow virtualized tables to use page scrolling instead of an internal vertical viewport.
|
|
205
283
|
|
|
206
284
|
Keep list-cell menus from locking page scrolling and disturbing virtualized rows.
|
|
285
|
+
|
|
207
286
|
- Keep table toolbar menus non-modal so opening them does not lock page scrolling.
|
|
208
287
|
- Add opt-in DataTable row virtualization for large flat tables.
|
|
209
288
|
- Make pagination opt-in. Paginated tables default to 100 rows and offer page sizes of 20, 50, and 100.
|
|
210
289
|
|
|
211
290
|
Automatically virtualize tables with at least 100 displayed rows unless `virtualization` is set to `false`.
|
|
291
|
+
|
|
212
292
|
- Virtualize expanded group rows, place the internal scrollbar below the header, and keep the bottom divider attached to the sticky header.
|
|
213
293
|
|
|
214
294
|
## 0.10.11
|
package/README.md
CHANGED
|
@@ -158,6 +158,45 @@ To install editable source instead of importing the package, use the shadcn regi
|
|
|
158
158
|
bunx shadcn@latest add https://krakstack.net/r/data-table.json
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
+
## Server-side access
|
|
162
|
+
|
|
163
|
+
`@krak-stack/registry/access` defines project-scoped permissions, typed roles,
|
|
164
|
+
and Effect policies without an authentication provider:
|
|
165
|
+
|
|
166
|
+
```ts
|
|
167
|
+
import { defineProjectAccess } from "@krak-stack/registry/access";
|
|
168
|
+
|
|
169
|
+
const Access = defineProjectAccess({
|
|
170
|
+
project: "courses",
|
|
171
|
+
permissions: ["asset:read", "asset:delete"],
|
|
172
|
+
roles: { viewer: ["asset:read"], admin: ["asset:read", "asset:delete"] },
|
|
173
|
+
});
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
The host authenticates callers, verifies their organization and role
|
|
177
|
+
membership, and provides `CurrentActor` for the request. Use
|
|
178
|
+
`Access.permissionsForRoles(verifiedRoles)`, or supply effective grants
|
|
179
|
+
from your own provider. `withPolicy(Access.permission("asset:read"))`
|
|
180
|
+
checks the qualified grant before running an Effect; it does not verify
|
|
181
|
+
identity or check ownership of a particular record.
|
|
182
|
+
|
|
183
|
+
To include another definition’s grants, use `Access.merge(OtherAccess)`.
|
|
184
|
+
This adds grants to matching role names without changing the original
|
|
185
|
+
definition, importing new roles, or changing either permission namespace.
|
|
186
|
+
For different names, pass `{ roles: { localRole: "otherRole" } }`; use `null`
|
|
187
|
+
to skip a local role. Unspecified mappings still match by name. The host
|
|
188
|
+
uses the merged definition to compute effective grants for verified roles.
|
|
189
|
+
|
|
190
|
+
Existing `@krak-stack/auth/access` middleware provides the same context.
|
|
191
|
+
Apps already using it can keep their Auth project definitions, including
|
|
192
|
+
the Auth-specific role and API key configuration.
|
|
193
|
+
|
|
194
|
+
The `@krak-stack/access` shadcn item installs the headless library only.
|
|
195
|
+
For the optional table, install `@krak-stack/access-table` (React) or
|
|
196
|
+
`@krak-stack/access-table-html` (Effect UI HTML). The matching package imports
|
|
197
|
+
are `@krak-stack/registry/access/table/react` and
|
|
198
|
+
`@krak-stack/registry/access/table/html`.
|
|
199
|
+
|
|
161
200
|
## Find components and documentation
|
|
162
201
|
|
|
163
202
|
- [KrakStack registry and docs](https://krakstack.net): browse items, dependencies, setup and usage.
|
|
@@ -66,7 +66,7 @@ export declare const AppSwitcher: import("effect/ui/Component").Component<"AppSw
|
|
|
66
66
|
readonly badge?: string | undefined;
|
|
67
67
|
}[];
|
|
68
68
|
}, boolean, {
|
|
69
|
-
readonly _tag: "Closed";
|
|
70
|
-
} | {
|
|
71
69
|
readonly _tag: "Opened";
|
|
70
|
+
} | {
|
|
71
|
+
readonly _tag: "Closed";
|
|
72
72
|
}, never, never, Html.Elements, {}, never>;
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import { Redacted } from "effect";
|
|
2
|
+
import { AssetLibraryActions, AssetList } from "../../services/assets/library.js";
|
|
3
|
+
import { Component } from "effect/ui";
|
|
4
|
+
import { Html } from "effect/ui/html";
|
|
5
|
+
export { AssetInputEvents, RunAssetUpload, AssetUploadResult, assetUploadLayer, } from "./index.js";
|
|
6
|
+
export type { AssetPublication, AssetUploadOptions } from "./index.js";
|
|
7
|
+
export type { AssetInputSharedProps as AssetInputProps, AssetInputItem, AssetKind, } from "./schema.js";
|
|
8
|
+
export { AssetInputItemSchema } from "./schema.js";
|
|
9
|
+
export declare const AssetInput: Component.Component<"AssetInputConnection", {
|
|
10
|
+
readonly label: string;
|
|
11
|
+
readonly access?: {
|
|
12
|
+
readonly scopeKey: string;
|
|
13
|
+
readonly permissions: readonly ("create" | "delete" | "list" | "read" | "update")[];
|
|
14
|
+
} | undefined;
|
|
15
|
+
readonly replaceId?: string | undefined;
|
|
16
|
+
readonly uploadTrigger?: "button" | undefined;
|
|
17
|
+
readonly assets?: readonly {
|
|
18
|
+
readonly id: string;
|
|
19
|
+
readonly name: string;
|
|
20
|
+
readonly mimeType: string;
|
|
21
|
+
readonly url?: string | undefined;
|
|
22
|
+
readonly updatedAt?: Date | undefined;
|
|
23
|
+
}[] | undefined;
|
|
24
|
+
readonly kind?: "caption" | "document" | "image" | "video" | undefined;
|
|
25
|
+
readonly value?: string | readonly string[] | undefined;
|
|
26
|
+
readonly multiple?: boolean | undefined;
|
|
27
|
+
readonly disabled?: boolean | undefined;
|
|
28
|
+
readonly locale?: string | undefined;
|
|
29
|
+
readonly messages?: {
|
|
30
|
+
readonly [x: string]: {
|
|
31
|
+
readonly placeholder?: string | undefined;
|
|
32
|
+
readonly multiplePlaceholder?: string | undefined;
|
|
33
|
+
readonly empty?: string | undefined;
|
|
34
|
+
readonly selected?: string | undefined;
|
|
35
|
+
readonly remove?: string | undefined;
|
|
36
|
+
};
|
|
37
|
+
} | undefined;
|
|
38
|
+
readonly uploader?: {
|
|
39
|
+
readonly accept?: string | undefined;
|
|
40
|
+
readonly processingLabel?: string | undefined;
|
|
41
|
+
readonly messages?: {
|
|
42
|
+
readonly [x: string]: {
|
|
43
|
+
readonly upload?: string | undefined;
|
|
44
|
+
readonly close?: string | undefined;
|
|
45
|
+
readonly cancel?: string | undefined;
|
|
46
|
+
readonly dialogTitle?: string | undefined;
|
|
47
|
+
readonly dialogDescription?: string | undefined;
|
|
48
|
+
readonly libraryDialogTitle?: string | undefined;
|
|
49
|
+
readonly libraryDialogDescription?: string | undefined;
|
|
50
|
+
readonly uploadError?: string | undefined;
|
|
51
|
+
readonly kindError?: string | undefined;
|
|
52
|
+
readonly publishError?: string | undefined;
|
|
53
|
+
};
|
|
54
|
+
} | undefined;
|
|
55
|
+
} | undefined;
|
|
56
|
+
}, null, {
|
|
57
|
+
readonly _tag: "Changed";
|
|
58
|
+
readonly ids: readonly string[];
|
|
59
|
+
} | {
|
|
60
|
+
readonly _tag: "Published";
|
|
61
|
+
readonly assetId: string;
|
|
62
|
+
readonly file: Redacted.Redacted<File>;
|
|
63
|
+
}, {
|
|
64
|
+
readonly _tag: "Changed";
|
|
65
|
+
readonly ids: readonly string[];
|
|
66
|
+
} | {
|
|
67
|
+
readonly _tag: "Published";
|
|
68
|
+
readonly assetId: string;
|
|
69
|
+
readonly file: Redacted.Redacted<File>;
|
|
70
|
+
}, AssetLibraryActions | AssetList | import("./index.js").RunAssetUpload, Html.Elements, {}, "uploadAction">;
|