2022-01-26 08:22:43 +13:00
|
|
|
import { API } from "api"
|
2021-01-23 00:44:43 +13:00
|
|
|
import {
|
|
|
|
authStore,
|
|
|
|
notificationStore,
|
|
|
|
routeStore,
|
|
|
|
screenStore,
|
2021-01-26 22:48:41 +13:00
|
|
|
builderStore,
|
2022-01-12 03:01:21 +13:00
|
|
|
uploadStore,
|
2022-02-12 00:55:35 +13:00
|
|
|
rowSelectionStore,
|
2022-05-05 19:57:36 +12:00
|
|
|
componentStore,
|
2022-06-10 01:28:02 +12:00
|
|
|
currentRole,
|
2022-09-16 00:22:17 +12:00
|
|
|
environmentStore,
|
2022-10-27 20:08:35 +13:00
|
|
|
sidePanelStore,
|
2022-11-23 05:43:48 +13:00
|
|
|
dndIsDragging,
|
2022-11-25 09:06:31 +13:00
|
|
|
confirmationStore,
|
2023-09-28 03:46:04 +13:00
|
|
|
roleStore,
|
2023-10-31 01:46:44 +13:00
|
|
|
appStore,
|
2023-11-08 03:36:57 +13:00
|
|
|
stateStore,
|
2023-11-10 00:10:52 +13:00
|
|
|
createContextStore,
|
2021-09-01 22:41:48 +12:00
|
|
|
} from "stores"
|
|
|
|
import { styleable } from "utils/styleable"
|
|
|
|
import { linkable } from "utils/linkable"
|
|
|
|
import { getAction } from "utils/getAction"
|
|
|
|
import Provider from "components/context/Provider.svelte"
|
2023-07-31 00:07:01 +12:00
|
|
|
import Block from "components/Block.svelte"
|
|
|
|
import BlockComponent from "components/BlockComponent.svelte"
|
2024-02-03 03:59:45 +13:00
|
|
|
import { ActionTypes } from "./constants"
|
2022-01-21 00:50:18 +13:00
|
|
|
import { fetchDatasourceSchema } from "./utils/schema.js"
|
2022-09-21 20:49:33 +12:00
|
|
|
import { getAPIKey } from "./utils/api.js"
|
2023-11-02 05:45:37 +13:00
|
|
|
import { enrichButtonActions } from "./utils/buttonActions.js"
|
2023-11-20 21:30:42 +13:00
|
|
|
import { processStringSync, makePropSafe } from "@budibase/string-templates"
|
2024-02-28 03:44:25 +13:00
|
|
|
import {
|
|
|
|
fetchData,
|
|
|
|
LuceneUtils,
|
|
|
|
Constants,
|
|
|
|
RowUtils,
|
2024-03-21 22:14:01 +13:00
|
|
|
memo,
|
|
|
|
derivedMemo,
|
2024-02-28 03:44:25 +13:00
|
|
|
} from "@budibase/frontend-core"
|
2020-11-19 08:18:18 +13:00
|
|
|
|
|
|
|
export default {
|
|
|
|
API,
|
2023-11-02 05:45:37 +13:00
|
|
|
|
|
|
|
// Stores
|
2020-11-19 08:18:18 +13:00
|
|
|
authStore,
|
2023-10-31 01:46:44 +13:00
|
|
|
appStore,
|
2021-07-31 01:01:01 +12:00
|
|
|
notificationStore,
|
2020-11-19 08:18:18 +13:00
|
|
|
routeStore,
|
2022-02-12 00:55:35 +13:00
|
|
|
rowSelectionStore,
|
2020-11-19 08:18:18 +13:00
|
|
|
screenStore,
|
2021-01-26 22:48:41 +13:00
|
|
|
builderStore,
|
2022-01-12 03:01:21 +13:00
|
|
|
uploadStore,
|
2022-05-05 19:57:36 +12:00
|
|
|
componentStore,
|
2022-09-16 00:22:17 +12:00
|
|
|
environmentStore,
|
2022-10-27 20:08:35 +13:00
|
|
|
sidePanelStore,
|
2022-11-23 05:43:48 +13:00
|
|
|
dndIsDragging,
|
2022-06-10 01:28:02 +12:00
|
|
|
currentRole,
|
2022-11-25 09:06:31 +13:00
|
|
|
confirmationStore,
|
2023-09-28 03:46:04 +13:00
|
|
|
roleStore,
|
2023-11-08 03:36:57 +13:00
|
|
|
stateStore,
|
2023-11-02 05:45:37 +13:00
|
|
|
|
|
|
|
// Utils
|
2020-11-19 08:18:18 +13:00
|
|
|
styleable,
|
|
|
|
linkable,
|
2021-06-03 21:10:25 +12:00
|
|
|
getAction,
|
2021-12-17 21:22:04 +13:00
|
|
|
fetchDatasourceSchema,
|
2024-01-21 10:11:31 +13:00
|
|
|
fetchData,
|
|
|
|
LuceneUtils,
|
2024-02-03 03:59:45 +13:00
|
|
|
ContextScopes: Constants.ContextScopes,
|
2022-09-21 20:49:33 +12:00
|
|
|
getAPIKey,
|
2023-11-02 05:45:37 +13:00
|
|
|
enrichButtonActions,
|
2023-11-08 03:36:57 +13:00
|
|
|
processStringSync,
|
2023-11-20 21:30:42 +13:00
|
|
|
makePropSafe,
|
2023-11-10 00:10:52 +13:00
|
|
|
createContextStore,
|
2024-02-28 03:44:25 +13:00
|
|
|
generateGoldenSample: RowUtils.generateGoldenSample,
|
2024-03-21 22:14:01 +13:00
|
|
|
memo,
|
|
|
|
derivedMemo,
|
2023-11-02 05:45:37 +13:00
|
|
|
|
|
|
|
// Components
|
|
|
|
Provider,
|
2023-07-31 00:07:01 +12:00
|
|
|
Block,
|
|
|
|
BlockComponent,
|
2023-11-02 05:45:37 +13:00
|
|
|
|
|
|
|
// Constants
|
|
|
|
ActionTypes,
|
2020-11-19 08:18:18 +13:00
|
|
|
}
|