@perses-dev/plugin-system 0.55.0-beta.3 → 0.55.0-beta.6
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/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.d.ts +3 -3
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.d.ts.map +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js +11 -11
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js.map +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.d.ts +3 -3
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.d.ts.map +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.js +6 -6
- package/dist/components/Annotations/AnnotationEditorForm/AnnotationPreview.js.map +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/index.js +1 -1
- package/dist/components/Annotations/AnnotationEditorForm/index.js.map +1 -1
- package/dist/components/Annotations/index.js +2 -2
- package/dist/components/Annotations/index.js.map +1 -1
- package/dist/components/CalculationSelector/CalculationSelector.d.ts +2 -2
- package/dist/components/CalculationSelector/CalculationSelector.d.ts.map +1 -1
- package/dist/components/CalculationSelector/CalculationSelector.js +2 -2
- package/dist/components/CalculationSelector/CalculationSelector.js.map +1 -1
- package/dist/components/CalculationSelector/index.js +1 -1
- package/dist/components/CalculationSelector/index.js.map +1 -1
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.d.ts +2 -2
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.d.ts.map +1 -1
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.js +7 -7
- package/dist/components/DatasourceEditorForm/DatasourceEditorForm.js.map +1 -1
- package/dist/components/DatasourceEditorForm/index.js +1 -1
- package/dist/components/DatasourceEditorForm/index.js.map +1 -1
- package/dist/components/DatasourceSelect/DatasourceSelect.d.ts +4 -4
- package/dist/components/DatasourceSelect/DatasourceSelect.d.ts.map +1 -1
- package/dist/components/DatasourceSelect/DatasourceSelect.js +7 -7
- package/dist/components/DatasourceSelect/DatasourceSelect.js.map +1 -1
- package/dist/components/DatasourceSelect/index.js +1 -1
- package/dist/components/DatasourceSelect/index.js.map +1 -1
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.d.ts +2 -2
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.d.ts.map +1 -1
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.js +4 -4
- package/dist/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.js.map +1 -1
- package/dist/components/DatasourceTestConnectionButton/index.js +1 -1
- package/dist/components/DatasourceTestConnectionButton/index.js.map +1 -1
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.d.ts +2 -2
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.d.ts.map +1 -1
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.js +9 -9
- package/dist/components/HTTPSettingsEditor/HTTPSettingsEditor.js.map +1 -1
- package/dist/components/HTTPSettingsEditor/index.js +1 -1
- package/dist/components/HTTPSettingsEditor/index.js.map +1 -1
- package/dist/components/ItemSelectionActionsOptionsEditor/ItemSelectionActionsOptionsEditor.d.ts +1 -1
- package/dist/components/ItemSelectionActionsOptionsEditor/ItemSelectionActionsOptionsEditor.d.ts.map +1 -1
- package/dist/components/ItemSelectionActionsOptionsEditor/ItemSelectionActionsOptionsEditor.js +24 -24
- package/dist/components/ItemSelectionActionsOptionsEditor/ItemSelectionActionsOptionsEditor.js.map +1 -1
- package/dist/components/ItemSelectionActionsOptionsEditor/index.js +1 -1
- package/dist/components/ItemSelectionActionsOptionsEditor/index.js.map +1 -1
- package/dist/components/LayoutEditor/LayoutEditor.d.ts +4 -4
- package/dist/components/LayoutEditor/LayoutEditor.d.ts.map +1 -1
- package/dist/components/LayoutEditor/LayoutEditor.js +7 -7
- package/dist/components/LayoutEditor/LayoutEditor.js.map +1 -1
- package/dist/components/LayoutEditor/RepeatLayoutPreview.d.ts +1 -1
- package/dist/components/LayoutEditor/RepeatLayoutPreview.d.ts.map +1 -1
- package/dist/components/LayoutEditor/RepeatLayoutPreview.js +4 -4
- package/dist/components/LayoutEditor/RepeatLayoutPreview.js.map +1 -1
- package/dist/components/LayoutEditor/RepeatVariableEditor.d.ts +4 -4
- package/dist/components/LayoutEditor/RepeatVariableEditor.d.ts.map +1 -1
- package/dist/components/LayoutEditor/RepeatVariableEditor.js +3 -3
- package/dist/components/LayoutEditor/RepeatVariableEditor.js.map +1 -1
- package/dist/components/LayoutEditor/index.js +3 -3
- package/dist/components/LayoutEditor/index.js.map +1 -1
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.d.ts +2 -2
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.d.ts.map +1 -1
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.js +5 -5
- package/dist/components/LegendOptionsEditor/LegendOptionsEditor.js.map +1 -1
- package/dist/components/LegendOptionsEditor/index.js +1 -1
- package/dist/components/LegendOptionsEditor/index.js.map +1 -1
- package/dist/components/LinksEditor/LinksEditor.d.ts +3 -3
- package/dist/components/LinksEditor/LinksEditor.d.ts.map +1 -1
- package/dist/components/LinksEditor/LinksEditor.js +6 -6
- package/dist/components/LinksEditor/LinksEditor.js.map +1 -1
- package/dist/components/LinksEditor/index.js +1 -1
- package/dist/components/LinksEditor/index.js.map +1 -1
- package/dist/components/MetricLabelInput/MetricLabelInput.d.ts +1 -1
- package/dist/components/MetricLabelInput/MetricLabelInput.d.ts.map +1 -1
- package/dist/components/MetricLabelInput/MetricLabelInput.js +2 -2
- package/dist/components/MetricLabelInput/MetricLabelInput.js.map +1 -1
- package/dist/components/MetricLabelInput/index.js +1 -1
- package/dist/components/MetricLabelInput/index.js.map +1 -1
- package/dist/components/MultiQueryEditor/MultiQueryEditor.d.ts +3 -3
- package/dist/components/MultiQueryEditor/MultiQueryEditor.d.ts.map +1 -1
- package/dist/components/MultiQueryEditor/MultiQueryEditor.js +6 -6
- package/dist/components/MultiQueryEditor/MultiQueryEditor.js.map +1 -1
- package/dist/components/MultiQueryEditor/QueryEditorContainer.d.ts +3 -3
- package/dist/components/MultiQueryEditor/QueryEditorContainer.d.ts.map +1 -1
- package/dist/components/MultiQueryEditor/QueryEditorContainer.js +14 -14
- package/dist/components/MultiQueryEditor/QueryEditorContainer.js.map +1 -1
- package/dist/components/MultiQueryEditor/index.js +2 -2
- package/dist/components/MultiQueryEditor/index.js.map +1 -1
- package/dist/components/MultiQueryEditor/utils.d.ts +1 -1
- package/dist/components/MultiQueryEditor/utils.d.ts.map +1 -1
- package/dist/components/MultiQueryEditor/utils.js.map +1 -1
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.d.ts +1 -1
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.d.ts.map +1 -1
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.js +4 -4
- package/dist/components/OptionsEditorRadios/OptionsEditorRadios.js.map +1 -1
- package/dist/components/OptionsEditorRadios/index.js +1 -1
- package/dist/components/OptionsEditorRadios/index.js.map +1 -1
- package/dist/components/OptionsEditorTabPanel/OptionsEditorTabPanel.d.ts +1 -1
- package/dist/components/OptionsEditorTabPanel/OptionsEditorTabPanel.d.ts.map +1 -1
- package/dist/components/OptionsEditorTabPanel/OptionsEditorTabPanel.js +1 -1
- package/dist/components/OptionsEditorTabPanel/OptionsEditorTabPanel.js.map +1 -1
- package/dist/components/OptionsEditorTabPanel/index.js +1 -1
- package/dist/components/OptionsEditorTabPanel/index.js.map +1 -1
- package/dist/components/OptionsEditorTabs/OptionsEditorTabs.d.ts +1 -1
- package/dist/components/OptionsEditorTabs/OptionsEditorTabs.d.ts.map +1 -1
- package/dist/components/OptionsEditorTabs/OptionsEditorTabs.js +4 -4
- package/dist/components/OptionsEditorTabs/OptionsEditorTabs.js.map +1 -1
- package/dist/components/OptionsEditorTabs/index.js +1 -1
- package/dist/components/OptionsEditorTabs/index.js.map +1 -1
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.d.ts +2 -2
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.d.ts.map +1 -1
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.js +9 -9
- package/dist/components/PanelSpecEditor/PanelAnnotationsEditor.js.map +1 -1
- package/dist/components/PanelSpecEditor/PanelSpecEditor.d.ts +5 -5
- package/dist/components/PanelSpecEditor/PanelSpecEditor.d.ts.map +1 -1
- package/dist/components/PanelSpecEditor/PanelSpecEditor.js +9 -9
- package/dist/components/PanelSpecEditor/PanelSpecEditor.js.map +1 -1
- package/dist/components/PanelSpecEditor/index.js +1 -1
- package/dist/components/PanelSpecEditor/index.js.map +1 -1
- package/dist/components/PluginEditor/PluginEditor.d.ts +2 -2
- package/dist/components/PluginEditor/PluginEditor.d.ts.map +1 -1
- package/dist/components/PluginEditor/PluginEditor.js +7 -7
- package/dist/components/PluginEditor/PluginEditor.js.map +1 -1
- package/dist/components/PluginEditor/index.js +2 -2
- package/dist/components/PluginEditor/index.js.map +1 -1
- package/dist/components/PluginEditor/plugin-editor-api.d.ts +3 -3
- package/dist/components/PluginEditor/plugin-editor-api.d.ts.map +1 -1
- package/dist/components/PluginEditor/plugin-editor-api.js +4 -4
- package/dist/components/PluginEditor/plugin-editor-api.js.map +1 -1
- package/dist/components/PluginKindSelect/PluginKindSelect.d.ts +3 -3
- package/dist/components/PluginKindSelect/PluginKindSelect.d.ts.map +1 -1
- package/dist/components/PluginKindSelect/PluginKindSelect.js +4 -4
- package/dist/components/PluginKindSelect/PluginKindSelect.js.map +1 -1
- package/dist/components/PluginKindSelect/index.js +1 -1
- package/dist/components/PluginKindSelect/index.js.map +1 -1
- package/dist/components/PluginRegistry/PluginRegistry.d.ts +2 -2
- package/dist/components/PluginRegistry/PluginRegistry.d.ts.map +1 -1
- package/dist/components/PluginRegistry/PluginRegistry.js +5 -5
- package/dist/components/PluginRegistry/PluginRegistry.js.map +1 -1
- package/dist/components/PluginRegistry/getPluginSearchHelper.d.ts +2 -2
- package/dist/components/PluginRegistry/getPluginSearchHelper.d.ts.map +1 -1
- package/dist/components/PluginRegistry/getPluginSearchHelper.js +2 -2
- package/dist/components/PluginRegistry/getPluginSearchHelper.js.map +1 -1
- package/dist/components/PluginRegistry/index.js +1 -1
- package/dist/components/PluginRegistry/index.js.map +1 -1
- package/dist/components/PluginRegistry/plugin-indexes.d.ts +2 -1
- package/dist/components/PluginRegistry/plugin-indexes.d.ts.map +1 -1
- package/dist/components/PluginRegistry/plugin-indexes.js +3 -3
- package/dist/components/PluginRegistry/plugin-indexes.js.map +1 -1
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.d.ts +3 -3
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.d.ts.map +1 -1
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.js +3 -3
- package/dist/components/PluginSpecEditor/DatasourceSpecEditor.js.map +1 -1
- package/dist/components/PluginSpecEditor/PluginSpecEditor.d.ts +4 -4
- package/dist/components/PluginSpecEditor/PluginSpecEditor.d.ts.map +1 -1
- package/dist/components/PluginSpecEditor/PluginSpecEditor.js +4 -4
- package/dist/components/PluginSpecEditor/PluginSpecEditor.js.map +1 -1
- package/dist/components/PluginSpecEditor/index.js +1 -1
- package/dist/components/PluginSpecEditor/index.js.map +1 -1
- package/dist/components/SelectionOptionsEditor/SelectionOptionsEditor.d.ts +1 -1
- package/dist/components/SelectionOptionsEditor/SelectionOptionsEditor.d.ts.map +1 -1
- package/dist/components/SelectionOptionsEditor/SelectionOptionsEditor.js +3 -3
- package/dist/components/SelectionOptionsEditor/SelectionOptionsEditor.js.map +1 -1
- package/dist/components/SelectionOptionsEditor/index.js +1 -1
- package/dist/components/SelectionOptionsEditor/index.js.map +1 -1
- package/dist/components/TimeRangeControls/TimeRangeControls.d.ts +2 -2
- package/dist/components/TimeRangeControls/TimeRangeControls.d.ts.map +1 -1
- package/dist/components/TimeRangeControls/TimeRangeControls.js +10 -10
- package/dist/components/TimeRangeControls/TimeRangeControls.js.map +1 -1
- package/dist/components/TimeRangeControls/index.js +1 -1
- package/dist/components/TimeRangeControls/index.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.d.ts +3 -3
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.js +11 -11
- package/dist/components/Variables/VariableEditorForm/VariableEditorForm.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariablePreview.d.ts +2 -2
- package/dist/components/Variables/VariableEditorForm/VariablePreview.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/VariablePreview.js +7 -7
- package/dist/components/Variables/VariableEditorForm/VariablePreview.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/index.js +3 -3
- package/dist/components/Variables/VariableEditorForm/index.js.map +1 -1
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.d.ts +2 -2
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.d.ts.map +1 -1
- package/dist/components/Variables/VariableEditorForm/variable-editor-form-model.js.map +1 -1
- package/dist/components/Variables/index.js +2 -2
- package/dist/components/Variables/index.js.map +1 -1
- package/dist/components/Variables/variable-model.d.ts +4 -4
- package/dist/components/Variables/variable-model.d.ts.map +1 -1
- package/dist/components/Variables/variable-model.js +3 -3
- package/dist/components/Variables/variable-model.js.map +1 -1
- package/dist/components/index.js +21 -21
- package/dist/components/index.js.map +1 -1
- package/dist/constants/index.js +2 -2
- package/dist/constants/index.js.map +1 -1
- package/dist/context/ValidationProvider.d.ts +5 -5
- package/dist/context/ValidationProvider.d.ts.map +1 -1
- package/dist/context/ValidationProvider.js +5 -5
- package/dist/context/ValidationProvider.js.map +1 -1
- package/dist/context/index.js +1 -1
- package/dist/context/index.js.map +1 -1
- package/dist/index.js +9 -9
- package/dist/index.js.map +1 -1
- package/dist/model/alerts-queries.d.ts +4 -4
- package/dist/model/alerts-queries.d.ts.map +1 -1
- package/dist/model/alerts-queries.js.map +1 -1
- package/dist/model/annotations.d.ts +3 -3
- package/dist/model/annotations.d.ts.map +1 -1
- package/dist/model/annotations.js.map +1 -1
- package/dist/model/calculations.d.ts +1 -1
- package/dist/model/calculations.d.ts.map +1 -1
- package/dist/model/calculations.js.map +1 -1
- package/dist/model/datasource.d.ts +2 -2
- package/dist/model/datasource.d.ts.map +1 -1
- package/dist/model/datasource.js.map +1 -1
- package/dist/model/explore.d.ts +2 -2
- package/dist/model/explore.d.ts.map +1 -1
- package/dist/model/explore.js.map +1 -1
- package/dist/model/index.js +17 -17
- package/dist/model/index.js.map +1 -1
- package/dist/model/json-queries.d.ts +3 -3
- package/dist/model/json-queries.d.ts.map +1 -1
- package/dist/model/json-queries.js.map +1 -1
- package/dist/model/legend.d.ts +2 -2
- package/dist/model/legend.d.ts.map +1 -1
- package/dist/model/legend.js +2 -2
- package/dist/model/legend.js.map +1 -1
- package/dist/model/log-queries.d.ts +3 -3
- package/dist/model/log-queries.d.ts.map +1 -1
- package/dist/model/log-queries.js.map +1 -1
- package/dist/model/panels.d.ts +4 -4
- package/dist/model/panels.d.ts.map +1 -1
- package/dist/model/panels.js.map +1 -1
- package/dist/model/plugin-base.d.ts +1 -1
- package/dist/model/plugin-base.d.ts.map +1 -1
- package/dist/model/plugin-base.js.map +1 -1
- package/dist/model/plugin-loading.d.ts +1 -1
- package/dist/model/plugin-loading.d.ts.map +1 -1
- package/dist/model/plugin-loading.js +1 -1
- package/dist/model/plugin-loading.js.map +1 -1
- package/dist/model/plugins.d.ts +14 -14
- package/dist/model/plugins.d.ts.map +1 -1
- package/dist/model/plugins.js.map +1 -1
- package/dist/model/profile-queries.d.ts +4 -4
- package/dist/model/profile-queries.d.ts.map +1 -1
- package/dist/model/profile-queries.js.map +1 -1
- package/dist/model/silences-queries.d.ts +4 -4
- package/dist/model/silences-queries.d.ts.map +1 -1
- package/dist/model/silences-queries.js.map +1 -1
- package/dist/model/time-series-queries.d.ts +4 -4
- package/dist/model/time-series-queries.d.ts.map +1 -1
- package/dist/model/time-series-queries.js.map +1 -1
- package/dist/model/trace-queries.d.ts +4 -4
- package/dist/model/trace-queries.d.ts.map +1 -1
- package/dist/model/trace-queries.js.map +1 -1
- package/dist/model/variables.d.ts +3 -3
- package/dist/model/variables.d.ts.map +1 -1
- package/dist/model/variables.js.map +1 -1
- package/dist/remote/PluginLoaderComponent.d.ts +1 -1
- package/dist/remote/PluginLoaderComponent.d.ts.map +1 -1
- package/dist/remote/PluginLoaderComponent.js +2 -2
- package/dist/remote/PluginLoaderComponent.js.map +1 -1
- package/dist/remote/PluginRuntime.d.ts +2 -2
- package/dist/remote/PluginRuntime.d.ts.map +1 -1
- package/dist/remote/PluginRuntime.js +18 -18
- package/dist/remote/PluginRuntime.js.map +1 -1
- package/dist/remote/index.js +2 -2
- package/dist/remote/index.js.map +1 -1
- package/dist/remote/remotePluginLoader.d.ts +2 -2
- package/dist/remote/remotePluginLoader.d.ts.map +1 -1
- package/dist/remote/remotePluginLoader.js +3 -3
- package/dist/remote/remotePluginLoader.js.map +1 -1
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.d.ts +3 -3
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.d.ts.map +1 -1
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.js +10 -10
- package/dist/runtime/DataQueriesProvider/DataQueriesProvider.js.map +1 -1
- package/dist/runtime/DataQueriesProvider/index.js +2 -2
- package/dist/runtime/DataQueriesProvider/index.js.map +1 -1
- package/dist/runtime/DataQueriesProvider/model.d.ts +3 -3
- package/dist/runtime/DataQueriesProvider/model.d.ts.map +1 -1
- package/dist/runtime/DataQueriesProvider/model.js.map +1 -1
- package/dist/runtime/RouterProvider.d.ts +2 -1
- package/dist/runtime/RouterProvider.d.ts.map +1 -1
- package/dist/runtime/RouterProvider.js +3 -3
- package/dist/runtime/RouterProvider.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.d.ts +3 -2
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.js +6 -6
- package/dist/runtime/TimeRangeProvider/TimeRangeProvider.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProviders.d.ts +3 -2
- package/dist/runtime/TimeRangeProvider/TimeRangeProviders.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeProviders.js +4 -4
- package/dist/runtime/TimeRangeProvider/TimeRangeProviders.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.d.ts +2 -2
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.js +3 -3
- package/dist/runtime/TimeRangeProvider/TimeRangeSettingsProvider.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/index.js +4 -4
- package/dist/runtime/TimeRangeProvider/index.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/query-params.d.ts +3 -3
- package/dist/runtime/TimeRangeProvider/query-params.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/query-params.js +4 -4
- package/dist/runtime/TimeRangeProvider/query-params.js.map +1 -1
- package/dist/runtime/TimeRangeProvider/refresh-interval.d.ts +1 -1
- package/dist/runtime/TimeRangeProvider/refresh-interval.d.ts.map +1 -1
- package/dist/runtime/TimeRangeProvider/refresh-interval.js +2 -2
- package/dist/runtime/TimeRangeProvider/refresh-interval.js.map +1 -1
- package/dist/runtime/UsageMetricsProvider.d.ts +3 -3
- package/dist/runtime/UsageMetricsProvider.d.ts.map +1 -1
- package/dist/runtime/UsageMetricsProvider.js +3 -3
- package/dist/runtime/UsageMetricsProvider.js.map +1 -1
- package/dist/runtime/alerts-queries.d.ts +2 -2
- package/dist/runtime/alerts-queries.d.ts.map +1 -1
- package/dist/runtime/alerts-queries.js +5 -5
- package/dist/runtime/alerts-queries.js.map +1 -1
- package/dist/runtime/annotations.d.ts +2 -2
- package/dist/runtime/annotations.d.ts.map +1 -1
- package/dist/runtime/annotations.js +6 -6
- package/dist/runtime/annotations.js.map +1 -1
- package/dist/runtime/builtin-variables.d.ts +2 -2
- package/dist/runtime/builtin-variables.d.ts.map +1 -1
- package/dist/runtime/builtin-variables.js +1 -1
- package/dist/runtime/builtin-variables.js.map +1 -1
- package/dist/runtime/datasources.d.ts +2 -2
- package/dist/runtime/datasources.d.ts.map +1 -1
- package/dist/runtime/datasources.js +2 -2
- package/dist/runtime/datasources.js.map +1 -1
- package/dist/runtime/index.js +16 -16
- package/dist/runtime/index.js.map +1 -1
- package/dist/runtime/item-actions.d.ts +3 -3
- package/dist/runtime/item-actions.d.ts.map +1 -1
- package/dist/runtime/item-actions.js +1 -1
- package/dist/runtime/item-actions.js.map +1 -1
- package/dist/runtime/json-queries.d.ts +2 -2
- package/dist/runtime/json-queries.d.ts.map +1 -1
- package/dist/runtime/json-queries.js +4 -4
- package/dist/runtime/json-queries.js.map +1 -1
- package/dist/runtime/log-queries.d.ts +3 -3
- package/dist/runtime/log-queries.d.ts.map +1 -1
- package/dist/runtime/log-queries.js +5 -5
- package/dist/runtime/log-queries.js.map +1 -1
- package/dist/runtime/plugin-registry.d.ts +3 -3
- package/dist/runtime/plugin-registry.d.ts.map +1 -1
- package/dist/runtime/plugin-registry.js +2 -2
- package/dist/runtime/plugin-registry.js.map +1 -1
- package/dist/runtime/profile-queries.d.ts +2 -2
- package/dist/runtime/profile-queries.d.ts.map +1 -1
- package/dist/runtime/profile-queries.js +4 -4
- package/dist/runtime/profile-queries.js.map +1 -1
- package/dist/runtime/silences-queries.d.ts +2 -2
- package/dist/runtime/silences-queries.d.ts.map +1 -1
- package/dist/runtime/silences-queries.js +5 -5
- package/dist/runtime/silences-queries.js.map +1 -1
- package/dist/runtime/time-series-queries.d.ts +3 -3
- package/dist/runtime/time-series-queries.d.ts.map +1 -1
- package/dist/runtime/time-series-queries.js +6 -6
- package/dist/runtime/time-series-queries.js.map +1 -1
- package/dist/runtime/trace-queries.d.ts +2 -2
- package/dist/runtime/trace-queries.d.ts.map +1 -1
- package/dist/runtime/trace-queries.js +6 -6
- package/dist/runtime/trace-queries.js.map +1 -1
- package/dist/runtime/utils.d.ts +1 -1
- package/dist/runtime/utils.d.ts.map +1 -1
- package/dist/runtime/utils.js.map +1 -1
- package/dist/runtime/variables.d.ts +1 -1
- package/dist/runtime/variables.d.ts.map +1 -1
- package/dist/runtime/variables.js +4 -4
- package/dist/runtime/variables.js.map +1 -1
- package/dist/schema/index.js +1 -1
- package/dist/schema/index.js.map +1 -1
- package/dist/schema/panel.d.ts +2 -2
- package/dist/schema/panel.d.ts.map +1 -1
- package/dist/schema/panel.js +2 -2
- package/dist/schema/panel.js.map +1 -1
- package/dist/test/index.js +2 -2
- package/dist/test/index.js.map +1 -1
- package/dist/test/mock-data.d.ts +1 -1
- package/dist/test/mock-data.d.ts.map +1 -1
- package/dist/test/mock-data.js.map +1 -1
- package/dist/test/render-hook.d.ts +2 -2
- package/dist/test/render-hook.d.ts.map +1 -1
- package/dist/test/render-hook.js +2 -2
- package/dist/test/render-hook.js.map +1 -1
- package/dist/test/render.d.ts +3 -3
- package/dist/test/render.d.ts.map +1 -1
- package/dist/test/render.js +3 -3
- package/dist/test/render.js.map +1 -1
- package/dist/test/setup-tests.js +1 -1
- package/dist/test/test-plugins/bert/index.d.ts +3 -3
- package/dist/test/test-plugins/bert/index.d.ts.map +1 -1
- package/dist/test/test-plugins/bert/index.js.map +1 -1
- package/dist/test/test-plugins/ernie/index.d.ts +1 -1
- package/dist/test/test-plugins/ernie/index.d.ts.map +1 -1
- package/dist/test/test-plugins/ernie/index.js.map +1 -1
- package/dist/test/test-plugins/index.d.ts +1 -1
- package/dist/test/test-plugins/index.d.ts.map +1 -1
- package/dist/test/test-plugins/index.js +5 -5
- package/dist/test/test-plugins/index.js.map +1 -1
- package/dist/test/utils.d.ts +2 -2
- package/dist/test/utils.d.ts.map +1 -1
- package/dist/test/utils.js +4 -4
- package/dist/test/utils.js.map +1 -1
- package/dist/test-utils/index.js +1 -1
- package/dist/test-utils/index.js.map +1 -1
- package/dist/test-utils/mock-plugin-registry.d.ts +2 -2
- package/dist/test-utils/mock-plugin-registry.d.ts.map +1 -1
- package/dist/test-utils/mock-plugin-registry.js +1 -1
- package/dist/test-utils/mock-plugin-registry.js.map +1 -1
- package/dist/utils/event.js +1 -1
- package/dist/utils/index.js +3 -3
- package/dist/utils/index.js.map +1 -1
- package/dist/utils/variables.js +1 -1
- package/package.json +7 -7
- package/dist/cjs/components/Annotations/AnnotationEditorForm/AnnotationEditorForm.js +0 -283
- package/dist/cjs/components/Annotations/AnnotationEditorForm/AnnotationPreview.js +0 -197
- package/dist/cjs/components/Annotations/AnnotationEditorForm/index.js +0 -30
- package/dist/cjs/components/Annotations/constants.js +0 -23
- package/dist/cjs/components/Annotations/index.js +0 -31
- package/dist/cjs/components/CalculationSelector/CalculationSelector.js +0 -49
- package/dist/cjs/components/CalculationSelector/index.js +0 -30
- package/dist/cjs/components/DatasourceEditorForm/DatasourceEditorForm.js +0 -271
- package/dist/cjs/components/DatasourceEditorForm/index.js +0 -30
- package/dist/cjs/components/DatasourceSelect/DatasourceSelect.js +0 -266
- package/dist/cjs/components/DatasourceSelect/index.js +0 -30
- package/dist/cjs/components/DatasourceTestConnectionButton/DatasourceTestConnectionButton.js +0 -53
- package/dist/cjs/components/DatasourceTestConnectionButton/index.js +0 -30
- package/dist/cjs/components/HTTPSettingsEditor/HTTPSettingsEditor.js +0 -593
- package/dist/cjs/components/HTTPSettingsEditor/index.js +0 -30
- package/dist/cjs/components/ItemSelectionActionsOptionsEditor/ItemSelectionActionsOptionsEditor.js +0 -1175
- package/dist/cjs/components/ItemSelectionActionsOptionsEditor/index.js +0 -30
- package/dist/cjs/components/LayoutEditor/LayoutEditor.js +0 -123
- package/dist/cjs/components/LayoutEditor/RepeatLayoutPreview.js +0 -105
- package/dist/cjs/components/LayoutEditor/RepeatVariableEditor.js +0 -176
- package/dist/cjs/components/LayoutEditor/index.js +0 -32
- package/dist/cjs/components/LegendOptionsEditor/LegendOptionsEditor.js +0 -211
- package/dist/cjs/components/LegendOptionsEditor/index.js +0 -30
- package/dist/cjs/components/LinksEditor/LinksEditor.js +0 -162
- package/dist/cjs/components/LinksEditor/index.js +0 -30
- package/dist/cjs/components/MetricLabelInput/MetricLabelInput.js +0 -41
- package/dist/cjs/components/MetricLabelInput/index.js +0 -30
- package/dist/cjs/components/MultiQueryEditor/MultiQueryEditor.js +0 -162
- package/dist/cjs/components/MultiQueryEditor/QueryEditorContainer.js +0 -250
- package/dist/cjs/components/MultiQueryEditor/index.js +0 -31
- package/dist/cjs/components/MultiQueryEditor/utils.js +0 -36
- package/dist/cjs/components/OptionsEditorRadios/OptionsEditorRadios.js +0 -69
- package/dist/cjs/components/OptionsEditorRadios/index.js +0 -30
- package/dist/cjs/components/OptionsEditorTabPanel/OptionsEditorTabPanel.js +0 -39
- package/dist/cjs/components/OptionsEditorTabPanel/index.js +0 -30
- package/dist/cjs/components/OptionsEditorTabs/OptionsEditorTabs.js +0 -61
- package/dist/cjs/components/OptionsEditorTabs/index.js +0 -30
- package/dist/cjs/components/PanelSpecEditor/PanelAnnotationsEditor.js +0 -246
- package/dist/cjs/components/PanelSpecEditor/PanelSpecEditor.js +0 -144
- package/dist/cjs/components/PanelSpecEditor/index.js +0 -30
- package/dist/cjs/components/PluginEditor/PluginEditor.js +0 -99
- package/dist/cjs/components/PluginEditor/index.js +0 -31
- package/dist/cjs/components/PluginEditor/plugin-editor-api.js +0 -136
- package/dist/cjs/components/PluginKindSelect/PluginKindSelect.js +0 -109
- package/dist/cjs/components/PluginKindSelect/index.js +0 -30
- package/dist/cjs/components/PluginRegistry/PluginRegistry.js +0 -86
- package/dist/cjs/components/PluginRegistry/getPluginSearchHelper.js +0 -92
- package/dist/cjs/components/PluginRegistry/index.js +0 -30
- package/dist/cjs/components/PluginRegistry/plugin-indexes.js +0 -88
- package/dist/cjs/components/PluginSpecEditor/DatasourceSpecEditor.js +0 -70
- package/dist/cjs/components/PluginSpecEditor/PluginSpecEditor.js +0 -69
- package/dist/cjs/components/PluginSpecEditor/index.js +0 -30
- package/dist/cjs/components/SelectionOptionsEditor/SelectionOptionsEditor.js +0 -43
- package/dist/cjs/components/SelectionOptionsEditor/index.js +0 -30
- package/dist/cjs/components/TimeRangeControls/TimeRangeControls.js +0 -235
- package/dist/cjs/components/TimeRangeControls/index.js +0 -30
- package/dist/cjs/components/Variables/VariableEditorForm/VariableEditorForm.js +0 -613
- package/dist/cjs/components/Variables/VariableEditorForm/VariablePreview.js +0 -193
- package/dist/cjs/components/Variables/VariableEditorForm/index.js +0 -32
- package/dist/cjs/components/Variables/VariableEditorForm/variable-editor-form-model.js +0 -143
- package/dist/cjs/components/Variables/index.js +0 -31
- package/dist/cjs/components/Variables/variable-model.js +0 -211
- package/dist/cjs/components/index.js +0 -50
- package/dist/cjs/constants/index.js +0 -31
- package/dist/cjs/constants/repeat.js +0 -32
- package/dist/cjs/constants/user-interface-text.js +0 -32
- package/dist/cjs/context/ValidationProvider.js +0 -77
- package/dist/cjs/context/index.js +0 -30
- package/dist/cjs/index.js +0 -38
- package/dist/cjs/model/alerts-queries.js +0 -16
- package/dist/cjs/model/annotations.js +0 -16
- package/dist/cjs/model/calculations.js +0 -178
- package/dist/cjs/model/datasource.js +0 -16
- package/dist/cjs/model/explore.js +0 -16
- package/dist/cjs/model/index.js +0 -46
- package/dist/cjs/model/json-queries.js +0 -16
- package/dist/cjs/model/legend.js +0 -111
- package/dist/cjs/model/log-queries.js +0 -16
- package/dist/cjs/model/log-volume-utils.js +0 -124
- package/dist/cjs/model/panels.js +0 -16
- package/dist/cjs/model/plugin-base.js +0 -16
- package/dist/cjs/model/plugin-loading.js +0 -56
- package/dist/cjs/model/plugins.js +0 -26
- package/dist/cjs/model/profile-queries.js +0 -16
- package/dist/cjs/model/silences-queries.js +0 -16
- package/dist/cjs/model/time-series-queries.js +0 -26
- package/dist/cjs/model/trace-queries.js +0 -16
- package/dist/cjs/model/variables.js +0 -16
- package/dist/cjs/remote/PersesPlugin.types.js +0 -16
- package/dist/cjs/remote/PluginLoaderComponent.js +0 -87
- package/dist/cjs/remote/PluginRuntime.js +0 -323
- package/dist/cjs/remote/index.js +0 -31
- package/dist/cjs/remote/remotePluginLoader.js +0 -101
- package/dist/cjs/runtime/DataQueriesProvider/DataQueriesProvider.js +0 -162
- package/dist/cjs/runtime/DataQueriesProvider/index.js +0 -31
- package/dist/cjs/runtime/DataQueriesProvider/model.js +0 -34
- package/dist/cjs/runtime/RouterProvider.js +0 -114
- package/dist/cjs/runtime/TimeRangeProvider/TimeRangeProvider.js +0 -215
- package/dist/cjs/runtime/TimeRangeProvider/TimeRangeProviders.js +0 -66
- package/dist/cjs/runtime/TimeRangeProvider/TimeRangeSettingsProvider.js +0 -126
- package/dist/cjs/runtime/TimeRangeProvider/index.js +0 -33
- package/dist/cjs/runtime/TimeRangeProvider/query-params.js +0 -250
- package/dist/cjs/runtime/TimeRangeProvider/refresh-interval.js +0 -30
- package/dist/cjs/runtime/UsageMetricsProvider.js +0 -102
- package/dist/cjs/runtime/alerts-queries.js +0 -101
- package/dist/cjs/runtime/annotations.js +0 -148
- package/dist/cjs/runtime/builtin-variables.js +0 -81
- package/dist/cjs/runtime/datasources.js +0 -80
- package/dist/cjs/runtime/index.js +0 -45
- package/dist/cjs/runtime/item-actions.js +0 -302
- package/dist/cjs/runtime/json-queries.js +0 -70
- package/dist/cjs/runtime/log-queries.js +0 -76
- package/dist/cjs/runtime/plugin-registry.js +0 -135
- package/dist/cjs/runtime/profile-queries.js +0 -73
- package/dist/cjs/runtime/silences-queries.js +0 -101
- package/dist/cjs/runtime/time-series-queries.js +0 -165
- package/dist/cjs/runtime/trace-queries.js +0 -106
- package/dist/cjs/runtime/utils.js +0 -39
- package/dist/cjs/runtime/variables.js +0 -160
- package/dist/cjs/schema/index.js +0 -30
- package/dist/cjs/schema/panel.js +0 -56
- package/dist/cjs/test/index.js +0 -31
- package/dist/cjs/test/mock-data.js +0 -366
- package/dist/cjs/test/render-hook.js +0 -31
- package/dist/cjs/test/render.js +0 -31
- package/dist/cjs/test/setup-tests.js +0 -26
- package/dist/cjs/test/test-plugins/bert/index.js +0 -99
- package/dist/cjs/test/test-plugins/ernie/index.js +0 -149
- package/dist/cjs/test/test-plugins/index.js +0 -81
- package/dist/cjs/test/utils.js +0 -58
- package/dist/cjs/test-utils/index.js +0 -30
- package/dist/cjs/test-utils/mock-plugin-registry.js +0 -81
- package/dist/cjs/utils/csv-export.js +0 -248
- package/dist/cjs/utils/event.js +0 -30
- package/dist/cjs/utils/index.js +0 -32
- package/dist/cjs/utils/variables.js +0 -44
|
@@ -1,160 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
function _export(target, all) {
|
|
18
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get VariableContext () {
|
|
25
|
-
return VariableContext;
|
|
26
|
-
},
|
|
27
|
-
get VariableStoreStateMap () {
|
|
28
|
-
return VariableStoreStateMap;
|
|
29
|
-
},
|
|
30
|
-
get replaceVariablesInString () {
|
|
31
|
-
return replaceVariablesInString;
|
|
32
|
-
},
|
|
33
|
-
get useAllVariableValues () {
|
|
34
|
-
return useAllVariableValues;
|
|
35
|
-
},
|
|
36
|
-
get useReplaceVariablesInString () {
|
|
37
|
-
return useReplaceVariablesInString;
|
|
38
|
-
},
|
|
39
|
-
get useVariableValues () {
|
|
40
|
-
return useVariableValues;
|
|
41
|
-
}
|
|
42
|
-
});
|
|
43
|
-
const _components = require("@perses-dev/components");
|
|
44
|
-
const _immer = require("immer");
|
|
45
|
-
const _react = require("react");
|
|
46
|
-
const _builtinvariables = require("./builtin-variables");
|
|
47
|
-
class VariableStoreStateMap {
|
|
48
|
-
/**
|
|
49
|
-
* "Immerable" is mandatory to be able to use this class in an immer context.
|
|
50
|
-
* Ref: https://docs.pmnd.rs/zustand/integrations/immer-middleware#gotchas
|
|
51
|
-
*/ [_immer.immerable] = true;
|
|
52
|
-
DEFAULT_LOCAL_SOURCE_NAME = '';
|
|
53
|
-
_state = {};
|
|
54
|
-
/**
|
|
55
|
-
* Get variable state by key.
|
|
56
|
-
* @param key
|
|
57
|
-
*/ get(key) {
|
|
58
|
-
return this._sourceStatesOrEmpty(key.source)[key.name];
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Set variable state by key.
|
|
62
|
-
* @param key
|
|
63
|
-
* @param value
|
|
64
|
-
*/ set(key, value) {
|
|
65
|
-
const sourceName = this._sourceName(key.source);
|
|
66
|
-
if (!this._state[sourceName]) {
|
|
67
|
-
this._state[sourceName] = {};
|
|
68
|
-
}
|
|
69
|
-
this._sourceStatesOrEmpty(key.source)[key.name] = value;
|
|
70
|
-
return value;
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Check presence of variable state by key.
|
|
74
|
-
* @param key
|
|
75
|
-
*/ has(key) {
|
|
76
|
-
return this._sourceStatesOrEmpty(key.source)[key.name] !== undefined;
|
|
77
|
-
}
|
|
78
|
-
/**
|
|
79
|
-
* Delete variable state by key.
|
|
80
|
-
* @param key
|
|
81
|
-
*/ delete(key) {
|
|
82
|
-
const result = this.has(key);
|
|
83
|
-
const sourceName = this._sourceName(key.source);
|
|
84
|
-
const sourceStates = this._state[sourceName];
|
|
85
|
-
// Delete var from source state
|
|
86
|
-
if (sourceStates) {
|
|
87
|
-
delete sourceStates[key.name];
|
|
88
|
-
}
|
|
89
|
-
// Delete source state from state if empty
|
|
90
|
-
if (Object.keys(sourceStates ?? {})?.length === 0) {
|
|
91
|
-
delete this._state[sourceName];
|
|
92
|
-
}
|
|
93
|
-
return result;
|
|
94
|
-
}
|
|
95
|
-
_sourceName(source) {
|
|
96
|
-
return source ?? this.DEFAULT_LOCAL_SOURCE_NAME;
|
|
97
|
-
}
|
|
98
|
-
_sourceStatesOrEmpty(source) {
|
|
99
|
-
return this._state[this._sourceName(source)] ?? {};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
const VariableContext = (0, _react.createContext)(undefined);
|
|
103
|
-
function useVariableContext() {
|
|
104
|
-
const ctx = (0, _react.useContext)(VariableContext);
|
|
105
|
-
if (ctx === undefined) {
|
|
106
|
-
throw new Error('No VariableContext found. Did you forget a Provider?');
|
|
107
|
-
}
|
|
108
|
-
return ctx;
|
|
109
|
-
}
|
|
110
|
-
function useVariableValues(names) {
|
|
111
|
-
const { state } = useVariableContext();
|
|
112
|
-
const values = (0, _react.useMemo)(()=>{
|
|
113
|
-
const values = {};
|
|
114
|
-
names?.forEach((name)=>{
|
|
115
|
-
const s = state[name];
|
|
116
|
-
if (s) {
|
|
117
|
-
values[name] = s;
|
|
118
|
-
}
|
|
119
|
-
});
|
|
120
|
-
return values;
|
|
121
|
-
}, [
|
|
122
|
-
state,
|
|
123
|
-
names
|
|
124
|
-
]);
|
|
125
|
-
if (names === undefined) {
|
|
126
|
-
return state;
|
|
127
|
-
}
|
|
128
|
-
return values;
|
|
129
|
-
}
|
|
130
|
-
function useAllVariableValues(names) {
|
|
131
|
-
const variableValues = useVariableValues(names);
|
|
132
|
-
const builtinVariableValues = (0, _builtinvariables.useBuiltinVariableValues)(names);
|
|
133
|
-
return (0, _react.useMemo)(()=>{
|
|
134
|
-
return {
|
|
135
|
-
...variableValues,
|
|
136
|
-
...builtinVariableValues
|
|
137
|
-
};
|
|
138
|
-
}, [
|
|
139
|
-
variableValues,
|
|
140
|
-
builtinVariableValues
|
|
141
|
-
]);
|
|
142
|
-
}
|
|
143
|
-
function replaceVariablesInString(text, variableValues, extraVariables) {
|
|
144
|
-
const vars = {
|
|
145
|
-
...variableValues
|
|
146
|
-
}; // shallow clone to avoid modifying the original object
|
|
147
|
-
for (const [key, value] of Object.entries(extraVariables ?? {})){
|
|
148
|
-
vars[key] = {
|
|
149
|
-
value,
|
|
150
|
-
loading: false
|
|
151
|
-
};
|
|
152
|
-
}
|
|
153
|
-
return (0, _components.replaceVariables)(text, vars);
|
|
154
|
-
}
|
|
155
|
-
function useReplaceVariablesInString(str) {
|
|
156
|
-
const variablesInString = str ? (0, _components.parseVariables)(str) : [];
|
|
157
|
-
const variableValues = useAllVariableValues(variablesInString);
|
|
158
|
-
if (!str) return undefined;
|
|
159
|
-
return (0, _components.replaceVariables)(str, variableValues);
|
|
160
|
-
}
|
package/dist/cjs/schema/index.js
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
_export_star(require("./panel"), exports);
|
|
18
|
-
function _export_star(from, to) {
|
|
19
|
-
Object.keys(from).forEach(function(k) {
|
|
20
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
21
|
-
Object.defineProperty(to, k, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function() {
|
|
24
|
-
return from[k];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
});
|
|
29
|
-
return from;
|
|
30
|
-
}
|
package/dist/cjs/schema/panel.js
DELETED
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
function _export(target, all) {
|
|
18
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get buildPanelEditorSchema () {
|
|
25
|
-
return buildPanelEditorSchema;
|
|
26
|
-
},
|
|
27
|
-
get panelEditorSchema () {
|
|
28
|
-
return panelEditorSchema;
|
|
29
|
-
}
|
|
30
|
-
});
|
|
31
|
-
const _spec = require("@perses-dev/spec");
|
|
32
|
-
const _zod = require("zod");
|
|
33
|
-
const layoutDefinitionSchema = _zod.z.object({
|
|
34
|
-
width: _zod.z.number(),
|
|
35
|
-
height: _zod.z.number(),
|
|
36
|
-
repeatVariable: _zod.z.object({
|
|
37
|
-
value: _zod.z.string(),
|
|
38
|
-
maxPer: _zod.z.number().min(1).max(12).optional(),
|
|
39
|
-
alignment: _zod.z.enum([
|
|
40
|
-
'horizontal',
|
|
41
|
-
'vertical'
|
|
42
|
-
]).optional()
|
|
43
|
-
}).optional()
|
|
44
|
-
}).optional();
|
|
45
|
-
const panelEditorSchema = _zod.z.object({
|
|
46
|
-
groupId: _zod.z.number(),
|
|
47
|
-
panelDefinition: _spec.panelDefinitionSchema,
|
|
48
|
-
layoutDefinition: layoutDefinitionSchema
|
|
49
|
-
});
|
|
50
|
-
function buildPanelEditorSchema(pluginSchema) {
|
|
51
|
-
return _zod.z.object({
|
|
52
|
-
groupId: _zod.z.number(),
|
|
53
|
-
panelDefinition: (0, _spec.buildPanelDefinitionSchema)(pluginSchema),
|
|
54
|
-
layoutDefinition: layoutDefinitionSchema
|
|
55
|
-
});
|
|
56
|
-
}
|
package/dist/cjs/test/index.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
_export_star(require("./render"), exports);
|
|
18
|
-
_export_star(require("./mock-data"), exports);
|
|
19
|
-
function _export_star(from, to) {
|
|
20
|
-
Object.keys(from).forEach(function(k) {
|
|
21
|
-
if (k !== "default" && !Object.prototype.hasOwnProperty.call(to, k)) {
|
|
22
|
-
Object.defineProperty(to, k, {
|
|
23
|
-
enumerable: true,
|
|
24
|
-
get: function() {
|
|
25
|
-
return from[k];
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
return from;
|
|
31
|
-
}
|
|
@@ -1,366 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
function _export(target, all) {
|
|
18
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: Object.getOwnPropertyDescriptor(all, name).get
|
|
21
|
-
});
|
|
22
|
-
}
|
|
23
|
-
_export(exports, {
|
|
24
|
-
get MOCK_ALERTS_DATA () {
|
|
25
|
-
return MOCK_ALERTS_DATA;
|
|
26
|
-
},
|
|
27
|
-
get MOCK_EMPTY_PLUGIN_MODULE () {
|
|
28
|
-
return MOCK_EMPTY_PLUGIN_MODULE;
|
|
29
|
-
},
|
|
30
|
-
get MOCK_INVALID_PLUGIN_MODULE () {
|
|
31
|
-
return MOCK_INVALID_PLUGIN_MODULE;
|
|
32
|
-
},
|
|
33
|
-
get MOCK_JSON_DATA () {
|
|
34
|
-
return MOCK_JSON_DATA;
|
|
35
|
-
},
|
|
36
|
-
get MOCK_LOG_DATA () {
|
|
37
|
-
return MOCK_LOG_DATA;
|
|
38
|
-
},
|
|
39
|
-
get MOCK_MIXED_VALIDITY_PLUGIN_MODULES () {
|
|
40
|
-
return MOCK_MIXED_VALIDITY_PLUGIN_MODULES;
|
|
41
|
-
},
|
|
42
|
-
get MOCK_MULTI_PLUGIN_MODULE () {
|
|
43
|
-
return MOCK_MULTI_PLUGIN_MODULE;
|
|
44
|
-
},
|
|
45
|
-
get MOCK_PARTIAL_FAILURE_MODULE () {
|
|
46
|
-
return MOCK_PARTIAL_FAILURE_MODULE;
|
|
47
|
-
},
|
|
48
|
-
get MOCK_PROFILE_DATA () {
|
|
49
|
-
return MOCK_PROFILE_DATA;
|
|
50
|
-
},
|
|
51
|
-
get MOCK_REMOTE_PLUGIN_MODULE () {
|
|
52
|
-
return MOCK_REMOTE_PLUGIN_MODULE;
|
|
53
|
-
},
|
|
54
|
-
get MOCK_SILENCES_DATA () {
|
|
55
|
-
return MOCK_SILENCES_DATA;
|
|
56
|
-
},
|
|
57
|
-
get MOCK_TIME_SERIES_DATA () {
|
|
58
|
-
return MOCK_TIME_SERIES_DATA;
|
|
59
|
-
},
|
|
60
|
-
get MOCK_TRACE_DATA () {
|
|
61
|
-
return MOCK_TRACE_DATA;
|
|
62
|
-
},
|
|
63
|
-
get MOCK_VALID_PLUGIN_METADATA () {
|
|
64
|
-
return MOCK_VALID_PLUGIN_METADATA;
|
|
65
|
-
},
|
|
66
|
-
get MOCK_VALID_PLUGIN_MODULE_RESOURCE () {
|
|
67
|
-
return MOCK_VALID_PLUGIN_MODULE_RESOURCE;
|
|
68
|
-
}
|
|
69
|
-
});
|
|
70
|
-
const MOCK_TIME_SERIES_DATA = {
|
|
71
|
-
timeRange: {
|
|
72
|
-
start: new Date(1666625490000),
|
|
73
|
-
end: new Date(1666625535000)
|
|
74
|
-
},
|
|
75
|
-
stepMs: 24379,
|
|
76
|
-
series: [
|
|
77
|
-
{
|
|
78
|
-
name: 'device="/dev/vda1", env="demo", fstype="ext4", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/"',
|
|
79
|
-
values: [
|
|
80
|
-
[
|
|
81
|
-
1666479357903,
|
|
82
|
-
0.27700745551584494
|
|
83
|
-
],
|
|
84
|
-
[
|
|
85
|
-
1666479382282,
|
|
86
|
-
0.27701284657366565
|
|
87
|
-
]
|
|
88
|
-
]
|
|
89
|
-
},
|
|
90
|
-
{
|
|
91
|
-
name: 'device="/dev/vda15", env="demo", fstype="vfat", instance="demo.do.prometheus.io:9100", job="node", mountpoint="/boot/efi"',
|
|
92
|
-
values: [
|
|
93
|
-
[
|
|
94
|
-
1666479357903,
|
|
95
|
-
0.08486496097624885
|
|
96
|
-
],
|
|
97
|
-
[
|
|
98
|
-
1666479382282,
|
|
99
|
-
0.08486496097624885
|
|
100
|
-
]
|
|
101
|
-
]
|
|
102
|
-
}
|
|
103
|
-
]
|
|
104
|
-
};
|
|
105
|
-
const MOCK_TRACE_DATA = {
|
|
106
|
-
searchResult: [
|
|
107
|
-
{
|
|
108
|
-
durationMs: 1120,
|
|
109
|
-
serviceStats: {
|
|
110
|
-
'shop-backend': {
|
|
111
|
-
spanCount: 4,
|
|
112
|
-
errorCount: 0
|
|
113
|
-
},
|
|
114
|
-
'cart-service': {
|
|
115
|
-
spanCount: 2,
|
|
116
|
-
errorCount: 0
|
|
117
|
-
},
|
|
118
|
-
'article-service': {
|
|
119
|
-
spanCount: 2,
|
|
120
|
-
errorCount: 0
|
|
121
|
-
},
|
|
122
|
-
'auth-service': {
|
|
123
|
-
spanCount: 1,
|
|
124
|
-
errorCount: 0
|
|
125
|
-
},
|
|
126
|
-
postgres: {
|
|
127
|
-
spanCount: 1,
|
|
128
|
-
errorCount: 0
|
|
129
|
-
}
|
|
130
|
-
},
|
|
131
|
-
startTimeUnixMs: 1699916103945861,
|
|
132
|
-
traceId: '95ba9202315c29c801b5aa41452aa775',
|
|
133
|
-
rootServiceName: 'shop-backend',
|
|
134
|
-
rootTraceName: 'article-to-cart'
|
|
135
|
-
}
|
|
136
|
-
],
|
|
137
|
-
metadata: {
|
|
138
|
-
executedQueryString: '{ duration > 1000ms }'
|
|
139
|
-
}
|
|
140
|
-
};
|
|
141
|
-
const MOCK_LOG_DATA = {
|
|
142
|
-
totalCount: 2,
|
|
143
|
-
entries: [
|
|
144
|
-
{
|
|
145
|
-
timestamp: 1666479357903,
|
|
146
|
-
line: 'Error: Something went wrong',
|
|
147
|
-
labels: {
|
|
148
|
-
level: 'error',
|
|
149
|
-
service: 'backend'
|
|
150
|
-
}
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
timestamp: 1666479382282,
|
|
154
|
-
line: 'Info: Request processed successfully',
|
|
155
|
-
labels: {
|
|
156
|
-
level: 'info',
|
|
157
|
-
service: 'frontend'
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
};
|
|
162
|
-
const MOCK_PROFILE_DATA = {
|
|
163
|
-
profile: {
|
|
164
|
-
stackTrace: {
|
|
165
|
-
id: 0,
|
|
166
|
-
name: 'root',
|
|
167
|
-
level: 0,
|
|
168
|
-
start: 1699916103945861,
|
|
169
|
-
end: 1699916105065861,
|
|
170
|
-
total: 1000,
|
|
171
|
-
self: 500,
|
|
172
|
-
children: []
|
|
173
|
-
}
|
|
174
|
-
},
|
|
175
|
-
metadata: {
|
|
176
|
-
spyName: '',
|
|
177
|
-
sampleRate: 1000000000,
|
|
178
|
-
units: 'samples',
|
|
179
|
-
name: 'cpu'
|
|
180
|
-
}
|
|
181
|
-
};
|
|
182
|
-
const MOCK_ALERTS_DATA = {
|
|
183
|
-
alerts: [
|
|
184
|
-
{
|
|
185
|
-
id: 'abc123',
|
|
186
|
-
name: 'HighErrorRate',
|
|
187
|
-
state: 'firing',
|
|
188
|
-
labels: {
|
|
189
|
-
alertname: 'HighErrorRate',
|
|
190
|
-
severity: 'critical',
|
|
191
|
-
service: 'backend'
|
|
192
|
-
},
|
|
193
|
-
annotations: {
|
|
194
|
-
summary: 'High error rate detected'
|
|
195
|
-
},
|
|
196
|
-
severity: 'critical',
|
|
197
|
-
startsAt: '2024-01-01T00:00:00Z',
|
|
198
|
-
endsAt: '2024-01-02T00:00:00Z',
|
|
199
|
-
updatedAt: '2024-01-01T12:00:00Z',
|
|
200
|
-
receivers: [
|
|
201
|
-
'cluster-01'
|
|
202
|
-
]
|
|
203
|
-
}
|
|
204
|
-
]
|
|
205
|
-
};
|
|
206
|
-
const MOCK_SILENCES_DATA = {
|
|
207
|
-
silences: [
|
|
208
|
-
{
|
|
209
|
-
id: 'silence-1',
|
|
210
|
-
state: 'active',
|
|
211
|
-
matchers: [
|
|
212
|
-
{
|
|
213
|
-
name: 'alertname',
|
|
214
|
-
value: 'HighErrorRate',
|
|
215
|
-
isRegex: false,
|
|
216
|
-
isEqual: true
|
|
217
|
-
}
|
|
218
|
-
],
|
|
219
|
-
startsAt: '2024-01-01T00:00:00Z',
|
|
220
|
-
endsAt: '2024-01-02T00:00:00Z',
|
|
221
|
-
createdBy: 'admin',
|
|
222
|
-
comment: 'Maintenance window',
|
|
223
|
-
updatedAt: '2024-01-01T00:00:00Z'
|
|
224
|
-
}
|
|
225
|
-
]
|
|
226
|
-
};
|
|
227
|
-
const MOCK_JSON_DATA = {
|
|
228
|
-
data: {
|
|
229
|
-
status: 'ok',
|
|
230
|
-
value: 42
|
|
231
|
-
}
|
|
232
|
-
};
|
|
233
|
-
const MOCK_VALID_PLUGIN_METADATA = {
|
|
234
|
-
kind: 'Panel',
|
|
235
|
-
spec: {
|
|
236
|
-
name: 'testPlugin',
|
|
237
|
-
display: {
|
|
238
|
-
name: 'Test Plugin',
|
|
239
|
-
description: 'A test plugin for unit testing'
|
|
240
|
-
}
|
|
241
|
-
}
|
|
242
|
-
};
|
|
243
|
-
const MOCK_VALID_PLUGIN_MODULE_RESOURCE = {
|
|
244
|
-
kind: 'PluginModule',
|
|
245
|
-
metadata: {
|
|
246
|
-
name: 'test-module',
|
|
247
|
-
version: '1.0.0'
|
|
248
|
-
},
|
|
249
|
-
spec: {
|
|
250
|
-
plugins: [
|
|
251
|
-
MOCK_VALID_PLUGIN_METADATA
|
|
252
|
-
]
|
|
253
|
-
}
|
|
254
|
-
};
|
|
255
|
-
const MOCK_INVALID_PLUGIN_MODULE = {
|
|
256
|
-
// Missing required fields
|
|
257
|
-
metadata: {
|
|
258
|
-
name: 'invalid-module'
|
|
259
|
-
},
|
|
260
|
-
spec: {
|
|
261
|
-
plugins: [
|
|
262
|
-
{
|
|
263
|
-
// Missing required fields
|
|
264
|
-
kind: 'Panel'
|
|
265
|
-
}
|
|
266
|
-
]
|
|
267
|
-
}
|
|
268
|
-
};
|
|
269
|
-
const MOCK_MIXED_VALIDITY_PLUGIN_MODULES = [
|
|
270
|
-
MOCK_VALID_PLUGIN_MODULE_RESOURCE,
|
|
271
|
-
MOCK_INVALID_PLUGIN_MODULE,
|
|
272
|
-
{
|
|
273
|
-
kind: 'PluginModule',
|
|
274
|
-
metadata: {
|
|
275
|
-
name: 'another-valid-module',
|
|
276
|
-
version: '2.0.0'
|
|
277
|
-
},
|
|
278
|
-
spec: {
|
|
279
|
-
plugins: [
|
|
280
|
-
{
|
|
281
|
-
kind: 'Variable',
|
|
282
|
-
spec: {
|
|
283
|
-
name: 'anotherPlugin',
|
|
284
|
-
display: {
|
|
285
|
-
name: 'Another Plugin'
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
}
|
|
289
|
-
]
|
|
290
|
-
}
|
|
291
|
-
}
|
|
292
|
-
];
|
|
293
|
-
const MOCK_REMOTE_PLUGIN_MODULE = {
|
|
294
|
-
testPlugin: {
|
|
295
|
-
component: ()=>null,
|
|
296
|
-
createDefaultOptions: ()=>({})
|
|
297
|
-
}
|
|
298
|
-
};
|
|
299
|
-
const MOCK_MULTI_PLUGIN_MODULE = {
|
|
300
|
-
kind: 'PluginModule',
|
|
301
|
-
metadata: {
|
|
302
|
-
name: 'multi-plugin-module',
|
|
303
|
-
version: '1.0.0'
|
|
304
|
-
},
|
|
305
|
-
spec: {
|
|
306
|
-
plugins: [
|
|
307
|
-
{
|
|
308
|
-
kind: 'Panel',
|
|
309
|
-
spec: {
|
|
310
|
-
name: 'plugin1',
|
|
311
|
-
display: {
|
|
312
|
-
name: 'Plugin 1'
|
|
313
|
-
}
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
{
|
|
317
|
-
kind: 'Variable',
|
|
318
|
-
spec: {
|
|
319
|
-
name: 'plugin2',
|
|
320
|
-
display: {
|
|
321
|
-
name: 'Plugin 2'
|
|
322
|
-
}
|
|
323
|
-
}
|
|
324
|
-
}
|
|
325
|
-
]
|
|
326
|
-
}
|
|
327
|
-
};
|
|
328
|
-
const MOCK_PARTIAL_FAILURE_MODULE = {
|
|
329
|
-
kind: 'PluginModule',
|
|
330
|
-
metadata: {
|
|
331
|
-
name: 'partial-failure-module',
|
|
332
|
-
version: '1.0.0'
|
|
333
|
-
},
|
|
334
|
-
spec: {
|
|
335
|
-
plugins: [
|
|
336
|
-
{
|
|
337
|
-
kind: 'Panel',
|
|
338
|
-
spec: {
|
|
339
|
-
name: 'workingPlugin',
|
|
340
|
-
display: {
|
|
341
|
-
name: 'Working Plugin'
|
|
342
|
-
}
|
|
343
|
-
}
|
|
344
|
-
},
|
|
345
|
-
{
|
|
346
|
-
kind: 'Variable',
|
|
347
|
-
spec: {
|
|
348
|
-
name: 'failingPlugin',
|
|
349
|
-
display: {
|
|
350
|
-
name: 'Failing Plugin'
|
|
351
|
-
}
|
|
352
|
-
}
|
|
353
|
-
}
|
|
354
|
-
]
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
const MOCK_EMPTY_PLUGIN_MODULE = {
|
|
358
|
-
kind: 'PluginModule',
|
|
359
|
-
metadata: {
|
|
360
|
-
name: 'empty-module',
|
|
361
|
-
version: '1.0.0'
|
|
362
|
-
},
|
|
363
|
-
spec: {
|
|
364
|
-
plugins: []
|
|
365
|
-
}
|
|
366
|
-
};
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "renderHookWithContext", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return renderHookWithContext;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _react = require("@testing-library/react");
|
|
24
|
-
const _utils = require("./utils");
|
|
25
|
-
function renderHookWithContext(callback, contextOptions, renderHookOptions) {
|
|
26
|
-
const wrapper = (0, _utils.getTestContextWrapper)(contextOptions);
|
|
27
|
-
return (0, _react.renderHook)(callback, {
|
|
28
|
-
wrapper,
|
|
29
|
-
...renderHookOptions
|
|
30
|
-
});
|
|
31
|
-
}
|
package/dist/cjs/test/render.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
// Copyright The Perses Authors
|
|
2
|
-
// Licensed under the Apache License, Version 2.0 (the "License");
|
|
3
|
-
// you may not use this file except in compliance with the License.
|
|
4
|
-
// You may obtain a copy of the License at
|
|
5
|
-
//
|
|
6
|
-
// http://www.apache.org/licenses/LICENSE-2.0
|
|
7
|
-
//
|
|
8
|
-
// Unless required by applicable law or agreed to in writing, software
|
|
9
|
-
// distributed under the License is distributed on an "AS IS" BASIS,
|
|
10
|
-
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
11
|
-
// See the License for the specific language governing permissions and
|
|
12
|
-
// limitations under the License.
|
|
13
|
-
"use strict";
|
|
14
|
-
Object.defineProperty(exports, "__esModule", {
|
|
15
|
-
value: true
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(exports, "renderWithContext", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
get: function() {
|
|
20
|
-
return renderWithContext;
|
|
21
|
-
}
|
|
22
|
-
});
|
|
23
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
24
|
-
const _react = require("@testing-library/react");
|
|
25
|
-
const _utils = require("./utils");
|
|
26
|
-
function renderWithContext(ui, renderOptions, contextOptions) {
|
|
27
|
-
const Wrapper = (0, _utils.getTestContextWrapper)(contextOptions);
|
|
28
|
-
return (0, _react.render)(/*#__PURE__*/ (0, _jsxruntime.jsx)(Wrapper, {
|
|
29
|
-
children: ui
|
|
30
|
-
}), renderOptions);
|
|
31
|
-
}
|