1
0
Fork 0
mirror of synced 2024-09-19 02:39:37 +12:00
budibase/packages/client/src/sdk.js

87 lines
1.7 KiB
JavaScript
Raw Normal View History

import { API } from "api"
2021-01-23 00:44:43 +13:00
import {
authStore,
notificationStore,
routeStore,
screenStore,
builderStore,
uploadStore,
rowSelectionStore,
componentStore,
currentRole,
environmentStore,
sidePanelStore,
dndIsDragging,
2022-11-25 09:06:31 +13:00
confirmationStore,
roleStore,
2023-10-31 01:46:44 +13:00
appStore,
2023-11-08 03:36:57 +13:00
stateStore,
createContextStore,
} from "stores"
import { styleable } from "utils/styleable"
import { linkable } from "utils/linkable"
import { getAction } from "utils/getAction"
import Provider from "components/context/Provider.svelte"
import Block from "components/Block.svelte"
import BlockComponent from "components/BlockComponent.svelte"
import { ActionTypes } from "./constants"
import { fetchDatasourceSchema } from "./utils/schema.js"
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"
import {
fetchData,
LuceneUtils,
Constants,
RowUtils,
2024-03-21 22:14:01 +13:00
memo,
derivedMemo,
} from "@budibase/frontend-core"
export default {
API,
2023-11-02 05:45:37 +13:00
// Stores
authStore,
2023-10-31 01:46:44 +13:00
appStore,
notificationStore,
routeStore,
rowSelectionStore,
screenStore,
builderStore,
uploadStore,
componentStore,
environmentStore,
sidePanelStore,
dndIsDragging,
currentRole,
2022-11-25 09:06:31 +13:00
confirmationStore,
roleStore,
2023-11-08 03:36:57 +13:00
stateStore,
2023-11-02 05:45:37 +13:00
// Utils
styleable,
linkable,
getAction,
fetchDatasourceSchema,
2024-01-21 10:11:31 +13:00
fetchData,
LuceneUtils,
ContextScopes: Constants.ContextScopes,
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,
createContextStore,
generateGoldenSample: RowUtils.generateGoldenSample,
2024-03-21 22:14:01 +13:00
memo,
derivedMemo,
2023-11-02 05:45:37 +13:00
// Components
Provider,
Block,
BlockComponent,
2023-11-02 05:45:37 +13:00
// Constants
ActionTypes,
}