@plaidev/karte-action-sdk 1.1.270-29410833.25c7eb841 → 1.1.270-29420750.2ec690591
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-flex/css.d.ts +2 -2
- package/dist/components-flex/props.d.ts +2 -2
- package/dist/components-flex/responsiveProp.d.ts +7 -0
- package/dist/hydrate/components-flex/css.d.ts +2 -2
- package/dist/hydrate/components-flex/props.d.ts +2 -2
- package/dist/hydrate/components-flex/responsiveProp.d.ts +7 -0
- package/dist/hydrate/index.d.ts +1 -0
- package/dist/hydrate/index.es.js +260 -204
- package/dist/hydrate/index.svelte5.d.ts +2 -1
- package/dist/hydrate/preview.d.ts +28 -0
- package/dist/hydrate/stores.d.ts +22 -1
- package/dist/hydrate/types.d.ts +13 -0
- package/dist/hydrate/utils.d.ts +1 -0
- package/dist/index.es.d.ts +1 -0
- package/dist/index.es.js +260 -204
- package/dist/preview.d.ts +28 -0
- package/dist/stores.d.ts +22 -1
- package/dist/svelte5/components-flex/css.d.ts +2 -2
- package/dist/svelte5/components-flex/props.d.ts +2 -2
- package/dist/svelte5/components-flex/responsiveProp.d.ts +7 -0
- package/dist/svelte5/hydrate/components-flex/css.d.ts +2 -2
- package/dist/svelte5/hydrate/components-flex/props.d.ts +2 -2
- package/dist/svelte5/hydrate/components-flex/responsiveProp.d.ts +7 -0
- package/dist/svelte5/hydrate/index.es.d.ts +2 -1
- package/dist/svelte5/hydrate/index.es.js +235 -186
- package/dist/svelte5/hydrate/preview.d.ts +28 -0
- package/dist/svelte5/hydrate/stores.d.ts +22 -1
- package/dist/svelte5/hydrate/types.d.ts +13 -0
- package/dist/svelte5/hydrate/utils.d.ts +1 -0
- package/dist/svelte5/index.es.d.ts +2 -1
- package/dist/svelte5/index.es.js +235 -186
- package/dist/svelte5/index.front2.es.js +236 -188
- package/dist/svelte5/index.svelte5.d.ts +2 -1
- package/dist/svelte5/preview.d.ts +28 -0
- package/dist/svelte5/stores.d.ts +22 -1
- package/dist/svelte5/types.d.ts +13 -0
- package/dist/svelte5/utils.d.ts +1 -0
- package/dist/templates.cjs.js +3 -2
- package/dist/templates.js +3 -2
- package/dist/types.d.ts +13 -0
- package/dist/utils.d.ts +1 -0
- package/package.json +2 -2
- package/dist/components-flex/responsive.d.ts +0 -26
- package/dist/hydrate/components-flex/responsive.d.ts +0 -26
- package/dist/svelte5/components-flex/responsive.d.ts +0 -26
- package/dist/svelte5/hydrate/components-flex/responsive.d.ts +0 -26
|
@@ -17,12 +17,13 @@ export type { CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequ
|
|
|
17
17
|
export { addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers } from "./form.js";
|
|
18
18
|
export * as widget from "./widget.js";
|
|
19
19
|
export { onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES } from "./components/index.js";
|
|
20
|
+
export * from "./preview.js";
|
|
20
21
|
export * from "./components-flex/form.js";
|
|
21
22
|
export { default as State } from "./components-flex/state/State.svelte.js";
|
|
22
23
|
export { default as StateItem } from "./components-flex/state/StateItem.svelte.js";
|
|
23
24
|
export * from "./components-flex/shared/types.js";
|
|
24
25
|
export * from "./components-flex/props.js";
|
|
25
|
-
export * from "./components-flex/
|
|
26
|
+
export * from "./components-flex/responsiveProp.js";
|
|
26
27
|
export { default as FlexAvatar } from "./components-flex/avatar/Avatar.svelte.js";
|
|
27
28
|
export * from "./components-flex/avatar/types.js";
|
|
28
29
|
export * from "./components-flex/avatar/styles.js";
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
export type ElementInfoStyles = {
|
|
2
|
+
opacity: string;
|
|
3
|
+
rowGap: string;
|
|
4
|
+
columnGap: string;
|
|
5
|
+
direction: string;
|
|
6
|
+
paddingLeft: string;
|
|
7
|
+
paddingRight: string;
|
|
8
|
+
paddingTop: string;
|
|
9
|
+
paddingBottom: string;
|
|
10
|
+
zIndex: string;
|
|
11
|
+
position: string;
|
|
12
|
+
top: string;
|
|
13
|
+
left: string;
|
|
14
|
+
right: string;
|
|
15
|
+
bottom: string;
|
|
16
|
+
};
|
|
17
|
+
export type ElementInfo = {
|
|
18
|
+
top: number;
|
|
19
|
+
left: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
layerId: string;
|
|
23
|
+
direction: "row" | "column" | "";
|
|
24
|
+
classNames: string[];
|
|
25
|
+
styles: ElementInfoStyles;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const initPreview: () => (() => void);
|
package/dist/svelte5/stores.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { get as get_ } from "svelte/store";
|
|
2
2
|
import type { Writable as Writable_ } from "svelte/store";
|
|
3
|
-
import
|
|
3
|
+
import { ActionSetting, ActionEventHandler, ActionVariables, SystemConfig, ActionRunnerContext, Breakpoint } from "./types.js";
|
|
4
4
|
/** @internal */
|
|
5
5
|
export type Store<T> = Writable_<T>;
|
|
6
6
|
/**
|
|
@@ -350,6 +350,27 @@ export declare function setDestroyed(on: boolean): void;
|
|
|
350
350
|
*
|
|
351
351
|
* @internal
|
|
352
352
|
*/
|
|
353
|
+
export declare const breakpoints: Store<Breakpoint[]>;
|
|
354
|
+
/**
|
|
355
|
+
* ブレイクポイントの一覧を取得する
|
|
356
|
+
*
|
|
357
|
+
* @returns 現在のブレイクポイントの一覧
|
|
358
|
+
*/
|
|
359
|
+
export declare function getBreakpoints(): Breakpoint[];
|
|
360
|
+
/**
|
|
361
|
+
* 変数を設定する
|
|
362
|
+
*
|
|
363
|
+
* @remarks
|
|
364
|
+
* 設定したブレイクポイントは、ビジュアルエディタでブレイクポイントとして利用できます。
|
|
365
|
+
*
|
|
366
|
+
* @param values - ブレイクポイントの一覧
|
|
367
|
+
*/
|
|
368
|
+
export declare function setBreakpoints(values: Breakpoint[]): Breakpoint[];
|
|
369
|
+
/**
|
|
370
|
+
* Store to handle variables
|
|
371
|
+
*
|
|
372
|
+
* @internal
|
|
373
|
+
*/
|
|
353
374
|
export declare const variables: Store<{
|
|
354
375
|
[key: string]: any;
|
|
355
376
|
}>;
|
package/dist/svelte5/types.d.ts
CHANGED
|
@@ -18,6 +18,19 @@ export type ActionVariables = {
|
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
|
+
* ブレイクポイント
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type Breakpoint = {
|
|
26
|
+
id: string;
|
|
27
|
+
mediaQuery?: {
|
|
28
|
+
minWidth?: number;
|
|
29
|
+
maxWidth?: number;
|
|
30
|
+
orientation?: "portrait" | "landscape";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
21
34
|
* アクションの send 関数
|
|
22
35
|
*
|
|
23
36
|
* @public
|
package/dist/svelte5/utils.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const NOOP: Function;
|
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare const isPreview: () => boolean;
|
|
6
6
|
export declare const isCanvasPreview: () => boolean;
|
|
7
|
+
export declare const getPreviewId: () => string;
|
|
7
8
|
export declare const isOnSite: () => boolean;
|
|
8
9
|
export declare const isInFrame: () => boolean;
|
|
9
10
|
/** @internal */
|
package/dist/templates.cjs.js
CHANGED
|
@@ -13,7 +13,7 @@ function createAppScript(script = "", icons = [], customComponents = []) {
|
|
|
13
13
|
// DON'T TOUCH THIS: SDK generates the following code
|
|
14
14
|
import type { ActionProps, ActionVariables } from '@plaidev/karte-action-sdk';
|
|
15
15
|
import type { Data, Props, Variables } from './gen';
|
|
16
|
-
import { onMount } from 'svelte';
|
|
16
|
+
import { onMount, tick } from 'svelte';
|
|
17
17
|
import { writable } from 'svelte/store';
|
|
18
18
|
import {
|
|
19
19
|
state,
|
|
@@ -95,7 +95,8 @@ let data = writable<Data & ActionVariables>({ ...data_ });
|
|
|
95
95
|
export let onShow: (props: ActionProps<Props, Variables>) => void = _props => {};
|
|
96
96
|
export let onChangeState: (props: ActionProps<Props, Variables>, stateId: string) => void = (_props, _state) => {};
|
|
97
97
|
${script}
|
|
98
|
-
onMount(() => {
|
|
98
|
+
onMount(async () => {
|
|
99
|
+
await tick();
|
|
99
100
|
onShow({ send, data: $data });
|
|
100
101
|
});
|
|
101
102
|
|
package/dist/templates.js
CHANGED
|
@@ -12,7 +12,7 @@ function createAppScript(script = "", icons = [], customComponents = []) {
|
|
|
12
12
|
// DON'T TOUCH THIS: SDK generates the following code
|
|
13
13
|
import type { ActionProps, ActionVariables } from '@plaidev/karte-action-sdk';
|
|
14
14
|
import type { Data, Props, Variables } from './gen';
|
|
15
|
-
import { onMount } from 'svelte';
|
|
15
|
+
import { onMount, tick } from 'svelte';
|
|
16
16
|
import { writable } from 'svelte/store';
|
|
17
17
|
import {
|
|
18
18
|
state,
|
|
@@ -94,7 +94,8 @@ let data = writable<Data & ActionVariables>({ ...data_ });
|
|
|
94
94
|
export let onShow: (props: ActionProps<Props, Variables>) => void = _props => {};
|
|
95
95
|
export let onChangeState: (props: ActionProps<Props, Variables>, stateId: string) => void = (_props, _state) => {};
|
|
96
96
|
${script}
|
|
97
|
-
onMount(() => {
|
|
97
|
+
onMount(async () => {
|
|
98
|
+
await tick();
|
|
98
99
|
onShow({ send, data: $data });
|
|
99
100
|
});
|
|
100
101
|
|
package/dist/types.d.ts
CHANGED
|
@@ -18,6 +18,19 @@ export type ActionVariables = {
|
|
|
18
18
|
[key: string]: any;
|
|
19
19
|
};
|
|
20
20
|
/**
|
|
21
|
+
* ブレイクポイント
|
|
22
|
+
*
|
|
23
|
+
* @public
|
|
24
|
+
*/
|
|
25
|
+
export type Breakpoint = {
|
|
26
|
+
id: string;
|
|
27
|
+
mediaQuery?: {
|
|
28
|
+
minWidth?: number;
|
|
29
|
+
maxWidth?: number;
|
|
30
|
+
orientation?: "portrait" | "landscape";
|
|
31
|
+
};
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
21
34
|
* アクションの send 関数
|
|
22
35
|
*
|
|
23
36
|
* @public
|
package/dist/utils.d.ts
CHANGED
|
@@ -4,6 +4,7 @@ export declare const NOOP: Function;
|
|
|
4
4
|
/** @internal */
|
|
5
5
|
export declare const isPreview: () => boolean;
|
|
6
6
|
export declare const isCanvasPreview: () => boolean;
|
|
7
|
+
export declare const getPreviewId: () => string;
|
|
7
8
|
export declare const isOnSite: () => boolean;
|
|
8
9
|
export declare const isInFrame: () => boolean;
|
|
9
10
|
/** @internal */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@plaidev/karte-action-sdk",
|
|
3
|
-
"version": "1.1.270-
|
|
3
|
+
"version": "1.1.270-29420750.2ec690591",
|
|
4
4
|
"author": "Plaid Inc.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"type": "module",
|
|
@@ -93,7 +93,7 @@
|
|
|
93
93
|
"picocolors": "^1.0.0",
|
|
94
94
|
"playwright": "1.52.0",
|
|
95
95
|
"preact": "10.5.7",
|
|
96
|
-
"rolldown": "1.0.0-beta.
|
|
96
|
+
"rolldown": "1.0.0-beta.53",
|
|
97
97
|
"rollup-plugin-svelte": "^7.2.2",
|
|
98
98
|
"serve": "^14.0.1",
|
|
99
99
|
"serve-static": "^1.15.0",
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FlexComponentProps } from "./props.js";
|
|
2
|
-
import { Readable } from "svelte/store";
|
|
3
|
-
export declare const USER_AGENT_VARIANT: Record<string, {
|
|
4
|
-
regex: RegExp;
|
|
5
|
-
}>;
|
|
6
|
-
export type MediaQueryCondition = {
|
|
7
|
-
range?: {
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
};
|
|
11
|
-
raw?: string;
|
|
12
|
-
orientation?: "portrait" | "landscape";
|
|
13
|
-
};
|
|
14
|
-
export type UserAgentVariant = keyof typeof USER_AGENT_VARIANT;
|
|
15
|
-
export type UserAgentCondition = {
|
|
16
|
-
variants?: UserAgentVariant[];
|
|
17
|
-
regex?: string;
|
|
18
|
-
};
|
|
19
|
-
export type ResponsiveSetting<T extends object> = {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
mediaQueryCondition?: MediaQueryCondition;
|
|
23
|
-
userAgentCondition?: UserAgentCondition;
|
|
24
|
-
props: Partial<T>;
|
|
25
|
-
};
|
|
26
|
-
export declare function useResponsiveProps<T extends object>(props: FlexComponentProps<T>): Readable<T>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FlexComponentProps } from "./props.js";
|
|
2
|
-
import { Readable } from "svelte/store";
|
|
3
|
-
export declare const USER_AGENT_VARIANT: Record<string, {
|
|
4
|
-
regex: RegExp;
|
|
5
|
-
}>;
|
|
6
|
-
export type MediaQueryCondition = {
|
|
7
|
-
range?: {
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
};
|
|
11
|
-
raw?: string;
|
|
12
|
-
orientation?: "portrait" | "landscape";
|
|
13
|
-
};
|
|
14
|
-
export type UserAgentVariant = keyof typeof USER_AGENT_VARIANT;
|
|
15
|
-
export type UserAgentCondition = {
|
|
16
|
-
variants?: UserAgentVariant[];
|
|
17
|
-
regex?: string;
|
|
18
|
-
};
|
|
19
|
-
export type ResponsiveSetting<T extends object> = {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
mediaQueryCondition?: MediaQueryCondition;
|
|
23
|
-
userAgentCondition?: UserAgentCondition;
|
|
24
|
-
props: Partial<T>;
|
|
25
|
-
};
|
|
26
|
-
export declare function useResponsiveProps<T extends object>(props: FlexComponentProps<T>): Readable<T>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FlexComponentProps } from "./props.js";
|
|
2
|
-
import { Readable } from "svelte/store";
|
|
3
|
-
export declare const USER_AGENT_VARIANT: Record<string, {
|
|
4
|
-
regex: RegExp;
|
|
5
|
-
}>;
|
|
6
|
-
export type MediaQueryCondition = {
|
|
7
|
-
range?: {
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
};
|
|
11
|
-
raw?: string;
|
|
12
|
-
orientation?: "portrait" | "landscape";
|
|
13
|
-
};
|
|
14
|
-
export type UserAgentVariant = keyof typeof USER_AGENT_VARIANT;
|
|
15
|
-
export type UserAgentCondition = {
|
|
16
|
-
variants?: UserAgentVariant[];
|
|
17
|
-
regex?: string;
|
|
18
|
-
};
|
|
19
|
-
export type ResponsiveSetting<T extends object> = {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
mediaQueryCondition?: MediaQueryCondition;
|
|
23
|
-
userAgentCondition?: UserAgentCondition;
|
|
24
|
-
props: Partial<T>;
|
|
25
|
-
};
|
|
26
|
-
export declare function useResponsiveProps<T extends object>(props: FlexComponentProps<T>): Readable<T>;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
import { FlexComponentProps } from "./props.js";
|
|
2
|
-
import { Readable } from "svelte/store";
|
|
3
|
-
export declare const USER_AGENT_VARIANT: Record<string, {
|
|
4
|
-
regex: RegExp;
|
|
5
|
-
}>;
|
|
6
|
-
export type MediaQueryCondition = {
|
|
7
|
-
range?: {
|
|
8
|
-
min?: number;
|
|
9
|
-
max?: number;
|
|
10
|
-
};
|
|
11
|
-
raw?: string;
|
|
12
|
-
orientation?: "portrait" | "landscape";
|
|
13
|
-
};
|
|
14
|
-
export type UserAgentVariant = keyof typeof USER_AGENT_VARIANT;
|
|
15
|
-
export type UserAgentCondition = {
|
|
16
|
-
variants?: UserAgentVariant[];
|
|
17
|
-
regex?: string;
|
|
18
|
-
};
|
|
19
|
-
export type ResponsiveSetting<T extends object> = {
|
|
20
|
-
id: string;
|
|
21
|
-
label: string;
|
|
22
|
-
mediaQueryCondition?: MediaQueryCondition;
|
|
23
|
-
userAgentCondition?: UserAgentCondition;
|
|
24
|
-
props: Partial<T>;
|
|
25
|
-
};
|
|
26
|
-
export declare function useResponsiveProps<T extends object>(props: FlexComponentProps<T>): Readable<T>;
|