@foldkit/devtools 0.156.0-canary.0053b7691fcd → 0.156.0-canary.0f787f3ff84b

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.
@@ -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,EAGN,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;;;;;;;;;;;;;;;;;;;AA0WrE,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AAEpC,eAAO,MAAM,UAAU;;iBAGrB,CAAA;AAEF,eAAO,MAAM,YAAY;;iBAGvB,CAAA;AAoCF,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;AA86DF,eAAO,MAAM,aAAa,UACjB,aAAa,YACV,gBAAgB,QACpB,YAAY,eACL,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,6DAmFhC,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,EAGN,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;;;;;;;;;;;;;;;;;;;AAqWrE,cAAM,YAAa,SAAQ,iBAE1B;CAAG;;AAEJ,cAAM,iBAAkB,SAAQ,sBAGC;CAAG;AAEpC,eAAO,MAAM,UAAU;;iBAGrB,CAAA;AAEF,eAAO,MAAM,YAAY;;iBAGvB,CAAA;AAoCF,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;AA86DF,eAAO,MAAM,aAAa,UACjB,aAAa,YACV,gBAAgB,QACpB,YAAY,eACL,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,6DAmFhC,CAAA"}
package/dist/overlay.js CHANGED
@@ -209,11 +209,11 @@ const objectPreview = (value) => __foldkitBrandViewResult((pipe(value, Record.ke
209
209
  },
210
210
  }))), "@foldkit/devtools/overlay.js#objectPreview");
211
211
  const collapsedPreview = (value) => __foldkitBrandViewResult((Match.value(value).pipe(Match.when(globalThis.Array.isArray, array => __foldkitBrandViewResult((`(${array.length})`), "@foldkit/devtools/overlay.js#anonymous~11")), Match.when(Predicate.isObject, objectPreview), Match.orElse(() => __foldkitBrandViewResult((''), "@foldkit/devtools/overlay.js#anonymous~12")))), "@foldkit/devtools/overlay.js#collapsedPreview");
212
- const foldInspectorTabsOutMessage = Match.type().pipe(Match.withReturnType(), Match.tagsExhaustive({
212
+ const foldInspectorTabsOutMessage = Tabs.OutMessage.match({
213
213
  Selected: ({ value }) => __foldkitBrandViewResult((model => (__foldkitBrandViewResult(({
214
214
  model: evo(model, { activeInspectorTab: () => __foldkitBrandViewResult((value), "@foldkit/devtools/overlay.js#activeInspectorTab") }),
215
215
  }), "@foldkit/devtools/overlay.js#anonymous~13"))), "@foldkit/devtools/overlay.js#Selected"),
216
- }));
216
+ });
217
217
  const foldInspectorTabs = Update.foldChild({
218
218
  update: InspectorTabs.update,
219
219
  read: (model) => __foldkitBrandViewResult((Option.some(model.inspectorTabs)), "@foldkit/devtools/overlay.js#read"),
@@ -221,13 +221,13 @@ const foldInspectorTabs = Update.foldChild({
221
221
  toParentMessage: message => __foldkitBrandViewResult((Message.GotInspectorTabsMessage({ message })), "@foldkit/devtools/overlay.js#toParentMessage"),
222
222
  foldOutMessage: foldInspectorTabsOutMessage,
223
223
  });
224
- const foldSubmodelFilterOutMessage = Match.type().pipe(Match.withReturnType(), Match.tagsExhaustive({
224
+ const foldSubmodelFilterOutMessage = Listbox.OutMessage.match({
225
225
  Selected: ({ value }) => __foldkitBrandViewResult((model => (__foldkitBrandViewResult(({
226
226
  model: evo(model, {
227
227
  maybeSubmodelFilter: () => __foldkitBrandViewResult((Option.liftPredicate(value, String.isNonEmpty)), "@foldkit/devtools/overlay.js#maybeSubmodelFilter"),
228
228
  }),
229
229
  }), "@foldkit/devtools/overlay.js#anonymous~14"))), "@foldkit/devtools/overlay.js#Selected~2"),
230
- }));
230
+ });
231
231
  const foldSubmodelFilter = Update.foldChild({
232
232
  update: SubmodelFilterListbox.update,
233
233
  read: (model) => __foldkitBrandViewResult((Option.some(model.submodelFilterListbox)), "@foldkit/devtools/overlay.js#read~2"),
@@ -240,14 +240,14 @@ const foldSubmodelFilter = Update.foldChild({
240
240
  // NOTE: Pointer Messages update the thumb immediately, but jumping to and
241
241
  // inspecting the corresponding state is expensive. Keep only the latest host
242
242
  // index until TickedScrubFrame flushes one navigation on the next frame.
243
- const foldScrubberSliderOutMessage = Match.type().pipe(Match.withReturnType(), Match.tagsExhaustive({
243
+ const foldScrubberSliderOutMessage = Slider.OutMessage.match({
244
244
  ChangedValue: ({ value }) => __foldkitBrandViewResult((model => (__foldkitBrandViewResult(({
245
245
  model: evo(model, {
246
246
  scrubberValue: () => __foldkitBrandViewResult((value), "@foldkit/devtools/overlay.js#scrubberValue"),
247
247
  maybePendingScrubIndex: () => __foldkitBrandViewResult((Option.some(sliderValueToHostIndex(value, model.startIndex))), "@foldkit/devtools/overlay.js#maybePendingScrubIndex"),
248
248
  }),
249
249
  }), "@foldkit/devtools/overlay.js#anonymous~15"))), "@foldkit/devtools/overlay.js#ChangedValue"),
250
- }));
250
+ });
251
251
  const foldScrubberSlider = Update.foldChild({
252
252
  update: Slider.update,
253
253
  read: (model) => __foldkitBrandViewResult((Option.some(model.scrubberSlider)), "@foldkit/devtools/overlay.js#read~3"),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@foldkit/devtools",
3
- "version": "0.156.0-canary.0053b7691fcd",
3
+ "version": "0.156.0-canary.0f787f3ff84b",
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": "0.156.0-canary.0053b7691fcd",
18
+ "@foldkit/ui": "0.156.0-canary.0f787f3ff84b",
19
19
  "effect": "4.0.0-rc.112",
20
- "foldkit": "0.156.0-canary.0053b7691fcd"
20
+ "foldkit": "0.156.0-canary.0f787f3ff84b"
21
21
  },
22
22
  "dependencies": {
23
23
  "clsx": "^2.1.1"
@@ -25,12 +25,13 @@
25
25
  "devDependencies": {
26
26
  "@effect/platform-browser": "4.0.0-rc.112",
27
27
  "effect": "4.0.0-rc.112",
28
+ "happy-dom": "^20.11.13",
28
29
  "rimraf": "^6.1.3",
29
30
  "typescript": "^7.0.2",
30
31
  "vitest": "^4.1.11",
31
- "@foldkit/ui": "0.156.0-canary.0053b7691fcd",
32
- "@foldkit/vite-plugin": "0.20.0-canary.0053b7691fcd",
33
- "foldkit": "0.156.0-canary.0053b7691fcd"
32
+ "@foldkit/ui": "0.156.0-canary.0f787f3ff84b",
33
+ "foldkit": "0.156.0-canary.0f787f3ff84b",
34
+ "@foldkit/vite-plugin": "0.20.0-canary.0f787f3ff84b"
34
35
  },
35
36
  "keywords": [
36
37
  "foldkit",