@foldkit/devtools 0.152.0 → 0.153.0-canary.186020f71843
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/dist/overlay.d.ts.map +1 -1
- package/dist/overlay.js +19 -23
- package/package.json +6 -6
package/dist/overlay.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAEN,OAAO,EAGP,MAAM,EAKN,MAAM,IAAI,CAAC,EAGX,eAAe,EAEhB,MAAM,QAAQ,CAAA;AAGf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAGlB,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAA;AAU9B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;;
|
|
1
|
+
{"version":3,"file":"overlay.d.ts","sourceRoot":"","sources":["../src/overlay.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,OAAO,EACP,MAAM,EAEN,OAAO,EAGP,MAAM,EAKN,MAAM,IAAI,CAAC,EAGX,eAAe,EAEhB,MAAM,QAAQ,CAAA;AAGf,OAAO,KAAK,OAAO,MAAM,iBAAiB,CAAA;AAC1C,OAAO,EACL,KAAK,aAAa,EAElB,KAAK,aAAa,EAGlB,KAAK,WAAW,EAChB,KAAK,UAAU,EAKhB,MAAM,uBAAuB,CAAA;AAU9B,OAAO,KAAK,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAA;;oFAqDM,CAAC;;;;;;;;;;;;;;;;;AAgT5E,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AAEpC,eAAO,MAAM,UAAU;;iBAGrB,CAAA;AAEF,eAAO,MAAM,YAAY;;iBAGvB,CAAA;AAgCF,eAAO,MAAM,oBAAoB;;;;;iBAkB/B,CAAA;AAuBF,eAAO,MAAM,gBAAgB;;;;;;;;wBAS3B,CAAA;AAEF,eAAO,MAAM,YAAY;;;;;;;;wBAIvB,CAAA;AAEF,eAAO,MAAM,aAAa;;;;;;wBAOxB,CAAA;AAEF,eAAO,MAAM,MAAM;;wBAOjB,CAAA;AAEF,eAAO,MAAM,KAAK;;wBAOhB,CAAA;AAEF,eAAO,MAAM,WAAW;;6BAUtB,CAAA;AA06DF,eAAO,MAAM,aAAa,GACxB,OAAO,aAAa,EACpB,UAAU,gBAAgB,EAC1B,MAAM,YAAY,EAClB,aAAa,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,6DAmFhC,CAAA"}
|
package/dist/overlay.js
CHANGED
|
@@ -9,7 +9,7 @@ import { lockScroll, unlockScroll } from 'foldkit/dom';
|
|
|
9
9
|
import { createKeyedLazy, createLazy, } from 'foldkit/html';
|
|
10
10
|
import { defineMessageUnion } from 'foldkit/message';
|
|
11
11
|
import { makeElement } from 'foldkit/runtime';
|
|
12
|
-
import {
|
|
12
|
+
import { defineTaggedUnion } from 'foldkit/schema';
|
|
13
13
|
import { evo } from 'foldkit/struct';
|
|
14
14
|
import * as Subscription from 'foldkit/subscription';
|
|
15
15
|
import { BrowserKeyValueStore } from '@effect/platform-browser';
|
|
@@ -616,20 +616,14 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, h) => {
|
|
|
616
616
|
const previewView = (preview) => __foldkitBrandViewResult((h.span([h.Class('json-preview')], [preview])), "@foldkit/devtools/overlay.js#previewView");
|
|
617
617
|
const diffDotView = h.span([h.Class('diff-dot')]);
|
|
618
618
|
const inlineDiffDotView = h.span([h.Class('diff-dot-inline')]);
|
|
619
|
-
const
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
DiffDotSegment,
|
|
628
|
-
KeyLabelSegment,
|
|
629
|
-
TagLabelSegment,
|
|
630
|
-
PreviewSegment,
|
|
631
|
-
LeafValueSegment,
|
|
632
|
-
]);
|
|
619
|
+
const RowSegment = defineTaggedUnion({
|
|
620
|
+
ArrowSegment: { isExpanded: S.Boolean },
|
|
621
|
+
DiffDotSegment: {},
|
|
622
|
+
KeyLabelSegment: { key: S.String },
|
|
623
|
+
TagLabelSegment: { tag: S.String },
|
|
624
|
+
PreviewSegment: { preview: S.String },
|
|
625
|
+
LeafValueSegment: { value: S.Unknown },
|
|
626
|
+
});
|
|
633
627
|
const rowSegmentView = M.type().pipe(M.tagsExhaustive({
|
|
634
628
|
ArrowSegment: ({ isExpanded }) => __foldkitBrandViewResult((arrowView(isExpanded)), "@foldkit/devtools/overlay.js#ArrowSegment"),
|
|
635
629
|
DiffDotSegment: () => __foldkitBrandViewResult((diffDotView), "@foldkit/devtools/overlay.js#DiffDotSegment"),
|
|
@@ -684,9 +678,11 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, h) => {
|
|
|
684
678
|
const hasDiffDot = isChanged || isAffected;
|
|
685
679
|
if (!nodeIsExpandable) {
|
|
686
680
|
const rowSegments = [
|
|
687
|
-
...(hasDiffDot ? [DiffDotSegment()] : []),
|
|
688
|
-
...(String_.isNonEmpty(key)
|
|
689
|
-
|
|
681
|
+
...(hasDiffDot ? [RowSegment.DiffDotSegment()] : []),
|
|
682
|
+
...(String_.isNonEmpty(key)
|
|
683
|
+
? [RowSegment.KeyLabelSegment({ key })]
|
|
684
|
+
: []),
|
|
685
|
+
RowSegment.LeafValueSegment({ value }),
|
|
690
686
|
];
|
|
691
687
|
return __foldkitBrandViewResult((h.ul([
|
|
692
688
|
h.Key(treePath),
|
|
@@ -702,11 +698,11 @@ const buildOverlayView = (position, mode, shadow, maybeBanner, h) => {
|
|
|
702
698
|
: ''
|
|
703
699
|
: collapsedPreview(value);
|
|
704
700
|
const rowSegments = [
|
|
705
|
-
...(isRoot ? [] : [ArrowSegment({ isExpanded })]),
|
|
706
|
-
...(!isRoot && hasDiffDot ? [DiffDotSegment()] : []),
|
|
707
|
-
...(String_.isNonEmpty(key) ? [KeyLabelSegment({ key })] : []),
|
|
708
|
-
...(String_.isNonEmpty(tag) ? [TagLabelSegment({ tag })] : []),
|
|
709
|
-
PreviewSegment({ preview }),
|
|
701
|
+
...(isRoot ? [] : [RowSegment.ArrowSegment({ isExpanded })]),
|
|
702
|
+
...(!isRoot && hasDiffDot ? [RowSegment.DiffDotSegment()] : []),
|
|
703
|
+
...(String_.isNonEmpty(key) ? [RowSegment.KeyLabelSegment({ key })] : []),
|
|
704
|
+
...(String_.isNonEmpty(tag) ? [RowSegment.TagLabelSegment({ tag })] : []),
|
|
705
|
+
RowSegment.PreviewSegment({ preview }),
|
|
710
706
|
];
|
|
711
707
|
return __foldkitBrandViewResult((h.ul([
|
|
712
708
|
h.Key(treePath),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@foldkit/devtools",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.153.0-canary.186020f71843",
|
|
4
4
|
"description": "In-browser DevTools overlay for Foldkit applications",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"exports": {
|
|
@@ -15,9 +15,9 @@
|
|
|
15
15
|
],
|
|
16
16
|
"peerDependencies": {
|
|
17
17
|
"@effect/platform-browser": "4.0.0-rc.112",
|
|
18
|
-
"@foldkit/ui": "
|
|
18
|
+
"@foldkit/ui": "0.153.0-canary.186020f71843",
|
|
19
19
|
"effect": "4.0.0-rc.112",
|
|
20
|
-
"foldkit": "
|
|
20
|
+
"foldkit": "0.153.0-canary.186020f71843"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
23
|
"clsx": "^2.1.1"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"rimraf": "^6.1.3",
|
|
29
29
|
"typescript": "^6.0.3",
|
|
30
30
|
"vitest": "^4.1.9",
|
|
31
|
-
"@foldkit/ui": "0.
|
|
32
|
-
"
|
|
33
|
-
"foldkit": "0.
|
|
31
|
+
"@foldkit/ui": "0.153.0-canary.186020f71843",
|
|
32
|
+
"foldkit": "0.153.0-canary.186020f71843",
|
|
33
|
+
"@foldkit/vite-plugin": "0.19.0-canary.186020f71843"
|
|
34
34
|
},
|
|
35
35
|
"keywords": [
|
|
36
36
|
"foldkit",
|