@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.
Files changed (46) hide show
  1. package/dist/components-flex/css.d.ts +2 -2
  2. package/dist/components-flex/props.d.ts +2 -2
  3. package/dist/components-flex/responsiveProp.d.ts +7 -0
  4. package/dist/hydrate/components-flex/css.d.ts +2 -2
  5. package/dist/hydrate/components-flex/props.d.ts +2 -2
  6. package/dist/hydrate/components-flex/responsiveProp.d.ts +7 -0
  7. package/dist/hydrate/index.d.ts +1 -0
  8. package/dist/hydrate/index.es.js +260 -204
  9. package/dist/hydrate/index.svelte5.d.ts +2 -1
  10. package/dist/hydrate/preview.d.ts +28 -0
  11. package/dist/hydrate/stores.d.ts +22 -1
  12. package/dist/hydrate/types.d.ts +13 -0
  13. package/dist/hydrate/utils.d.ts +1 -0
  14. package/dist/index.es.d.ts +1 -0
  15. package/dist/index.es.js +260 -204
  16. package/dist/preview.d.ts +28 -0
  17. package/dist/stores.d.ts +22 -1
  18. package/dist/svelte5/components-flex/css.d.ts +2 -2
  19. package/dist/svelte5/components-flex/props.d.ts +2 -2
  20. package/dist/svelte5/components-flex/responsiveProp.d.ts +7 -0
  21. package/dist/svelte5/hydrate/components-flex/css.d.ts +2 -2
  22. package/dist/svelte5/hydrate/components-flex/props.d.ts +2 -2
  23. package/dist/svelte5/hydrate/components-flex/responsiveProp.d.ts +7 -0
  24. package/dist/svelte5/hydrate/index.es.d.ts +2 -1
  25. package/dist/svelte5/hydrate/index.es.js +235 -186
  26. package/dist/svelte5/hydrate/preview.d.ts +28 -0
  27. package/dist/svelte5/hydrate/stores.d.ts +22 -1
  28. package/dist/svelte5/hydrate/types.d.ts +13 -0
  29. package/dist/svelte5/hydrate/utils.d.ts +1 -0
  30. package/dist/svelte5/index.es.d.ts +2 -1
  31. package/dist/svelte5/index.es.js +235 -186
  32. package/dist/svelte5/index.front2.es.js +236 -188
  33. package/dist/svelte5/index.svelte5.d.ts +2 -1
  34. package/dist/svelte5/preview.d.ts +28 -0
  35. package/dist/svelte5/stores.d.ts +22 -1
  36. package/dist/svelte5/types.d.ts +13 -0
  37. package/dist/svelte5/utils.d.ts +1 -0
  38. package/dist/templates.cjs.js +3 -2
  39. package/dist/templates.js +3 -2
  40. package/dist/types.d.ts +13 -0
  41. package/dist/utils.d.ts +1 -0
  42. package/package.json +2 -2
  43. package/dist/components-flex/responsive.d.ts +0 -26
  44. package/dist/hydrate/components-flex/responsive.d.ts +0 -26
  45. package/dist/svelte5/components-flex/responsive.d.ts +0 -26
  46. 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);
@@ -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 type { ActionSetting, ActionEventHandler, ActionVariables, SystemConfig, ActionRunnerContext } from "./types.js";
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
  }>;
@@ -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
@@ -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 */
@@ -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/responsive.js";
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";