twenty-sdk 0.4.8 → 0.5.1
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/HtmlTagToRemoteComponent-Bd5sgek2.js +1 -0
- package/dist/{HtmlTagToRemoteComponent-_kOtAcK_.mjs → HtmlTagToRemoteComponent-DlsAI7JU.mjs} +4 -9
- package/dist/cli/commands/app/app-dev.d.ts +1 -0
- package/dist/cli/utilities/build/common/esbuild-watcher.d.ts +1 -0
- package/dist/cli/utilities/build/common/front-component-build/react-globals-plugin.d.ts +1 -2
- package/dist/cli/utilities/build/common/front-component-build/strip-comments-plugin.d.ts +2 -0
- package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-globals-plugin.d.ts +1 -0
- package/dist/cli/utilities/build/common/front-component-build/twenty-sdk-ui-globals-plugin.d.ts +1 -0
- package/dist/cli/utilities/build/common/front-component-build/twenty-shared-globals-plugin.d.ts +1 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/collect-named-imports.d.ts +4 -0
- package/dist/cli/utilities/build/common/front-component-build/utils/create-front-component-build-options.d.ts +1 -2
- package/dist/cli/utilities/build/common/front-component-build/utils/create-globals-plugin.d.ts +15 -0
- package/dist/cli/utilities/config/get-config-path.d.ts +1 -0
- package/dist/cli.cjs +64 -237
- package/dist/cli.mjs +3677 -8386
- package/dist/front-component/host/components/FrontComponentRenderer.d.ts +4 -1
- package/dist/front-component/index.cjs +1 -1
- package/dist/front-component/index.d.ts +3 -2
- package/dist/front-component/index.mjs +5699 -2008
- package/dist/front-component/remote/components/FrontComponentHostCommunicationApiEffect.d.ts +8 -0
- package/dist/front-component/remote/components/FrontComponentUpdateContextEffect.d.ts +2 -1
- package/dist/front-component/remote/components/FrontComponentWorkerEffect.d.ts +5 -2
- package/dist/front-component/remote/generated/remote-components.d.ts +256 -1
- package/dist/front-component/remote/generated/remote-elements.d.ts +3162 -22
- package/dist/front-component/remote/utils/exposeGlobals.d.ts +1 -0
- package/dist/front-component/types/FrontComponentHostCommunicationApi.d.ts +4 -0
- package/dist/front-component/types/HostToWorkerRenderContext.d.ts +1 -0
- package/dist/front-component/types/PropertySchema.d.ts +1 -1
- package/dist/front-component/types/WorkerExports.d.ts +1 -0
- package/dist/index.cjs +1 -5
- package/dist/index.mjs +94 -2308
- package/dist/sdk/front-component-api/context/frontComponentContext.d.ts +7 -0
- package/dist/sdk/front-component-api/functions/navigate.d.ts +5 -0
- package/dist/sdk/front-component-api/hooks/useFrontComponentExecutionContext.d.ts +1 -1
- package/dist/sdk/front-component-api/hooks/useUserId.d.ts +1 -0
- package/dist/sdk/front-component-api/index.d.ts +3 -1
- package/dist/sdk/front-component-api/types/FrontComponentExecutionContext.d.ts +1 -1
- package/dist/sdk/front-component-common/SerializedEventData.d.ts +26 -0
- package/dist/sdk/front-component-common/index.d.ts +1 -2
- package/dist/sdk/index.d.ts +2 -3
- package/dist/sdk/logic-functions/logic-function-config.d.ts +1 -2
- package/dist/ui/index.cjs +1 -2015
- package/dist/ui/index.mjs +10 -9941
- package/package.json +2 -2
- package/dist/AllIcons-CGPKtPQS-DL2Ipn0N.mjs +0 -30768
- package/dist/AllIcons-CGPKtPQS-cyMLi0D3.js +0 -18986
- package/dist/HtmlTagToRemoteComponent-cjNxtZqX.js +0 -1
- package/dist/RatingValues-CT-y6O0b-CsGZSJKO.mjs +0 -402
- package/dist/RatingValues-CT-y6O0b-D7JSZAMu.js +0 -1
- package/dist/front-component/remote/context/FrontComponentExecutionContextStore.d.ts +0 -11
- package/dist/input-pdm2U5rP.js +0 -402
- package/dist/input-r2MHVbqO.mjs +0 -28019
- package/dist/isValidCountryCode-B7MxBtRC-BNPnBggZ.js +0 -25
- package/dist/isValidCountryCode-B7MxBtRC-BsdyqBLg.mjs +0 -9841
- package/dist/jsx-runtime-BdMIAavf.mjs +0 -639
- package/dist/jsx-runtime-Bglt9wWZ.js +0 -30
- package/dist/sdk/front-component-api/types/FrontComponentExecutionContextStore.d.ts +0 -5
- package/dist/sdk/front-component-common/AllowedUiComponents.d.ts +0 -9
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FrontComponentExecutionContext } from '../types/FrontComponentExecutionContext';
|
|
2
|
+
type Listener = () => void;
|
|
3
|
+
export declare const setFrontComponentExecutionContext: (context: FrontComponentExecutionContext) => void;
|
|
4
|
+
export declare const getFrontComponentExecutionContext: () => FrontComponentExecutionContext | undefined;
|
|
5
|
+
export declare const subscribeToFrontComponentExecutionContext: (listener: Listener) => void;
|
|
6
|
+
export declare const unsubscribeFromFrontComponentExecutionContext: (listener: Listener) => void;
|
|
7
|
+
export {};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { AppPath, NavigateOptions } from 'twenty-shared/types';
|
|
2
|
+
type NavigateFunction = (to: AppPath, params?: Record<string, string | null>, queryParams?: Record<string, unknown>, options?: NavigateOptions) => Promise<void>;
|
|
3
|
+
export declare const setNavigate: (fn: NavigateFunction) => void;
|
|
4
|
+
export declare const navigate: NavigateFunction;
|
|
5
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { FrontComponentExecutionContext } from '../types/FrontComponentExecutionContext';
|
|
2
|
-
export declare const useFrontComponentExecutionContext: (
|
|
2
|
+
export declare const useFrontComponentExecutionContext: <T>(selector: (context: FrontComponentExecutionContext | undefined) => T) => T;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const useUserId: () => string | null | undefined;
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
export { setFrontComponentExecutionContext } from './context/frontComponentContext';
|
|
2
|
+
export { navigate, setNavigate } from './functions/navigate';
|
|
1
3
|
export { useFrontComponentExecutionContext } from './hooks/useFrontComponentExecutionContext';
|
|
4
|
+
export { useUserId } from './hooks/useUserId';
|
|
2
5
|
export type { FrontComponentExecutionContext } from './types/FrontComponentExecutionContext';
|
|
3
|
-
export type { FrontComponentExecutionContextStore } from './types/FrontComponentExecutionContextStore';
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type SerializedEventData = {
|
|
2
|
+
type: string;
|
|
3
|
+
altKey?: boolean;
|
|
4
|
+
ctrlKey?: boolean;
|
|
5
|
+
metaKey?: boolean;
|
|
6
|
+
shiftKey?: boolean;
|
|
7
|
+
clientX?: number;
|
|
8
|
+
clientY?: number;
|
|
9
|
+
pageX?: number;
|
|
10
|
+
pageY?: number;
|
|
11
|
+
screenX?: number;
|
|
12
|
+
screenY?: number;
|
|
13
|
+
button?: number;
|
|
14
|
+
buttons?: number;
|
|
15
|
+
key?: string;
|
|
16
|
+
code?: string;
|
|
17
|
+
repeat?: boolean;
|
|
18
|
+
value?: string;
|
|
19
|
+
checked?: boolean;
|
|
20
|
+
scrollTop?: number;
|
|
21
|
+
scrollLeft?: number;
|
|
22
|
+
deltaX?: number;
|
|
23
|
+
deltaY?: number;
|
|
24
|
+
deltaZ?: number;
|
|
25
|
+
deltaMode?: number;
|
|
26
|
+
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
export type { AllowedHtmlElement } from './AllowedHtmlElements';
|
|
2
2
|
export { ALLOWED_HTML_ELEMENTS } from './AllowedHtmlElements';
|
|
3
|
-
export type { AllowedUiComponent } from './AllowedUiComponents';
|
|
4
|
-
export { ALLOWED_UI_COMPONENTS } from './AllowedUiComponents';
|
|
5
3
|
export { COMMON_HTML_EVENTS } from './CommonHtmlEvents';
|
|
6
4
|
export { EVENT_TO_REACT } from './EventToReact';
|
|
7
5
|
export { HTML_COMMON_PROPERTIES } from './HtmlCommonProperties';
|
|
8
6
|
export { HTML_TAG_TO_REMOTE_COMPONENT } from './HtmlTagToRemoteComponent';
|
|
7
|
+
export type { SerializedEventData } from './SerializedEventData';
|
package/dist/sdk/index.d.ts
CHANGED
|
@@ -21,12 +21,11 @@ export { STANDARD_OBJECT_UNIVERSAL_IDENTIFIERS } from './objects/standard-object
|
|
|
21
21
|
export { defineRole } from './roles/define-role';
|
|
22
22
|
export { PermissionFlag } from './roles/permission-flag-type';
|
|
23
23
|
export { useFrontComponentExecutionContext } from './front-component-api';
|
|
24
|
+
export { navigate } from './front-component-api';
|
|
25
|
+
export { useUserId } from './front-component-api';
|
|
24
26
|
export type { FrontComponentExecutionContext } from './front-component-api';
|
|
25
|
-
export type { FrontComponentExecutionContextStore } from './front-component-api';
|
|
26
27
|
export type { AllowedHtmlElement } from './front-component-common';
|
|
27
28
|
export { ALLOWED_HTML_ELEMENTS } from './front-component-common';
|
|
28
|
-
export type { AllowedUiComponent } from './front-component-common';
|
|
29
|
-
export { ALLOWED_UI_COMPONENTS } from './front-component-common';
|
|
30
29
|
export { COMMON_HTML_EVENTS } from './front-component-common';
|
|
31
30
|
export { EVENT_TO_REACT } from './front-component-common';
|
|
32
31
|
export { HTML_COMMON_PROPERTIES } from './front-component-common';
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { LogicFunctionManifest
|
|
1
|
+
import { LogicFunctionManifest } from 'twenty-shared/application';
|
|
2
2
|
export type LogicFunctionHandler = (...args: any[]) => any | Promise<any>;
|
|
3
3
|
export type LogicFunctionConfig = Omit<LogicFunctionManifest, 'sourceHandlerPath' | 'builtHandlerPath' | 'builtHandlerChecksum' | 'handlerName'> & {
|
|
4
4
|
handler: LogicFunctionHandler;
|
|
5
|
-
triggers?: LogicFunctionTriggerManifest[];
|
|
6
5
|
};
|