@everysk/apps-sdk 0.2.0 → 0.3.0-beta-20261019175049
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/README.md +342 -12
- package/dist/EveryskApp.d.ts +34 -2
- package/dist/EveryskApp.d.ts.map +1 -1
- package/dist/EveryskApp.js +35 -2
- package/dist/EveryskApp.js.map +1 -1
- package/dist/agGrid/handleRowsScrollEnd.d.ts +53 -0
- package/dist/agGrid/handleRowsScrollEnd.d.ts.map +1 -0
- package/dist/agGrid/handleRowsScrollEnd.js +47 -0
- package/dist/agGrid/handleRowsScrollEnd.js.map +1 -0
- package/dist/agGrid/index.d.ts +2 -0
- package/dist/agGrid/index.d.ts.map +1 -1
- package/dist/agGrid/index.js +2 -1
- package/dist/api/datastore.d.ts +10 -8
- package/dist/api/datastore.d.ts.map +1 -1
- package/dist/api/datastore.js +24 -55
- package/dist/api/datastore.js.map +1 -1
- package/dist/api/entityQuery.d.ts +46 -41
- package/dist/api/entityQuery.d.ts.map +1 -1
- package/dist/api/entityQuery.js +55 -14
- package/dist/api/entityQuery.js.map +1 -1
- package/dist/api/file.d.ts +26 -9
- package/dist/api/file.d.ts.map +1 -1
- package/dist/api/file.js +45 -55
- package/dist/api/file.js.map +1 -1
- package/dist/api/portfolio.d.ts +11 -8
- package/dist/api/portfolio.d.ts.map +1 -1
- package/dist/api/portfolio.js +24 -55
- package/dist/api/portfolio.js.map +1 -1
- package/dist/api/profile.d.ts +3 -2
- package/dist/api/profile.d.ts.map +1 -1
- package/dist/api/profile.js +4 -9
- package/dist/api/profile.js.map +1 -1
- package/dist/api/request.d.ts +106 -0
- package/dist/api/request.d.ts.map +1 -0
- package/dist/api/request.js +132 -0
- package/dist/api/request.js.map +1 -0
- package/dist/api/websocketsConfig.d.ts +7 -2
- package/dist/api/websocketsConfig.d.ts.map +1 -1
- package/dist/api/websocketsConfig.js +2 -10
- package/dist/api/websocketsConfig.js.map +1 -1
- package/dist/api/workflow.d.ts +84 -89
- package/dist/api/workflow.d.ts.map +1 -1
- package/dist/api/workflow.js +121 -208
- package/dist/api/workflow.js.map +1 -1
- package/dist/api/workspace.d.ts +18 -8
- package/dist/api/workspace.d.ts.map +1 -1
- package/dist/api/workspace.js +21 -26
- package/dist/api/workspace.js.map +1 -1
- package/dist/components/ui/Footer/index.d.ts.map +1 -1
- package/dist/components/ui/Footer/index.js.map +1 -1
- package/dist/components/ui/GlobalLoading/index.d.ts.map +1 -1
- package/dist/components/ui/GlobalLoading/index.js.map +1 -1
- package/dist/components/ui/PageContainer/index.d.ts +1 -1
- package/dist/components/ui/PageContainer/index.d.ts.map +1 -1
- package/dist/components/ui/PageContainer/index.js.map +1 -1
- package/dist/components/ui/Toolbar/index.d.ts +40 -3
- package/dist/components/ui/Toolbar/index.d.ts.map +1 -1
- package/dist/components/ui/Toolbar/index.js +42 -15
- package/dist/components/ui/Toolbar/index.js.map +1 -1
- package/dist/contexts/appAlertContext/provider.js.map +1 -1
- package/dist/contexts/appAlertContext/types.d.ts.map +1 -1
- package/dist/contexts/appConfigContext/index.d.ts.map +1 -1
- package/dist/contexts/appConfigContext/index.js.map +1 -1
- package/dist/contexts/appConfigContext/provider.d.ts.map +1 -1
- package/dist/contexts/appConfigContext/provider.js.map +1 -1
- package/dist/contexts/webSocketContext/handler.d.ts +3 -2
- package/dist/contexts/webSocketContext/handler.d.ts.map +1 -1
- package/dist/contexts/webSocketContext/handler.js.map +1 -1
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.d.ts +1 -1
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js +1 -1
- package/dist/contexts/webSocketContext/hooks/useWebSocket/index.js.map +1 -1
- package/dist/contexts/webSocketContext/provider.d.ts +6 -3
- package/dist/contexts/webSocketContext/provider.d.ts.map +1 -1
- package/dist/contexts/webSocketContext/provider.js +42 -7
- package/dist/contexts/webSocketContext/provider.js.map +1 -1
- package/dist/contexts/webSocketContext/types.d.ts +7 -5
- package/dist/contexts/webSocketContext/types.d.ts.map +1 -1
- package/dist/file/index.d.ts +2 -0
- package/dist/file/index.d.ts.map +1 -1
- package/dist/hooks/datastore/useDatastoreMutations.d.ts +4 -4
- package/dist/hooks/datastore/useDatastoreMutations.d.ts.map +1 -1
- package/dist/hooks/datastore/useDatastoreMutations.js +17 -55
- package/dist/hooks/datastore/useDatastoreMutations.js.map +1 -1
- package/dist/hooks/datastore/useFetchDatastore.d.ts +30 -41
- package/dist/hooks/datastore/useFetchDatastore.d.ts.map +1 -1
- package/dist/hooks/datastore/useFetchDatastore.js +25 -59
- package/dist/hooks/datastore/useFetchDatastore.js.map +1 -1
- package/dist/hooks/datastore/useFetchDatastores.d.ts +47 -52
- package/dist/hooks/datastore/useFetchDatastores.d.ts.map +1 -1
- package/dist/hooks/datastore/useFetchDatastores.js +55 -70
- package/dist/hooks/datastore/useFetchDatastores.js.map +1 -1
- package/dist/hooks/file/fileData.d.ts +17 -0
- package/dist/hooks/file/fileData.d.ts.map +1 -0
- package/dist/hooks/file/fileData.js +10 -0
- package/dist/hooks/file/fileData.js.map +1 -0
- package/dist/hooks/file/useFetchFile.d.ts +38 -58
- package/dist/hooks/file/useFetchFile.d.ts.map +1 -1
- package/dist/hooks/file/useFetchFile.js +26 -66
- package/dist/hooks/file/useFetchFile.js.map +1 -1
- package/dist/hooks/file/useFetchFiles.d.ts +18 -52
- package/dist/hooks/file/useFetchFiles.d.ts.map +1 -1
- package/dist/hooks/file/useFetchFiles.js +53 -69
- package/dist/hooks/file/useFetchFiles.js.map +1 -1
- package/dist/hooks/file/useFileMutations.d.ts +9 -8
- package/dist/hooks/file/useFileMutations.d.ts.map +1 -1
- package/dist/hooks/file/useFileMutations.js +23 -60
- package/dist/hooks/file/useFileMutations.js.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolio.d.ts +16 -50
- package/dist/hooks/portfolio/useFetchPortfolio.d.ts.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolio.js +15 -63
- package/dist/hooks/portfolio/useFetchPortfolio.js.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolios.d.ts +13 -52
- package/dist/hooks/portfolio/useFetchPortfolios.d.ts.map +1 -1
- package/dist/hooks/portfolio/useFetchPortfolios.js +29 -71
- package/dist/hooks/portfolio/useFetchPortfolios.js.map +1 -1
- package/dist/hooks/portfolio/usePortfolioMutations.d.ts +8 -8
- package/dist/hooks/portfolio/usePortfolioMutations.d.ts.map +1 -1
- package/dist/hooks/portfolio/usePortfolioMutations.js +20 -58
- package/dist/hooks/portfolio/usePortfolioMutations.js.map +1 -1
- package/dist/hooks/profile/useFetchProfile.d.ts +18 -44
- package/dist/hooks/profile/useFetchProfile.d.ts.map +1 -1
- package/dist/hooks/profile/useFetchProfile.js +16 -48
- package/dist/hooks/profile/useFetchProfile.js.map +1 -1
- package/dist/hooks/useAxios.js.map +1 -1
- package/dist/hooks/useEntityInfiniteQuery.d.ts +88 -0
- package/dist/hooks/useEntityInfiniteQuery.d.ts.map +1 -0
- package/dist/hooks/useEntityInfiniteQuery.js +111 -0
- package/dist/hooks/useEntityInfiniteQuery.js.map +1 -0
- package/dist/hooks/useEntityMutation.d.ts +47 -0
- package/dist/hooks/useEntityMutation.d.ts.map +1 -0
- package/dist/hooks/useEntityMutation.js +58 -0
- package/dist/hooks/useEntityMutation.js.map +1 -0
- package/dist/hooks/useEntityQuery.d.ts +68 -0
- package/dist/hooks/useEntityQuery.d.ts.map +1 -0
- package/dist/hooks/useEntityQuery.js +75 -0
- package/dist/hooks/useEntityQuery.js.map +1 -0
- package/dist/hooks/workflow/useFetchWorkerExecution.d.ts +17 -34
- package/dist/hooks/workflow/useFetchWorkerExecution.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkerExecution.js +16 -46
- package/dist/hooks/workflow/useFetchWorkerExecution.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts +179 -41
- package/dist/hooks/workflow/useFetchWorkerExecutions.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkerExecutions.js +29 -62
- package/dist/hooks/workflow/useFetchWorkerExecutions.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflow.d.ts +16 -35
- package/dist/hooks/workflow/useFetchWorkflow.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflow.js +15 -48
- package/dist/hooks/workflow/useFetchWorkflow.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts +17 -34
- package/dist/hooks/workflow/useFetchWorkflowExecution.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecution.js +16 -46
- package/dist/hooks/workflow/useFetchWorkflowExecution.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts +22 -36
- package/dist/hooks/workflow/useFetchWorkflowExecutions.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflowExecutions.js +43 -56
- package/dist/hooks/workflow/useFetchWorkflowExecutions.js.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflows.d.ts +20 -37
- package/dist/hooks/workflow/useFetchWorkflows.d.ts.map +1 -1
- package/dist/hooks/workflow/useFetchWorkflows.js +32 -47
- package/dist/hooks/workflow/useFetchWorkflows.js.map +1 -1
- package/dist/hooks/workflow/useRunWorkflow.d.ts +21 -16
- package/dist/hooks/workflow/useRunWorkflow.d.ts.map +1 -1
- package/dist/hooks/workflow/useRunWorkflow.js +66 -29
- package/dist/hooks/workflow/useRunWorkflow.js.map +1 -1
- package/dist/hooks/workflow/useTriggerWorkflow.d.ts +20 -0
- package/dist/hooks/workflow/useTriggerWorkflow.d.ts.map +1 -0
- package/dist/hooks/workflow/useTriggerWorkflow.js +32 -0
- package/dist/hooks/workflow/useTriggerWorkflow.js.map +1 -0
- package/dist/hooks/workspace/useFetchWorkspace.d.ts +19 -34
- package/dist/hooks/workspace/useFetchWorkspace.d.ts.map +1 -1
- package/dist/hooks/workspace/useFetchWorkspace.js +16 -46
- package/dist/hooks/workspace/useFetchWorkspace.js.map +1 -1
- package/dist/hooks/workspace/useFetchWorkspaces.d.ts +17 -37
- package/dist/hooks/workspace/useFetchWorkspaces.d.ts.map +1 -1
- package/dist/hooks/workspace/useFetchWorkspaces.js +25 -47
- package/dist/hooks/workspace/useFetchWorkspaces.js.map +1 -1
- package/dist/index.d.ts +13 -10
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +13 -11
- package/dist/lib/abort.d.ts +58 -0
- package/dist/lib/abort.d.ts.map +1 -0
- package/dist/lib/abort.js +112 -0
- package/dist/lib/abort.js.map +1 -0
- package/dist/lib/datastoreTable.d.ts +59 -54
- package/dist/lib/datastoreTable.d.ts.map +1 -1
- package/dist/lib/datastoreTable.js +58 -62
- package/dist/lib/datastoreTable.js.map +1 -1
- package/dist/lib/file.d.ts +34 -0
- package/dist/lib/file.d.ts.map +1 -0
- package/dist/lib/file.js +63 -0
- package/dist/lib/file.js.map +1 -0
- package/dist/lib/queryClient.d.ts.map +1 -1
- package/dist/lib/queryClient.js.map +1 -1
- package/dist/lib/workflowRun.d.ts +91 -0
- package/dist/lib/workflowRun.d.ts.map +1 -0
- package/dist/lib/workflowRun.js +224 -0
- package/dist/lib/workflowRun.js.map +1 -0
- package/dist/socket/index.d.ts +1 -3
- package/dist/socket/index.d.ts.map +1 -1
- package/dist/socket/index.js +3 -5
- package/dist/test/mocks/index.d.ts +1 -1
- package/dist/test/mocks/index.d.ts.map +1 -1
- package/dist/test/msw/fakeApi.d.ts +43 -0
- package/dist/test/msw/fakeApi.d.ts.map +1 -0
- package/dist/test/msw/fakeApi.js +74 -0
- package/dist/test/msw/fakeApi.js.map +1 -0
- package/dist/test/msw/handlers.d.ts +20 -0
- package/dist/test/msw/handlers.d.ts.map +1 -0
- package/dist/test/msw/handlers.js +279 -0
- package/dist/test/msw/handlers.js.map +1 -0
- package/dist/test/msw/index.d.ts +5 -0
- package/dist/test/msw/index.d.ts.map +1 -0
- package/dist/test/msw/index.js +2 -0
- package/dist/test/msw/query.d.ts +34 -0
- package/dist/test/msw/query.d.ts.map +1 -0
- package/dist/test/msw/query.js +96 -0
- package/dist/test/msw/query.js.map +1 -0
- package/dist/test/msw/recorder.d.ts +30 -0
- package/dist/test/msw/recorder.d.ts.map +1 -0
- package/dist/test/msw/recorder.js +65 -0
- package/dist/test/msw/recorder.js.map +1 -0
- package/dist/test/msw/store.d.ts +57 -0
- package/dist/test/msw/store.d.ts.map +1 -0
- package/dist/test/msw/store.js +145 -0
- package/dist/test/msw/store.js.map +1 -0
- package/dist/test/renderWithProviders.d.ts +2 -2
- package/dist/test/renderWithProviders.d.ts.map +1 -1
- package/dist/test/renderWithProviders.js.map +1 -1
- package/dist/test/setup.js.map +1 -1
- package/dist/theme/index.d.ts +1 -1
- package/dist/theme/index.d.ts.map +1 -1
- package/dist/theme/overrides/index.d.ts +4 -2
- package/dist/theme/overrides/index.d.ts.map +1 -1
- package/dist/theme/overrides/index.js +5 -3
- package/dist/theme/overrides/index.js.map +1 -1
- package/dist/theme/overrides/muiButton.d.ts +2 -2
- package/dist/theme/overrides/muiButton.js.map +1 -1
- package/dist/theme/overrides/muiCssBaseline.d.ts.map +1 -1
- package/dist/theme/overrides/muiCssBaseline.js.map +1 -1
- package/dist/theme/overrides/muiDatePicker.js.map +1 -1
- package/dist/theme/overrides/muiFormControl.js.map +1 -1
- package/dist/theme/overrides/muiIconButton.d.ts +2 -2
- package/dist/theme/overrides/muiIconButton.js.map +1 -1
- package/dist/theme/overrides/muiSelect.d.ts.map +1 -1
- package/dist/theme/overrides/muiSelect.js.map +1 -1
- package/dist/theme/overrides/muiSvgIcon.d.ts.map +1 -1
- package/dist/theme/overrides/muiSvgIcon.js.map +1 -1
- package/dist/theme/overrides/muiTextField.js.map +1 -1
- package/dist/theme/overrides/muiToggleButton.d.ts +2 -2
- package/dist/theme/overrides/muiToggleButton.js.map +1 -1
- package/dist/theme/overrides/muiToggleButtonGroup.d.ts +2 -2
- package/dist/theme/overrides/muiToggleButtonGroup.js.map +1 -1
- package/dist/theme/themes/DefaultDark.js +2 -2
- package/dist/theme/themes/DefaultDark.js.map +1 -1
- package/dist/theme/themes/DefaultLight.js +2 -2
- package/dist/theme/themes/DefaultLight.js.map +1 -1
- package/dist/theme/themes/EveryskDark.js +2 -2
- package/dist/theme/themes/EveryskDark.js.map +1 -1
- package/dist/theme/themes/EveryskLight.js +2 -2
- package/dist/theme/themes/EveryskLight.js.map +1 -1
- package/dist/theme/themes/MidnightEmber.js +2 -2
- package/dist/theme/themes/MidnightEmber.js.map +1 -1
- package/dist/types/anyRecord.d.ts.map +1 -1
- package/dist/types/datastore.d.ts +35 -5
- package/dist/types/datastore.d.ts.map +1 -1
- package/dist/types/datastoreDataFormat.d.ts +13 -0
- package/dist/types/datastoreDataFormat.d.ts.map +1 -0
- package/dist/types/entityQuery.d.ts +86 -16
- package/dist/types/entityQuery.d.ts.map +1 -1
- package/dist/types/file.d.ts +7 -3
- package/dist/types/file.d.ts.map +1 -1
- package/dist/types/portfolio.d.ts +1 -3
- package/dist/types/portfolio.d.ts.map +1 -1
- package/dist/types/profile.d.ts +0 -10
- package/dist/types/profile.d.ts.map +1 -1
- package/dist/types/workflow.d.ts +35 -6
- package/dist/types/workflow.d.ts.map +1 -1
- package/dist/types/workspace.d.ts +1 -2
- package/dist/types/workspace.d.ts.map +1 -1
- package/dist/ui/index.d.ts +1 -1
- package/dist/ui/index.d.ts.map +1 -1
- package/dist/workflow/index.d.ts +2 -0
- package/dist/workflow/index.d.ts.map +1 -1
- package/package.json +10 -1
- package/src/EveryskApp.tsx +53 -2
- package/src/agGrid/handleRowsScrollEnd.ts +71 -0
- package/src/agGrid/index.ts +5 -1
- package/src/api/datastore.ts +79 -107
- package/src/api/entityQuery.ts +86 -17
- package/src/api/file.ts +110 -103
- package/src/api/portfolio.ts +82 -125
- package/src/api/profile.ts +25 -18
- package/src/api/request.ts +168 -0
- package/src/api/websocketsConfig.ts +11 -19
- package/src/api/workflow.ts +232 -334
- package/src/api/workspace.ts +43 -43
- package/src/components/ui/Footer/index.tsx +8 -7
- package/src/components/ui/GlobalLoading/index.tsx +13 -3
- package/src/components/ui/PageContainer/index.tsx +9 -2
- package/src/components/ui/Toolbar/index.tsx +105 -30
- package/src/contexts/appAlertContext/provider.tsx +1 -1
- package/src/contexts/appAlertContext/types.ts +3 -3
- package/src/contexts/appConfigContext/index.tsx +1 -1
- package/src/contexts/appConfigContext/provider.tsx +1 -5
- package/src/contexts/webSocketContext/handler.ts +8 -2
- package/src/contexts/webSocketContext/hooks/useWebSocket/index.ts +1 -1
- package/src/contexts/webSocketContext/provider.tsx +64 -14
- package/src/contexts/webSocketContext/types.ts +7 -6
- package/src/file/index.ts +2 -0
- package/src/hooks/datastore/useDatastoreMutations.ts +19 -60
- package/src/hooks/datastore/useFetchDatastore.ts +45 -73
- package/src/hooks/datastore/useFetchDatastores.ts +106 -131
- package/src/hooks/file/fileData.ts +19 -0
- package/src/hooks/file/useFetchFile.ts +41 -76
- package/src/hooks/file/useFetchFiles.ts +92 -87
- package/src/hooks/file/useFileMutations.ts +23 -73
- package/src/hooks/portfolio/useFetchPortfolio.ts +26 -78
- package/src/hooks/portfolio/useFetchPortfolios.ts +50 -93
- package/src/hooks/portfolio/usePortfolioMutations.ts +22 -72
- package/src/hooks/profile/useFetchProfile.ts +24 -65
- package/src/hooks/useAxios.ts +5 -5
- package/src/hooks/useEntityInfiniteQuery.ts +193 -0
- package/src/hooks/useEntityMutation.ts +70 -0
- package/src/hooks/useEntityQuery.ts +117 -0
- package/src/hooks/workflow/useFetchWorkerExecution.ts +27 -56
- package/src/hooks/workflow/useFetchWorkerExecutions.ts +54 -79
- package/src/hooks/workflow/useFetchWorkflow.ts +24 -58
- package/src/hooks/workflow/useFetchWorkflowExecution.ts +27 -57
- package/src/hooks/workflow/useFetchWorkflowExecutions.ts +64 -73
- package/src/hooks/workflow/useFetchWorkflows.ts +48 -64
- package/src/hooks/workflow/useRunWorkflow.ts +82 -36
- package/src/hooks/workflow/useTriggerWorkflow.ts +36 -0
- package/src/hooks/workspace/useFetchWorkspace.ts +25 -58
- package/src/hooks/workspace/useFetchWorkspaces.ts +38 -69
- package/src/index.ts +34 -19
- package/src/lib/abort.ts +131 -0
- package/src/lib/datastoreTable.ts +127 -74
- package/src/lib/file.ts +67 -0
- package/src/lib/queryClient.ts +11 -13
- package/src/lib/workflowRun.ts +329 -0
- package/src/socket/index.ts +1 -3
- package/src/test/mocks/index.ts +1 -5
- package/src/test/msw/fakeApi.ts +83 -0
- package/src/test/msw/handlers.ts +350 -0
- package/src/test/msw/index.ts +9 -0
- package/src/test/msw/query.ts +134 -0
- package/src/test/msw/recorder.ts +88 -0
- package/src/test/msw/store.ts +182 -0
- package/src/test/renderWithProviders.tsx +8 -3
- package/src/test/setup.ts +16 -16
- package/src/theme/index.ts +1 -1
- package/src/theme/overrides/index.ts +5 -3
- package/src/theme/overrides/muiButton.ts +3 -3
- package/src/theme/overrides/muiCssBaseline.ts +11 -12
- package/src/theme/overrides/muiDatePicker.ts +2 -2
- package/src/theme/overrides/muiFormControl.ts +2 -2
- package/src/theme/overrides/muiIconButton.ts +3 -3
- package/src/theme/overrides/muiSelect.ts +2 -2
- package/src/theme/overrides/muiSvgIcon.ts +2 -2
- package/src/theme/overrides/muiTextField.ts +1 -1
- package/src/theme/overrides/muiToggleButton.ts +4 -4
- package/src/theme/overrides/muiToggleButtonGroup.ts +4 -4
- package/src/theme/themes/DefaultDark.ts +2 -2
- package/src/theme/themes/DefaultLight.ts +2 -2
- package/src/theme/themes/EveryskDark.ts +2 -2
- package/src/theme/themes/EveryskLight.ts +2 -2
- package/src/theme/themes/MidnightEmber.ts +15 -15
- package/src/types/anyRecord.ts +2 -2
- package/src/types/datastore.ts +56 -22
- package/src/types/datastoreDataFormat.ts +12 -0
- package/src/types/entityQuery.ts +122 -38
- package/src/types/file.ts +8 -6
- package/src/types/portfolio.ts +70 -74
- package/src/types/profile.ts +0 -11
- package/src/types/workflow.ts +38 -9
- package/src/types/workspace.ts +2 -4
- package/src/ui/index.ts +1 -1
- package/src/workflow/index.ts +5 -0
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import type { WebsocketsConfig } from "../../api/websocketsConfig.js";
|
|
2
|
+
import type { Datastore } from "../../types/datastore.d.ts";
|
|
3
|
+
import type { EveryskFile } from "../../types/file.d.ts";
|
|
4
|
+
import type { Portfolio } from "../../types/portfolio.d.ts";
|
|
5
|
+
import type { Profile } from "../../types/profile.d.ts";
|
|
6
|
+
import type { Workflow, WorkflowExecution, WorkerExecution } from "../../types/workflow.d.ts";
|
|
7
|
+
import type { Workspace } from "../../types/workspace.d.ts";
|
|
8
|
+
/** What the fake API holds. A test seeds it and reads it back after a write. */
|
|
9
|
+
export type FakeApiStore = {
|
|
10
|
+
datastores: Datastore[];
|
|
11
|
+
files: EveryskFile[];
|
|
12
|
+
portfolios: Portfolio[];
|
|
13
|
+
workflows: Workflow[];
|
|
14
|
+
workflowExecutions: WorkflowExecution[];
|
|
15
|
+
workerExecutions: WorkerExecution[];
|
|
16
|
+
workspaces: Workspace[];
|
|
17
|
+
profile: Profile;
|
|
18
|
+
websocketsConfig: WebsocketsConfig;
|
|
19
|
+
};
|
|
20
|
+
/** What a test seeds: partial records, each completed with what its type requires. */
|
|
21
|
+
export type FakeApiSeed = {
|
|
22
|
+
datastores?: Partial<Datastore>[];
|
|
23
|
+
files?: Partial<EveryskFile>[];
|
|
24
|
+
portfolios?: Partial<Portfolio>[];
|
|
25
|
+
workflows?: Partial<Workflow>[];
|
|
26
|
+
workflowExecutions?: Partial<WorkflowExecution>[];
|
|
27
|
+
workerExecutions?: Partial<WorkerExecution>[];
|
|
28
|
+
workspaces?: (Partial<Workspace> & {
|
|
29
|
+
name: string;
|
|
30
|
+
})[];
|
|
31
|
+
profile?: Profile;
|
|
32
|
+
websocketsConfig?: WebsocketsConfig;
|
|
33
|
+
};
|
|
34
|
+
export declare const newId: (prefix: string) => string;
|
|
35
|
+
/** The hex of a version-4 UUID, as a file's stored `url` is (`RE_FILE_URL`). */
|
|
36
|
+
export declare const newFileHash: () => string;
|
|
37
|
+
export declare const nowSeconds: () => number;
|
|
38
|
+
/**
|
|
39
|
+
* The fields each type requires and a test left out. `workspace` is `main`, as the API's create
|
|
40
|
+
* defaults it; the rest are blank, empty or zero rather than invented values.
|
|
41
|
+
*/
|
|
42
|
+
export declare const complete: {
|
|
43
|
+
datastore: (d: Partial<Datastore>) => Datastore;
|
|
44
|
+
file: (f: Partial<EveryskFile>) => EveryskFile;
|
|
45
|
+
portfolio: (p: Partial<Portfolio>) => Portfolio;
|
|
46
|
+
workflow: (w: Partial<Workflow>) => Workflow;
|
|
47
|
+
workflowExecution: (e: Partial<WorkflowExecution>) => WorkflowExecution;
|
|
48
|
+
workerExecution: (e: Partial<WorkerExecution>) => WorkerExecution;
|
|
49
|
+
workspace: (w: Partial<Workspace> & {
|
|
50
|
+
name: string;
|
|
51
|
+
}) => Workspace;
|
|
52
|
+
};
|
|
53
|
+
/** An empty store: no records, the SDK's dev profile, a blank websocket config. */
|
|
54
|
+
export declare const emptyStore: () => FakeApiStore;
|
|
55
|
+
/** The store a seed describes: each record completed, everything not seeded empty. */
|
|
56
|
+
export declare const storeFrom: (seed: FakeApiSeed) => FakeApiStore;
|
|
57
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../../../src/test/msw/store.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAChD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC/C,OAAO,KAAK,EAAE,QAAQ,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrF,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD,gFAAgF;AAChF,MAAM,MAAM,YAAY,GAAG;IACvB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,KAAK,EAAE,WAAW,EAAE,CAAC;IACrB,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,kBAAkB,EAAE,iBAAiB,EAAE,CAAC;IACxC,gBAAgB,EAAE,eAAe,EAAE,CAAC;IACpC,UAAU,EAAE,SAAS,EAAE,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;IACjB,gBAAgB,EAAE,gBAAgB,CAAC;CACtC,CAAC;AAEF,sFAAsF;AACtF,MAAM,MAAM,WAAW,GAAG;IACtB,UAAU,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;IAClC,KAAK,CAAC,EAAE,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC;IAC/B,UAAU,CAAC,EAAE,OAAO,CAAC,SAAS,CAAC,EAAE,CAAC;IAClC,SAAS,CAAC,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IAChC,kBAAkB,CAAC,EAAE,OAAO,CAAC,iBAAiB,CAAC,EAAE,CAAC;IAClD,gBAAgB,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;IAC9C,UAAU,CAAC,EAAE,CAAC,OAAO,CAAC,SAAS,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,EAAE,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;CACvC,CAAC;AAEF,eAAO,MAAM,KAAK,GAAI,QAAQ,MAAM,WACqE,CAAC;AAE1G,gFAAgF;AAChF,eAAO,MAAM,WAAW,cAAgD,CAAC;AAEzE,eAAO,MAAM,UAAU,cAAsC,CAAC;AAE9D;;;GAGG;AACH,eAAO,MAAM,QAAQ;mBACF,OAAO,CAAC,SAAS,CAAC,KAAG,SAAS;cAQnC,OAAO,CAAC,WAAW,CAAC,KAAG,WAAW;mBAe7B,OAAO,CAAC,SAAS,CAAC,KAAG,SAAS;kBAQ/B,OAAO,CAAC,QAAQ,CAAC,KAAG,QAAQ;2BAiBnB,OAAO,CAAC,iBAAiB,CAAC,KAAG,iBAAiB;yBAqBhD,OAAO,CAAC,eAAe,CAAC,KAAG,eAAe;mBAoBhD,OAAO,CAAC,SAAS,CAAC,GAAG;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,KAAG,SAAS;CAQnE,CAAC;AAQF,mFAAmF;AACnF,eAAO,MAAM,UAAU,QAAO,YAU5B,CAAC;AAEH,sFAAsF;AACtF,eAAO,MAAM,SAAS,GAAI,MAAM,WAAW,KAAG,YAc7C,CAAC"}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { DEV_PROFILE } from "../../api/profile.js";
|
|
2
|
+
//#region src/test/msw/store.ts
|
|
3
|
+
var newId = (prefix) => `${prefix}_${Array.from({ length: 25 }, () => Math.floor(Math.random() * 36).toString(36)).join("")}`;
|
|
4
|
+
/** The hex of a version-4 UUID, as a file's stored `url` is (`RE_FILE_URL`). */
|
|
5
|
+
var newFileHash = () => crypto.randomUUID().replaceAll("-", "");
|
|
6
|
+
var nowSeconds = () => Math.floor(Date.now() / 1e3);
|
|
7
|
+
/**
|
|
8
|
+
* The fields each type requires and a test left out. `workspace` is `main`, as the API's create
|
|
9
|
+
* defaults it; the rest are blank, empty or zero rather than invented values.
|
|
10
|
+
*/
|
|
11
|
+
var complete = {
|
|
12
|
+
datastore: (d) => ({
|
|
13
|
+
name: "",
|
|
14
|
+
workspace: "main",
|
|
15
|
+
data: [],
|
|
16
|
+
date_time: "",
|
|
17
|
+
...d,
|
|
18
|
+
id: d.id ?? newId("dats")
|
|
19
|
+
}),
|
|
20
|
+
file: (f) => {
|
|
21
|
+
const hash = f.hash ?? newFileHash();
|
|
22
|
+
return {
|
|
23
|
+
name: "",
|
|
24
|
+
workspace: "main",
|
|
25
|
+
content_type: "",
|
|
26
|
+
version: "",
|
|
27
|
+
link_uid: null,
|
|
28
|
+
data: null,
|
|
29
|
+
...f,
|
|
30
|
+
hash,
|
|
31
|
+
url: f.url ?? `/file/${hash}`,
|
|
32
|
+
id: f.id ?? newId("file")
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
portfolio: (p) => ({
|
|
36
|
+
workspace: "main",
|
|
37
|
+
base_currency: "",
|
|
38
|
+
securities: [],
|
|
39
|
+
date: "",
|
|
40
|
+
...p,
|
|
41
|
+
id: p.id ?? newId("port")
|
|
42
|
+
}),
|
|
43
|
+
workflow: (w) => ({
|
|
44
|
+
name: "",
|
|
45
|
+
workspace: "main",
|
|
46
|
+
description: "",
|
|
47
|
+
tags: [],
|
|
48
|
+
status: "",
|
|
49
|
+
created: 0,
|
|
50
|
+
updated: 0,
|
|
51
|
+
version: "",
|
|
52
|
+
trigger_enabled: false,
|
|
53
|
+
trigger_type: "",
|
|
54
|
+
trigger_config: {},
|
|
55
|
+
starter_worker_id: "",
|
|
56
|
+
ender_worker_id: "",
|
|
57
|
+
...w,
|
|
58
|
+
id: w.id ?? newId("wrkf")
|
|
59
|
+
}),
|
|
60
|
+
workflowExecution: (e) => ({
|
|
61
|
+
workflow_id: "",
|
|
62
|
+
workflow_name: "",
|
|
63
|
+
workspace: "main",
|
|
64
|
+
status: "",
|
|
65
|
+
run_status: "",
|
|
66
|
+
duration: 0,
|
|
67
|
+
real_execution_time: 0,
|
|
68
|
+
total_execution_time: 0,
|
|
69
|
+
started: 0,
|
|
70
|
+
created: 0,
|
|
71
|
+
updated: 0,
|
|
72
|
+
trigger: "",
|
|
73
|
+
started_worker_id: "",
|
|
74
|
+
ender_worker_id: "",
|
|
75
|
+
ender_worker_execution_id: "",
|
|
76
|
+
resume: null,
|
|
77
|
+
version: "",
|
|
78
|
+
...e,
|
|
79
|
+
id: e.id ?? newId("wfex")
|
|
80
|
+
}),
|
|
81
|
+
workerExecution: (e) => ({
|
|
82
|
+
status: "",
|
|
83
|
+
worker_id: "",
|
|
84
|
+
worker_name: "",
|
|
85
|
+
worker_type: "",
|
|
86
|
+
workflow_execution_id: "",
|
|
87
|
+
workflow_id: "",
|
|
88
|
+
workflow_name: "",
|
|
89
|
+
trigger: "",
|
|
90
|
+
created: 0,
|
|
91
|
+
updated: 0,
|
|
92
|
+
started: 0,
|
|
93
|
+
duration: 0,
|
|
94
|
+
cpu_time: 0,
|
|
95
|
+
result: {},
|
|
96
|
+
input_params: {},
|
|
97
|
+
...e,
|
|
98
|
+
id: e.id ?? newId("wkex")
|
|
99
|
+
}),
|
|
100
|
+
workspace: (w) => ({
|
|
101
|
+
group: null,
|
|
102
|
+
description: "",
|
|
103
|
+
version: "",
|
|
104
|
+
created: 0,
|
|
105
|
+
updated: 0,
|
|
106
|
+
...w
|
|
107
|
+
})
|
|
108
|
+
};
|
|
109
|
+
var EMPTY_WEBSOCKETS_CONFIG = {
|
|
110
|
+
appConnectionURL: "",
|
|
111
|
+
appChannelID: "",
|
|
112
|
+
everyskUID: ""
|
|
113
|
+
};
|
|
114
|
+
/** An empty store: no records, the SDK's dev profile, a blank websocket config. */
|
|
115
|
+
var emptyStore = () => ({
|
|
116
|
+
datastores: [],
|
|
117
|
+
files: [],
|
|
118
|
+
portfolios: [],
|
|
119
|
+
workflows: [],
|
|
120
|
+
workflowExecutions: [],
|
|
121
|
+
workerExecutions: [],
|
|
122
|
+
workspaces: [],
|
|
123
|
+
profile: structuredClone(DEV_PROFILE),
|
|
124
|
+
websocketsConfig: { ...EMPTY_WEBSOCKETS_CONFIG }
|
|
125
|
+
});
|
|
126
|
+
/** The store a seed describes: each record completed, everything not seeded empty. */
|
|
127
|
+
var storeFrom = (seed) => {
|
|
128
|
+
const data = structuredClone(seed);
|
|
129
|
+
const empty = emptyStore();
|
|
130
|
+
return {
|
|
131
|
+
datastores: (data.datastores ?? []).map(complete.datastore),
|
|
132
|
+
files: (data.files ?? []).map(complete.file),
|
|
133
|
+
portfolios: (data.portfolios ?? []).map(complete.portfolio),
|
|
134
|
+
workflows: (data.workflows ?? []).map(complete.workflow),
|
|
135
|
+
workflowExecutions: (data.workflowExecutions ?? []).map(complete.workflowExecution),
|
|
136
|
+
workerExecutions: (data.workerExecutions ?? []).map(complete.workerExecution),
|
|
137
|
+
workspaces: (data.workspaces ?? []).map(complete.workspace),
|
|
138
|
+
profile: data.profile ?? empty.profile,
|
|
139
|
+
websocketsConfig: data.websocketsConfig ?? empty.websocketsConfig
|
|
140
|
+
};
|
|
141
|
+
};
|
|
142
|
+
//#endregion
|
|
143
|
+
export { complete, emptyStore, newFileHash, newId, nowSeconds, storeFrom };
|
|
144
|
+
|
|
145
|
+
//# sourceMappingURL=store.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.js","names":[],"sources":["../../../src/test/msw/store.ts"],"sourcesContent":["import { DEV_PROFILE } from \"@/api/profile\";\nimport type { WebsocketsConfig } from \"@/api/websocketsConfig\";\nimport type { Datastore } from \"@/types/datastore\";\nimport type { EveryskFile } from \"@/types/file\";\nimport type { Portfolio } from \"@/types/portfolio\";\nimport type { Profile } from \"@/types/profile\";\nimport type { Workflow, WorkflowExecution, WorkerExecution } from \"@/types/workflow\";\nimport type { Workspace } from \"@/types/workspace\";\n\n/** What the fake API holds. A test seeds it and reads it back after a write. */\nexport type FakeApiStore = {\n datastores: Datastore[];\n files: EveryskFile[];\n portfolios: Portfolio[];\n workflows: Workflow[];\n workflowExecutions: WorkflowExecution[];\n workerExecutions: WorkerExecution[];\n workspaces: Workspace[];\n profile: Profile;\n websocketsConfig: WebsocketsConfig;\n};\n\n/** What a test seeds: partial records, each completed with what its type requires. */\nexport type FakeApiSeed = {\n datastores?: Partial<Datastore>[];\n files?: Partial<EveryskFile>[];\n portfolios?: Partial<Portfolio>[];\n workflows?: Partial<Workflow>[];\n workflowExecutions?: Partial<WorkflowExecution>[];\n workerExecutions?: Partial<WorkerExecution>[];\n workspaces?: (Partial<Workspace> & { name: string })[];\n profile?: Profile;\n websocketsConfig?: WebsocketsConfig;\n};\n\nexport const newId = (prefix: string) =>\n `${prefix}_${Array.from({ length: 25 }, () => Math.floor(Math.random() * 36).toString(36)).join(\"\")}`;\n\n/** The hex of a version-4 UUID, as a file's stored `url` is (`RE_FILE_URL`). */\nexport const newFileHash = () => crypto.randomUUID().replaceAll(\"-\", \"\");\n\nexport const nowSeconds = () => Math.floor(Date.now() / 1000);\n\n/**\n * The fields each type requires and a test left out. `workspace` is `main`, as the API's create\n * defaults it; the rest are blank, empty or zero rather than invented values.\n */\nexport const complete = {\n datastore: (d: Partial<Datastore>): Datastore => ({\n name: \"\",\n workspace: \"main\",\n data: [],\n date_time: \"\",\n ...d,\n id: d.id ?? newId(\"dats\"),\n }),\n file: (f: Partial<EveryskFile>): EveryskFile => {\n const hash = f.hash ?? newFileHash();\n return {\n name: \"\",\n workspace: \"main\",\n content_type: \"\",\n version: \"\",\n link_uid: null,\n data: null,\n ...f,\n hash,\n url: f.url ?? `/file/${hash}`,\n id: f.id ?? newId(\"file\"),\n };\n },\n portfolio: (p: Partial<Portfolio>): Portfolio => ({\n workspace: \"main\",\n base_currency: \"\",\n securities: [],\n date: \"\",\n ...p,\n id: p.id ?? newId(\"port\"),\n }),\n workflow: (w: Partial<Workflow>): Workflow => ({\n name: \"\",\n workspace: \"main\",\n description: \"\",\n tags: [],\n status: \"\",\n created: 0,\n updated: 0,\n version: \"\",\n trigger_enabled: false,\n trigger_type: \"\",\n trigger_config: {},\n starter_worker_id: \"\",\n ender_worker_id: \"\",\n ...w,\n id: w.id ?? newId(\"wrkf\"),\n }),\n workflowExecution: (e: Partial<WorkflowExecution>): WorkflowExecution => ({\n workflow_id: \"\",\n workflow_name: \"\",\n workspace: \"main\",\n status: \"\",\n run_status: \"\",\n duration: 0,\n real_execution_time: 0,\n total_execution_time: 0,\n started: 0,\n created: 0,\n updated: 0,\n trigger: \"\",\n started_worker_id: \"\",\n ender_worker_id: \"\",\n ender_worker_execution_id: \"\",\n resume: null,\n version: \"\",\n ...e,\n id: e.id ?? newId(\"wfex\"),\n }),\n workerExecution: (e: Partial<WorkerExecution>): WorkerExecution =>\n ({\n status: \"\",\n worker_id: \"\",\n worker_name: \"\",\n worker_type: \"\",\n workflow_execution_id: \"\",\n workflow_id: \"\",\n workflow_name: \"\",\n trigger: \"\",\n created: 0,\n updated: 0,\n started: 0,\n duration: 0,\n cpu_time: 0,\n result: {},\n input_params: {},\n ...e,\n id: e.id ?? newId(\"wkex\"),\n }) as WorkerExecution,\n workspace: (w: Partial<Workspace> & { name: string }): Workspace => ({\n group: null,\n description: \"\",\n version: \"\",\n created: 0,\n updated: 0,\n ...w,\n }),\n};\n\nconst EMPTY_WEBSOCKETS_CONFIG: WebsocketsConfig = {\n appConnectionURL: \"\",\n appChannelID: \"\",\n everyskUID: \"\",\n};\n\n/** An empty store: no records, the SDK's dev profile, a blank websocket config. */\nexport const emptyStore = (): FakeApiStore => ({\n datastores: [],\n files: [],\n portfolios: [],\n workflows: [],\n workflowExecutions: [],\n workerExecutions: [],\n workspaces: [],\n profile: structuredClone(DEV_PROFILE),\n websocketsConfig: { ...EMPTY_WEBSOCKETS_CONFIG },\n});\n\n/** The store a seed describes: each record completed, everything not seeded empty. */\nexport const storeFrom = (seed: FakeApiSeed): FakeApiStore => {\n const data = structuredClone(seed);\n const empty = emptyStore();\n return {\n datastores: (data.datastores ?? []).map(complete.datastore),\n files: (data.files ?? []).map(complete.file),\n portfolios: (data.portfolios ?? []).map(complete.portfolio),\n workflows: (data.workflows ?? []).map(complete.workflow),\n workflowExecutions: (data.workflowExecutions ?? []).map(complete.workflowExecution),\n workerExecutions: (data.workerExecutions ?? []).map(complete.workerExecution),\n workspaces: (data.workspaces ?? []).map(complete.workspace),\n profile: data.profile ?? empty.profile,\n websocketsConfig: data.websocketsConfig ?? empty.websocketsConfig,\n };\n};\n"],"mappings":";;AAmCA,IAAa,SAAS,WAClB,GAAG,OAAO,GAAG,MAAM,KAAK,EAAE,QAAQ,GAAG,SAAS,KAAK,MAAM,KAAK,OAAO,IAAI,EAAE,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAAC,KAAK,EAAE;;AAGtG,IAAa,oBAAoB,OAAO,WAAW,CAAC,CAAC,WAAW,KAAK,EAAE;AAEvE,IAAa,mBAAmB,KAAK,MAAM,KAAK,IAAI,IAAI,GAAI;;;;;AAM5D,IAAa,WAAW;CACpB,YAAY,OAAsC;EAC9C,MAAM;EACN,WAAW;EACX,MAAM,CAAC;EACP,WAAW;EACX,GAAG;EACH,IAAI,EAAE,MAAM,MAAM,MAAM;CAC5B;CACA,OAAO,MAAyC;EAC5C,MAAM,OAAO,EAAE,QAAQ,YAAY;EACnC,OAAO;GACH,MAAM;GACN,WAAW;GACX,cAAc;GACd,SAAS;GACT,UAAU;GACV,MAAM;GACN,GAAG;GACH;GACA,KAAK,EAAE,OAAO,SAAS;GACvB,IAAI,EAAE,MAAM,MAAM,MAAM;EAC5B;CACJ;CACA,YAAY,OAAsC;EAC9C,WAAW;EACX,eAAe;EACf,YAAY,CAAC;EACb,MAAM;EACN,GAAG;EACH,IAAI,EAAE,MAAM,MAAM,MAAM;CAC5B;CACA,WAAW,OAAoC;EAC3C,MAAM;EACN,WAAW;EACX,aAAa;EACb,MAAM,CAAC;EACP,QAAQ;EACR,SAAS;EACT,SAAS;EACT,SAAS;EACT,iBAAiB;EACjB,cAAc;EACd,gBAAgB,CAAC;EACjB,mBAAmB;EACnB,iBAAiB;EACjB,GAAG;EACH,IAAI,EAAE,MAAM,MAAM,MAAM;CAC5B;CACA,oBAAoB,OAAsD;EACtE,aAAa;EACb,eAAe;EACf,WAAW;EACX,QAAQ;EACR,YAAY;EACZ,UAAU;EACV,qBAAqB;EACrB,sBAAsB;EACtB,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,mBAAmB;EACnB,iBAAiB;EACjB,2BAA2B;EAC3B,QAAQ;EACR,SAAS;EACT,GAAG;EACH,IAAI,EAAE,MAAM,MAAM,MAAM;CAC5B;CACA,kBAAkB,OACb;EACG,QAAQ;EACR,WAAW;EACX,aAAa;EACb,aAAa;EACb,uBAAuB;EACvB,aAAa;EACb,eAAe;EACf,SAAS;EACT,SAAS;EACT,SAAS;EACT,SAAS;EACT,UAAU;EACV,UAAU;EACV,QAAQ,CAAC;EACT,cAAc,CAAC;EACf,GAAG;EACH,IAAI,EAAE,MAAM,MAAM,MAAM;CAC5B;CACJ,YAAY,OAAyD;EACjE,OAAO;EACP,aAAa;EACb,SAAS;EACT,SAAS;EACT,SAAS;EACT,GAAG;CACP;AACJ;AAEA,IAAM,0BAA4C;CAC9C,kBAAkB;CAClB,cAAc;CACd,YAAY;AAChB;;AAGA,IAAa,oBAAkC;CAC3C,YAAY,CAAC;CACb,OAAO,CAAC;CACR,YAAY,CAAC;CACb,WAAW,CAAC;CACZ,oBAAoB,CAAC;CACrB,kBAAkB,CAAC;CACnB,YAAY,CAAC;CACb,SAAS,gBAAgB,WAAW;CACpC,kBAAkB,EAAE,GAAG,wBAAwB;AACnD;;AAGA,IAAa,aAAa,SAAoC;CAC1D,MAAM,OAAO,gBAAgB,IAAI;CACjC,MAAM,QAAQ,WAAW;CACzB,OAAO;EACH,aAAa,KAAK,cAAc,CAAC,EAAA,CAAG,IAAI,SAAS,SAAS;EAC1D,QAAQ,KAAK,SAAS,CAAC,EAAA,CAAG,IAAI,SAAS,IAAI;EAC3C,aAAa,KAAK,cAAc,CAAC,EAAA,CAAG,IAAI,SAAS,SAAS;EAC1D,YAAY,KAAK,aAAa,CAAC,EAAA,CAAG,IAAI,SAAS,QAAQ;EACvD,qBAAqB,KAAK,sBAAsB,CAAC,EAAA,CAAG,IAAI,SAAS,iBAAiB;EAClF,mBAAmB,KAAK,oBAAoB,CAAC,EAAA,CAAG,IAAI,SAAS,eAAe;EAC5E,aAAa,KAAK,cAAc,CAAC,EAAA,CAAG,IAAI,SAAS,SAAS;EAC1D,SAAS,KAAK,WAAW,MAAM;EAC/B,kBAAkB,KAAK,oBAAoB,MAAM;CACrD;AACJ"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ReactElement } from "react";
|
|
2
2
|
import { type RenderOptions, type RenderHookOptions } from "@testing-library/react";
|
|
3
3
|
import { QueryClient } from "@tanstack/react-query";
|
|
4
|
-
import { type
|
|
4
|
+
import { type ProviderEntry } from "../EveryskApp.js";
|
|
5
5
|
import type { AnyRecord } from "../types/anyRecord.d.ts";
|
|
6
6
|
/**
|
|
7
7
|
* Test wrapper for apps built on this SDK.
|
|
@@ -21,7 +21,7 @@ export declare function createTestQueryClient(): QueryClient;
|
|
|
21
21
|
type ProviderOptions = {
|
|
22
22
|
queryClient?: QueryClient;
|
|
23
23
|
/** Extra providers, mounted inside the core tree and around the subject. */
|
|
24
|
-
providers?:
|
|
24
|
+
providers?: ProviderEntry[];
|
|
25
25
|
/** Injected instead of `window.APP_ID`, so a test needs no page globals. */
|
|
26
26
|
appId?: string | null;
|
|
27
27
|
/** Injected instead of `window.APP_CONFIG`. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWithProviders.d.ts","sourceRoot":"","sources":["../../src/test/renderWithProviders.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAGH,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACzB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAc,KAAK,
|
|
1
|
+
{"version":3,"file":"renderWithProviders.d.ts","sourceRoot":"","sources":["../../src/test/renderWithProviders.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAC;AAE1C,OAAO,EAGH,KAAK,aAAa,EAClB,KAAK,iBAAiB,EACzB,MAAM,wBAAwB,CAAC;AAEhC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,OAAO,EAAc,KAAK,aAAa,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEnD;;;;;;;;;;;;GAYG;AAEH,gFAAgF;AAChF,wBAAgB,qBAAqB,IAAI,WAAW,CAOnD;AAED,KAAK,eAAe,GAAG;IACnB,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,4EAA4E;IAC5E,SAAS,CAAC,EAAE,aAAa,EAAE,CAAC;IAC5B,4EAA4E;IAC5E,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,+CAA+C;IAC/C,iBAAiB,CAAC,EAAE,SAAS,CAAC;CACjC,CAAC;AAuBF;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAC/B,EAAE,EAAE,YAAY,EAChB,OAAO,GAAE,eAAe,GAAG,IAAI,CAAC,aAAa,EAAE,SAAS,CAAM;;;uBAtDvD,CAAC,yJAC0D,CAAC,6BACtD,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAqEjB;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,KAAK,EACjD,IAAI,EAAE,CAAC,YAAY,EAAE,KAAK,KAAK,MAAM,EACrC,OAAO,GAAE,eAAe,GAAG,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,EAAE,SAAS,CAAM;;;;;;;EAgB5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"renderWithProviders.js","names":[],"sources":["../../src/test/renderWithProviders.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\nimport {\n render,\n renderHook,\n type RenderOptions,\n type RenderHookOptions,\n} from \"@testing-library/react\";\nimport userEvent from \"@testing-library/user-event\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\nimport { EveryskApp, type
|
|
1
|
+
{"version":3,"file":"renderWithProviders.js","names":[],"sources":["../../src/test/renderWithProviders.tsx"],"sourcesContent":["import type { ReactElement } from \"react\";\n\nimport {\n render,\n renderHook,\n type RenderOptions,\n type RenderHookOptions,\n} from \"@testing-library/react\";\nimport userEvent from \"@testing-library/user-event\";\nimport { QueryClient } from \"@tanstack/react-query\";\n\nimport { EveryskApp, type ProviderEntry } from \"@/EveryskApp\";\nimport type { AnyRecord } from \"@/types/anyRecord\";\n\n/**\n * Test wrapper for apps built on this SDK.\n *\n * It renders through `EveryskApp` — the very component the app mounts — rather than\n * re-listing the providers. The template's version duplicated the `App.tsx` tree and had to\n * be kept in sync by hand, which is how you get a suite that passes while the app is broken.\n *\n * Each render gets a FRESH QueryClient with retries off and caching disabled, so tests never\n * share server state. Pass your own via `options.queryClient` to seed the cache or assert on\n * it. Optional providers (AG Grid's license, the socket provider) are not mounted by default:\n * pass them in `options.providers` — the template's version wrapped every test in the\n * broadcast provider, which is one of the things that kept it alive with no consumer.\n */\n\n/** Build an isolated QueryClient for a single test (no retries, no caching). */\nexport function createTestQueryClient(): QueryClient {\n return new QueryClient({\n defaultOptions: {\n queries: { retry: false, gcTime: 0, staleTime: 0, refetchOnWindowFocus: false },\n mutations: { retry: false },\n },\n });\n}\n\ntype ProviderOptions = {\n queryClient?: QueryClient;\n /** Extra providers, mounted inside the core tree and around the subject. */\n providers?: ProviderEntry[];\n /** Injected instead of `window.APP_ID`, so a test needs no page globals. */\n appId?: string | null;\n /** Injected instead of `window.APP_CONFIG`. */\n appEnvironmentVar?: AnyRecord;\n};\n\nconst buildWrapper = ({\n queryClient,\n providers,\n appId,\n appEnvironmentVar,\n}: ProviderOptions & {\n queryClient: QueryClient;\n}) =>\n function Wrapper({ children }: { children?: React.ReactNode }) {\n return (\n <EveryskApp\n queryClient={queryClient}\n providers={providers}\n appId={appId}\n appEnvironmentVar={appEnvironmentVar}\n >\n {children}\n </EveryskApp>\n );\n };\n\n/**\n * Render a component inside the core provider tree.\n *\n * Returns everything from RTL's `render`, plus a ready `user` (userEvent.setup()) and the\n * `queryClient` used, so assertions can reach the cache.\n */\nexport function renderWithProviders(\n ui: ReactElement,\n options: ProviderOptions & Omit<RenderOptions, \"wrapper\"> = {},\n) {\n const {\n queryClient = createTestQueryClient(),\n providers,\n appId,\n appEnvironmentVar,\n ...renderOptions\n } = options;\n const user = userEvent.setup();\n\n const result = render(ui, {\n wrapper: buildWrapper({ queryClient, providers, appId, appEnvironmentVar }),\n ...renderOptions,\n });\n\n return { user, queryClient, ...result };\n}\n\n/**\n * Render a hook inside the core provider tree (for entity hooks that need QueryClient,\n * AppAlert, AppConfig, etc.).\n */\nexport function renderHookWithProviders<Result, Props>(\n hook: (initialProps: Props) => Result,\n options: ProviderOptions & Omit<RenderHookOptions<Props>, \"wrapper\"> = {},\n) {\n const {\n queryClient = createTestQueryClient(),\n providers,\n appId,\n appEnvironmentVar,\n ...hookOptions\n } = options;\n\n const result = renderHook(hook, {\n wrapper: buildWrapper({ queryClient, providers, appId, appEnvironmentVar }),\n ...hookOptions,\n });\n\n return { queryClient, ...result };\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;;;AA6BA,SAAgB,wBAAqC;CACjD,OAAO,IAAI,YAAY,EACnB,gBAAgB;EACZ,SAAS;GAAE,OAAO;GAAO,QAAQ;GAAG,WAAW;GAAG,sBAAsB;EAAM;EAC9E,WAAW,EAAE,OAAO,MAAM;CAC9B,EACJ,CAAC;AACL;AAYA,IAAM,gBAAgB,EAClB,aACA,WACA,OACA,wBAIA,SAAS,QAAQ,EAAE,YAA4C;CAC3D,OACI,oBAAC,YAAD;EACiB;EACF;EACJ;EACY;EAElB;CACO,CAAA;AAEpB;;;;;;;AAQJ,SAAgB,oBACZ,IACA,UAA4D,CAAC,GAC/D;CACE,MAAM,EACF,cAAc,sBAAsB,GACpC,WACA,OACA,mBACA,GAAG,kBACH;CAQJ,OAAO;EAAE,MAPI,UAAU,MAOd;EAAM;EAAa,GALb,OAAO,IAAI;GACtB,SAAS,aAAa;IAAE;IAAa;IAAW;IAAO;GAAkB,CAAC;GAC1E,GAAG;EACP,CAE+B;CAAO;AAC1C;;;;;AAMA,SAAgB,wBACZ,MACA,UAAuE,CAAC,GAC1E;CACE,MAAM,EACF,cAAc,sBAAsB,GACpC,WACA,OACA,mBACA,GAAG,gBACH;CAOJ,OAAO;EAAE;EAAa,GALP,WAAW,MAAM;GAC5B,SAAS,aAAa;IAAE;IAAa;IAAW;IAAO;GAAkB,CAAC;GAC1E,GAAG;EACP,CAEyB;CAAO;AACpC"}
|
package/dist/test/setup.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.js","names":[],"sources":["../../src/test/setup.ts"],"sourcesContent":["import { afterEach, vi } from \"vitest\";\nimport { cleanup } from \"@testing-library/react\";\n\nimport \"@testing-library/jest-dom/vitest\";\n\n// Unmount React trees and clear the jsdom document between tests so they stay isolated.\nafterEach(() => {\n
|
|
1
|
+
{"version":3,"file":"setup.js","names":[],"sources":["../../src/test/setup.ts"],"sourcesContent":["import { afterEach, vi } from \"vitest\";\nimport { cleanup } from \"@testing-library/react\";\n\nimport \"@testing-library/jest-dom/vitest\";\n\n// Unmount React trees and clear the jsdom document between tests so they stay isolated.\nafterEach(() => {\n cleanup();\n});\n\n// jsdom does not implement matchMedia; MUI's `useMediaQuery` needs it. The theme no longer\n// reads it — it is pinned to the brand dark theme — but responsive components still do.\nif (!window.matchMedia) {\n window.matchMedia = vi.fn().mockImplementation((query: string) => ({\n matches: false,\n media: query,\n onchange: null,\n addListener: vi.fn(),\n removeListener: vi.fn(),\n addEventListener: vi.fn(),\n removeEventListener: vi.fn(),\n dispatchEvent: vi.fn(),\n }));\n}\n\n// jsdom does not implement ResizeObserver; several MUI components observe their container.\nif (!globalThis.ResizeObserver) {\n globalThis.ResizeObserver = class {\n observe(): void {}\n unobserve(): void {}\n disconnect(): void {}\n };\n}\n\n// The template stubbed `BroadcastChannel` here, which jsdom does not implement. Nothing in\n// the SDK constructs one any more — the broadcast context is gone, superseded by the socket\n// layer — so the stub would only be dead setup. Whatever needs it can bring its own.\n\n// Deliberately no `window.APP_ID` / `window.APP_CONFIG` defaults here.\n//\n// The template seeded them (\"app_template\", {}) because its providers read the globals\n// directly and would otherwise see nothing. The SDK's providers handle absence on their own —\n// `AppConfigProvider` reports `appId: null`, `BroadcastChannelProvider` falls back to its own\n// channel name — and seeding the globals would hide exactly that path from the suite, which is\n// the path every consumer hits in dev. A test that needs configuration injects it:\n// `renderWithProviders(ui, { appId, appEnvironmentVar })`.\n"],"mappings":";;;;AAMA,gBAAgB;CACZ,QAAQ;AACZ,CAAC;AAID,IAAI,CAAC,OAAO,YACR,OAAO,aAAa,GAAG,GAAG,CAAC,CAAC,oBAAoB,WAAmB;CAC/D,SAAS;CACT,OAAO;CACP,UAAU;CACV,aAAa,GAAG,GAAG;CACnB,gBAAgB,GAAG,GAAG;CACtB,kBAAkB,GAAG,GAAG;CACxB,qBAAqB,GAAG,GAAG;CAC3B,eAAe,GAAG,GAAG;AACzB,EAAE;AAIN,IAAI,CAAC,WAAW,gBACZ,WAAW,iBAAiB,MAAM;CAC9B,UAAgB,CAAC;CACjB,YAAkB,CAAC;CACnB,aAAmB,CAAC;AACxB"}
|
package/dist/theme/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@ export { EveryskDarkTheme } from "./themes/EveryskDark";
|
|
|
5
5
|
export { DefaultLightTheme } from "./themes/DefaultLight";
|
|
6
6
|
export { DefaultDarkTheme } from "./themes/DefaultDark";
|
|
7
7
|
export { MidnightEmberTheme } from "./themes/MidnightEmber";
|
|
8
|
-
export {
|
|
8
|
+
export { componentOverrides } from "./overrides";
|
|
9
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/theme/index.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAChD,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACpE,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAC1D,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { Components, Theme } from "@mui/material/styles";
|
|
2
2
|
/**
|
|
3
3
|
* Shared MUI component overrides applied by every theme (light, dark and branded).
|
|
4
|
-
* They read `theme.palette.mode`, so the same set works for any palette.
|
|
4
|
+
* They read `theme.palette.mode`, so the same set works for any palette. Public as
|
|
5
|
+
* `componentOverrides` for an app that builds its own theme; `components` alone, at the root of
|
|
6
|
+
* the package, did not say whose components.
|
|
5
7
|
*/
|
|
6
|
-
export declare const
|
|
8
|
+
export declare const componentOverrides: Components<Omit<Theme, "components">>;
|
|
7
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAe9D
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAe9D;;;;;GAKG;AACH,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,IAAI,CAAC,KAAK,EAAE,YAAY,CAAC,CAWpE,CAAC"}
|
|
@@ -11,9 +11,11 @@ import { MuiButton } from "./muiButton.js";
|
|
|
11
11
|
//#region src/theme/overrides/index.ts
|
|
12
12
|
/**
|
|
13
13
|
* Shared MUI component overrides applied by every theme (light, dark and branded).
|
|
14
|
-
* They read `theme.palette.mode`, so the same set works for any palette.
|
|
14
|
+
* They read `theme.palette.mode`, so the same set works for any palette. Public as
|
|
15
|
+
* `componentOverrides` for an app that builds its own theme; `components` alone, at the root of
|
|
16
|
+
* the package, did not say whose components.
|
|
15
17
|
*/
|
|
16
|
-
var
|
|
18
|
+
var componentOverrides = {
|
|
17
19
|
MuiCssBaseline,
|
|
18
20
|
MuiDatePicker,
|
|
19
21
|
MuiTextField,
|
|
@@ -26,6 +28,6 @@ var components = {
|
|
|
26
28
|
MuiIconButton
|
|
27
29
|
};
|
|
28
30
|
//#endregion
|
|
29
|
-
export {
|
|
31
|
+
export { componentOverrides };
|
|
30
32
|
|
|
31
33
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":[],"sources":["../../../src/theme/overrides/index.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nimport type {
|
|
1
|
+
{"version":3,"file":"index.js","names":[],"sources":["../../../src/theme/overrides/index.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nimport type {} from \"@mui/x-date-pickers/themeAugmentation\";\n\nimport { MuiCssBaseline } from \"./muiCssBaseline\";\nimport { MuiDatePicker } from \"./muiDatePicker\";\nimport { MuiTextField } from \"./muiTextField\";\nimport { MuiFormControl } from \"./muiFormControl\";\nimport { MuiSelect } from \"./muiSelect\";\nimport { MuiSvgIcon } from \"./muiSvgIcon\";\nimport { MuiToggleButton } from \"./muiToggleButton\";\nimport { MuiToggleButtonGroup } from \"./muiToggleButtonGroup\";\nimport { MuiIconButton } from \"./muiIconButton\";\nimport { MuiButton } from \"./muiButton\";\n\n/**\n * Shared MUI component overrides applied by every theme (light, dark and branded).\n * They read `theme.palette.mode`, so the same set works for any palette. Public as\n * `componentOverrides` for an app that builds its own theme; `components` alone, at the root of\n * the package, did not say whose components.\n */\nexport const componentOverrides: Components<Omit<Theme, \"components\">> = {\n MuiCssBaseline,\n MuiDatePicker,\n MuiTextField,\n MuiSelect,\n MuiFormControl,\n MuiSvgIcon,\n MuiToggleButton,\n MuiToggleButtonGroup,\n MuiButton,\n MuiIconButton,\n};\n"],"mappings":";;;;;;;;;;;;;;;;;AAqBA,IAAa,qBAA4D;CACrE;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;CACA;AACJ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Components, Theme } from
|
|
2
|
-
export declare const MuiButton: Components<Theme>[
|
|
1
|
+
import type { Components, Theme } from "@mui/material/styles";
|
|
2
|
+
export declare const MuiButton: Components<Theme>["MuiButton"];
|
|
3
3
|
//# sourceMappingURL=muiButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiButton.js","names":[],"sources":["../../../src/theme/overrides/muiButton.ts"],"sourcesContent":["import type { Components, Theme } from
|
|
1
|
+
{"version":3,"file":"muiButton.js","names":[],"sources":["../../../src/theme/overrides/muiButton.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiButton: Components<Theme>[\"MuiButton\"] = {\n defaultProps: {\n size: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,YAA4C,EACrD,cAAc,EACV,MAAM,QACV,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiCssBaseline.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/muiCssBaseline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,cAAc;4BACC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"muiCssBaseline.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/muiCssBaseline.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,cAAc;4BACC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6BhC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiCssBaseline.js","names":[],"sources":["../../../src/theme/overrides/muiCssBaseline.ts"],"sourcesContent":["import * as colors from \"@mui/material/colors\";\nimport type { Theme } from \"@mui/material/styles\";\n\nexport const MuiCssBaseline = {\n styleOverrides: (theme: Theme) => ({\n \"*::-webkit-scrollbar\": {\n width: 8,\n height: 8,\n },\n \"*::-webkit-scrollbar-thumb\": {\n borderRadius: 10,\n backgroundColor:
|
|
1
|
+
{"version":3,"file":"muiCssBaseline.js","names":[],"sources":["../../../src/theme/overrides/muiCssBaseline.ts"],"sourcesContent":["import * as colors from \"@mui/material/colors\";\nimport type { Theme } from \"@mui/material/styles\";\n\nexport const MuiCssBaseline = {\n styleOverrides: (theme: Theme) => ({\n \"*::-webkit-scrollbar\": {\n width: 8,\n height: 8,\n },\n \"*::-webkit-scrollbar-thumb\": {\n borderRadius: 10,\n backgroundColor: \"#959595\",\n },\n \"*::-webkit-scrollbar-thumb:hover \": {\n backgroundColor: \"#959595\",\n },\n \"*:hover::-webkit-scrollbar-thumb\": {\n backgroundColor: \"#959595\",\n },\n\n \"*::-webkit-scrollbar-thumb:active\": {\n backgroundColor: theme.palette.primary.main,\n },\n\n \"*::-moz-selection\": {\n color: theme.palette.mode === \"dark\" ? colors.common.black : colors.common.white,\n backgroundColor: theme.palette.primary.main,\n },\n \"*::selection\": {\n color: theme.palette.mode === \"dark\" ? colors.common.black : colors.common.white,\n backgroundColor: theme.palette.primary.main,\n },\n }),\n};\n"],"mappings":";;AAGA,IAAa,iBAAiB,EAC1B,iBAAiB,WAAkB;CAC/B,wBAAwB;EACpB,OAAO;EACP,QAAQ;CACZ;CACA,8BAA8B;EAC1B,cAAc;EACd,iBAAiB;CACrB;CACA,qCAAqC,EACjC,iBAAiB,UACrB;CACA,oCAAoC,EAChC,iBAAiB,UACrB;CAEA,qCAAqC,EACjC,iBAAiB,MAAM,QAAQ,QAAQ,KAC3C;CAEA,qBAAqB;EACjB,OAAO,MAAM,QAAQ,SAAS,SAAS,OAAO,OAAO,QAAQ,OAAO,OAAO;EAC3E,iBAAiB,MAAM,QAAQ,QAAQ;CAC3C;CACA,gBAAgB;EACZ,OAAO,MAAM,QAAQ,SAAS,SAAS,OAAO,OAAO,QAAQ,OAAO,OAAO;EAC3E,iBAAiB,MAAM,QAAQ,QAAQ;CAC3C;AACJ,GACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiDatePicker.js","names":[],"sources":["../../../src/theme/overrides/muiDatePicker.ts"],"sourcesContent":["export const MuiDatePicker = {\n defaultProps: {\n slotProps: { textField: { size:
|
|
1
|
+
{"version":3,"file":"muiDatePicker.js","names":[],"sources":["../../../src/theme/overrides/muiDatePicker.ts"],"sourcesContent":["export const MuiDatePicker = {\n defaultProps: {\n slotProps: { textField: { size: \"small\" as const } },\n },\n};\n"],"mappings":";AAAA,IAAa,gBAAgB,EACzB,cAAc,EACV,WAAW,EAAE,WAAW,EAAE,MAAM,QAAiB,EAAE,EACvD,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiFormControl.js","names":[],"sources":["../../../src/theme/overrides/muiFormControl.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiFormControl: Components<Theme>[\"MuiFormControl\"] = {\n defaultProps: {\n size:
|
|
1
|
+
{"version":3,"file":"muiFormControl.js","names":[],"sources":["../../../src/theme/overrides/muiFormControl.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiFormControl: Components<Theme>[\"MuiFormControl\"] = {\n defaultProps: {\n size: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,iBAAsD,EAC/D,cAAc,EACV,MAAM,QACV,EACJ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Components, Theme } from
|
|
2
|
-
export declare const MuiIconButton: Components<Theme>[
|
|
1
|
+
import type { Components, Theme } from "@mui/material/styles";
|
|
2
|
+
export declare const MuiIconButton: Components<Theme>["MuiIconButton"];
|
|
3
3
|
//# sourceMappingURL=muiIconButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiIconButton.js","names":[],"sources":["../../../src/theme/overrides/muiIconButton.ts"],"sourcesContent":["import type { Components, Theme } from
|
|
1
|
+
{"version":3,"file":"muiIconButton.js","names":[],"sources":["../../../src/theme/overrides/muiIconButton.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiIconButton: Components<Theme>[\"MuiIconButton\"] = {\n defaultProps: {\n size: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,gBAAoD,EAC7D,cAAc,EACV,MAAM,QACV,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiSelect.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/muiSelect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,WAAW,CAIpD,
|
|
1
|
+
{"version":3,"file":"muiSelect.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/muiSelect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,SAAS,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,WAAW,CAIpD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiSelect.js","names":[],"sources":["../../../src/theme/overrides/muiSelect.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiSelect: Components<Theme>[\"MuiSelect\"] = {\n defaultProps: {\n size:
|
|
1
|
+
{"version":3,"file":"muiSelect.js","names":[],"sources":["../../../src/theme/overrides/muiSelect.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiSelect: Components<Theme>[\"MuiSelect\"] = {\n defaultProps: {\n size: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,YAA4C,EACrD,cAAc,EACV,MAAM,QACV,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiSvgIcon.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/muiSvgIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,YAAY,CAItD,
|
|
1
|
+
{"version":3,"file":"muiSvgIcon.d.ts","sourceRoot":"","sources":["../../../src/theme/overrides/muiSvgIcon.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAE9D,eAAO,MAAM,UAAU,EAAE,UAAU,CAAC,KAAK,CAAC,CAAC,YAAY,CAItD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiSvgIcon.js","names":[],"sources":["../../../src/theme/overrides/muiSvgIcon.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiSvgIcon: Components<Theme>[\"MuiSvgIcon\"] = {\n defaultProps: {\n fontSize:
|
|
1
|
+
{"version":3,"file":"muiSvgIcon.js","names":[],"sources":["../../../src/theme/overrides/muiSvgIcon.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiSvgIcon: Components<Theme>[\"MuiSvgIcon\"] = {\n defaultProps: {\n fontSize: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,aAA8C,EACvD,cAAc,EACV,UAAU,QACd,EACJ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiTextField.js","names":[],"sources":["../../../src/theme/overrides/muiTextField.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiTextField: Components<Theme>[\"MuiTextField\"] = {\n defaultProps: {\n size: \"small\",\n },\n}
|
|
1
|
+
{"version":3,"file":"muiTextField.js","names":[],"sources":["../../../src/theme/overrides/muiTextField.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiTextField: Components<Theme>[\"MuiTextField\"] = {\n defaultProps: {\n size: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,eAAkD,EAC3D,cAAc,EACV,MAAM,QACV,EACJ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Components, Theme } from
|
|
2
|
-
export declare const MuiToggleButton: Components<Theme>[
|
|
1
|
+
import type { Components, Theme } from "@mui/material/styles";
|
|
2
|
+
export declare const MuiToggleButton: Components<Theme>["MuiToggleButton"];
|
|
3
3
|
//# sourceMappingURL=muiToggleButton.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiToggleButton.js","names":[],"sources":["../../../src/theme/overrides/muiToggleButton.ts"],"sourcesContent":["import type { Components, Theme } from
|
|
1
|
+
{"version":3,"file":"muiToggleButton.js","names":[],"sources":["../../../src/theme/overrides/muiToggleButton.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiToggleButton: Components<Theme>[\"MuiToggleButton\"] = {\n defaultProps: {\n size: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,kBAAwD,EACjE,cAAc,EACV,MAAM,QACV,EACJ"}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Components, Theme } from
|
|
2
|
-
export declare const MuiToggleButtonGroup: Components<Theme>[
|
|
1
|
+
import type { Components, Theme } from "@mui/material/styles";
|
|
2
|
+
export declare const MuiToggleButtonGroup: Components<Theme>["MuiToggleButtonGroup"];
|
|
3
3
|
//# sourceMappingURL=muiToggleButtonGroup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"muiToggleButtonGroup.js","names":[],"sources":["../../../src/theme/overrides/muiToggleButtonGroup.ts"],"sourcesContent":["import type { Components, Theme } from
|
|
1
|
+
{"version":3,"file":"muiToggleButtonGroup.js","names":[],"sources":["../../../src/theme/overrides/muiToggleButtonGroup.ts"],"sourcesContent":["import type { Components, Theme } from \"@mui/material/styles\";\n\nexport const MuiToggleButtonGroup: Components<Theme>[\"MuiToggleButtonGroup\"] = {\n defaultProps: {\n size: \"small\",\n },\n};\n"],"mappings":";AAEA,IAAa,uBAAkE,EAC3E,cAAc,EACV,MAAM,QACV,EACJ"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentOverrides } from "../overrides/index.js";
|
|
2
2
|
import { createTheme } from "@mui/material/styles";
|
|
3
3
|
//#region src/theme/themes/DefaultDark.ts
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import { createTheme } from "@mui/material/styles";
|
|
|
7
7
|
*/
|
|
8
8
|
var DefaultDarkTheme = createTheme({
|
|
9
9
|
palette: { mode: "dark" },
|
|
10
|
-
components
|
|
10
|
+
components: componentOverrides
|
|
11
11
|
});
|
|
12
12
|
//#endregion
|
|
13
13
|
export { DefaultDarkTheme };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDark.js","names":[],"sources":["../../../src/theme/themes/DefaultDark.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"DefaultDark.js","names":[],"sources":["../../../src/theme/themes/DefaultDark.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\n/**\n * Neutral dark theme. Uses MUI's default palette (no brand color) plus the\n * shared component overrides — a clean starting point each app can customize.\n */\nexport const DefaultDarkTheme: Theme = createTheme({\n palette: {\n mode: \"dark\",\n },\n components: componentOverrides,\n});\n"],"mappings":";;;;;;;AAQA,IAAa,mBAA0B,YAAY;CAC/C,SAAS,EACL,MAAM,OACV;CACA,YAAY;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentOverrides } from "../overrides/index.js";
|
|
2
2
|
import { createTheme } from "@mui/material/styles";
|
|
3
3
|
//#region src/theme/themes/DefaultLight.ts
|
|
4
4
|
/**
|
|
@@ -7,7 +7,7 @@ import { createTheme } from "@mui/material/styles";
|
|
|
7
7
|
*/
|
|
8
8
|
var DefaultLightTheme = createTheme({
|
|
9
9
|
palette: { mode: "light" },
|
|
10
|
-
components
|
|
10
|
+
components: componentOverrides
|
|
11
11
|
});
|
|
12
12
|
//#endregion
|
|
13
13
|
export { DefaultLightTheme };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultLight.js","names":[],"sources":["../../../src/theme/themes/DefaultLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"DefaultLight.js","names":[],"sources":["../../../src/theme/themes/DefaultLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\n/**\n * Neutral light theme. Uses MUI's default palette (no brand color) plus the\n * shared component overrides — a clean starting point each app can customize.\n */\nexport const DefaultLightTheme: Theme = createTheme({\n palette: {\n mode: \"light\",\n },\n components: componentOverrides,\n});\n"],"mappings":";;;;;;;AAQA,IAAa,oBAA2B,YAAY;CAChD,SAAS,EACL,MAAM,QACV;CACA,YAAY;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentOverrides } from "../overrides/index.js";
|
|
2
2
|
import { createTheme } from "@mui/material/styles";
|
|
3
3
|
//#region src/theme/themes/EveryskDark.ts
|
|
4
4
|
/**
|
|
@@ -55,7 +55,7 @@ var EveryskDarkTheme = createTheme({
|
|
|
55
55
|
divider: "rgba(148, 163, 184, 0.24)"
|
|
56
56
|
},
|
|
57
57
|
shape: { borderRadius: 8 },
|
|
58
|
-
components
|
|
58
|
+
components: componentOverrides
|
|
59
59
|
});
|
|
60
60
|
//#endregion
|
|
61
61
|
export { EveryskDarkTheme };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveryskDark.js","names":[],"sources":["../../../src/theme/themes/EveryskDark.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"EveryskDark.js","names":[],"sources":["../../../src/theme/themes/EveryskDark.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\n/**\n * Everysk Dark — the theme every Everysk app runs with.\n *\n * Apps are embedded in the Everysk platform, which is dark, so this is the palette the brand\n * orange is tuned for: `#FF9933` reaches ~8:1 on `background.paper`, which is what lets it be\n * `primary.main` here. MUI paints text, borders and focus rings with `primary.main`, not only\n * fills, so a colour only survives that role if it is readable as text — the reason\n * `EveryskLight` cannot use the same orange.\n *\n * Status colours are the lighter variants a dark surface needs, and every one of them carries\n * the near-black `contrastText`, so a filled chip reads as dark text on colour.\n */\nexport const EveryskDarkTheme: Theme = createTheme({\n palette: {\n mode: \"dark\",\n primary: {\n main: \"#FF9933\",\n light: \"#FFB866\",\n dark: \"#EA580C\",\n contrastText: \"#0B1120\",\n },\n secondary: {\n main: \"#94A3B8\",\n light: \"#CBD5E1\",\n dark: \"#64748B\",\n contrastText: \"#0B1120\",\n },\n success: {\n main: \"#4ADE80\",\n contrastText: \"#0B1120\",\n },\n warning: {\n main: \"#FBBF24\",\n contrastText: \"#0B1120\",\n },\n error: {\n main: \"#F87171\",\n contrastText: \"#0B1120\",\n },\n info: {\n main: \"#38BDF8\",\n contrastText: \"#0B1120\",\n },\n background: {\n default: \"#0B1120\",\n paper: \"#131C2E\",\n },\n text: {\n primary: \"#F8FAFC\",\n secondary: \"#94A3B8\",\n },\n divider: \"rgba(148, 163, 184, 0.24)\",\n },\n shape: {\n borderRadius: 8,\n },\n components: componentOverrides,\n});\n"],"mappings":";;;;;;;;;;;;;;;AAgBA,IAAa,mBAA0B,YAAY;CAC/C,SAAS;EACL,MAAM;EACN,SAAS;GACL,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,WAAW;GACP,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,OAAO;GACH,MAAM;GACN,cAAc;EAClB;EACA,MAAM;GACF,MAAM;GACN,cAAc;EAClB;EACA,YAAY;GACR,SAAS;GACT,OAAO;EACX;EACA,MAAM;GACF,SAAS;GACT,WAAW;EACf;EACA,SAAS;CACb;CACA,OAAO,EACH,cAAc,EAClB;CACA,YAAY;AAChB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { componentOverrides } from "../overrides/index.js";
|
|
2
2
|
import { createTheme } from "@mui/material/styles";
|
|
3
3
|
//#region src/theme/themes/EveryskLight.ts
|
|
4
4
|
/**
|
|
@@ -61,7 +61,7 @@ var EveryskLightTheme = createTheme({
|
|
|
61
61
|
divider: "rgba(15, 23, 42, 0.12)"
|
|
62
62
|
},
|
|
63
63
|
shape: { borderRadius: 8 },
|
|
64
|
-
components
|
|
64
|
+
components: componentOverrides
|
|
65
65
|
});
|
|
66
66
|
//#endregion
|
|
67
67
|
export { EveryskLightTheme };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EveryskLight.js","names":[],"sources":["../../../src/theme/themes/EveryskLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport {
|
|
1
|
+
{"version":3,"file":"EveryskLight.js","names":[],"sources":["../../../src/theme/themes/EveryskLight.ts"],"sourcesContent":["import { createTheme, type Theme } from \"@mui/material/styles\";\n\nimport { componentOverrides } from \"@/theme/overrides\";\n\n/**\n * Everysk Light — the light twin of {@link EveryskDarkTheme}.\n *\n * Nothing ships with it today (apps are pinned to dark, matching the platform), but it is kept\n * in sync so a light surface is one call away, and because it is where the one non-obvious rule\n * in the brand palette lives:\n *\n * **The brand orange cannot be `primary.main` on a light surface.** `#FF9933` reaches only ~2:1\n * on white — far below the 4.5:1 a label needs — and MUI uses `primary.main` for text, borders\n * and focus rings, not only fills. So the roles split: `main` is the deeper `#C2410C` (~5.2:1 on\n * white, AA for labels, headings and focus rings) and the brand orange moves to `light`, where\n * it is only ever a fill.\n *\n * Status colours follow the same reasoning and switch to their darker variants.\n *\n * Rule for anything added later: a colour added to one brand theme is added to both, with its\n * contrast checked against that theme's own `background.paper`.\n */\nexport const EveryskLightTheme: Theme = createTheme({\n palette: {\n mode: \"light\",\n primary: {\n main: \"#C2410C\",\n light: \"#FF9933\",\n dark: \"#9A3412\",\n contrastText: \"#FFFFFF\",\n },\n secondary: {\n main: \"#475569\",\n light: \"#64748B\",\n dark: \"#334155\",\n contrastText: \"#FFFFFF\",\n },\n success: {\n main: \"#15803D\",\n contrastText: \"#FFFFFF\",\n },\n warning: {\n main: \"#B45309\",\n contrastText: \"#FFFFFF\",\n },\n error: {\n main: \"#B91C1C\",\n contrastText: \"#FFFFFF\",\n },\n info: {\n main: \"#0369A1\",\n contrastText: \"#FFFFFF\",\n },\n background: {\n default: \"#F8FAFC\",\n paper: \"#FFFFFF\",\n },\n text: {\n primary: \"#0F172A\",\n secondary: \"#475569\",\n },\n divider: \"rgba(15, 23, 42, 0.12)\",\n },\n shape: {\n borderRadius: 8,\n },\n components: componentOverrides,\n});\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;AAsBA,IAAa,oBAA2B,YAAY;CAChD,SAAS;EACL,MAAM;EACN,SAAS;GACL,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,WAAW;GACP,MAAM;GACN,OAAO;GACP,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,SAAS;GACL,MAAM;GACN,cAAc;EAClB;EACA,OAAO;GACH,MAAM;GACN,cAAc;EAClB;EACA,MAAM;GACF,MAAM;GACN,cAAc;EAClB;EACA,YAAY;GACR,SAAS;GACT,OAAO;EACX;EACA,MAAM;GACF,SAAS;GACT,WAAW;EACf;EACA,SAAS;CACb;CACA,OAAO,EACH,cAAc,EAClB;CACA,YAAY;AAChB,CAAC"}
|