@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
|
@@ -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/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
|
}>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Properties } from "csstype";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveProp } from "./responsiveProp.js";
|
|
3
3
|
export declare function createComponentRawCss(layerId: string, define: (style: (selector: string, styles: Properties) => string) => string[]): string;
|
|
4
|
-
export declare function toResponsiveSelector(responsiveSetting:
|
|
4
|
+
export declare function toResponsiveSelector(responsiveSetting: ResponsiveProp<any>, body: string): string;
|
|
5
5
|
export declare function toStyleTag(css: string): string;
|
|
@@ -4,9 +4,9 @@ import type { BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET } from "./button/types.js";
|
|
|
4
4
|
import type { BrandKit } from "./brand-kit.js";
|
|
5
5
|
import type { AspectVariantCode, FontFamilyVariantCode, ShadowVariantCode, BackgroundColorVariantCode } from "./variants.js";
|
|
6
6
|
import type { TEXT_THEME } from "./text/types.js";
|
|
7
|
-
import { type
|
|
7
|
+
import { type ResponsiveProp } from "./responsiveProp.js";
|
|
8
8
|
export type FlexComponentProps<T extends object> = T & {
|
|
9
|
-
responsiveSettings?:
|
|
9
|
+
responsiveSettings?: ResponsiveProp<T>[];
|
|
10
10
|
};
|
|
11
11
|
type PositionPlaceProps = {
|
|
12
12
|
top?: Properties["top"];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlexComponentProps } from "./props.js";
|
|
2
|
+
import { Readable } from "svelte/store";
|
|
3
|
+
export type ResponsiveProp<T extends object> = {
|
|
4
|
+
breakpointId?: string;
|
|
5
|
+
props: Partial<T>;
|
|
6
|
+
};
|
|
7
|
+
export declare function useResponsiveProps<T extends object>(props: FlexComponentProps<T>): Readable<T>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Properties } from "csstype";
|
|
2
|
-
import {
|
|
2
|
+
import { ResponsiveProp } from "./responsiveProp.js";
|
|
3
3
|
export declare function createComponentRawCss(layerId: string, define: (style: (selector: string, styles: Properties) => string) => string[]): string;
|
|
4
|
-
export declare function toResponsiveSelector(responsiveSetting:
|
|
4
|
+
export declare function toResponsiveSelector(responsiveSetting: ResponsiveProp<any>, body: string): string;
|
|
5
5
|
export declare function toStyleTag(css: string): string;
|
|
@@ -4,9 +4,9 @@ import type { BUTTON_ICON_ANGLE, BUTTON_LINK_TARGET } from "./button/types.js";
|
|
|
4
4
|
import type { BrandKit } from "./brand-kit.js";
|
|
5
5
|
import type { AspectVariantCode, FontFamilyVariantCode, ShadowVariantCode, BackgroundColorVariantCode } from "./variants.js";
|
|
6
6
|
import type { TEXT_THEME } from "./text/types.js";
|
|
7
|
-
import { type
|
|
7
|
+
import { type ResponsiveProp } from "./responsiveProp.js";
|
|
8
8
|
export type FlexComponentProps<T extends object> = T & {
|
|
9
|
-
responsiveSettings?:
|
|
9
|
+
responsiveSettings?: ResponsiveProp<T>[];
|
|
10
10
|
};
|
|
11
11
|
type PositionPlaceProps = {
|
|
12
12
|
top?: Properties["top"];
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { FlexComponentProps } from "./props.js";
|
|
2
|
+
import { Readable } from "svelte/store";
|
|
3
|
+
export type ResponsiveProp<T extends object> = {
|
|
4
|
+
breakpointId?: string;
|
|
5
|
+
props: Partial<T>;
|
|
6
|
+
};
|
|
7
|
+
export declare function useResponsiveProps<T extends object>(props: FlexComponentProps<T>): Readable<T>;
|
|
@@ -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";
|