@dxos/plugin-observability 0.8.3-staging.0fa589b → 0.8.4-main.03d5cd7b56
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/lib/neutral/HelpContainer-NYKOV3GM.mjs +68 -0
- package/dist/lib/neutral/HelpContainer-NYKOV3GM.mjs.map +7 -0
- package/dist/lib/neutral/ObservabilityPlugin.mjs +62 -0
- package/dist/lib/neutral/ObservabilityPlugin.mjs.map +7 -0
- package/dist/lib/neutral/ObservabilityPlugin.node.mjs +22 -0
- package/dist/lib/neutral/ObservabilityPlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/ObservabilitySettings-H6UKYDDT.mjs +27 -0
- package/dist/lib/neutral/ObservabilitySettings-H6UKYDDT.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-PTVHNKQY.mjs +37 -0
- package/dist/lib/neutral/app-graph-builder-PTVHNKQY.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +19 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/capture-user-feedback-M45PTVMA.mjs +22 -0
- package/dist/lib/neutral/capture-user-feedback-M45PTVMA.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ANCT53Y3.mjs +19 -0
- package/dist/lib/neutral/chunk-ANCT53Y3.mjs.map +7 -0
- package/dist/lib/neutral/chunk-J5LGTIGS.mjs +10 -0
- package/dist/lib/neutral/chunk-LBYPFOE5.mjs +132 -0
- package/dist/lib/neutral/chunk-LBYPFOE5.mjs.map +7 -0
- package/dist/lib/neutral/chunk-YZMTBNAS.mjs +8 -0
- package/dist/lib/neutral/chunk-YZMTBNAS.mjs.map +7 -0
- package/dist/lib/neutral/client-ready-TM7VE6CH.mjs +116 -0
- package/dist/lib/neutral/client-ready-TM7VE6CH.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +44 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +9 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +18 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +8 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/operation-handler-4WWRXOHR.mjs +13 -0
- package/dist/lib/neutral/operation-handler-4WWRXOHR.mjs.map +7 -0
- package/dist/lib/neutral/operations/index.mjs +8 -0
- package/dist/lib/neutral/operations/index.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +16 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-2LUZ7EK5.mjs +41 -0
- package/dist/lib/neutral/react-surface-2LUZ7EK5.mjs.map +7 -0
- package/dist/lib/neutral/send-event-DPYXUUL5.mjs +20 -0
- package/dist/lib/neutral/send-event-DPYXUUL5.mjs.map +7 -0
- package/dist/lib/neutral/settings-MZYK2WQR.mjs +30 -0
- package/dist/lib/neutral/settings-MZYK2WQR.mjs.map +7 -0
- package/dist/lib/neutral/state-5COCK3KV.mjs +27 -0
- package/dist/lib/neutral/state-5COCK3KV.mjs.map +7 -0
- package/dist/lib/neutral/toggle-VKTFKVFC.mjs +45 -0
- package/dist/lib/neutral/toggle-VKTFKVFC.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +33 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs +14 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/ObservabilityPlugin.d.ts +11 -3
- package/dist/types/src/ObservabilityPlugin.d.ts.map +1 -1
- package/dist/types/src/ObservabilityPlugin.node.d.ts +4 -0
- package/dist/types/src/ObservabilityPlugin.node.d.ts.map +1 -0
- package/dist/types/src/ObservabilityPlugin.test.d.ts +2 -0
- package/dist/types/src/ObservabilityPlugin.test.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts +4 -2
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/client-ready.d.ts +5 -5
- package/dist/types/src/capabilities/client-ready.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts +16 -15
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +3 -2
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/capabilities/settings.d.ts +5 -2
- package/dist/types/src/capabilities/settings.d.ts.map +1 -1
- package/dist/types/src/capabilities/state.d.ts +10 -3
- package/dist/types/src/capabilities/state.d.ts.map +1 -1
- package/dist/types/src/components/FeedbackForm/FeedbackForm.d.ts +9 -0
- package/dist/types/src/components/FeedbackForm/FeedbackForm.d.ts.map +1 -0
- package/dist/types/src/components/FeedbackForm/FeedbackForm.stories.d.ts +36 -0
- package/dist/types/src/components/FeedbackForm/FeedbackForm.stories.d.ts.map +1 -0
- package/dist/types/src/components/FeedbackForm/index.d.ts +2 -0
- package/dist/types/src/components/FeedbackForm/index.d.ts.map +1 -0
- package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.d.ts +6 -0
- package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.d.ts.map +1 -0
- package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.stories.d.ts +36 -0
- package/dist/types/src/components/ObservabilitySettings/ObservabilitySettings.stories.d.ts.map +1 -0
- package/dist/types/src/components/ObservabilitySettings/index.d.ts +2 -0
- package/dist/types/src/components/ObservabilitySettings/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +2 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/HelpContainer/HelpContainer.d.ts +4 -0
- package/dist/types/src/containers/HelpContainer/HelpContainer.d.ts.map +1 -0
- package/dist/types/src/containers/HelpContainer/index.d.ts +2 -0
- package/dist/types/src/containers/HelpContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +3 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/index.d.ts +1 -4
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -3
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/operations/capture-user-feedback.d.ts +5 -0
- package/dist/types/src/operations/capture-user-feedback.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +3 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/send-event.d.ts +5 -0
- package/dist/types/src/operations/send-event.d.ts.map +1 -0
- package/dist/types/src/operations/toggle.d.ts +5 -0
- package/dist/types/src/operations/toggle.d.ts.map +1 -0
- package/dist/types/src/plugin.d.ts +4 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +20 -19
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/ObservabilityCapabilities.d.ts +28 -0
- package/dist/types/src/types/ObservabilityCapabilities.d.ts.map +1 -0
- package/dist/types/src/types/ObservabilityEvents.d.ts +4 -0
- package/dist/types/src/types/ObservabilityEvents.d.ts.map +1 -0
- package/dist/types/src/types/ObservabilityOperation.d.ts +20 -0
- package/dist/types/src/types/ObservabilityOperation.d.ts.map +1 -0
- package/dist/types/src/types/Settings.d.ts +7 -0
- package/dist/types/src/types/Settings.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +5 -0
- package/dist/types/src/types/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +105 -53
- package/src/ObservabilityPlugin.node.ts +33 -0
- package/src/ObservabilityPlugin.test.ts +25 -0
- package/src/ObservabilityPlugin.ts +73 -54
- package/src/capabilities/app-graph-builder.ts +28 -37
- package/src/capabilities/client-ready.ts +88 -79
- package/src/capabilities/index.ts +12 -8
- package/src/capabilities/operation-handler.ts +16 -0
- package/src/capabilities/react-surface.tsx +33 -19
- package/src/capabilities/settings.ts +26 -14
- package/src/capabilities/state.ts +20 -12
- package/src/components/FeedbackForm/FeedbackForm.stories.tsx +44 -0
- package/src/components/FeedbackForm/FeedbackForm.tsx +49 -0
- package/src/components/FeedbackForm/index.ts +5 -0
- package/src/components/ObservabilitySettings/ObservabilitySettings.stories.tsx +34 -0
- package/src/components/ObservabilitySettings/ObservabilitySettings.tsx +34 -0
- package/src/components/ObservabilitySettings/index.ts +5 -0
- package/src/components/index.ts +4 -2
- package/src/containers/HelpContainer/HelpContainer.tsx +57 -0
- package/src/containers/HelpContainer/index.ts +5 -0
- package/src/containers/index.ts +7 -0
- package/src/index.ts +1 -4
- package/src/meta.ts +9 -5
- package/src/operations/capture-user-feedback.ts +22 -0
- package/src/operations/index.ts +11 -0
- package/src/operations/send-event.ts +23 -0
- package/src/operations/toggle.ts +46 -0
- package/src/plugin.ts +11 -0
- package/src/translations.ts +22 -19
- package/src/types/ObservabilityCapabilities.ts +42 -0
- package/src/types/ObservabilityEvents.ts +15 -0
- package/src/types/ObservabilityOperation.ts +75 -0
- package/src/types/Settings.ts +22 -0
- package/src/types/index.ts +8 -0
- package/dist/lib/browser/app-graph-builder-3ROXVPV2.mjs +0 -43
- package/dist/lib/browser/app-graph-builder-3ROXVPV2.mjs.map +0 -7
- package/dist/lib/browser/chunk-BJ2ZWVOH.mjs +0 -18
- package/dist/lib/browser/chunk-BJ2ZWVOH.mjs.map +0 -7
- package/dist/lib/browser/chunk-NYBEHHJN.mjs +0 -175
- package/dist/lib/browser/chunk-NYBEHHJN.mjs.map +0 -7
- package/dist/lib/browser/chunk-P7VVCZOC.mjs +0 -179
- package/dist/lib/browser/chunk-P7VVCZOC.mjs.map +0 -7
- package/dist/lib/browser/chunk-RKH5BBR4.mjs +0 -13
- package/dist/lib/browser/chunk-RKH5BBR4.mjs.map +0 -7
- package/dist/lib/browser/client-ready-LP3YSSAH.mjs +0 -102
- package/dist/lib/browser/client-ready-LP3YSSAH.mjs.map +0 -7
- package/dist/lib/browser/index.mjs +0 -130
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/intent-resolver-JESDDMKB.mjs +0 -77
- package/dist/lib/browser/intent-resolver-JESDDMKB.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/lib/browser/react-surface-LVUG4XN3.mjs +0 -32
- package/dist/lib/browser/react-surface-LVUG4XN3.mjs.map +0 -7
- package/dist/lib/browser/settings-V2DX26J3.mjs +0 -25
- package/dist/lib/browser/settings-V2DX26J3.mjs.map +0 -7
- package/dist/lib/browser/state-LG4FXJD2.mjs +0 -26
- package/dist/lib/browser/state-LG4FXJD2.mjs.map +0 -7
- package/dist/lib/browser/types.mjs +0 -10
- package/dist/lib/node/app-graph-builder-EXZP366Q.cjs +0 -59
- package/dist/lib/node/app-graph-builder-EXZP366Q.cjs.map +0 -7
- package/dist/lib/node/chunk-2ERIOZP3.cjs +0 -36
- package/dist/lib/node/chunk-2ERIOZP3.cjs.map +0 -7
- package/dist/lib/node/chunk-B773OI2Y.cjs +0 -200
- package/dist/lib/node/chunk-B773OI2Y.cjs.map +0 -7
- package/dist/lib/node/chunk-HAIMXBCH.cjs +0 -38
- package/dist/lib/node/chunk-HAIMXBCH.cjs.map +0 -7
- package/dist/lib/node/chunk-UMH4JAVS.cjs +0 -199
- package/dist/lib/node/chunk-UMH4JAVS.cjs.map +0 -7
- package/dist/lib/node/client-ready-CTPKWHMP.cjs +0 -113
- package/dist/lib/node/client-ready-CTPKWHMP.cjs.map +0 -7
- package/dist/lib/node/index.cjs +0 -152
- package/dist/lib/node/index.cjs.map +0 -7
- package/dist/lib/node/intent-resolver-7G4GEUOA.cjs +0 -88
- package/dist/lib/node/intent-resolver-7G4GEUOA.cjs.map +0 -7
- package/dist/lib/node/meta.json +0 -1
- package/dist/lib/node/react-surface-CNFUEPBI.cjs +0 -55
- package/dist/lib/node/react-surface-CNFUEPBI.cjs.map +0 -7
- package/dist/lib/node/settings-RO5MXEQG.cjs +0 -39
- package/dist/lib/node/settings-RO5MXEQG.cjs.map +0 -7
- package/dist/lib/node/state-NXRP3P5D.cjs +0 -40
- package/dist/lib/node/state-NXRP3P5D.cjs.map +0 -7
- package/dist/lib/node/types.cjs +0 -32
- package/dist/lib/node/types.cjs.map +0 -7
- package/dist/lib/node-esm/app-graph-builder-T7J46NSQ.mjs +0 -44
- package/dist/lib/node-esm/app-graph-builder-T7J46NSQ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-JJGRAKXD.mjs +0 -176
- package/dist/lib/node-esm/chunk-JJGRAKXD.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-KT5SDFBU.mjs +0 -15
- package/dist/lib/node-esm/chunk-KT5SDFBU.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-S2MXYKCI.mjs +0 -180
- package/dist/lib/node-esm/chunk-S2MXYKCI.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-X2U2ZHWX.mjs +0 -19
- package/dist/lib/node-esm/chunk-X2U2ZHWX.mjs.map +0 -7
- package/dist/lib/node-esm/client-ready-FS62YRSD.mjs +0 -103
- package/dist/lib/node-esm/client-ready-FS62YRSD.mjs.map +0 -7
- package/dist/lib/node-esm/index.mjs +0 -131
- package/dist/lib/node-esm/index.mjs.map +0 -7
- package/dist/lib/node-esm/intent-resolver-MREOBMHB.mjs +0 -78
- package/dist/lib/node-esm/intent-resolver-MREOBMHB.mjs.map +0 -7
- package/dist/lib/node-esm/meta.json +0 -1
- package/dist/lib/node-esm/react-surface-B3JSZZAO.mjs +0 -33
- package/dist/lib/node-esm/react-surface-B3JSZZAO.mjs.map +0 -7
- package/dist/lib/node-esm/settings-BFFR4CHU.mjs +0 -26
- package/dist/lib/node-esm/settings-BFFR4CHU.mjs.map +0 -7
- package/dist/lib/node-esm/state-IZNXQ5RA.mjs +0 -27
- package/dist/lib/node-esm/state-IZNXQ5RA.mjs.map +0 -7
- package/dist/lib/node-esm/types.mjs +0 -11
- package/dist/types/src/capabilities/capabilities.d.ts +0 -12
- package/dist/types/src/capabilities/capabilities.d.ts.map +0 -1
- package/dist/types/src/capabilities/intent-resolver.d.ts +0 -7
- package/dist/types/src/capabilities/intent-resolver.d.ts.map +0 -1
- package/dist/types/src/components/FeedbackForm.d.ts +0 -6
- package/dist/types/src/components/FeedbackForm.d.ts.map +0 -1
- package/dist/types/src/components/HelpContainer.d.ts +0 -3
- package/dist/types/src/components/HelpContainer.d.ts.map +0 -1
- package/dist/types/src/components/ObservabilitySettings.d.ts +0 -10
- package/dist/types/src/components/ObservabilitySettings.d.ts.map +0 -1
- package/dist/types/src/events.d.ts +0 -5
- package/dist/types/src/events.d.ts.map +0 -1
- package/dist/types/src/types.d.ts +0 -286
- package/dist/types/src/types.d.ts.map +0 -1
- package/src/capabilities/capabilities.ts +0 -22
- package/src/capabilities/intent-resolver.ts +0 -68
- package/src/components/FeedbackForm.tsx +0 -82
- package/src/components/HelpContainer.tsx +0 -40
- package/src/components/ObservabilitySettings.tsx +0 -48
- package/src/events.ts +0 -14
- package/src/types.ts +0 -203
- /package/dist/lib/{browser/types.mjs.map → neutral/chunk-J5LGTIGS.mjs.map} +0 -0
- /package/dist/lib/{node-esm/types.mjs.map → neutral/index.mjs.map} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"packages/plugins/plugin-observability/src/meta.ts":{"bytes":1092,"imports":[],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/capabilities.ts":{"bytes":2498,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/app-graph-builder.ts":{"bytes":5657,"imports":[{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/types.ts":{"bytes":21508,"imports":[{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/client-ready.ts":{"bytes":13584,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/observability","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-observability/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/intent-resolver.ts":{"bytes":9940,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/observability","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-observability/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-observability/src/components/FeedbackForm.tsx":{"bytes":10124,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-observability/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-observability/src/components/HelpContainer.tsx":{"bytes":5670,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/components/FeedbackForm.tsx","kind":"import-statement","original":"./FeedbackForm"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-observability/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-observability/src/components/ObservabilitySettings.tsx":{"bytes":5582,"imports":[{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"},{"path":"packages/plugins/plugin-observability/src/types.ts","kind":"import-statement","original":"../types"}],"format":"esm"},"packages/plugins/plugin-observability/src/components/index.ts":{"bytes":726,"imports":[{"path":"packages/plugins/plugin-observability/src/components/FeedbackForm.tsx","kind":"import-statement","original":"./FeedbackForm"},{"path":"packages/plugins/plugin-observability/src/components/HelpContainer.tsx","kind":"import-statement","original":"./HelpContainer"},{"path":"packages/plugins/plugin-observability/src/components/ObservabilitySettings.tsx","kind":"import-statement","original":"./ObservabilitySettings"}],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/react-surface.tsx":{"bytes":3590,"imports":[{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/settings.ts":{"bytes":2063,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/components/index.ts","kind":"import-statement","original":"../components"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/state.ts":{"bytes":3101,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/observability","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"../meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/capabilities/index.ts":{"bytes":2171,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/capabilities/capabilities.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-observability/src/capabilities/app-graph-builder.ts","kind":"dynamic-import","original":"./app-graph-builder"},{"path":"packages/plugins/plugin-observability/src/capabilities/client-ready.ts","kind":"dynamic-import","original":"./client-ready"},{"path":"packages/plugins/plugin-observability/src/capabilities/intent-resolver.ts","kind":"dynamic-import","original":"./intent-resolver"},{"path":"packages/plugins/plugin-observability/src/capabilities/react-surface.tsx","kind":"dynamic-import","original":"./react-surface"},{"path":"packages/plugins/plugin-observability/src/capabilities/settings.ts","kind":"dynamic-import","original":"./settings"},{"path":"packages/plugins/plugin-observability/src/capabilities/state.ts","kind":"dynamic-import","original":"./state"}],"format":"esm"},"packages/plugins/plugin-observability/src/events.ts":{"bytes":1805,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/translations.ts":{"bytes":4470,"imports":[{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"./meta"}],"format":"esm"},"packages/plugins/plugin-observability/src/ObservabilityPlugin.ts":{"bytes":8884,"imports":[{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-observability/src/events.ts","kind":"import-statement","original":"./events"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-observability/src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"packages/plugins/plugin-observability/src/index.ts":{"bytes":1078,"imports":[{"path":"packages/plugins/plugin-observability/src/capabilities/index.ts","kind":"import-statement","original":"./capabilities"},{"path":"packages/plugins/plugin-observability/src/events.ts","kind":"import-statement","original":"./events"},{"path":"packages/plugins/plugin-observability/src/components/index.ts","kind":"import-statement","original":"./components"},{"path":"packages/plugins/plugin-observability/src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"packages/plugins/plugin-observability/src/ObservabilityPlugin.ts","kind":"import-statement","original":"./ObservabilityPlugin"}],"format":"esm"}},"outputs":{"packages/plugins/plugin-observability/dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":7958},"packages/plugins/plugin-observability/dist/lib/browser/index.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-NYBEHHJN.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-BJ2ZWVOH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"packages/plugins/plugin-observability/dist/lib/browser/app-graph-builder-3ROXVPV2.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/client-ready-LP3YSSAH.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/intent-resolver-JESDDMKB.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/react-surface-LVUG4XN3.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/settings-V2DX26J3.mjs","kind":"dynamic-import"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/state-LG4FXJD2.mjs","kind":"dynamic-import"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["FeedbackForm","HelpContainer","OBSERVABILITY_PLUGIN","ObservabilityCapabilities","ObservabilityEvents","ObservabilityPlugin","ObservabilitySettings","ObservabilitySettingsSchema","meta"],"entryPoint":"packages/plugins/plugin-observability/src/index.ts","inputs":{"packages/plugins/plugin-observability/src/capabilities/index.ts":{"bytesInOutput":482},"packages/plugins/plugin-observability/src/index.ts":{"bytesInOutput":0},"packages/plugins/plugin-observability/src/events.ts":{"bytesInOutput":337},"packages/plugins/plugin-observability/src/ObservabilityPlugin.ts":{"bytesInOutput":1831},"packages/plugins/plugin-observability/src/translations.ts":{"bytesInOutput":1427}},"bytes":4941},"packages/plugins/plugin-observability/dist/lib/browser/types.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"packages/plugins/plugin-observability/dist/lib/browser/types.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"}],"exports":["ObservabilityAction","UserFeedback"],"entryPoint":"packages/plugins/plugin-observability/src/types.ts","inputs":{},"bytes":194},"packages/plugins/plugin-observability/dist/lib/browser/app-graph-builder-3ROXVPV2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":2739},"packages/plugins/plugin-observability/dist/lib/browser/app-graph-builder-3ROXVPV2.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@effect-rx/rx-react","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/plugin-graph","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-observability/src/capabilities/app-graph-builder.ts","inputs":{"packages/plugins/plugin-observability/src/capabilities/app-graph-builder.ts":{"bytesInOutput":1160}},"bytes":1410},"packages/plugins/plugin-observability/dist/lib/browser/client-ready-LP3YSSAH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":6716},"packages/plugins/plugin-observability/dist/lib/browser/client-ready-LP3YSSAH.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-BJ2ZWVOH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/observability","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-observability/src/capabilities/client-ready.ts","inputs":{"packages/plugins/plugin-observability/src/capabilities/client-ready.ts":{"bytesInOutput":3239}},"bytes":3624},"packages/plugins/plugin-observability/dist/lib/browser/intent-resolver-JESDDMKB.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":4907},"packages/plugins/plugin-observability/dist/lib/browser/intent-resolver-JESDDMKB.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-BJ2ZWVOH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/log","kind":"import-statement","external":true},{"path":"@dxos/observability","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-observability/src/capabilities/intent-resolver.ts","inputs":{"packages/plugins/plugin-observability/src/capabilities/intent-resolver.ts":{"bytesInOutput":2234}},"bytes":2628},"packages/plugins/plugin-observability/dist/lib/browser/react-surface-LVUG4XN3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1816},"packages/plugins/plugin-observability/dist/lib/browser/react-surface-LVUG4XN3.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-NYBEHHJN.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-observability/src/capabilities/react-surface.tsx","inputs":{"packages/plugins/plugin-observability/src/capabilities/react-surface.tsx":{"bytesInOutput":738}},"bytes":1089},"packages/plugins/plugin-observability/dist/lib/browser/settings-V2DX26J3.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1053},"packages/plugins/plugin-observability/dist/lib/browser/settings-V2DX26J3.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-NYBEHHJN.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/live-object","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-observability/src/capabilities/settings.ts","inputs":{"packages/plugins/plugin-observability/src/capabilities/settings.ts":{"bytesInOutput":325}},"bytes":633},"packages/plugins/plugin-observability/dist/lib/browser/chunk-NYBEHHJN.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10686},"packages/plugins/plugin-observability/dist/lib/browser/chunk-NYBEHHJN.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/echo-schema","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@preact-signals/safe-react/tracking","kind":"import-statement","external":true},{"path":"effect","kind":"import-statement","external":true},{"path":"react","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/react-ui","kind":"import-statement","external":true},{"path":"@dxos/react-ui-form","kind":"import-statement","external":true}],"exports":["FeedbackForm","HelpContainer","ObservabilitySettings","ObservabilitySettingsSchema"],"inputs":{"packages/plugins/plugin-observability/src/components/FeedbackForm.tsx":{"bytesInOutput":2781},"packages/plugins/plugin-observability/src/components/HelpContainer.tsx":{"bytesInOutput":1390},"packages/plugins/plugin-observability/src/components/ObservabilitySettings.tsx":{"bytesInOutput":1390},"packages/plugins/plugin-observability/src/components/index.ts":{"bytesInOutput":0}},"bytes":6079},"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":10907},"packages/plugins/plugin-observability/dist/lib/browser/chunk-P7VVCZOC.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"effect","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true}],"exports":["ObservabilityAction","UserFeedback"],"inputs":{"packages/plugins/plugin-observability/src/types.ts":{"bytesInOutput":5365}},"bytes":5578},"packages/plugins/plugin-observability/dist/lib/browser/state-LG4FXJD2.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1586},"packages/plugins/plugin-observability/dist/lib/browser/state-LG4FXJD2.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-BJ2ZWVOH.mjs","kind":"import-statement"},{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/local-storage","kind":"import-statement","external":true},{"path":"@dxos/observability","kind":"import-statement","external":true}],"exports":["default"],"entryPoint":"packages/plugins/plugin-observability/src/capabilities/state.ts","inputs":{"packages/plugins/plugin-observability/src/capabilities/state.ts":{"bytesInOutput":544}},"bytes":826},"packages/plugins/plugin-observability/dist/lib/browser/chunk-BJ2ZWVOH.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":1242},"packages/plugins/plugin-observability/dist/lib/browser/chunk-BJ2ZWVOH.mjs":{"imports":[{"path":"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs","kind":"import-statement"},{"path":"@dxos/app-framework","kind":"import-statement","external":true}],"exports":["ClientCapability","ObservabilityCapabilities"],"inputs":{"packages/plugins/plugin-observability/src/capabilities/capabilities.ts":{"bytesInOutput":493}},"bytes":736},"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":533},"packages/plugins/plugin-observability/dist/lib/browser/chunk-RKH5BBR4.mjs":{"imports":[],"exports":["OBSERVABILITY_PLUGIN","meta"],"inputs":{"packages/plugins/plugin-observability/src/meta.ts":{"bytesInOutput":152}},"bytes":293}}}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
HelpContainer,
|
|
3
|
-
ObservabilitySettings
|
|
4
|
-
} from "./chunk-NYBEHHJN.mjs";
|
|
5
|
-
import "./chunk-P7VVCZOC.mjs";
|
|
6
|
-
import {
|
|
7
|
-
OBSERVABILITY_PLUGIN
|
|
8
|
-
} from "./chunk-RKH5BBR4.mjs";
|
|
9
|
-
|
|
10
|
-
// packages/plugins/plugin-observability/src/capabilities/react-surface.tsx
|
|
11
|
-
import React from "react";
|
|
12
|
-
import { contributes, Capabilities, createSurface } from "@dxos/app-framework";
|
|
13
|
-
import { SettingsStore } from "@dxos/local-storage";
|
|
14
|
-
var react_surface_default = () => contributes(Capabilities.ReactSurface, [
|
|
15
|
-
createSurface({
|
|
16
|
-
id: OBSERVABILITY_PLUGIN,
|
|
17
|
-
role: "article",
|
|
18
|
-
filter: (data) => data.subject instanceof SettingsStore && data.subject.prefix === OBSERVABILITY_PLUGIN,
|
|
19
|
-
component: ({ data: { subject } }) => /* @__PURE__ */ React.createElement(ObservabilitySettings, {
|
|
20
|
-
settings: subject.value
|
|
21
|
-
})
|
|
22
|
-
}),
|
|
23
|
-
createSurface({
|
|
24
|
-
id: `${OBSERVABILITY_PLUGIN}/help`,
|
|
25
|
-
role: "deck-companion--help",
|
|
26
|
-
component: () => /* @__PURE__ */ React.createElement(HelpContainer, null)
|
|
27
|
-
})
|
|
28
|
-
]);
|
|
29
|
-
export {
|
|
30
|
-
react_surface_default as default
|
|
31
|
-
};
|
|
32
|
-
//# sourceMappingURL=react-surface-LVUG4XN3.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/react-surface.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport React from 'react';\n\nimport { contributes, Capabilities, createSurface } from '@dxos/app-framework';\nimport { SettingsStore } from '@dxos/local-storage';\n\nimport { HelpContainer, ObservabilitySettings, type ObservabilitySettingsProps } from '../components';\nimport { OBSERVABILITY_PLUGIN } from '../meta';\n\nexport default () =>\n contributes(Capabilities.ReactSurface, [\n createSurface({\n id: OBSERVABILITY_PLUGIN,\n role: 'article',\n filter: (data): data is { subject: SettingsStore<ObservabilitySettingsProps> } =>\n data.subject instanceof SettingsStore && data.subject.prefix === OBSERVABILITY_PLUGIN,\n component: ({ data: { subject } }) => <ObservabilitySettings settings={subject.value} />,\n }),\n createSurface({\n id: `${OBSERVABILITY_PLUGIN}/help`,\n role: 'deck-companion--help',\n component: () => <HelpContainer />,\n }),\n ]);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;AAIA,OAAOA,WAAW;AAElB,SAASC,aAAaC,cAAcC,qBAAqB;AACzD,SAASC,qBAAqB;AAK9B,IAAA,wBAAe,MACbC,YAAYC,aAAaC,cAAc;EACrCC,cAAc;IACZC,IAAIC;IACJC,MAAM;IACNC,QAAQ,CAACC,SACPA,KAAKC,mBAAmBC,iBAAiBF,KAAKC,QAAQE,WAAWN;IACnEO,WAAW,CAAC,EAAEJ,MAAM,EAAEC,QAAO,EAAE,MAAO,sBAAA,cAACI,uBAAAA;MAAsBC,UAAUL,QAAQM;;EACjF,CAAA;EACAZ,cAAc;IACZC,IAAI,GAAGC,oBAAAA;IACPC,MAAM;IACNM,WAAW,MAAM,sBAAA,cAACI,eAAAA,IAAAA;EACpB,CAAA;CACD;",
|
|
6
|
-
"names": ["React", "contributes", "Capabilities", "createSurface", "SettingsStore", "contributes", "Capabilities", "ReactSurface", "createSurface", "id", "OBSERVABILITY_PLUGIN", "role", "filter", "data", "subject", "SettingsStore", "prefix", "component", "ObservabilitySettings", "settings", "value", "HelpContainer"]
|
|
7
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObservabilitySettingsSchema
|
|
3
|
-
} from "./chunk-NYBEHHJN.mjs";
|
|
4
|
-
import "./chunk-P7VVCZOC.mjs";
|
|
5
|
-
import {
|
|
6
|
-
meta
|
|
7
|
-
} from "./chunk-RKH5BBR4.mjs";
|
|
8
|
-
|
|
9
|
-
// packages/plugins/plugin-observability/src/capabilities/settings.ts
|
|
10
|
-
import { Capabilities, contributes } from "@dxos/app-framework";
|
|
11
|
-
import { live } from "@dxos/live-object";
|
|
12
|
-
var settings_default = () => {
|
|
13
|
-
const settings = live({
|
|
14
|
-
enabled: true
|
|
15
|
-
});
|
|
16
|
-
return contributes(Capabilities.Settings, {
|
|
17
|
-
prefix: meta.id,
|
|
18
|
-
schema: ObservabilitySettingsSchema,
|
|
19
|
-
value: settings
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
settings_default as default
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=settings-V2DX26J3.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/settings.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Capabilities, contributes } from '@dxos/app-framework';\nimport { live } from '@dxos/live-object';\n\nimport { type ObservabilitySettingsProps, ObservabilitySettingsSchema } from '../components';\nimport { meta } from '../meta';\n\nexport default () => {\n const settings = live<ObservabilitySettingsProps>({\n enabled: true,\n });\n\n return contributes(Capabilities.Settings, {\n prefix: meta.id,\n schema: ObservabilitySettingsSchema,\n value: settings,\n });\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;AAIA,SAASA,cAAcC,mBAAmB;AAC1C,SAASC,YAAY;AAKrB,IAAA,mBAAe,MAAA;AACb,QAAMC,WAAWC,KAAiC;IAChDC,SAAS;EACX,CAAA;AAEA,SAAOC,YAAYC,aAAaC,UAAU;IACxCC,QAAQC,KAAKC;IACbC,QAAQC;IACRC,OAAOX;EACT,CAAA;AACF;",
|
|
6
|
-
"names": ["Capabilities", "contributes", "live", "settings", "live", "enabled", "contributes", "Capabilities", "Settings", "prefix", "meta", "id", "schema", "ObservabilitySettingsSchema", "value"]
|
|
7
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ObservabilityCapabilities
|
|
3
|
-
} from "./chunk-BJ2ZWVOH.mjs";
|
|
4
|
-
import {
|
|
5
|
-
OBSERVABILITY_PLUGIN
|
|
6
|
-
} from "./chunk-RKH5BBR4.mjs";
|
|
7
|
-
|
|
8
|
-
// packages/plugins/plugin-observability/src/capabilities/state.ts
|
|
9
|
-
import { contributes } from "@dxos/app-framework";
|
|
10
|
-
import { LocalStorageStore } from "@dxos/local-storage";
|
|
11
|
-
import { getObservabilityGroup } from "@dxos/observability";
|
|
12
|
-
var state_default = async ({ namespace }) => {
|
|
13
|
-
const state = new LocalStorageStore(OBSERVABILITY_PLUGIN);
|
|
14
|
-
state.prop({
|
|
15
|
-
key: "notified",
|
|
16
|
-
type: LocalStorageStore.bool({
|
|
17
|
-
allowUndefined: true
|
|
18
|
-
})
|
|
19
|
-
});
|
|
20
|
-
state.values.group = await getObservabilityGroup(namespace);
|
|
21
|
-
return contributes(ObservabilityCapabilities.State, state.values, () => state.close());
|
|
22
|
-
};
|
|
23
|
-
export {
|
|
24
|
-
state_default as default
|
|
25
|
-
};
|
|
26
|
-
//# sourceMappingURL=state-LG4FXJD2.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/state.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { contributes } from '@dxos/app-framework';\nimport { LocalStorageStore } from '@dxos/local-storage';\nimport { getObservabilityGroup } from '@dxos/observability';\n\nimport { ObservabilityCapabilities } from './capabilities';\nimport { OBSERVABILITY_PLUGIN } from '../meta';\n\nexport default async ({ namespace }: { namespace: string }) => {\n const state = new LocalStorageStore<ObservabilityCapabilities.State>(OBSERVABILITY_PLUGIN);\n\n state.prop({ key: 'notified', type: LocalStorageStore.bool({ allowUndefined: true }) });\n\n // NOTE: This is not stored in local storage such that it can be accessed by workers.\n state.values.group = await getObservabilityGroup(namespace);\n\n return contributes(ObservabilityCapabilities.State, state.values, () => state.close());\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;AAIA,SAASA,mBAAmB;AAC5B,SAASC,yBAAyB;AAClC,SAASC,6BAA6B;AAKtC,IAAA,gBAAe,OAAO,EAAEC,UAAS,MAAyB;AACxD,QAAMC,QAAQ,IAAIC,kBAAmDC,oBAAAA;AAErEF,QAAMG,KAAK;IAAEC,KAAK;IAAYC,MAAMJ,kBAAkBK,KAAK;MAAEC,gBAAgB;IAAK,CAAA;EAAG,CAAA;AAGrFP,QAAMQ,OAAOC,QAAQ,MAAMC,sBAAsBX,SAAAA;AAEjD,SAAOY,YAAYC,0BAA0BC,OAAOb,MAAMQ,QAAQ,MAAMR,MAAMc,MAAK,CAAA;AACrF;",
|
|
6
|
-
"names": ["contributes", "LocalStorageStore", "getObservabilityGroup", "namespace", "state", "LocalStorageStore", "OBSERVABILITY_PLUGIN", "prop", "key", "type", "bool", "allowUndefined", "values", "group", "getObservabilityGroup", "contributes", "ObservabilityCapabilities", "State", "close"]
|
|
7
|
-
}
|
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var app_graph_builder_EXZP366Q_exports = {};
|
|
20
|
-
__export(app_graph_builder_EXZP366Q_exports, {
|
|
21
|
-
default: () => app_graph_builder_default
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(app_graph_builder_EXZP366Q_exports);
|
|
24
|
-
var import_chunk_2ERIOZP3 = require("./chunk-2ERIOZP3.cjs");
|
|
25
|
-
var import_rx_react = require("@effect-rx/rx-react");
|
|
26
|
-
var import_effect = require("effect");
|
|
27
|
-
var import_app_framework = require("@dxos/app-framework");
|
|
28
|
-
var import_plugin_graph = require("@dxos/plugin-graph");
|
|
29
|
-
var ATTENDABLE_PATH_SEPARATOR = "~";
|
|
30
|
-
var DECK_COMPANION_TYPE = "dxos.org/plugin/deck/deck-companion";
|
|
31
|
-
var app_graph_builder_default = (context) => (0, import_app_framework.contributes)(import_app_framework.Capabilities.AppGraphBuilder, [
|
|
32
|
-
(0, import_plugin_graph.createExtension)({
|
|
33
|
-
id: `${import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN}/help`,
|
|
34
|
-
connector: (node) => import_rx_react.Rx.make((get) => (0, import_effect.pipe)(get(node), import_effect.Option.flatMap((node2) => node2.id === import_plugin_graph.ROOT_ID ? import_effect.Option.some(node2) : import_effect.Option.none()), import_effect.Option.map((node2) => {
|
|
35
|
-
return [
|
|
36
|
-
{
|
|
37
|
-
id: [
|
|
38
|
-
node2.id,
|
|
39
|
-
"help"
|
|
40
|
-
].join(ATTENDABLE_PATH_SEPARATOR),
|
|
41
|
-
type: DECK_COMPANION_TYPE,
|
|
42
|
-
data: null,
|
|
43
|
-
properties: {
|
|
44
|
-
label: [
|
|
45
|
-
"help label",
|
|
46
|
-
{
|
|
47
|
-
ns: import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN
|
|
48
|
-
}
|
|
49
|
-
],
|
|
50
|
-
icon: "ph--question--regular",
|
|
51
|
-
disposition: "hidden",
|
|
52
|
-
position: "hoist"
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
];
|
|
56
|
-
}), import_effect.Option.getOrElse(() => [])))
|
|
57
|
-
})
|
|
58
|
-
]);
|
|
59
|
-
//# sourceMappingURL=app-graph-builder-EXZP366Q.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/app-graph-builder.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { Rx } from '@effect-rx/rx-react';\nimport { Option, pipe } from 'effect';\n\nimport { Capabilities, contributes, type PluginContext } from '@dxos/app-framework';\nimport { createExtension, ROOT_ID } from '@dxos/plugin-graph';\n\nimport { OBSERVABILITY_PLUGIN } from '../meta';\n\n// NOTE: Copied from @dxos/plugin-deck to break circular dependency.\nconst ATTENDABLE_PATH_SEPARATOR = '~';\nconst DECK_COMPANION_TYPE = 'dxos.org/plugin/deck/deck-companion';\n\nexport default (context: PluginContext) =>\n contributes(Capabilities.AppGraphBuilder, [\n createExtension({\n id: `${OBSERVABILITY_PLUGIN}/help`,\n connector: (node) =>\n Rx.make((get) =>\n pipe(\n get(node),\n Option.flatMap((node) => (node.id === ROOT_ID ? Option.some(node) : Option.none())),\n Option.map((node) => {\n return [\n {\n id: [node.id, 'help'].join(ATTENDABLE_PATH_SEPARATOR),\n type: DECK_COMPANION_TYPE,\n data: null,\n properties: {\n label: ['help label', { ns: OBSERVABILITY_PLUGIN }],\n icon: 'ph--question--regular',\n disposition: 'hidden',\n position: 'hoist',\n },\n },\n ];\n }),\n Option.getOrElse(() => []),\n ),\n ),\n }),\n ]);\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAIA,sBAAmB;AACnB,oBAA6B;AAE7B,2BAA8D;AAC9D,0BAAyC;AAKzC,IAAMA,4BAA4B;AAClC,IAAMC,sBAAsB;AAE5B,IAAA,4BAAe,CAACC,gBACdC,kCAAYC,kCAAaC,iBAAiB;MACxCC,qCAAgB;IACdC,IAAI,GAAGC,0CAAAA;IACPC,WAAW,CAACC,SACVC,mBAAGC,KAAK,CAACC,YACPC,oBACED,IAAIH,IAAAA,GACJK,qBAAOC,QAAQ,CAACN,UAAUA,MAAKH,OAAOU,8BAAUF,qBAAOG,KAAKR,KAAAA,IAAQK,qBAAOI,KAAI,CAAA,GAC/EJ,qBAAOK,IAAI,CAACV,UAAAA;AACV,aAAO;QACL;UACEH,IAAI;YAACG,MAAKH;YAAI;YAAQc,KAAKrB,yBAAAA;UAC3BsB,MAAMrB;UACNsB,MAAM;UACNC,YAAY;YACVC,OAAO;cAAC;cAAc;gBAAEC,IAAIlB;cAAqB;;YACjDmB,MAAM;YACNC,aAAa;YACbC,UAAU;UACZ;QACF;;IAEJ,CAAA,GACAd,qBAAOe,UAAU,MAAM,CAAA,CAAE,CAAA,CAAA;EAGjC,CAAA;CACD;",
|
|
6
|
-
"names": ["ATTENDABLE_PATH_SEPARATOR", "DECK_COMPANION_TYPE", "context", "contributes", "Capabilities", "AppGraphBuilder", "createExtension", "id", "OBSERVABILITY_PLUGIN", "connector", "node", "Rx", "make", "get", "pipe", "Option", "flatMap", "ROOT_ID", "some", "none", "map", "join", "type", "data", "properties", "label", "ns", "icon", "disposition", "position", "getOrElse"]
|
|
7
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_2ERIOZP3_exports = {};
|
|
20
|
-
__export(chunk_2ERIOZP3_exports, {
|
|
21
|
-
OBSERVABILITY_PLUGIN: () => OBSERVABILITY_PLUGIN,
|
|
22
|
-
meta: () => meta
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(chunk_2ERIOZP3_exports);
|
|
25
|
-
var OBSERVABILITY_PLUGIN = "dxos.org/plugin/observability";
|
|
26
|
-
var meta = {
|
|
27
|
-
id: OBSERVABILITY_PLUGIN,
|
|
28
|
-
name: "Telemetry",
|
|
29
|
-
icon: "ph--eye--regular"
|
|
30
|
-
};
|
|
31
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
32
|
-
0 && (module.exports = {
|
|
33
|
-
OBSERVABILITY_PLUGIN,
|
|
34
|
-
meta
|
|
35
|
-
});
|
|
36
|
-
//# sourceMappingURL=chunk-2ERIOZP3.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type PluginMeta } from '@dxos/app-framework';\n\nexport const OBSERVABILITY_PLUGIN = 'dxos.org/plugin/observability';\n\nexport const meta: PluginMeta = {\n id: OBSERVABILITY_PLUGIN,\n name: 'Telemetry',\n icon: 'ph--eye--regular',\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;AAMO,IAAMA,uBAAuB;AAE7B,IAAMC,OAAmB;EAC9BC,IAAIF;EACJG,MAAM;EACNC,MAAM;AACR;",
|
|
6
|
-
"names": ["OBSERVABILITY_PLUGIN", "meta", "id", "name", "icon"]
|
|
7
|
-
}
|
|
@@ -1,200 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __create = Object.create;
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var chunk_B773OI2Y_exports = {};
|
|
30
|
-
__export(chunk_B773OI2Y_exports, {
|
|
31
|
-
FeedbackForm: () => FeedbackForm,
|
|
32
|
-
HelpContainer: () => HelpContainer,
|
|
33
|
-
ObservabilitySettings: () => ObservabilitySettings,
|
|
34
|
-
ObservabilitySettingsSchema: () => ObservabilitySettingsSchema
|
|
35
|
-
});
|
|
36
|
-
module.exports = __toCommonJS(chunk_B773OI2Y_exports);
|
|
37
|
-
var import_chunk_UMH4JAVS = require("./chunk-UMH4JAVS.cjs");
|
|
38
|
-
var import_chunk_2ERIOZP3 = require("./chunk-2ERIOZP3.cjs");
|
|
39
|
-
var import_tracking = require("@preact-signals/safe-react/tracking");
|
|
40
|
-
var import_react = __toESM(require("react"));
|
|
41
|
-
var import_echo_schema = require("@dxos/echo-schema");
|
|
42
|
-
var import_react_ui = require("@dxos/react-ui");
|
|
43
|
-
var import_react_ui_form = require("@dxos/react-ui-form");
|
|
44
|
-
var import_tracking2 = require("@preact-signals/safe-react/tracking");
|
|
45
|
-
var import_effect = require("effect");
|
|
46
|
-
var import_react2 = __toESM(require("react"));
|
|
47
|
-
var import_app_framework = require("@dxos/app-framework");
|
|
48
|
-
var import_tracking3 = require("@preact-signals/safe-react/tracking");
|
|
49
|
-
var import_effect2 = require("effect");
|
|
50
|
-
var import_react3 = __toESM(require("react"));
|
|
51
|
-
var import_app_framework2 = require("@dxos/app-framework");
|
|
52
|
-
var import_react_ui2 = require("@dxos/react-ui");
|
|
53
|
-
var import_react_ui_form2 = require("@dxos/react-ui-form");
|
|
54
|
-
var defaultValues = {
|
|
55
|
-
message: ""
|
|
56
|
-
};
|
|
57
|
-
var FormContent = () => {
|
|
58
|
-
var _effect = (0, import_tracking.useSignals)();
|
|
59
|
-
try {
|
|
60
|
-
const { t } = (0, import_react_ui.useTranslation)(import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN);
|
|
61
|
-
const { handleSave, canSave } = (0, import_react_ui_form.useFormContext)();
|
|
62
|
-
const messageProps = (0, import_react_ui_form.useInputProps)([
|
|
63
|
-
"message"
|
|
64
|
-
]);
|
|
65
|
-
return /* @__PURE__ */ import_react.default.createElement("div", {
|
|
66
|
-
role: "form",
|
|
67
|
-
className: "p-3 flex flex-col gap-2"
|
|
68
|
-
}, /* @__PURE__ */ import_react.default.createElement("div", {
|
|
69
|
-
role: "none",
|
|
70
|
-
className: "space-b-1"
|
|
71
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.Root, {
|
|
72
|
-
validationValence: messageProps.getStatus().status
|
|
73
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.Label, null, t("feedback text area label")), /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.TextArea, {
|
|
74
|
-
classNames: "text-sm",
|
|
75
|
-
rows: 5,
|
|
76
|
-
cols: 30,
|
|
77
|
-
placeholder: t("feedback text area placeholder"),
|
|
78
|
-
value: messageProps.getValue() ?? "",
|
|
79
|
-
onChange: (e) => messageProps.onValueChange("string", e.target.value),
|
|
80
|
-
// TODO(wittjosiah): This aggressively shows validation errors.
|
|
81
|
-
onBlur: messageProps.onBlur
|
|
82
|
-
}), /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.DescriptionAndValidation, null, /* @__PURE__ */ import_react.default.createElement(import_react_ui.Input.Validation, null, messageProps.getStatus().error)))), /* @__PURE__ */ import_react.default.createElement("div", {
|
|
83
|
-
role: "none",
|
|
84
|
-
className: "space-b-2"
|
|
85
|
-
}, /* @__PURE__ */ import_react.default.createElement(import_react_ui.IconButton, {
|
|
86
|
-
icon: "ph--paper-plane-tilt--regular",
|
|
87
|
-
label: t("send feedback label"),
|
|
88
|
-
variant: "primary",
|
|
89
|
-
type: "submit",
|
|
90
|
-
classNames: "is-full",
|
|
91
|
-
disabled: !canSave,
|
|
92
|
-
onClick: handleSave
|
|
93
|
-
})));
|
|
94
|
-
} finally {
|
|
95
|
-
_effect.f();
|
|
96
|
-
}
|
|
97
|
-
};
|
|
98
|
-
var FeedbackForm = ({ onSave }) => {
|
|
99
|
-
var _effect = (0, import_tracking.useSignals)();
|
|
100
|
-
try {
|
|
101
|
-
const formRef = (0, import_react.useRef)(null);
|
|
102
|
-
const [_, update] = (0, import_react.useState)({});
|
|
103
|
-
const forceRender = (0, import_react.useCallback)(() => update({}), [
|
|
104
|
-
update
|
|
105
|
-
]);
|
|
106
|
-
const handleSave = (0, import_react.useCallback)((values) => {
|
|
107
|
-
onSave(values);
|
|
108
|
-
forceRender();
|
|
109
|
-
}, [
|
|
110
|
-
forceRender,
|
|
111
|
-
onSave
|
|
112
|
-
]);
|
|
113
|
-
const initialValues = (0, import_echo_schema.getSnapshot)(defaultValues);
|
|
114
|
-
return /* @__PURE__ */ import_react.default.createElement(import_react_ui_form.FormProvider, {
|
|
115
|
-
formRef,
|
|
116
|
-
schema: import_chunk_UMH4JAVS.UserFeedback,
|
|
117
|
-
initialValues,
|
|
118
|
-
onSave: handleSave
|
|
119
|
-
}, /* @__PURE__ */ import_react.default.createElement("div", {
|
|
120
|
-
ref: formRef
|
|
121
|
-
}, /* @__PURE__ */ import_react.default.createElement(FormContent, null)));
|
|
122
|
-
} finally {
|
|
123
|
-
_effect.f();
|
|
124
|
-
}
|
|
125
|
-
};
|
|
126
|
-
var HelpContainer = () => {
|
|
127
|
-
var _effect = (0, import_tracking2.useSignals)();
|
|
128
|
-
try {
|
|
129
|
-
const { dispatchPromise: dispatch } = (0, import_app_framework.useIntentDispatcher)();
|
|
130
|
-
const handleSave = (0, import_react2.useCallback)((values) => dispatch((0, import_effect.pipe)((0, import_app_framework.createIntent)(import_chunk_UMH4JAVS.ObservabilityAction.CaptureUserFeedback, values), (0, import_app_framework.chain)(import_app_framework.LayoutAction.UpdateComplementary, {
|
|
131
|
-
part: "complementary",
|
|
132
|
-
options: {
|
|
133
|
-
state: "collapsed"
|
|
134
|
-
}
|
|
135
|
-
}), (0, import_app_framework.chain)(import_app_framework.LayoutAction.AddToast, {
|
|
136
|
-
part: "toast",
|
|
137
|
-
subject: {
|
|
138
|
-
id: `${import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN}/feedback-success`,
|
|
139
|
-
icon: "ph--paper-plane-tilt--regular",
|
|
140
|
-
duration: 3e3,
|
|
141
|
-
title: [
|
|
142
|
-
"feedback toast label",
|
|
143
|
-
{
|
|
144
|
-
ns: import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN
|
|
145
|
-
}
|
|
146
|
-
],
|
|
147
|
-
description: [
|
|
148
|
-
"feedback toast description",
|
|
149
|
-
{
|
|
150
|
-
ns: import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN
|
|
151
|
-
}
|
|
152
|
-
],
|
|
153
|
-
closeLabel: [
|
|
154
|
-
"close label",
|
|
155
|
-
{
|
|
156
|
-
ns: "os"
|
|
157
|
-
}
|
|
158
|
-
]
|
|
159
|
-
}
|
|
160
|
-
}))), [
|
|
161
|
-
dispatch
|
|
162
|
-
]);
|
|
163
|
-
return /* @__PURE__ */ import_react2.default.createElement(FeedbackForm, {
|
|
164
|
-
onSave: handleSave
|
|
165
|
-
});
|
|
166
|
-
} finally {
|
|
167
|
-
_effect.f();
|
|
168
|
-
}
|
|
169
|
-
};
|
|
170
|
-
var ObservabilitySettingsSchema = import_effect2.Schema.mutable(import_effect2.Schema.Struct({
|
|
171
|
-
enabled: import_effect2.Schema.Boolean
|
|
172
|
-
}));
|
|
173
|
-
var ObservabilitySettings = ({ settings }) => {
|
|
174
|
-
var _effect = (0, import_tracking3.useSignals)();
|
|
175
|
-
try {
|
|
176
|
-
const { t } = (0, import_react_ui2.useTranslation)(import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN);
|
|
177
|
-
const { dispatchPromise: dispatch } = (0, import_app_framework2.useIntentDispatcher)();
|
|
178
|
-
return /* @__PURE__ */ import_react3.default.createElement(import_react_ui_form2.DeprecatedFormContainer, null, /* @__PURE__ */ import_react3.default.createElement(import_react_ui_form2.DeprecatedFormInput, {
|
|
179
|
-
label: t("observability enabled label"),
|
|
180
|
-
secondary: /* @__PURE__ */ import_react3.default.createElement(import_react_ui2.Message.Root, {
|
|
181
|
-
valence: "info"
|
|
182
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_react_ui2.Message.Content, null, t("observability description")))
|
|
183
|
-
}, /* @__PURE__ */ import_react3.default.createElement(import_react_ui2.Input.Switch, {
|
|
184
|
-
checked: settings.enabled,
|
|
185
|
-
onCheckedChange: (checked) => dispatch((0, import_app_framework2.createIntent)(import_chunk_UMH4JAVS.ObservabilityAction.Toggle, {
|
|
186
|
-
state: !!checked
|
|
187
|
-
}))
|
|
188
|
-
})));
|
|
189
|
-
} finally {
|
|
190
|
-
_effect.f();
|
|
191
|
-
}
|
|
192
|
-
};
|
|
193
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
194
|
-
0 && (module.exports = {
|
|
195
|
-
FeedbackForm,
|
|
196
|
-
HelpContainer,
|
|
197
|
-
ObservabilitySettings,
|
|
198
|
-
ObservabilitySettingsSchema
|
|
199
|
-
});
|
|
200
|
-
//# sourceMappingURL=chunk-B773OI2Y.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/FeedbackForm.tsx", "../../../src/components/HelpContainer.tsx", "../../../src/components/ObservabilitySettings.tsx"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2024 DXOS.org\n//\n\nimport React, { useCallback, useRef, useState } from 'react';\n\nimport { getSnapshot } from '@dxos/echo-schema';\nimport { IconButton, Input, useTranslation } from '@dxos/react-ui';\nimport { FormProvider, useFormContext, useInputProps } from '@dxos/react-ui-form';\n\nimport { OBSERVABILITY_PLUGIN } from '../meta';\nimport { UserFeedback } from '../types';\n\nconst defaultValues: UserFeedback = { message: '' };\n\nconst FormContent = () => {\n const { t } = useTranslation(OBSERVABILITY_PLUGIN);\n const { handleSave, canSave } = useFormContext<UserFeedback>();\n\n const messageProps = useInputProps(['message']);\n\n return (\n <div role='form' className='p-3 flex flex-col gap-2'>\n <div role='none' className='space-b-1'>\n <Input.Root validationValence={messageProps.getStatus().status}>\n <Input.Label>{t('feedback text area label')}</Input.Label>\n <Input.TextArea\n classNames={'text-sm'}\n rows={5}\n cols={30}\n placeholder={t('feedback text area placeholder')}\n value={messageProps.getValue() ?? ''}\n onChange={(e) => messageProps.onValueChange('string', e.target.value)}\n // TODO(wittjosiah): This aggressively shows validation errors.\n onBlur={messageProps.onBlur}\n />\n <Input.DescriptionAndValidation>\n <Input.Validation>{messageProps.getStatus().error}</Input.Validation>\n </Input.DescriptionAndValidation>\n </Input.Root>\n </div>\n\n <div role='none' className='space-b-2'>\n <IconButton\n icon='ph--paper-plane-tilt--regular'\n label={t('send feedback label')}\n variant='primary'\n type='submit'\n classNames='is-full'\n disabled={!canSave}\n onClick={handleSave}\n />\n </div>\n </div>\n );\n};\n\n// TODO(wittjosiah): Use `Form`?\nexport const FeedbackForm = ({ onSave }: { onSave: (values: UserFeedback) => void }) => {\n const formRef = useRef<HTMLDivElement>(null);\n const [_, update] = useState({});\n const forceRender = useCallback(() => update({}), [update]);\n\n const handleSave = useCallback(\n (values: UserFeedback) => {\n onSave(values);\n // TODO(wittjosiah): Force re-render to clear the form.\n forceRender();\n },\n [forceRender, onSave],\n );\n\n const initialValues = getSnapshot(defaultValues);\n\n return (\n <FormProvider formRef={formRef} schema={UserFeedback} initialValues={initialValues} onSave={handleSave}>\n <div ref={formRef}>\n <FormContent />\n </div>\n </FormProvider>\n );\n};\n", "//\n// Copyright 2025 DXOS.org\n//\n\nimport { pipe } from 'effect';\nimport React, { useCallback } from 'react';\n\nimport { chain, createIntent, LayoutAction, useIntentDispatcher } from '@dxos/app-framework';\n\nimport { FeedbackForm } from './FeedbackForm';\nimport { OBSERVABILITY_PLUGIN } from '../meta';\nimport { ObservabilityAction, type UserFeedback } from '../types';\n\nexport const HelpContainer = () => {\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n\n const handleSave = useCallback(\n (values: UserFeedback) =>\n dispatch(\n pipe(\n createIntent(ObservabilityAction.CaptureUserFeedback, values),\n chain(LayoutAction.UpdateComplementary, { part: 'complementary', options: { state: 'collapsed' } }),\n chain(LayoutAction.AddToast, {\n part: 'toast',\n subject: {\n id: `${OBSERVABILITY_PLUGIN}/feedback-success`,\n icon: 'ph--paper-plane-tilt--regular',\n duration: 3000,\n title: ['feedback toast label', { ns: OBSERVABILITY_PLUGIN }],\n description: ['feedback toast description', { ns: OBSERVABILITY_PLUGIN }],\n closeLabel: ['close label', { ns: 'os' }],\n },\n }),\n ),\n ),\n [dispatch],\n );\n\n return <FeedbackForm onSave={handleSave} />;\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport { Schema } from 'effect';\nimport React from 'react';\n\nimport { createIntent, useIntentDispatcher } from '@dxos/app-framework';\nimport { Input, Message, useTranslation } from '@dxos/react-ui';\nimport { DeprecatedFormContainer, DeprecatedFormInput } from '@dxos/react-ui-form';\n\nimport { OBSERVABILITY_PLUGIN } from '../meta';\nimport { ObservabilityAction } from '../types';\n\nexport const ObservabilitySettingsSchema = Schema.mutable(\n Schema.Struct({\n enabled: Schema.Boolean,\n // TODO(wittjosiah): Separate settings for each observability feature.\n // metrics?: boolean;\n // telemetry?: boolean;\n // errors?: boolean;\n }),\n);\n\nexport type ObservabilitySettingsProps = Schema.Schema.Type<typeof ObservabilitySettingsSchema>;\n\nexport const ObservabilitySettings = ({ settings }: { settings: ObservabilitySettingsProps }) => {\n const { t } = useTranslation(OBSERVABILITY_PLUGIN);\n const { dispatchPromise: dispatch } = useIntentDispatcher();\n\n return (\n <DeprecatedFormContainer>\n <DeprecatedFormInput\n label={t('observability enabled label')}\n secondary={\n <Message.Root valence='info'>\n <Message.Content>{t('observability description')}</Message.Content>\n </Message.Root>\n }\n >\n <Input.Switch\n checked={settings.enabled}\n onCheckedChange={(checked) => dispatch(createIntent(ObservabilityAction.Toggle, { state: !!checked }))}\n />\n </DeprecatedFormInput>\n </DeprecatedFormContainer>\n );\n};\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIA,mBAAqD;AAErD,yBAA4B;AAC5B,sBAAkD;AAClD,2BAA4D;;ACJ5D,oBAAqB;AACrB,IAAAA,gBAAmC;AAEnC,2BAAuE;;ACHvE,IAAAC,iBAAuB;AACvB,IAAAD,gBAAkB;AAElB,IAAAE,wBAAkD;AAClD,IAAAC,mBAA+C;AAC/C,IAAAC,wBAA6D;AFI7D,IAAMC,gBAA8B;EAAEC,SAAS;AAAG;AAElD,IAAMC,cAAc,MAAA;;;AAClB,UAAM,EAAEC,EAAC,QAAKC,gCAAeC,0CAAAA;AAC7B,UAAM,EAAEC,YAAYC,QAAO,QAAKC,qCAAAA;AAEhC,UAAMC,mBAAeC,oCAAc;MAAC;KAAU;AAE9C,WACE,6BAAAC,QAAA,cAACC,OAAAA;MAAIC,MAAK;MAAOC,WAAU;OACzB,6BAAAH,QAAA,cAACC,OAAAA;MAAIC,MAAK;MAAOC,WAAU;OACzB,6BAAAH,QAAA,cAACI,sBAAMC,MAAI;MAACC,mBAAmBR,aAAaS,UAAS,EAAGC;OACtD,6BAAAR,QAAA,cAACI,sBAAMK,OAAK,MAAEjB,EAAE,0BAAA,CAAA,GAChB,6BAAAQ,QAAA,cAACI,sBAAMM,UAAQ;MACbC,YAAY;MACZC,MAAM;MACNC,MAAM;MACNC,aAAatB,EAAE,gCAAA;MACfuB,OAAOjB,aAAakB,SAAQ,KAAM;MAClCC,UAAU,CAACC,MAAMpB,aAAaqB,cAAc,UAAUD,EAAEE,OAAOL,KAAK;;MAEpEM,QAAQvB,aAAauB;QAEvB,6BAAArB,QAAA,cAACI,sBAAMkB,0BAAwB,MAC7B,6BAAAtB,QAAA,cAACI,sBAAMmB,YAAU,MAAEzB,aAAaS,UAAS,EAAGiB,KAAK,CAAA,CAAA,CAAA,GAKvD,6BAAAxB,QAAA,cAACC,OAAAA;MAAIC,MAAK;MAAOC,WAAU;OACzB,6BAAAH,QAAA,cAACyB,4BAAAA;MACCC,MAAK;MACLC,OAAOnC,EAAE,qBAAA;MACToC,SAAQ;MACRC,MAAK;MACLlB,YAAW;MACXmB,UAAU,CAAClC;MACXmC,SAASpC;;;;;AAKnB;AAGO,IAAMqC,eAAe,CAAC,EAAEC,OAAM,MAA8C;;;AACjF,UAAMC,cAAUC,qBAAuB,IAAA;AACvC,UAAM,CAACC,GAAGC,MAAAA,QAAUC,uBAAS,CAAC,CAAA;AAC9B,UAAMC,kBAAcC,0BAAY,MAAMH,OAAO,CAAC,CAAA,GAAI;MAACA;KAAO;AAE1D,UAAM1C,iBAAa6C,0BACjB,CAACC,WAAAA;AACCR,aAAOQ,MAAAA;AAEPF,kBAAAA;IACF,GACA;MAACA;MAAaN;KAAO;AAGvB,UAAMS,oBAAgBC,gCAAYtD,aAAAA;AAElC,WACE,6BAAAW,QAAA,cAAC4C,mCAAAA;MAAaV;MAAkBW,QAAQC;MAAcJ;MAA8BT,QAAQtC;OAC1F,6BAAAK,QAAA,cAACC,OAAAA;MAAI8C,KAAKb;OACR,6BAAAlC,QAAA,cAACT,aAAAA,IAAAA,CAAAA,CAAAA;;;;AAIT;ACpEO,IAAMyD,gBAAgB,MAAA;;;AAC3B,UAAM,EAAEC,iBAAiBC,SAAQ,QAAKC,0CAAAA;AAEtC,UAAMxD,iBAAa6C,cAAAA,aACjB,CAACC,WACCS,aACEE,wBACEC,mCAAaC,0CAAoBC,qBAAqBd,MAAAA,OACtDe,4BAAMC,kCAAaC,qBAAqB;MAAEC,MAAM;MAAiBC,SAAS;QAAEC,OAAO;MAAY;IAAE,CAAA,OACjGL,4BAAMC,kCAAaK,UAAU;MAC3BH,MAAM;MACNI,SAAS;QACPC,IAAI,GAAGtE,0CAAAA;QACPgC,MAAM;QACNuC,UAAU;QACVC,OAAO;UAAC;UAAwB;YAAEC,IAAIzE;UAAqB;;QAC3D0E,aAAa;UAAC;UAA8B;YAAED,IAAIzE;UAAqB;;QACvE2E,YAAY;UAAC;UAAe;YAAEF,IAAI;UAAK;;MACzC;IACF,CAAA,CAAA,CAAA,GAGN;MAACjB;KAAS;AAGZ,WAAOlD,8BAAAA,QAAA,cAACgC,cAAAA;MAAaC,QAAQtC;;;;;AAC/B;ACzBO,IAAM2E,8BAA8BC,sBAAOC,QAChDD,sBAAOE,OAAO;EACZC,SAASH,sBAAOI;AAKlB,CAAA,CAAA;AAKK,IAAMC,wBAAwB,CAAC,EAAEC,SAAQ,MAA4C;;;AAC1F,UAAM,EAAErF,EAAC,QAAKC,iBAAAA,gBAAeC,0CAAAA;AAC7B,UAAM,EAAEuD,iBAAiBC,SAAQ,QAAKC,sBAAAA,qBAAAA;AAEtC,WACEnD,8BAAAA,QAAA,cAAC8E,+CAAAA,MACC9E,8BAAAA,QAAA,cAAC+E,2CAAAA;MACCpD,OAAOnC,EAAE,6BAAA;MACTwF,WACEhF,8BAAAA,QAAA,cAACiF,yBAAQ5E,MAAI;QAAC6E,SAAQ;SACpBlF,8BAAAA,QAAA,cAACiF,yBAAQE,SAAO,MAAE3F,EAAE,2BAAA,CAAA,CAAA;OAIxBQ,8BAAAA,QAAA,cAACI,iBAAAA,MAAMgF,QAAM;MACXC,SAASR,SAASH;MAClBY,iBAAiB,CAACD,YAAYnC,aAASG,sBAAAA,cAAaC,0CAAoBiC,QAAQ;QAAE1B,OAAO,CAAC,CAACwB;MAAQ,CAAA,CAAA;;;;;AAK7G;",
|
|
6
|
-
"names": ["import_react", "import_effect", "import_app_framework", "import_react_ui", "import_react_ui_form", "defaultValues", "message", "FormContent", "t", "useTranslation", "OBSERVABILITY_PLUGIN", "handleSave", "canSave", "useFormContext", "messageProps", "useInputProps", "React", "div", "role", "className", "Input", "Root", "validationValence", "getStatus", "status", "Label", "TextArea", "classNames", "rows", "cols", "placeholder", "value", "getValue", "onChange", "e", "onValueChange", "target", "onBlur", "DescriptionAndValidation", "Validation", "error", "IconButton", "icon", "label", "variant", "type", "disabled", "onClick", "FeedbackForm", "onSave", "formRef", "useRef", "_", "update", "useState", "forceRender", "useCallback", "values", "initialValues", "getSnapshot", "FormProvider", "schema", "UserFeedback", "ref", "HelpContainer", "dispatchPromise", "dispatch", "useIntentDispatcher", "pipe", "createIntent", "ObservabilityAction", "CaptureUserFeedback", "chain", "LayoutAction", "UpdateComplementary", "part", "options", "state", "AddToast", "subject", "id", "duration", "title", "ns", "description", "closeLabel", "ObservabilitySettingsSchema", "Schema", "mutable", "Struct", "enabled", "Boolean", "ObservabilitySettings", "settings", "DeprecatedFormContainer", "DeprecatedFormInput", "secondary", "Message", "valence", "Content", "Switch", "checked", "onCheckedChange", "Toggle"]
|
|
7
|
-
}
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var chunk_HAIMXBCH_exports = {};
|
|
20
|
-
__export(chunk_HAIMXBCH_exports, {
|
|
21
|
-
ClientCapability: () => ClientCapability,
|
|
22
|
-
ObservabilityCapabilities: () => ObservabilityCapabilities
|
|
23
|
-
});
|
|
24
|
-
module.exports = __toCommonJS(chunk_HAIMXBCH_exports);
|
|
25
|
-
var import_chunk_2ERIOZP3 = require("./chunk-2ERIOZP3.cjs");
|
|
26
|
-
var import_app_framework = require("@dxos/app-framework");
|
|
27
|
-
(function(ObservabilityCapabilities2) {
|
|
28
|
-
ObservabilityCapabilities2.State = (0, import_app_framework.defineCapability)(`${import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN}/capability/state`);
|
|
29
|
-
ObservabilityCapabilities2.Observability = (0, import_app_framework.defineCapability)(`${import_chunk_2ERIOZP3.OBSERVABILITY_PLUGIN}/capability/observability`);
|
|
30
|
-
})(ObservabilityCapabilities || (ObservabilityCapabilities = {}));
|
|
31
|
-
var ClientCapability = (0, import_app_framework.defineCapability)("dxos.org/plugin/client/capability/client");
|
|
32
|
-
var ObservabilityCapabilities;
|
|
33
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
34
|
-
0 && (module.exports = {
|
|
35
|
-
ClientCapability,
|
|
36
|
-
ObservabilityCapabilities
|
|
37
|
-
});
|
|
38
|
-
//# sourceMappingURL=chunk-HAIMXBCH.cjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/capabilities/capabilities.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2025 DXOS.org\n//\n\nimport { defineCapability } from '@dxos/app-framework';\nimport { type Client } from '@dxos/client';\nimport { type Observability } from '@dxos/observability';\n\nimport { OBSERVABILITY_PLUGIN } from '../meta';\n\nexport namespace ObservabilityCapabilities {\n export type State = {\n group?: string;\n notified?: boolean;\n };\n export const State = defineCapability<State>(`${OBSERVABILITY_PLUGIN}/capability/state`);\n\n export const Observability = defineCapability<Observability>(`${OBSERVABILITY_PLUGIN}/capability/observability`);\n}\n\n// NOTE: This is cloned from the client plugin to avoid circular dependencies.\nexport const ClientCapability = defineCapability<Client>('dxos.org/plugin/client/capability/client');\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;AAIA,2BAAiC;UAMhBA,4BAAAA;6BAKFC,YAAQC,uCAAwB,GAAGC,0CAAAA,mBAAuC;6BAE1EC,oBAAgBF,uCAAgC,GAAGC,0CAAAA,2BAA+C;AACjH,GARiBH,8BAAAA,4BAAAA,CAAAA,EAAAA;AAWV,IAAMK,uBAAmBH,uCAAyB,0CAAA;;",
|
|
6
|
-
"names": ["ObservabilityCapabilities", "State", "defineCapability", "OBSERVABILITY_PLUGIN", "Observability", "ClientCapability"]
|
|
7
|
-
}
|