@krate/runtime 0.5.0-rc.5 → 0.5.0-rc.7

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 (98) hide show
  1. package/dist/actions.js +10 -1
  2. package/dist/cache-scope.d.ts +2 -0
  3. package/dist/cache-scope.js +6 -1
  4. package/dist/context.d.ts +5 -0
  5. package/dist/context.js +28 -17
  6. package/dist/flight-props.d.ts +7 -0
  7. package/dist/flight-props.js +105 -0
  8. package/dist/handler-routing.d.ts +2 -23
  9. package/dist/handler-routing.js +4 -188
  10. package/dist/head-tags.js +5 -2
  11. package/dist/highlight.d.ts +3 -2
  12. package/dist/highlight.js +12 -6
  13. package/dist/hints.d.ts +25 -2
  14. package/dist/hints.js +148 -74
  15. package/dist/index.d.ts +1 -0
  16. package/dist/island-swap.d.ts +45 -0
  17. package/dist/island-swap.js +608 -0
  18. package/dist/jsx-types.d.ts +7 -2
  19. package/dist/krate-core.js +1 -1
  20. package/dist/krate-f-actions.js +1 -1
  21. package/dist/krate-f-list.js +1 -1
  22. package/dist/krate-f-navigation.js +1 -1
  23. package/dist/krate-f-router-lite.js +1 -1
  24. package/dist/krate-f-router.js +1 -1
  25. package/dist/krate-features.json +452 -0
  26. package/dist/krate-hydrate-lite.js +5 -5
  27. package/dist/krate-hydrate.js +5 -5
  28. package/dist/krate-island-swap.js +1 -0
  29. package/dist/krate-runtime.js +5 -5
  30. package/dist/list.d.ts +14 -4
  31. package/dist/list.js +4 -5
  32. package/dist/navigation-react.d.ts +13 -0
  33. package/dist/navigation-react.js +86 -0
  34. package/dist/navigation.d.ts +19 -0
  35. package/dist/navigation.js +35 -0
  36. package/dist/react-compat.d.ts +39 -0
  37. package/dist/react-compat.js +359 -0
  38. package/dist/request-extras.d.ts +4 -0
  39. package/dist/request-extras.js +51 -0
  40. package/dist/route-source.d.ts +39 -0
  41. package/dist/route-source.js +532 -0
  42. package/dist/router.js +293 -23
  43. package/dist/server-handler.d.ts +20 -1
  44. package/dist/server-handler.js +208 -92
  45. package/dist/server.d.ts +24 -17
  46. package/dist/server.js +435 -101
  47. package/dist/site-config.d.ts +2 -0
  48. package/dist/testing.d.ts +4 -1
  49. package/dist/testing.js +3 -1
  50. package/package.json +15 -2
  51. package/dist/actions.test.d.ts +0 -1
  52. package/dist/actions.test.js +0 -75
  53. package/dist/after.test.d.ts +0 -1
  54. package/dist/after.test.js +0 -58
  55. package/dist/builtin-tags.test.d.ts +0 -1
  56. package/dist/builtin-tags.test.js +0 -12
  57. package/dist/cache-adapter.test.d.ts +0 -1
  58. package/dist/cache-adapter.test.js +0 -45
  59. package/dist/cache.test.d.ts +0 -1
  60. package/dist/cache.test.js +0 -37
  61. package/dist/events.test.d.ts +0 -1
  62. package/dist/events.test.js +0 -42
  63. package/dist/handler-html.test.d.ts +0 -1
  64. package/dist/handler-html.test.js +0 -55
  65. package/dist/handler-segments.test.d.ts +0 -1
  66. package/dist/handler-segments.test.js +0 -25
  67. package/dist/head-tags.test.d.ts +0 -1
  68. package/dist/head-tags.test.js +0 -24
  69. package/dist/inline-action-token.test.d.ts +0 -1
  70. package/dist/inline-action-token.test.js +0 -31
  71. package/dist/jsx-svg-types.test.d.ts +0 -1
  72. package/dist/jsx-svg-types.test.js +0 -58
  73. package/dist/link-base-path.test.d.ts +0 -1
  74. package/dist/link-base-path.test.js +0 -28
  75. package/dist/node-server.test.d.ts +0 -1
  76. package/dist/node-server.test.js +0 -138
  77. package/dist/platform.test.d.ts +0 -1
  78. package/dist/platform.test.js +0 -44
  79. package/dist/router-nav.test.d.ts +0 -1
  80. package/dist/router-nav.test.js +0 -130
  81. package/dist/server-handler.test.d.ts +0 -1
  82. package/dist/server-handler.test.js +0 -338
  83. package/dist/server-renderer.test.d.ts +0 -1
  84. package/dist/server-renderer.test.js +0 -162
  85. package/dist/server.test.d.ts +0 -1
  86. package/dist/server.test.js +0 -91
  87. package/dist/sha256.test.d.ts +0 -1
  88. package/dist/sha256.test.js +0 -13
  89. package/dist/signal.test.d.ts +0 -1
  90. package/dist/signal.test.js +0 -68
  91. package/dist/site-config.test.d.ts +0 -1
  92. package/dist/site-config.test.js +0 -30
  93. package/dist/slot.test.d.ts +0 -1
  94. package/dist/slot.test.js +0 -25
  95. package/dist/ssr-core-behavior.test.d.ts +0 -1
  96. package/dist/ssr-core-behavior.test.js +0 -108
  97. package/dist/testing.test.d.ts +0 -1
  98. package/dist/testing.test.js +0 -73
@@ -34,6 +34,7 @@
34
34
  "disposeAll",
35
35
  "disposeNode",
36
36
  "flushPassive",
37
+ "flushSync",
37
38
  "forwardRef",
38
39
  "h",
39
40
  "hydrate",
@@ -72,6 +73,7 @@
72
73
  "krateHintPreinitModule",
73
74
  "krateHintPreload",
74
75
  "krateHintPreloadModule",
76
+ "krateHintTags",
75
77
  "krateHook",
76
78
  "krateHookState",
77
79
  "krateIsDiscrete",
@@ -124,11 +126,18 @@
124
126
  "krateTrackNode",
125
127
  "krateTransitionWrites",
126
128
  "krateUnmount",
129
+ "krateWithContexts",
127
130
  "krateWithIdScope",
128
131
  "krateWithOwner",
129
132
  "mount",
130
133
  "onCleanup",
131
134
  "onMount",
135
+ "preconnect",
136
+ "prefetchDNS",
137
+ "preinit",
138
+ "preinitModule",
139
+ "preload",
140
+ "preloadModule",
132
141
  "readDurableState",
133
142
  "readPersisted",
134
143
  "removeRest",
@@ -144,6 +153,21 @@
144
153
  "withDOM",
145
154
  "withVNodes",
146
155
  "writePersisted"
156
+ ],
157
+ "modules": [
158
+ "signal.js",
159
+ "effects.js",
160
+ "dom.js",
161
+ "slots.js",
162
+ "resource.js",
163
+ "context.js",
164
+ "storage.js",
165
+ "hook-args.js",
166
+ "use-id.js",
167
+ "hints.js",
168
+ "refs.js",
169
+ "events.js",
170
+ "portal.js"
147
171
  ]
148
172
  },
149
173
  "full": [
@@ -204,6 +228,7 @@
204
228
  "disposeAll",
205
229
  "disposeNode",
206
230
  "flushPassive",
231
+ "flushSync",
207
232
  "forbidden",
208
233
  "forwardRef",
209
234
  "getFormStatus",
@@ -257,12 +282,15 @@
257
282
  "krateHintPreinitModule",
258
283
  "krateHintPreload",
259
284
  "krateHintPreloadModule",
285
+ "krateHintTags",
260
286
  "krateHook",
261
287
  "krateHookState",
262
288
  "krateIsDiscrete",
263
289
  "krateKeepScopes",
290
+ "krateLayoutSegments",
264
291
  "krateLeaveScope",
265
292
  "krateList",
293
+ "krateMatchParams",
266
294
  "krateMount",
267
295
  "krateMountFields",
268
296
  "krateMountPortals",
@@ -296,6 +324,7 @@
296
324
  "krateRenderPhase",
297
325
  "krateRequestFlush",
298
326
  "krateResetNavigation",
327
+ "krateRouteStore",
299
328
  "krateRouter",
300
329
  "krateRunEvent",
301
330
  "krateSanitizeAttr",
@@ -312,6 +341,7 @@
312
341
  "krateTrackNode",
313
342
  "krateTransitionWrites",
314
343
  "krateUnmount",
344
+ "krateWithContexts",
315
345
  "krateWithIdScope",
316
346
  "krateWithOwner",
317
347
  "longestIncreasingSubsequence",
@@ -326,6 +356,12 @@
326
356
  "onOwnerCleanup",
327
357
  "pageAssetURLs",
328
358
  "permanentRedirect",
359
+ "preconnect",
360
+ "prefetchDNS",
361
+ "preinit",
362
+ "preinitModule",
363
+ "preload",
364
+ "preloadModule",
329
365
  "readDurableState",
330
366
  "readPersisted",
331
367
  "redirect",
@@ -381,6 +417,9 @@
381
417
  "pageAssetURLs",
382
418
  "reinitRouter",
383
419
  "subscribeNavigation"
420
+ ],
421
+ "modules": [
422
+ "router.js"
384
423
  ]
385
424
  },
386
425
  "router-lite": {
@@ -395,13 +434,19 @@
395
434
  "navigate",
396
435
  "reinitRouter",
397
436
  "subscribeNavigation"
437
+ ],
438
+ "modules": [
439
+ "router-lite.js"
398
440
  ]
399
441
  },
400
442
  "navigation": {
401
443
  "file": "krate-f-navigation.js",
402
444
  "exports": [
403
445
  "forbidden",
446
+ "krateLayoutSegments",
447
+ "krateMatchParams",
404
448
  "krateResetNavigation",
449
+ "krateRouteStore",
405
450
  "notFound",
406
451
  "permanentRedirect",
407
452
  "redirect",
@@ -412,6 +457,9 @@
412
457
  "useSearchParams",
413
458
  "useSelectedLayoutSegment",
414
459
  "useSelectedLayoutSegments"
460
+ ],
461
+ "modules": [
462
+ "navigation.js"
415
463
  ]
416
464
  },
417
465
  "helpers": {
@@ -423,6 +471,9 @@
423
471
  "cn",
424
472
  "cva",
425
473
  "twMerge"
474
+ ],
475
+ "modules": [
476
+ "class-helpers.js"
426
477
  ]
427
478
  },
428
479
  "list": {
@@ -431,6 +482,9 @@
431
482
  "krateBindList",
432
483
  "krateList",
433
484
  "longestIncreasingSubsequence"
485
+ ],
486
+ "modules": [
487
+ "list.js"
434
488
  ]
435
489
  },
436
490
  "actions": {
@@ -457,6 +511,9 @@
457
511
  "stripActionURL",
458
512
  "submitFormAction",
459
513
  "takeFlash"
514
+ ],
515
+ "modules": [
516
+ "actions.js"
460
517
  ]
461
518
  },
462
519
  "classes": {
@@ -483,6 +540,10 @@
483
540
  "setBoundary",
484
541
  "unmountChildren",
485
542
  "unmountOwner"
543
+ ],
544
+ "modules": [
545
+ "boundary.js",
546
+ "class-component.js"
486
547
  ]
487
548
  },
488
549
  "highlight": {
@@ -490,7 +551,398 @@
490
551
  "exports": [
491
552
  "krateHighlight",
492
553
  "krateHighlightInit"
554
+ ],
555
+ "modules": [
556
+ "highlight-bind.js"
493
557
  ]
494
558
  }
559
+ },
560
+ "suspense": {
561
+ "file": "krate-suspense.js",
562
+ "exports": [
563
+ "SuspenseSignal",
564
+ "__krateBoundary",
565
+ "__krateLazy",
566
+ "__krateLazyPayload",
567
+ "__krateLazyRun",
568
+ "__krateRead",
569
+ "__krateTransitionStarter",
570
+ "__krateUse",
571
+ "boundarySlotId",
572
+ "connectActionTransitions",
573
+ "connectErrorBoundaries",
574
+ "createBoundary",
575
+ "createDeferredValue",
576
+ "createExternalStore",
577
+ "currentBoundary",
578
+ "getBoundary",
579
+ "isInTransition",
580
+ "isSuspenseSignal",
581
+ "isThenable",
582
+ "noteFallbackShown",
583
+ "readValue",
584
+ "registerBoundary",
585
+ "reportSuspenseError",
586
+ "resetBoundaries",
587
+ "runAsyncTransition",
588
+ "setFallbackThrottle",
589
+ "setLazyChunkImporter",
590
+ "setSuspenseErrorHandler",
591
+ "startTransition",
592
+ "suspendOn",
593
+ "trackThenable",
594
+ "useDeferredValue",
595
+ "useSyncExternalStore",
596
+ "useTransition",
597
+ "withReplayScope"
598
+ ],
599
+ "modules": [
600
+ "suspense.js"
601
+ ]
602
+ },
603
+ "esm": {
604
+ "signal.js": [
605
+ "afterFlush",
606
+ "createCSSChoice",
607
+ "createCSSFlags",
608
+ "createCSSGroup",
609
+ "createCSSRange",
610
+ "createCSSStack",
611
+ "createCSSToggle",
612
+ "createEffect",
613
+ "createMemo",
614
+ "createReducer",
615
+ "createRoot",
616
+ "createSignal",
617
+ "disposeAll",
618
+ "forwardRef",
619
+ "isDerivedGetter",
620
+ "isSignalGetter",
621
+ "krateCommitSnapshot",
622
+ "krateCommitting",
623
+ "krateCurrentScope",
624
+ "krateDerived",
625
+ "krateDisposeExcept",
626
+ "krateDisposeOwner",
627
+ "krateDisposeScopes",
628
+ "krateEnterScope",
629
+ "krateEpoch",
630
+ "krateFlushSync",
631
+ "krateGetOwner",
632
+ "krateHook",
633
+ "krateHookState",
634
+ "krateIsDiscrete",
635
+ "krateKeepScopes",
636
+ "krateLeaveScope",
637
+ "krateOnAfterFlush",
638
+ "krateOnBeforeFlush",
639
+ "krateOnDispose",
640
+ "krateOnSettle",
641
+ "kratePendingFlush",
642
+ "kratePruneSnapshots",
643
+ "krateReadAt",
644
+ "krateRenderPhase",
645
+ "krateRequestFlush",
646
+ "krateRunEvent",
647
+ "krateScopeOfId",
648
+ "krateSetOwner",
649
+ "krateTagOwner",
650
+ "krateTakeSyncLane",
651
+ "krateTransitionWrites",
652
+ "onCleanup",
653
+ "onMount",
654
+ "runAfterFlush",
655
+ "sameValue",
656
+ "setOwnerHooks",
657
+ "untrack",
658
+ "useRef"
659
+ ],
660
+ "effects.js": [
661
+ "createCallbackDeps",
662
+ "createEffectDeps",
663
+ "createEffectEvent",
664
+ "createMemoDeps",
665
+ "flushPassive",
666
+ "krateCondActivity",
667
+ "krateDepsOf",
668
+ "krateForgetOwner",
669
+ "krateMount",
670
+ "krateOnHookError",
671
+ "krateOnLayoutCommit",
672
+ "krateOnUnmount",
673
+ "krateOwner",
674
+ "krateOwnerId",
675
+ "krateSlotReplaced",
676
+ "krateUnmount",
677
+ "krateWithOwner"
678
+ ],
679
+ "dom.js": [
680
+ "adoptValue",
681
+ "appendChild",
682
+ "clearBetween",
683
+ "clearNodes",
684
+ "disposeNode",
685
+ "h",
686
+ "hydrate",
687
+ "insert",
688
+ "insertAt",
689
+ "krateApplyStyle",
690
+ "krateAttachRef",
691
+ "krateBindRef",
692
+ "krateControl",
693
+ "krateCustomProp",
694
+ "krateEventName",
695
+ "krateEventRoot",
696
+ "krateMountFields",
697
+ "krateOn",
698
+ "krateRefsEnter",
699
+ "krateRefsFlush",
700
+ "krateRefsHold",
701
+ "krateRefsLeave",
702
+ "krateSetControl",
703
+ "krateSetRef",
704
+ "krateSpread",
705
+ "krateSynthetic",
706
+ "krateTrackNode",
707
+ "mount",
708
+ "removeRest",
709
+ "trackEffect",
710
+ "withDOM",
711
+ "withVNodes"
712
+ ],
713
+ "slots.js": [
714
+ "BLOCKED_URL",
715
+ "krateCondDetached",
716
+ "krateCondReset",
717
+ "krateCondSwap",
718
+ "krateMountPortals",
719
+ "kratePortalFind",
720
+ "kratePortalMount",
721
+ "kratePortalReset",
722
+ "kratePortalScan",
723
+ "kratePortalTarget",
724
+ "kratePortalUnmount",
725
+ "kratePortalsEnter",
726
+ "kratePortalsIn",
727
+ "kratePortalsLeave",
728
+ "krateSanitizeAttr"
729
+ ],
730
+ "resource.js": [
731
+ "createResource"
732
+ ],
733
+ "context.js": [
734
+ "KRATE_CONTEXT",
735
+ "createContext",
736
+ "createScope",
737
+ "createScopeFlags",
738
+ "krateContextRows",
739
+ "krateWithContexts",
740
+ "resetContexts"
741
+ ],
742
+ "storage.js": [
743
+ "clearPersisted",
744
+ "readDurableState",
745
+ "readPersisted",
746
+ "resolvePersist",
747
+ "subscribePersist",
748
+ "writePersisted"
749
+ ],
750
+ "hook-args.js": [
751
+ "krateParam"
752
+ ],
753
+ "use-id.js": [
754
+ "__krate_useId",
755
+ "krateWithIdScope"
756
+ ],
757
+ "hints.js": [
758
+ "flushSync",
759
+ "krateHintPreconnect",
760
+ "krateHintPrefetchDNS",
761
+ "krateHintPreinit",
762
+ "krateHintPreinitModule",
763
+ "krateHintPreload",
764
+ "krateHintPreloadModule",
765
+ "krateHintTags",
766
+ "preconnect",
767
+ "prefetchDNS",
768
+ "preinit",
769
+ "preinitModule",
770
+ "preload",
771
+ "preloadModule"
772
+ ],
773
+ "refs.js": [
774
+ "krateAttachRef",
775
+ "krateRefsEnter",
776
+ "krateRefsFlush",
777
+ "krateRefsHold",
778
+ "krateRefsLeave",
779
+ "krateSetRef"
780
+ ],
781
+ "events.js": [
782
+ "krateControl",
783
+ "krateEventName",
784
+ "krateEventRoot",
785
+ "krateMountFields",
786
+ "krateMuteEvents",
787
+ "krateOn",
788
+ "krateSetControl",
789
+ "krateSynthetic"
790
+ ],
791
+ "portal.js": [
792
+ "krateMountPortals",
793
+ "kratePortalFind",
794
+ "kratePortalMount",
795
+ "kratePortalReset",
796
+ "kratePortalScan",
797
+ "kratePortalTarget",
798
+ "kratePortalUnmount",
799
+ "kratePortalsEnter",
800
+ "kratePortalsIn",
801
+ "kratePortalsLeave"
802
+ ],
803
+ "router.js": [
804
+ "compareRouteSpecificity",
805
+ "destroyRouter",
806
+ "getHistoryState",
807
+ "getNavigationState",
808
+ "initRouter",
809
+ "invalidatePrefetchCache",
810
+ "krateRouter",
811
+ "matchRoutePattern",
812
+ "navigate",
813
+ "pageAssetURLs",
814
+ "reinitRouter",
815
+ "subscribeNavigation"
816
+ ],
817
+ "router-lite.js": [
818
+ "destroyRouter",
819
+ "getHistoryState",
820
+ "getNavigationState",
821
+ "initRouter",
822
+ "invalidatePrefetchCache",
823
+ "krateRouter",
824
+ "navigate",
825
+ "reinitRouter",
826
+ "subscribeNavigation"
827
+ ],
828
+ "navigation.js": [
829
+ "forbidden",
830
+ "krateLayoutSegments",
831
+ "krateMatchParams",
832
+ "krateResetNavigation",
833
+ "krateRouteStore",
834
+ "notFound",
835
+ "permanentRedirect",
836
+ "redirect",
837
+ "unauthorized",
838
+ "useParams",
839
+ "usePathname",
840
+ "useRouter",
841
+ "useSearchParams",
842
+ "useSelectedLayoutSegment",
843
+ "useSelectedLayoutSegments"
844
+ ],
845
+ "class-helpers.js": [
846
+ "Slot",
847
+ "cloneElement",
848
+ "clsx",
849
+ "cn",
850
+ "cva",
851
+ "twMerge"
852
+ ],
853
+ "list.js": [
854
+ "krateBindList",
855
+ "krateList",
856
+ "longestIncreasingSubsequence"
857
+ ],
858
+ "actions.js": [
859
+ "ACTION_ARGS_FIELD",
860
+ "ServerActionError",
861
+ "__krateAction",
862
+ "__krateActionState",
863
+ "__krateAssignRef",
864
+ "__krateBeginAction",
865
+ "__krateBindFormAction",
866
+ "__krateFormStatusMount",
867
+ "__krateOptimistic",
868
+ "callServerAction",
869
+ "getFormStatus",
870
+ "installActionForms",
871
+ "isActionPending",
872
+ "isServerAction",
873
+ "reportActionError",
874
+ "requestFormReset",
875
+ "runActionTransition",
876
+ "setActionTransitionRunner",
877
+ "stripActionURL",
878
+ "submitFormAction",
879
+ "takeFlash"
880
+ ],
881
+ "boundary.js": [
882
+ "__krateCondPost",
883
+ "__krateCondPre",
884
+ "__krateOnError",
885
+ "__krateOwn",
886
+ "__krateOwner",
887
+ "componentStack",
888
+ "createOwner",
889
+ "getOwner",
890
+ "handleError",
891
+ "inCommitPhaseError",
892
+ "krateScopeFailed",
893
+ "mountOwner",
894
+ "onOwnerCleanup",
895
+ "remountChildren",
896
+ "runWithOwner",
897
+ "setBoundary",
898
+ "unmountChildren",
899
+ "unmountOwner"
900
+ ],
901
+ "class-component.js": [
902
+ "__krateClass",
903
+ "__krateClassError",
904
+ "mountClassElement"
905
+ ],
906
+ "highlight-bind.js": [
907
+ "krateHighlight",
908
+ "krateHighlightInit"
909
+ ],
910
+ "suspense.js": [
911
+ "SuspenseSignal",
912
+ "__krateBoundary",
913
+ "__krateLazy",
914
+ "__krateLazyPayload",
915
+ "__krateLazyRun",
916
+ "__krateRead",
917
+ "__krateTransitionStarter",
918
+ "__krateUse",
919
+ "boundarySlotId",
920
+ "connectActionTransitions",
921
+ "connectErrorBoundaries",
922
+ "createBoundary",
923
+ "createDeferredValue",
924
+ "createExternalStore",
925
+ "currentBoundary",
926
+ "getBoundary",
927
+ "isInTransition",
928
+ "isSuspenseSignal",
929
+ "isThenable",
930
+ "noteFallbackShown",
931
+ "readValue",
932
+ "registerBoundary",
933
+ "reportSuspenseError",
934
+ "resetBoundaries",
935
+ "runAsyncTransition",
936
+ "setFallbackThrottle",
937
+ "setLazyChunkImporter",
938
+ "setSuspenseErrorHandler",
939
+ "startTransition",
940
+ "suspendOn",
941
+ "trackThenable",
942
+ "useDeferredValue",
943
+ "useSyncExternalStore",
944
+ "useTransition",
945
+ "withReplayScope"
946
+ ]
495
947
  }
496
948
  }