@krak-stack/registry 0.11.7 → 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 +54 -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/html.js +47 -13
- package/dist/components/audit-log-table/react.js +36 -12
- package/dist/components/copy-button/html.d.ts +2 -2
- package/dist/components/danger-confirmation/html.d.ts +2 -2
- package/dist/components/data-table/classes.d.ts +2 -0
- package/dist/components/data-table/html.d.ts +58 -0
- package/dist/components/data-table/html.js +47 -13
- 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 +36 -12
- package/dist/components/data-table/schema.d.ts +93 -3
- package/dist/components/date-input/html.d.ts +2 -2
- 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/editing-locale-switcher/html.d.ts +2 -2
- package/dist/components/effect-form/react.js +343 -138
- 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.d.ts +5 -5
- 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/locale-switcher/html.d.ts +2 -2
- package/dist/components/map-menu/html.d.ts +10 -4
- 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/presence-transition/index.d.ts +2 -2
- package/dist/components/search-menu/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/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/html.d.ts +4 -4
- package/dist/components/tracking-notice/index.d.ts +2 -2
- package/dist/components/upload-attachment/classes.d.ts +3 -2
- package/dist/components/upload-attachment/html.d.ts +1 -1
- 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 +45 -3
- 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 +47 -13
- package/dist/components/webhook-delivery-table/react.js +36 -12
- 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/package.json +13 -1
|
@@ -17,6 +17,25 @@ import {
|
|
|
17
17
|
Ellipsis as ellipsis,
|
|
18
18
|
FileJson as fileJson,
|
|
19
19
|
FileText as fileText,
|
|
20
|
+
FolderOpen as folderOpen,
|
|
21
|
+
Captions as captions,
|
|
22
|
+
FileArchive as fileArchive,
|
|
23
|
+
Binary as binary,
|
|
24
|
+
BookOpen as bookOpen,
|
|
25
|
+
Box as box,
|
|
26
|
+
Contact as contact,
|
|
27
|
+
Database as database,
|
|
28
|
+
Disc3 as disc3,
|
|
29
|
+
FileCode as fileCode,
|
|
30
|
+
FileTerminal as fileTerminal,
|
|
31
|
+
FileType as fileType,
|
|
32
|
+
Globe as globe,
|
|
33
|
+
Package as packageIcon,
|
|
34
|
+
Presentation as presentation,
|
|
35
|
+
FileAudio as fileAudio,
|
|
36
|
+
FileImage as fileImage,
|
|
37
|
+
FileSpreadsheet as fileSpreadsheet,
|
|
38
|
+
FileVideo as fileVideo,
|
|
20
39
|
GripVertical as gripVertical,
|
|
21
40
|
Image as image,
|
|
22
41
|
LayoutGrid as layoutGrid,
|
|
@@ -314,7 +333,6 @@ import {
|
|
|
314
333
|
BetweenVerticalStart as _lucide_BetweenVerticalStart,
|
|
315
334
|
BicepsFlexed as _lucide_BicepsFlexed,
|
|
316
335
|
Bike as _lucide_Bike,
|
|
317
|
-
Binary as _lucide_Binary,
|
|
318
336
|
Binoculars as _lucide_Binoculars,
|
|
319
337
|
Biohazard as _lucide_Biohazard,
|
|
320
338
|
Bird as _lucide_Bird,
|
|
@@ -348,7 +366,6 @@ import {
|
|
|
348
366
|
BookLock as _lucide_BookLock,
|
|
349
367
|
BookMarked as _lucide_BookMarked,
|
|
350
368
|
BookMinus as _lucide_BookMinus,
|
|
351
|
-
BookOpen as _lucide_BookOpen,
|
|
352
369
|
BookOpenCheck as _lucide_BookOpenCheck,
|
|
353
370
|
BookOpenText as _lucide_BookOpenText,
|
|
354
371
|
BookPlus as _lucide_BookPlus,
|
|
@@ -378,7 +395,6 @@ import {
|
|
|
378
395
|
BowArrow as _lucide_BowArrow,
|
|
379
396
|
BowlChopsticks as _lucide_BowlChopsticks,
|
|
380
397
|
Bowling as _lucide_Bowling,
|
|
381
|
-
Box as _lucide_Box,
|
|
382
398
|
BoxDashed as _lucide_BoxDashed,
|
|
383
399
|
BoxSelect as _lucide_BoxSelect,
|
|
384
400
|
Boxes as _lucide_Boxes,
|
|
@@ -456,7 +472,6 @@ import {
|
|
|
456
472
|
Cannabis as _lucide_Cannabis,
|
|
457
473
|
CannabisOff as _lucide_CannabisOff,
|
|
458
474
|
Cap as _lucide_Cap,
|
|
459
|
-
Captions as _lucide_Captions,
|
|
460
475
|
CaptionsOff as _lucide_CaptionsOff,
|
|
461
476
|
Car as _lucide_Car,
|
|
462
477
|
CarBattery as _lucide_CarBattery,
|
|
@@ -735,7 +750,6 @@ import {
|
|
|
735
750
|
ConciergeBell as _lucide_ConciergeBell,
|
|
736
751
|
Cone as _lucide_Cone,
|
|
737
752
|
Construction as _lucide_Construction,
|
|
738
|
-
Contact as _lucide_Contact,
|
|
739
753
|
Contact2 as _lucide_Contact2,
|
|
740
754
|
ContactRound as _lucide_ContactRound,
|
|
741
755
|
Container as _lucide_Container,
|
|
@@ -778,7 +792,6 @@ import {
|
|
|
778
792
|
Currency as _lucide_Currency,
|
|
779
793
|
Cylinder as _lucide_Cylinder,
|
|
780
794
|
Dam as _lucide_Dam,
|
|
781
|
-
Database as _lucide_Database,
|
|
782
795
|
DatabaseArrowDown as _lucide_DatabaseArrowDown,
|
|
783
796
|
DatabaseArrowUp as _lucide_DatabaseArrowUp,
|
|
784
797
|
DatabaseBackup as _lucide_DatabaseBackup,
|
|
@@ -811,7 +824,6 @@ import {
|
|
|
811
824
|
Diff as _lucide_Diff,
|
|
812
825
|
Disc as _lucide_Disc,
|
|
813
826
|
Disc2 as _lucide_Disc2,
|
|
814
|
-
Disc3 as _lucide_Disc3,
|
|
815
827
|
DiscAlbum as _lucide_DiscAlbum,
|
|
816
828
|
Divide as _lucide_Divide,
|
|
817
829
|
DivideCircle as _lucide_DivideCircle,
|
|
@@ -891,8 +903,6 @@ import {
|
|
|
891
903
|
Feather as _lucide_Feather,
|
|
892
904
|
Fence as _lucide_Fence,
|
|
893
905
|
FerrisWheel as _lucide_FerrisWheel,
|
|
894
|
-
FileArchive as _lucide_FileArchive,
|
|
895
|
-
FileAudio as _lucide_FileAudio,
|
|
896
906
|
FileAudio2 as _lucide_FileAudio2,
|
|
897
907
|
FileAxis3D as _lucide_FileAxis3D,
|
|
898
908
|
FileAxis3d as _lucide_FileAxis3d,
|
|
@@ -911,7 +921,6 @@ import {
|
|
|
911
921
|
FileCheck2 as _lucide_FileCheck2,
|
|
912
922
|
FileCheckCorner as _lucide_FileCheckCorner,
|
|
913
923
|
FileClock as _lucide_FileClock,
|
|
914
|
-
FileCode as _lucide_FileCode,
|
|
915
924
|
FileCode2 as _lucide_FileCode2,
|
|
916
925
|
FileCodeCorner as _lucide_FileCodeCorner,
|
|
917
926
|
FileCog as _lucide_FileCog,
|
|
@@ -924,7 +933,6 @@ import {
|
|
|
924
933
|
FileExclamationPoint as _lucide_FileExclamationPoint,
|
|
925
934
|
FileHeadphone as _lucide_FileHeadphone,
|
|
926
935
|
FileHeart as _lucide_FileHeart,
|
|
927
|
-
FileImage as _lucide_FileImage,
|
|
928
936
|
FileInput as _lucide_FileInput,
|
|
929
937
|
FileJson2 as _lucide_FileJson2,
|
|
930
938
|
FileKey as _lucide_FileKey,
|
|
@@ -953,16 +961,12 @@ import {
|
|
|
953
961
|
FileSignal as _lucide_FileSignal,
|
|
954
962
|
FileSignature as _lucide_FileSignature,
|
|
955
963
|
FileSliders as _lucide_FileSliders,
|
|
956
|
-
FileSpreadsheet as _lucide_FileSpreadsheet,
|
|
957
964
|
FileStack as _lucide_FileStack,
|
|
958
965
|
FileSymlink as _lucide_FileSymlink,
|
|
959
|
-
FileTerminal as _lucide_FileTerminal,
|
|
960
966
|
FileTextSparkles as _lucide_FileTextSparkles,
|
|
961
|
-
FileType as _lucide_FileType,
|
|
962
967
|
FileType2 as _lucide_FileType2,
|
|
963
968
|
FileTypeCorner as _lucide_FileTypeCorner,
|
|
964
969
|
FileUser as _lucide_FileUser,
|
|
965
|
-
FileVideo as _lucide_FileVideo,
|
|
966
970
|
FileVideo2 as _lucide_FileVideo2,
|
|
967
971
|
FileVideoCamera as _lucide_FileVideoCamera,
|
|
968
972
|
FileVolume as _lucide_FileVolume,
|
|
@@ -1024,7 +1028,6 @@ import {
|
|
|
1024
1028
|
FolderLock as _lucide_FolderLock,
|
|
1025
1029
|
FolderMinus as _lucide_FolderMinus,
|
|
1026
1030
|
FolderNetwork as _lucide_FolderNetwork,
|
|
1027
|
-
FolderOpen as _lucide_FolderOpen,
|
|
1028
1031
|
FolderOpenDot as _lucide_FolderOpenDot,
|
|
1029
1032
|
FolderOutput as _lucide_FolderOutput,
|
|
1030
1033
|
FolderPen as _lucide_FolderPen,
|
|
@@ -1100,7 +1103,6 @@ import {
|
|
|
1100
1103
|
GitPullRequestDraft as _lucide_GitPullRequestDraft,
|
|
1101
1104
|
GlassWater as _lucide_GlassWater,
|
|
1102
1105
|
Glasses as _lucide_Glasses,
|
|
1103
|
-
Globe as _lucide_Globe,
|
|
1104
1106
|
Globe2 as _lucide_Globe2,
|
|
1105
1107
|
GlobeBan as _lucide_GlobeBan,
|
|
1106
1108
|
GlobeCheck as _lucide_GlobeCheck,
|
|
@@ -1583,7 +1585,6 @@ import {
|
|
|
1583
1585
|
Orbit as _lucide_Orbit,
|
|
1584
1586
|
Origami as _lucide_Origami,
|
|
1585
1587
|
Outdent as _lucide_Outdent,
|
|
1586
|
-
Package as _lucide_Package,
|
|
1587
1588
|
Package2 as _lucide_Package2,
|
|
1588
1589
|
PackageArrowBendUpLeft as _lucide_PackageArrowBendUpLeft,
|
|
1589
1590
|
PackageCheck as _lucide_PackageCheck,
|
|
@@ -1719,7 +1720,6 @@ import {
|
|
|
1719
1720
|
PowerCircle as _lucide_PowerCircle,
|
|
1720
1721
|
PowerOff as _lucide_PowerOff,
|
|
1721
1722
|
PowerSquare as _lucide_PowerSquare,
|
|
1722
|
-
Presentation as _lucide_Presentation,
|
|
1723
1723
|
Printer as _lucide_Printer,
|
|
1724
1724
|
Printer3D as _lucide_Printer3D,
|
|
1725
1725
|
Printer3d as _lucide_Printer3d,
|
|
@@ -2518,6 +2518,25 @@ var EyeOff = /* @__PURE__ */ createLucideIcon(eyeOff);
|
|
|
2518
2518
|
var Ellipsis = /* @__PURE__ */ createLucideIcon(ellipsis);
|
|
2519
2519
|
var FileJson = /* @__PURE__ */ createLucideIcon(fileJson);
|
|
2520
2520
|
var FileText = /* @__PURE__ */ createLucideIcon(fileText);
|
|
2521
|
+
var FolderOpen = /* @__PURE__ */ createLucideIcon(folderOpen);
|
|
2522
|
+
var Captions = /* @__PURE__ */ createLucideIcon(captions);
|
|
2523
|
+
var FileArchive = /* @__PURE__ */ createLucideIcon(fileArchive);
|
|
2524
|
+
var Binary = /* @__PURE__ */ createLucideIcon(binary);
|
|
2525
|
+
var BookOpen = /* @__PURE__ */ createLucideIcon(bookOpen);
|
|
2526
|
+
var Box = /* @__PURE__ */ createLucideIcon(box);
|
|
2527
|
+
var Contact = /* @__PURE__ */ createLucideIcon(contact);
|
|
2528
|
+
var Database = /* @__PURE__ */ createLucideIcon(database);
|
|
2529
|
+
var Disc3 = /* @__PURE__ */ createLucideIcon(disc3);
|
|
2530
|
+
var FileCode = /* @__PURE__ */ createLucideIcon(fileCode);
|
|
2531
|
+
var FileTerminal = /* @__PURE__ */ createLucideIcon(fileTerminal);
|
|
2532
|
+
var FileType = /* @__PURE__ */ createLucideIcon(fileType);
|
|
2533
|
+
var Globe = /* @__PURE__ */ createLucideIcon(globe);
|
|
2534
|
+
var Package = /* @__PURE__ */ createLucideIcon(packageIcon);
|
|
2535
|
+
var Presentation = /* @__PURE__ */ createLucideIcon(presentation);
|
|
2536
|
+
var FileAudio = /* @__PURE__ */ createLucideIcon(fileAudio);
|
|
2537
|
+
var FileImage = /* @__PURE__ */ createLucideIcon(fileImage);
|
|
2538
|
+
var FileSpreadsheet = /* @__PURE__ */ createLucideIcon(fileSpreadsheet);
|
|
2539
|
+
var FileVideo = /* @__PURE__ */ createLucideIcon(fileVideo);
|
|
2521
2540
|
var GripVertical = /* @__PURE__ */ createLucideIcon(gripVertical);
|
|
2522
2541
|
var Image = /* @__PURE__ */ createLucideIcon(image);
|
|
2523
2542
|
var LayoutGrid = /* @__PURE__ */ createLucideIcon(layoutGrid);
|
|
@@ -2813,7 +2832,6 @@ var BetweenVerticalEnd = /* @__PURE__ */ createLucideIcon(_lucide_BetweenVertica
|
|
|
2813
2832
|
var BetweenVerticalStart = /* @__PURE__ */ createLucideIcon(_lucide_BetweenVerticalStart);
|
|
2814
2833
|
var BicepsFlexed = /* @__PURE__ */ createLucideIcon(_lucide_BicepsFlexed);
|
|
2815
2834
|
var Bike = /* @__PURE__ */ createLucideIcon(_lucide_Bike);
|
|
2816
|
-
var Binary = /* @__PURE__ */ createLucideIcon(_lucide_Binary);
|
|
2817
2835
|
var Binoculars = /* @__PURE__ */ createLucideIcon(_lucide_Binoculars);
|
|
2818
2836
|
var Biohazard = /* @__PURE__ */ createLucideIcon(_lucide_Biohazard);
|
|
2819
2837
|
var Bird = /* @__PURE__ */ createLucideIcon(_lucide_Bird);
|
|
@@ -2847,7 +2865,6 @@ var BookKey = /* @__PURE__ */ createLucideIcon(_lucide_BookKey);
|
|
|
2847
2865
|
var BookLock = /* @__PURE__ */ createLucideIcon(_lucide_BookLock);
|
|
2848
2866
|
var BookMarked = /* @__PURE__ */ createLucideIcon(_lucide_BookMarked);
|
|
2849
2867
|
var BookMinus = /* @__PURE__ */ createLucideIcon(_lucide_BookMinus);
|
|
2850
|
-
var BookOpen = /* @__PURE__ */ createLucideIcon(_lucide_BookOpen);
|
|
2851
2868
|
var BookOpenCheck = /* @__PURE__ */ createLucideIcon(_lucide_BookOpenCheck);
|
|
2852
2869
|
var BookOpenText = /* @__PURE__ */ createLucideIcon(_lucide_BookOpenText);
|
|
2853
2870
|
var BookPlus = /* @__PURE__ */ createLucideIcon(_lucide_BookPlus);
|
|
@@ -2877,7 +2894,6 @@ var BottleWine = /* @__PURE__ */ createLucideIcon(_lucide_BottleWine);
|
|
|
2877
2894
|
var BowArrow = /* @__PURE__ */ createLucideIcon(_lucide_BowArrow);
|
|
2878
2895
|
var BowlChopsticks = /* @__PURE__ */ createLucideIcon(_lucide_BowlChopsticks);
|
|
2879
2896
|
var Bowling = /* @__PURE__ */ createLucideIcon(_lucide_Bowling);
|
|
2880
|
-
var Box = /* @__PURE__ */ createLucideIcon(_lucide_Box);
|
|
2881
2897
|
var BoxDashed = /* @__PURE__ */ createLucideIcon(_lucide_BoxDashed);
|
|
2882
2898
|
var BoxSelect = /* @__PURE__ */ createLucideIcon(_lucide_BoxSelect);
|
|
2883
2899
|
var Boxes = /* @__PURE__ */ createLucideIcon(_lucide_Boxes);
|
|
@@ -2955,7 +2971,6 @@ var CandyOff = /* @__PURE__ */ createLucideIcon(_lucide_CandyOff);
|
|
|
2955
2971
|
var Cannabis = /* @__PURE__ */ createLucideIcon(_lucide_Cannabis);
|
|
2956
2972
|
var CannabisOff = /* @__PURE__ */ createLucideIcon(_lucide_CannabisOff);
|
|
2957
2973
|
var Cap = /* @__PURE__ */ createLucideIcon(_lucide_Cap);
|
|
2958
|
-
var Captions = /* @__PURE__ */ createLucideIcon(_lucide_Captions);
|
|
2959
2974
|
var CaptionsOff = /* @__PURE__ */ createLucideIcon(_lucide_CaptionsOff);
|
|
2960
2975
|
var Car = /* @__PURE__ */ createLucideIcon(_lucide_Car);
|
|
2961
2976
|
var CarBattery = /* @__PURE__ */ createLucideIcon(_lucide_CarBattery);
|
|
@@ -3234,7 +3249,6 @@ var Computer = /* @__PURE__ */ createLucideIcon(_lucide_Computer);
|
|
|
3234
3249
|
var ConciergeBell = /* @__PURE__ */ createLucideIcon(_lucide_ConciergeBell);
|
|
3235
3250
|
var Cone = /* @__PURE__ */ createLucideIcon(_lucide_Cone);
|
|
3236
3251
|
var Construction = /* @__PURE__ */ createLucideIcon(_lucide_Construction);
|
|
3237
|
-
var Contact = /* @__PURE__ */ createLucideIcon(_lucide_Contact);
|
|
3238
3252
|
var Contact2 = /* @__PURE__ */ createLucideIcon(_lucide_Contact2);
|
|
3239
3253
|
var ContactRound = /* @__PURE__ */ createLucideIcon(_lucide_ContactRound);
|
|
3240
3254
|
var Container = /* @__PURE__ */ createLucideIcon(_lucide_Container);
|
|
@@ -3277,7 +3291,6 @@ var CurlyBraces = /* @__PURE__ */ createLucideIcon(_lucide_CurlyBraces);
|
|
|
3277
3291
|
var Currency = /* @__PURE__ */ createLucideIcon(_lucide_Currency);
|
|
3278
3292
|
var Cylinder = /* @__PURE__ */ createLucideIcon(_lucide_Cylinder);
|
|
3279
3293
|
var Dam = /* @__PURE__ */ createLucideIcon(_lucide_Dam);
|
|
3280
|
-
var Database = /* @__PURE__ */ createLucideIcon(_lucide_Database);
|
|
3281
3294
|
var DatabaseArrowDown = /* @__PURE__ */ createLucideIcon(_lucide_DatabaseArrowDown);
|
|
3282
3295
|
var DatabaseArrowUp = /* @__PURE__ */ createLucideIcon(_lucide_DatabaseArrowUp);
|
|
3283
3296
|
var DatabaseBackup = /* @__PURE__ */ createLucideIcon(_lucide_DatabaseBackup);
|
|
@@ -3310,7 +3323,6 @@ var Dices = /* @__PURE__ */ createLucideIcon(_lucide_Dices);
|
|
|
3310
3323
|
var Diff = /* @__PURE__ */ createLucideIcon(_lucide_Diff);
|
|
3311
3324
|
var Disc = /* @__PURE__ */ createLucideIcon(_lucide_Disc);
|
|
3312
3325
|
var Disc2 = /* @__PURE__ */ createLucideIcon(_lucide_Disc2);
|
|
3313
|
-
var Disc3 = /* @__PURE__ */ createLucideIcon(_lucide_Disc3);
|
|
3314
3326
|
var DiscAlbum = /* @__PURE__ */ createLucideIcon(_lucide_DiscAlbum);
|
|
3315
3327
|
var Divide = /* @__PURE__ */ createLucideIcon(_lucide_Divide);
|
|
3316
3328
|
var DivideCircle = /* @__PURE__ */ createLucideIcon(_lucide_DivideCircle);
|
|
@@ -3390,8 +3402,6 @@ var Faucet = /* @__PURE__ */ createLucideIcon(_lucide_Faucet);
|
|
|
3390
3402
|
var Feather = /* @__PURE__ */ createLucideIcon(_lucide_Feather);
|
|
3391
3403
|
var Fence = /* @__PURE__ */ createLucideIcon(_lucide_Fence);
|
|
3392
3404
|
var FerrisWheel = /* @__PURE__ */ createLucideIcon(_lucide_FerrisWheel);
|
|
3393
|
-
var FileArchive = /* @__PURE__ */ createLucideIcon(_lucide_FileArchive);
|
|
3394
|
-
var FileAudio = /* @__PURE__ */ createLucideIcon(_lucide_FileAudio);
|
|
3395
3405
|
var FileAudio2 = /* @__PURE__ */ createLucideIcon(_lucide_FileAudio2);
|
|
3396
3406
|
var FileAxis3D = /* @__PURE__ */ createLucideIcon(_lucide_FileAxis3D);
|
|
3397
3407
|
var FileAxis3d = /* @__PURE__ */ createLucideIcon(_lucide_FileAxis3d);
|
|
@@ -3410,7 +3420,6 @@ var FileCheck = /* @__PURE__ */ createLucideIcon(_lucide_FileCheck);
|
|
|
3410
3420
|
var FileCheck2 = /* @__PURE__ */ createLucideIcon(_lucide_FileCheck2);
|
|
3411
3421
|
var FileCheckCorner = /* @__PURE__ */ createLucideIcon(_lucide_FileCheckCorner);
|
|
3412
3422
|
var FileClock = /* @__PURE__ */ createLucideIcon(_lucide_FileClock);
|
|
3413
|
-
var FileCode = /* @__PURE__ */ createLucideIcon(_lucide_FileCode);
|
|
3414
3423
|
var FileCode2 = /* @__PURE__ */ createLucideIcon(_lucide_FileCode2);
|
|
3415
3424
|
var FileCodeCorner = /* @__PURE__ */ createLucideIcon(_lucide_FileCodeCorner);
|
|
3416
3425
|
var FileCog = /* @__PURE__ */ createLucideIcon(_lucide_FileCog);
|
|
@@ -3423,7 +3432,6 @@ var FileEdit = /* @__PURE__ */ createLucideIcon(_lucide_FileEdit);
|
|
|
3423
3432
|
var FileExclamationPoint = /* @__PURE__ */ createLucideIcon(_lucide_FileExclamationPoint);
|
|
3424
3433
|
var FileHeadphone = /* @__PURE__ */ createLucideIcon(_lucide_FileHeadphone);
|
|
3425
3434
|
var FileHeart = /* @__PURE__ */ createLucideIcon(_lucide_FileHeart);
|
|
3426
|
-
var FileImage = /* @__PURE__ */ createLucideIcon(_lucide_FileImage);
|
|
3427
3435
|
var FileInput = /* @__PURE__ */ createLucideIcon(_lucide_FileInput);
|
|
3428
3436
|
var FileJson2 = /* @__PURE__ */ createLucideIcon(_lucide_FileJson2);
|
|
3429
3437
|
var FileKey = /* @__PURE__ */ createLucideIcon(_lucide_FileKey);
|
|
@@ -3452,16 +3460,12 @@ var FileSearchCorner = /* @__PURE__ */ createLucideIcon(_lucide_FileSearchCorner
|
|
|
3452
3460
|
var FileSignal = /* @__PURE__ */ createLucideIcon(_lucide_FileSignal);
|
|
3453
3461
|
var FileSignature = /* @__PURE__ */ createLucideIcon(_lucide_FileSignature);
|
|
3454
3462
|
var FileSliders = /* @__PURE__ */ createLucideIcon(_lucide_FileSliders);
|
|
3455
|
-
var FileSpreadsheet = /* @__PURE__ */ createLucideIcon(_lucide_FileSpreadsheet);
|
|
3456
3463
|
var FileStack = /* @__PURE__ */ createLucideIcon(_lucide_FileStack);
|
|
3457
3464
|
var FileSymlink = /* @__PURE__ */ createLucideIcon(_lucide_FileSymlink);
|
|
3458
|
-
var FileTerminal = /* @__PURE__ */ createLucideIcon(_lucide_FileTerminal);
|
|
3459
3465
|
var FileTextSparkles = /* @__PURE__ */ createLucideIcon(_lucide_FileTextSparkles);
|
|
3460
|
-
var FileType = /* @__PURE__ */ createLucideIcon(_lucide_FileType);
|
|
3461
3466
|
var FileType2 = /* @__PURE__ */ createLucideIcon(_lucide_FileType2);
|
|
3462
3467
|
var FileTypeCorner = /* @__PURE__ */ createLucideIcon(_lucide_FileTypeCorner);
|
|
3463
3468
|
var FileUser = /* @__PURE__ */ createLucideIcon(_lucide_FileUser);
|
|
3464
|
-
var FileVideo = /* @__PURE__ */ createLucideIcon(_lucide_FileVideo);
|
|
3465
3469
|
var FileVideo2 = /* @__PURE__ */ createLucideIcon(_lucide_FileVideo2);
|
|
3466
3470
|
var FileVideoCamera = /* @__PURE__ */ createLucideIcon(_lucide_FileVideoCamera);
|
|
3467
3471
|
var FileVolume = /* @__PURE__ */ createLucideIcon(_lucide_FileVolume);
|
|
@@ -3523,7 +3527,6 @@ var FolderKey = /* @__PURE__ */ createLucideIcon(_lucide_FolderKey);
|
|
|
3523
3527
|
var FolderLock = /* @__PURE__ */ createLucideIcon(_lucide_FolderLock);
|
|
3524
3528
|
var FolderMinus = /* @__PURE__ */ createLucideIcon(_lucide_FolderMinus);
|
|
3525
3529
|
var FolderNetwork = /* @__PURE__ */ createLucideIcon(_lucide_FolderNetwork);
|
|
3526
|
-
var FolderOpen = /* @__PURE__ */ createLucideIcon(_lucide_FolderOpen);
|
|
3527
3530
|
var FolderOpenDot = /* @__PURE__ */ createLucideIcon(_lucide_FolderOpenDot);
|
|
3528
3531
|
var FolderOutput = /* @__PURE__ */ createLucideIcon(_lucide_FolderOutput);
|
|
3529
3532
|
var FolderPen = /* @__PURE__ */ createLucideIcon(_lucide_FolderPen);
|
|
@@ -3599,7 +3602,6 @@ var GitPullRequestCreateArrow = /* @__PURE__ */ createLucideIcon(_lucide_GitPull
|
|
|
3599
3602
|
var GitPullRequestDraft = /* @__PURE__ */ createLucideIcon(_lucide_GitPullRequestDraft);
|
|
3600
3603
|
var GlassWater = /* @__PURE__ */ createLucideIcon(_lucide_GlassWater);
|
|
3601
3604
|
var Glasses = /* @__PURE__ */ createLucideIcon(_lucide_Glasses);
|
|
3602
|
-
var Globe = /* @__PURE__ */ createLucideIcon(_lucide_Globe);
|
|
3603
3605
|
var Globe2 = /* @__PURE__ */ createLucideIcon(_lucide_Globe2);
|
|
3604
3606
|
var GlobeBan = /* @__PURE__ */ createLucideIcon(_lucide_GlobeBan);
|
|
3605
3607
|
var GlobeCheck = /* @__PURE__ */ createLucideIcon(_lucide_GlobeCheck);
|
|
@@ -4082,7 +4084,6 @@ var Option = /* @__PURE__ */ createLucideIcon(_lucide_Option);
|
|
|
4082
4084
|
var Orbit = /* @__PURE__ */ createLucideIcon(_lucide_Orbit);
|
|
4083
4085
|
var Origami = /* @__PURE__ */ createLucideIcon(_lucide_Origami);
|
|
4084
4086
|
var Outdent = /* @__PURE__ */ createLucideIcon(_lucide_Outdent);
|
|
4085
|
-
var Package = /* @__PURE__ */ createLucideIcon(_lucide_Package);
|
|
4086
4087
|
var Package2 = /* @__PURE__ */ createLucideIcon(_lucide_Package2);
|
|
4087
4088
|
var PackageArrowBendUpLeft = /* @__PURE__ */ createLucideIcon(_lucide_PackageArrowBendUpLeft);
|
|
4088
4089
|
var PackageCheck = /* @__PURE__ */ createLucideIcon(_lucide_PackageCheck);
|
|
@@ -4218,7 +4219,6 @@ var Power = /* @__PURE__ */ createLucideIcon(_lucide_Power);
|
|
|
4218
4219
|
var PowerCircle = /* @__PURE__ */ createLucideIcon(_lucide_PowerCircle);
|
|
4219
4220
|
var PowerOff = /* @__PURE__ */ createLucideIcon(_lucide_PowerOff);
|
|
4220
4221
|
var PowerSquare = /* @__PURE__ */ createLucideIcon(_lucide_PowerSquare);
|
|
4221
|
-
var Presentation = /* @__PURE__ */ createLucideIcon(_lucide_Presentation);
|
|
4222
4222
|
var Printer = /* @__PURE__ */ createLucideIcon(_lucide_Printer);
|
|
4223
4223
|
var Printer3D = /* @__PURE__ */ createLucideIcon(_lucide_Printer3D);
|
|
4224
4224
|
var Printer3d = /* @__PURE__ */ createLucideIcon(_lucide_Printer3d);
|
|
@@ -0,0 +1,221 @@
|
|
|
1
|
+
import { Context, Effect, Schema, type ManagedRuntime, type Layer } from "effect";
|
|
2
|
+
import { AsyncResult } from "effect/reactivity";
|
|
3
|
+
import { Component, Query, UiSchema } from "effect/ui";
|
|
4
|
+
export declare const AssetLibraryAccessSchema: Schema.Struct<{
|
|
5
|
+
readonly scopeKey: Schema.NonEmptyString;
|
|
6
|
+
readonly permissions: Schema.$Array<Schema.Literals<readonly ["list", "read", "create", "update", "delete"]>>;
|
|
7
|
+
}>;
|
|
8
|
+
export type AssetLibraryAccess = typeof AssetLibraryAccessSchema.Type;
|
|
9
|
+
export declare const AssetListQuerySchema: Schema.Struct<{
|
|
10
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
11
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["image", "video", "caption", "document"]>>;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const AssetListItemSchema: Schema.Struct<{
|
|
14
|
+
readonly id: Schema.String;
|
|
15
|
+
readonly name: Schema.NonEmptyString;
|
|
16
|
+
readonly mimeType: Schema.NonEmptyString;
|
|
17
|
+
readonly byteSize: Schema.Int;
|
|
18
|
+
readonly createdAt: Schema.Date;
|
|
19
|
+
readonly updatedAt: Schema.Date;
|
|
20
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
21
|
+
}>;
|
|
22
|
+
export declare const AssetStatsSchema: Schema.Struct<{
|
|
23
|
+
readonly assetCount: Schema.Int;
|
|
24
|
+
readonly storageUsedBytes: Schema.Int;
|
|
25
|
+
}>;
|
|
26
|
+
export declare const AssetListSchema: Schema.Struct<{
|
|
27
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
28
|
+
readonly id: Schema.String;
|
|
29
|
+
readonly name: Schema.NonEmptyString;
|
|
30
|
+
readonly mimeType: Schema.NonEmptyString;
|
|
31
|
+
readonly byteSize: Schema.Int;
|
|
32
|
+
readonly createdAt: Schema.Date;
|
|
33
|
+
readonly updatedAt: Schema.Date;
|
|
34
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
35
|
+
}>>;
|
|
36
|
+
readonly stats: Schema.Struct<{
|
|
37
|
+
readonly assetCount: Schema.Int;
|
|
38
|
+
readonly storageUsedBytes: Schema.Int;
|
|
39
|
+
}>;
|
|
40
|
+
}>;
|
|
41
|
+
export declare const AssetListArgsSchema: Schema.Struct<{
|
|
42
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
43
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["image", "video", "caption", "document"]>>;
|
|
44
|
+
readonly scopeKey: Schema.NonEmptyString;
|
|
45
|
+
readonly showFiles: Schema.Boolean;
|
|
46
|
+
}>;
|
|
47
|
+
export type AssetListArgs = typeof AssetListArgsSchema.Type;
|
|
48
|
+
declare const AssetList_base: Query.Service<AssetList, "@krak-stack/assets/AssetList", Schema.Struct<{
|
|
49
|
+
readonly search: Schema.optionalKey<Schema.String>;
|
|
50
|
+
readonly kind: Schema.optionalKey<Schema.Literals<readonly ["image", "video", "caption", "document"]>>;
|
|
51
|
+
readonly scopeKey: Schema.NonEmptyString;
|
|
52
|
+
readonly showFiles: Schema.Boolean;
|
|
53
|
+
}>, Schema.Struct<{
|
|
54
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
55
|
+
readonly id: Schema.String;
|
|
56
|
+
readonly name: Schema.NonEmptyString;
|
|
57
|
+
readonly mimeType: Schema.NonEmptyString;
|
|
58
|
+
readonly byteSize: Schema.Int;
|
|
59
|
+
readonly createdAt: Schema.Date;
|
|
60
|
+
readonly updatedAt: Schema.Date;
|
|
61
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
62
|
+
}>>;
|
|
63
|
+
readonly stats: Schema.Struct<{
|
|
64
|
+
readonly assetCount: Schema.Int;
|
|
65
|
+
readonly storageUsedBytes: Schema.Int;
|
|
66
|
+
}>;
|
|
67
|
+
}>, Schema.Literals<readonly ["unauthorized", "forbidden", "unavailable"]>>;
|
|
68
|
+
export declare class AssetList extends AssetList_base {
|
|
69
|
+
}
|
|
70
|
+
export declare const assetListArgs: (scopeKey: string, permissions: AssetLibraryAccess["permissions"], query?: typeof AssetListQuerySchema.Type) => AssetListArgs | undefined;
|
|
71
|
+
export declare const AssetLibrarySnapshot: Schema.Struct<{
|
|
72
|
+
readonly data: Schema.NullOr<Schema.Struct<{
|
|
73
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
74
|
+
readonly id: Schema.String;
|
|
75
|
+
readonly name: Schema.NonEmptyString;
|
|
76
|
+
readonly mimeType: Schema.NonEmptyString;
|
|
77
|
+
readonly byteSize: Schema.Int;
|
|
78
|
+
readonly createdAt: Schema.Date;
|
|
79
|
+
readonly updatedAt: Schema.Date;
|
|
80
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
81
|
+
}>>;
|
|
82
|
+
readonly stats: Schema.Struct<{
|
|
83
|
+
readonly assetCount: Schema.Int;
|
|
84
|
+
readonly storageUsedBytes: Schema.Int;
|
|
85
|
+
}>;
|
|
86
|
+
}>>;
|
|
87
|
+
readonly status: Schema.Literals<readonly ["idle", "loading", "ready", "failed"]>;
|
|
88
|
+
}>;
|
|
89
|
+
export declare const AssetLibraryMessage: UiSchema.TaggedEnum<{
|
|
90
|
+
readonly LibraryChanged: Schema.TaggedStruct<"LibraryChanged", {
|
|
91
|
+
readonly library: Schema.Struct<{
|
|
92
|
+
readonly data: Schema.NullOr<Schema.Struct<{
|
|
93
|
+
readonly items: Schema.$Array<Schema.Struct<{
|
|
94
|
+
readonly id: Schema.String;
|
|
95
|
+
readonly name: Schema.NonEmptyString;
|
|
96
|
+
readonly mimeType: Schema.NonEmptyString;
|
|
97
|
+
readonly byteSize: Schema.Int;
|
|
98
|
+
readonly createdAt: Schema.Date;
|
|
99
|
+
readonly updatedAt: Schema.Date;
|
|
100
|
+
readonly url: Schema.optionalKey<Schema.String>;
|
|
101
|
+
}>>;
|
|
102
|
+
readonly stats: Schema.Struct<{
|
|
103
|
+
readonly assetCount: Schema.Int;
|
|
104
|
+
readonly storageUsedBytes: Schema.Int;
|
|
105
|
+
}>;
|
|
106
|
+
}>>;
|
|
107
|
+
readonly status: Schema.Literals<readonly ["idle", "loading", "ready", "failed"]>;
|
|
108
|
+
}>;
|
|
109
|
+
}>;
|
|
110
|
+
}>;
|
|
111
|
+
export declare const emptyAssetLibrary: {
|
|
112
|
+
readonly data: null;
|
|
113
|
+
readonly status: "idle";
|
|
114
|
+
};
|
|
115
|
+
export declare const libraryQuery: (result: AsyncResult.AsyncResult<typeof AssetListSchema.Type, unknown>) => {
|
|
116
|
+
readonly _tag: "LibraryChanged";
|
|
117
|
+
readonly library: {
|
|
118
|
+
readonly data: {
|
|
119
|
+
readonly items: readonly {
|
|
120
|
+
readonly id: string;
|
|
121
|
+
readonly name: string;
|
|
122
|
+
readonly mimeType: string;
|
|
123
|
+
readonly byteSize: number;
|
|
124
|
+
readonly createdAt: Date;
|
|
125
|
+
readonly updatedAt: Date;
|
|
126
|
+
readonly url?: string | undefined;
|
|
127
|
+
}[];
|
|
128
|
+
readonly stats: {
|
|
129
|
+
readonly assetCount: number;
|
|
130
|
+
readonly storageUsedBytes: number;
|
|
131
|
+
};
|
|
132
|
+
} | null;
|
|
133
|
+
readonly status: "failed" | "idle" | "loading" | "ready";
|
|
134
|
+
};
|
|
135
|
+
};
|
|
136
|
+
export declare const AssetLibraryModel: Component.Component<"AssetLibraryModel", {
|
|
137
|
+
readonly access: {
|
|
138
|
+
readonly scopeKey: string;
|
|
139
|
+
readonly permissions: readonly ("create" | "delete" | "list" | "read" | "update")[];
|
|
140
|
+
};
|
|
141
|
+
}, {
|
|
142
|
+
readonly data: {
|
|
143
|
+
readonly items: readonly {
|
|
144
|
+
readonly id: string;
|
|
145
|
+
readonly name: string;
|
|
146
|
+
readonly mimeType: string;
|
|
147
|
+
readonly byteSize: number;
|
|
148
|
+
readonly createdAt: Date;
|
|
149
|
+
readonly updatedAt: Date;
|
|
150
|
+
readonly url?: string | undefined;
|
|
151
|
+
}[];
|
|
152
|
+
readonly stats: {
|
|
153
|
+
readonly assetCount: number;
|
|
154
|
+
readonly storageUsedBytes: number;
|
|
155
|
+
};
|
|
156
|
+
} | null;
|
|
157
|
+
readonly status: "failed" | "idle" | "loading" | "ready";
|
|
158
|
+
}, {
|
|
159
|
+
readonly _tag: "LibraryChanged";
|
|
160
|
+
readonly library: {
|
|
161
|
+
readonly data: {
|
|
162
|
+
readonly items: readonly {
|
|
163
|
+
readonly id: string;
|
|
164
|
+
readonly name: string;
|
|
165
|
+
readonly mimeType: string;
|
|
166
|
+
readonly byteSize: number;
|
|
167
|
+
readonly createdAt: Date;
|
|
168
|
+
readonly updatedAt: Date;
|
|
169
|
+
readonly url?: string | undefined;
|
|
170
|
+
}[];
|
|
171
|
+
readonly stats: {
|
|
172
|
+
readonly assetCount: number;
|
|
173
|
+
readonly storageUsedBytes: number;
|
|
174
|
+
};
|
|
175
|
+
} | null;
|
|
176
|
+
readonly status: "failed" | "idle" | "loading" | "ready";
|
|
177
|
+
};
|
|
178
|
+
}, never, AssetList, never, {
|
|
179
|
+
readonly library: Component.QueryOne<typeof AssetList>;
|
|
180
|
+
}, never>;
|
|
181
|
+
export declare const AssetUploadTransportMessages: {
|
|
182
|
+
en: {
|
|
183
|
+
rejected: string;
|
|
184
|
+
failed: string;
|
|
185
|
+
};
|
|
186
|
+
fr: {
|
|
187
|
+
rejected: string;
|
|
188
|
+
failed: string;
|
|
189
|
+
};
|
|
190
|
+
};
|
|
191
|
+
export type AssetStagedUpload = {
|
|
192
|
+
readonly assetId: string;
|
|
193
|
+
readonly attemptId?: string | undefined;
|
|
194
|
+
};
|
|
195
|
+
export type AssetPublicationResult = {
|
|
196
|
+
readonly status: "published";
|
|
197
|
+
readonly assetId: string;
|
|
198
|
+
} | {
|
|
199
|
+
readonly status: "rejected";
|
|
200
|
+
readonly reason: "rejected" | "failed";
|
|
201
|
+
};
|
|
202
|
+
export type AssetDeleteReport = {
|
|
203
|
+
readonly deletedIds: readonly string[];
|
|
204
|
+
readonly failures: readonly {
|
|
205
|
+
readonly id: string;
|
|
206
|
+
readonly reason: "in_use" | "not_found";
|
|
207
|
+
}[];
|
|
208
|
+
};
|
|
209
|
+
declare const AssetLibraryActions_base: Context.ServiceClass<AssetLibraryActions, "@krak-stack/assets/AssetLibraryActions", {
|
|
210
|
+
readonly upload: (file: File, progress: (percent: number) => void, replaceId?: string) => Effect.Effect<AssetStagedUpload, unknown>;
|
|
211
|
+
readonly publish: (upload: AssetStagedUpload) => Effect.Effect<AssetPublicationResult, unknown, Query.Cache>;
|
|
212
|
+
readonly remove: (ids: readonly string[]) => Effect.Effect<AssetDeleteReport, unknown, Query.Cache>;
|
|
213
|
+
}>;
|
|
214
|
+
/** The host supplies an authenticated transport. The UI owns query and mutation state. */
|
|
215
|
+
export declare class AssetLibraryActions extends AssetLibraryActions_base {
|
|
216
|
+
}
|
|
217
|
+
export type AssetLibraryRuntime = {
|
|
218
|
+
readonly layer: Layer.Layer<AssetList | AssetLibraryActions | Query.Cache>;
|
|
219
|
+
readonly runPromise: ManagedRuntime.ManagedRuntime<AssetLibraryActions | Query.Cache, never>["runPromise"];
|
|
220
|
+
};
|
|
221
|
+
export {};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export declare const isAssetHttpUrl: <I>(input: I) => input is I & string;
|
|
2
|
+
export declare const isAssetRelativeUrl: <I>(input: I) => input is I & string;
|
|
3
|
+
export declare const assetUrl: ({ url }: {
|
|
4
|
+
readonly url?: string | undefined;
|
|
5
|
+
}) => string | undefined;
|
|
6
|
+
export declare const assetImage: (asset: {
|
|
7
|
+
mimeType: string;
|
|
8
|
+
url?: string | undefined;
|
|
9
|
+
updatedAt?: Date | undefined;
|
|
10
|
+
}) => {
|
|
11
|
+
imageSrc?: string;
|
|
12
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { type AssetLibraryAccess, type AssetLibraryRuntime } from "./library.js";
|
|
2
|
+
export type { AssetLibraryAccess, AssetLibraryRuntime } from "./library.js";
|
|
3
|
+
export declare const useAssetLibrary: (runtime?: AssetLibraryRuntime, access?: AssetLibraryAccess) => {
|
|
4
|
+
readonly data: {
|
|
5
|
+
readonly items: readonly {
|
|
6
|
+
readonly id: string;
|
|
7
|
+
readonly name: string;
|
|
8
|
+
readonly mimeType: string;
|
|
9
|
+
readonly byteSize: number;
|
|
10
|
+
readonly createdAt: Date;
|
|
11
|
+
readonly updatedAt: Date;
|
|
12
|
+
readonly url?: string | undefined;
|
|
13
|
+
}[];
|
|
14
|
+
readonly stats: {
|
|
15
|
+
readonly assetCount: number;
|
|
16
|
+
readonly storageUsedBytes: number;
|
|
17
|
+
};
|
|
18
|
+
} | null;
|
|
19
|
+
readonly status: "failed" | "idle" | "loading" | "ready";
|
|
20
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@krak-stack/registry",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.9",
|
|
4
4
|
"description": "Tree-shakable KrakStack components and Effect services.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -17,6 +17,18 @@
|
|
|
17
17
|
"type": "module",
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"exports": {
|
|
20
|
+
"./access": {
|
|
21
|
+
"types": "./dist/lib/access/index.d.ts",
|
|
22
|
+
"import": "./dist/lib/access/index.js"
|
|
23
|
+
},
|
|
24
|
+
"./access/table/react": {
|
|
25
|
+
"types": "./dist/lib/access/table/react.d.ts",
|
|
26
|
+
"import": "./dist/lib/access/table/react.js"
|
|
27
|
+
},
|
|
28
|
+
"./access/table/html": {
|
|
29
|
+
"types": "./dist/lib/access/table/html.d.ts",
|
|
30
|
+
"import": "./dist/lib/access/table/html.js"
|
|
31
|
+
},
|
|
20
32
|
"./hint": {
|
|
21
33
|
"types": "./dist/components/hint/react.d.ts",
|
|
22
34
|
"import": "./dist/components/hint/react.js"
|