@plaidev/karte-action-sdk 1.1.268-29111070.d0bdfb56 → 1.1.268-29127137.d0ff6db4
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/action.d.ts +63 -0
- package/dist/actionEvent.d.ts +25 -0
- package/dist/collection.d.ts +121 -0
- package/dist/components/index.d.ts +32 -0
- package/dist/components-flex/avatar/styles.d.ts +3 -0
- package/dist/components-flex/avatar/types.d.ts +24 -0
- package/dist/components-flex/brand-kit.d.ts +16 -0
- package/dist/components-flex/button/styles.d.ts +8 -0
- package/dist/components-flex/button/types.d.ts +57 -0
- package/dist/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/components-flex/button-text/styles.d.ts +6 -0
- package/dist/components-flex/button-text/types.d.ts +33 -0
- package/dist/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/components-flex/close-button/types.d.ts +32 -0
- package/dist/components-flex/code/types.d.ts +6 -0
- package/dist/components-flex/count-down/types.d.ts +17 -0
- package/dist/components-flex/icon/styles.d.ts +3 -0
- package/dist/components-flex/icon/types.d.ts +18 -0
- package/dist/components-flex/image/styles.d.ts +3 -0
- package/dist/components-flex/image/types.d.ts +26 -0
- package/dist/components-flex/layout/types.d.ts +20 -0
- package/dist/components-flex/list/types.d.ts +30 -0
- package/dist/components-flex/modal/types.d.ts +5 -0
- package/dist/components-flex/multi-column/types.d.ts +31 -0
- package/dist/components-flex/props.d.ts +87 -0
- package/dist/components-flex/schemas.d.ts +36 -0
- package/dist/components-flex/shared/styles.d.ts +3 -0
- package/dist/components-flex/shared/types.d.ts +13 -0
- package/dist/components-flex/slider/types.d.ts +10 -0
- package/dist/components-flex/styles.d.ts +9 -0
- package/dist/components-flex/text/constants.d.ts +4 -0
- package/dist/components-flex/text/styles.d.ts +7 -0
- package/dist/components-flex/text/types.d.ts +37 -0
- package/dist/components-flex/text-link/styles.d.ts +6 -0
- package/dist/components-flex/text-link/types.d.ts +31 -0
- package/dist/components-flex/utils/color.d.ts +7 -0
- package/dist/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/components-flex/utils/parser.d.ts +5 -0
- package/dist/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/components-flex/variants.d.ts +42 -0
- package/dist/components-flex/youtube/types.d.ts +16 -0
- package/dist/constants.d.ts +27 -0
- package/dist/display-logic.d.ts +125 -0
- package/dist/enhancedStopPropagation.d.ts +6 -0
- package/dist/form.d.ts +100 -0
- package/dist/functions.d.ts +71 -0
- package/dist/hooks/useClickable.d.ts +7 -0
- package/dist/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/hooks/useText.d.ts +5 -0
- package/dist/hydrate/action.d.ts +63 -0
- package/dist/hydrate/actionEvent.d.ts +25 -0
- package/dist/hydrate/collection.d.ts +121 -0
- package/dist/hydrate/components/index.d.ts +32 -0
- package/dist/hydrate/components-flex/avatar/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/avatar/types.d.ts +24 -0
- package/dist/hydrate/components-flex/brand-kit.d.ts +16 -0
- package/dist/hydrate/components-flex/button/styles.d.ts +8 -0
- package/dist/hydrate/components-flex/button/types.d.ts +57 -0
- package/dist/hydrate/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/hydrate/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/hydrate/components-flex/button-text/styles.d.ts +6 -0
- package/dist/hydrate/components-flex/button-text/types.d.ts +33 -0
- package/dist/hydrate/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/hydrate/components-flex/close-button/types.d.ts +32 -0
- package/dist/hydrate/components-flex/code/types.d.ts +6 -0
- package/dist/hydrate/components-flex/count-down/types.d.ts +17 -0
- package/dist/hydrate/components-flex/icon/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/icon/types.d.ts +18 -0
- package/dist/hydrate/components-flex/image/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/image/types.d.ts +26 -0
- package/dist/hydrate/components-flex/layout/types.d.ts +20 -0
- package/dist/hydrate/components-flex/list/types.d.ts +30 -0
- package/dist/hydrate/components-flex/modal/types.d.ts +5 -0
- package/dist/hydrate/components-flex/multi-column/types.d.ts +31 -0
- package/dist/hydrate/components-flex/props.d.ts +87 -0
- package/dist/hydrate/components-flex/schemas.d.ts +36 -0
- package/dist/hydrate/components-flex/shared/styles.d.ts +3 -0
- package/dist/hydrate/components-flex/shared/types.d.ts +13 -0
- package/dist/hydrate/components-flex/slider/types.d.ts +10 -0
- package/dist/hydrate/components-flex/styles.d.ts +9 -0
- package/dist/hydrate/components-flex/text/constants.d.ts +4 -0
- package/dist/hydrate/components-flex/text/styles.d.ts +7 -0
- package/dist/hydrate/components-flex/text/types.d.ts +37 -0
- package/dist/hydrate/components-flex/text-link/styles.d.ts +6 -0
- package/dist/hydrate/components-flex/text-link/types.d.ts +31 -0
- package/dist/hydrate/components-flex/utils/color.d.ts +7 -0
- package/dist/hydrate/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/hydrate/components-flex/utils/parser.d.ts +5 -0
- package/dist/hydrate/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/hydrate/components-flex/variants.d.ts +42 -0
- package/dist/hydrate/components-flex/youtube/types.d.ts +16 -0
- package/dist/hydrate/constants.d.ts +27 -0
- package/dist/hydrate/display-logic.d.ts +125 -0
- package/dist/hydrate/enhancedStopPropagation.d.ts +6 -0
- package/dist/hydrate/form.d.ts +100 -0
- package/dist/hydrate/functions.d.ts +71 -0
- package/dist/hydrate/hooks/useClickable.d.ts +7 -0
- package/dist/hydrate/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/hydrate/hooks/useText.d.ts +5 -0
- package/dist/hydrate/index.d.ts +111 -0
- package/dist/hydrate/index.es.js +12718 -12529
- package/dist/hydrate/index.svelte5.d.ts +79 -0
- package/dist/hydrate/logger.d.ts +48 -0
- package/dist/hydrate/modal.d.ts +214 -0
- package/dist/hydrate/modal.svelte5.d.ts +214 -0
- package/dist/hydrate/prop.d.ts +431 -0
- package/dist/hydrate/script.d.ts +33 -0
- package/dist/hydrate/stores.d.ts +376 -0
- package/dist/hydrate/types.d.ts +183 -0
- package/dist/hydrate/utils.d.ts +171 -0
- package/dist/hydrate/widget.d.ts +148 -0
- package/dist/icons.d.ts +27 -28
- package/dist/icons.js +225 -159
- package/dist/index.es.d.ts +111 -2988
- package/dist/index.es.js +11910 -12372
- package/dist/logger.d.ts +48 -0
- package/dist/modal.d.ts +214 -0
- package/dist/modal.svelte5.d.ts +214 -0
- package/dist/prop.d.ts +431 -0
- package/dist/script.d.ts +33 -0
- package/dist/stores.d.ts +376 -0
- package/dist/svelte5/action.d.ts +63 -0
- package/dist/svelte5/actionEvent.d.ts +25 -0
- package/dist/svelte5/collection.d.ts +121 -0
- package/dist/svelte5/components/index.d.ts +32 -0
- package/dist/svelte5/components-flex/avatar/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/avatar/types.d.ts +24 -0
- package/dist/svelte5/components-flex/brand-kit.d.ts +16 -0
- package/dist/svelte5/components-flex/button/styles.d.ts +8 -0
- package/dist/svelte5/components-flex/button/types.d.ts +57 -0
- package/dist/svelte5/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/svelte5/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/svelte5/components-flex/button-text/styles.d.ts +6 -0
- package/dist/svelte5/components-flex/button-text/types.d.ts +33 -0
- package/dist/svelte5/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/svelte5/components-flex/close-button/types.d.ts +32 -0
- package/dist/svelte5/components-flex/code/types.d.ts +6 -0
- package/dist/svelte5/components-flex/count-down/types.d.ts +17 -0
- package/dist/svelte5/components-flex/icon/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/icon/types.d.ts +18 -0
- package/dist/svelte5/components-flex/image/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/image/types.d.ts +26 -0
- package/dist/svelte5/components-flex/layout/types.d.ts +20 -0
- package/dist/svelte5/components-flex/list/types.d.ts +30 -0
- package/dist/svelte5/components-flex/modal/types.d.ts +5 -0
- package/dist/svelte5/components-flex/multi-column/types.d.ts +31 -0
- package/dist/svelte5/components-flex/props.d.ts +87 -0
- package/dist/svelte5/components-flex/schemas.d.ts +36 -0
- package/dist/svelte5/components-flex/shared/styles.d.ts +3 -0
- package/dist/svelte5/components-flex/shared/types.d.ts +13 -0
- package/dist/svelte5/components-flex/slider/types.d.ts +10 -0
- package/dist/svelte5/components-flex/styles.d.ts +9 -0
- package/dist/svelte5/components-flex/text/constants.d.ts +4 -0
- package/dist/svelte5/components-flex/text/styles.d.ts +7 -0
- package/dist/svelte5/components-flex/text/types.d.ts +37 -0
- package/dist/svelte5/components-flex/text-link/styles.d.ts +6 -0
- package/dist/svelte5/components-flex/text-link/types.d.ts +31 -0
- package/dist/svelte5/components-flex/utils/color.d.ts +7 -0
- package/dist/svelte5/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/svelte5/components-flex/utils/parser.d.ts +5 -0
- package/dist/svelte5/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/svelte5/components-flex/variants.d.ts +42 -0
- package/dist/svelte5/components-flex/youtube/types.d.ts +16 -0
- package/dist/svelte5/constants.d.ts +27 -0
- package/dist/svelte5/display-logic.d.ts +125 -0
- package/dist/svelte5/form.d.ts +100 -0
- package/dist/svelte5/functions.d.ts +71 -0
- package/dist/svelte5/hooks/useClickable.d.ts +7 -0
- package/dist/svelte5/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/svelte5/hooks/useText.d.ts +5 -0
- package/dist/svelte5/hydrate/action.d.ts +63 -0
- package/dist/svelte5/hydrate/actionEvent.d.ts +25 -0
- package/dist/svelte5/hydrate/collection.d.ts +121 -0
- package/dist/svelte5/hydrate/components/index.d.ts +32 -0
- package/dist/svelte5/hydrate/components-flex/avatar/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/avatar/types.d.ts +24 -0
- package/dist/svelte5/hydrate/components-flex/brand-kit.d.ts +16 -0
- package/dist/svelte5/hydrate/components-flex/button/styles.d.ts +8 -0
- package/dist/svelte5/hydrate/components-flex/button/types.d.ts +57 -0
- package/dist/svelte5/hydrate/components-flex/button-outlined/styles.d.ts +8 -0
- package/dist/svelte5/hydrate/components-flex/button-outlined/types.d.ts +20 -0
- package/dist/svelte5/hydrate/components-flex/button-text/styles.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/button-text/types.d.ts +33 -0
- package/dist/svelte5/hydrate/components-flex/clip-copy/types.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/close-button/types.d.ts +32 -0
- package/dist/svelte5/hydrate/components-flex/code/types.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/count-down/types.d.ts +17 -0
- package/dist/svelte5/hydrate/components-flex/icon/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/icon/types.d.ts +18 -0
- package/dist/svelte5/hydrate/components-flex/image/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/image/types.d.ts +26 -0
- package/dist/svelte5/hydrate/components-flex/layout/types.d.ts +20 -0
- package/dist/svelte5/hydrate/components-flex/list/types.d.ts +30 -0
- package/dist/svelte5/hydrate/components-flex/modal/types.d.ts +5 -0
- package/dist/svelte5/hydrate/components-flex/multi-column/types.d.ts +31 -0
- package/dist/svelte5/hydrate/components-flex/props.d.ts +87 -0
- package/dist/svelte5/hydrate/components-flex/schemas.d.ts +36 -0
- package/dist/svelte5/hydrate/components-flex/shared/styles.d.ts +3 -0
- package/dist/svelte5/hydrate/components-flex/shared/types.d.ts +13 -0
- package/dist/svelte5/hydrate/components-flex/slider/types.d.ts +10 -0
- package/dist/svelte5/hydrate/components-flex/styles.d.ts +9 -0
- package/dist/svelte5/hydrate/components-flex/text/constants.d.ts +4 -0
- package/dist/svelte5/hydrate/components-flex/text/styles.d.ts +7 -0
- package/dist/svelte5/hydrate/components-flex/text/types.d.ts +37 -0
- package/dist/svelte5/hydrate/components-flex/text-link/styles.d.ts +6 -0
- package/dist/svelte5/hydrate/components-flex/text-link/types.d.ts +31 -0
- package/dist/svelte5/hydrate/components-flex/utils/color.d.ts +7 -0
- package/dist/svelte5/hydrate/components-flex/utils/obj-to-style.d.ts +2 -0
- package/dist/svelte5/hydrate/components-flex/utils/parser.d.ts +5 -0
- package/dist/svelte5/hydrate/components-flex/utils/prop-to-style.d.ts +11 -0
- package/dist/svelte5/hydrate/components-flex/variants.d.ts +42 -0
- package/dist/svelte5/hydrate/components-flex/youtube/types.d.ts +16 -0
- package/dist/svelte5/hydrate/constants.d.ts +27 -0
- package/dist/svelte5/hydrate/display-logic.d.ts +125 -0
- package/dist/svelte5/hydrate/form.d.ts +100 -0
- package/dist/svelte5/hydrate/functions.d.ts +71 -0
- package/dist/svelte5/hydrate/hooks/useClickable.d.ts +7 -0
- package/dist/svelte5/hydrate/hooks/useInjectCustomizeCss.d.ts +2 -0
- package/dist/svelte5/hydrate/hooks/useText.d.ts +5 -0
- package/dist/svelte5/hydrate/index.es.d.ts +79 -2956
- package/dist/svelte5/hydrate/index.es.js +5441 -6490
- package/dist/svelte5/hydrate/logger.d.ts +48 -0
- package/dist/svelte5/hydrate/modal.d.ts +214 -0
- package/dist/svelte5/hydrate/modal.svelte5.d.ts +214 -0
- package/dist/svelte5/hydrate/prop.d.ts +431 -0
- package/dist/svelte5/hydrate/script.d.ts +33 -0
- package/dist/svelte5/hydrate/stores.d.ts +376 -0
- package/dist/svelte5/hydrate/types.d.ts +183 -0
- package/dist/svelte5/hydrate/utils.d.ts +171 -0
- package/dist/svelte5/hydrate/widget.d.ts +148 -0
- package/dist/svelte5/index.es.d.ts +79 -2956
- package/dist/svelte5/index.es.js +5413 -6459
- package/dist/svelte5/index.front2.es.d.ts +1 -2
- package/dist/svelte5/index.front2.es.js +5654 -6715
- package/dist/svelte5/index.svelte5.d.ts +79 -0
- package/dist/svelte5/logger.d.ts +48 -0
- package/dist/svelte5/modal.d.ts +214 -0
- package/dist/svelte5/modal.svelte5.d.ts +214 -0
- package/dist/svelte5/prop.d.ts +431 -0
- package/dist/svelte5/script.d.ts +33 -0
- package/dist/svelte5/stores.d.ts +376 -0
- package/dist/svelte5/types.d.ts +183 -0
- package/dist/svelte5/utils.d.ts +171 -0
- package/dist/svelte5/widget.d.ts +148 -0
- package/dist/templates.cjs.js +38 -47
- package/dist/templates.d.ts +27 -28
- package/dist/templates.js +37 -46
- package/dist/types.d.ts +183 -0
- package/dist/utils.d.ts +171 -0
- package/dist/widget.d.ts +148 -0
- package/package.json +9 -18
- package/dist/hydrate/index.es.d.ts +0 -2988
- package/dist/templates.cjs.d.ts +0 -34
@@ -0,0 +1,42 @@
|
|
1
|
+
import type { BrandKit } from "./brand-kit.js";
|
2
|
+
import type { ShadowProps, FontFamilyProps, AspectProps } from "./props.js";
|
3
|
+
export type VariantStyles<Props extends object = object> = Props & {
|
4
|
+
hover?: Props
|
5
|
+
active?: Props
|
6
|
+
};
|
7
|
+
export type VariantDefinition<
|
8
|
+
Props extends object = object,
|
9
|
+
Meta extends object = object
|
10
|
+
> = {
|
11
|
+
name: string
|
12
|
+
description?: string
|
13
|
+
getProps: (brandKit?: BrandKit) => VariantStyles<Props>
|
14
|
+
meta?: Meta
|
15
|
+
};
|
16
|
+
export type VariantDefinitionGroup<
|
17
|
+
Props extends object = object,
|
18
|
+
Meta extends object = object
|
19
|
+
> = Record<string, VariantDefinition<Props, Meta>>;
|
20
|
+
type ToVariantArrayReturn<T> = T[keyof T] & {
|
21
|
+
code: keyof T
|
22
|
+
};
|
23
|
+
declare const toVariantArray: <T extends VariantDefinitionGroup>(group: T) => ToVariantArrayReturn<T>[];
|
24
|
+
export declare const ASPECT_VARIANT: VariantDefinitionGroup<Omit<AspectProps, "aspectVariant">>;
|
25
|
+
export type AspectVariantCode = keyof typeof ASPECT_VARIANT;
|
26
|
+
export declare const ASPECT_VARIANTS: ReturnType<typeof toVariantArray>;
|
27
|
+
export type FontVariantMeta = {
|
28
|
+
lang: "ja" | "en"
|
29
|
+
type: "kaku" | "maru" | "min"
|
30
|
+
};
|
31
|
+
export declare const FONT_FAMILY_VARIANT: VariantDefinitionGroup<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta>;
|
32
|
+
export type FontFamilyVariantCode = keyof typeof FONT_FAMILY_VARIANT;
|
33
|
+
export declare const FONT_FAMILY_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<FontFamilyProps, "fontFamilyVariant">, FontVariantMeta>>[];
|
34
|
+
type FontFamilyVariantGroup = {
|
35
|
+
label: string
|
36
|
+
variants: ReturnType<typeof toVariantArray>
|
37
|
+
};
|
38
|
+
export declare const FONT_FAMILY_VARIANT_GROUPS: FontFamilyVariantGroup[];
|
39
|
+
export declare const SHADOW_VARIANT: VariantDefinitionGroup<Omit<ShadowProps, "shadowVariant">>;
|
40
|
+
export type ShadowVariantCode = keyof typeof SHADOW_VARIANT;
|
41
|
+
export declare const SHADOW_VARIANTS: ToVariantArrayReturn<VariantDefinitionGroup<Omit<ShadowProps, "shadowVariant">, object>>[];
|
42
|
+
export {};
|
@@ -0,0 +1,16 @@
|
|
1
|
+
import type { CommonProps, BorderProps } from "../props.js";
|
2
|
+
import type { IMAGE_ROUND_SHAPE } from "../image/types.js";
|
3
|
+
import type { Properties } from "csstype";
|
4
|
+
export type YoutubeProps = CommonProps & BorderProps & {
|
5
|
+
videoId?: string
|
6
|
+
loop?: boolean
|
7
|
+
autoplay?: boolean
|
8
|
+
mute?: boolean
|
9
|
+
controls?: boolean
|
10
|
+
showInfo?: boolean
|
11
|
+
showSubtitle?: boolean
|
12
|
+
showFullScreen?: boolean
|
13
|
+
showRelatedMovies?: boolean
|
14
|
+
shape?: keyof typeof IMAGE_ROUND_SHAPE
|
15
|
+
width?: Properties["width"]
|
16
|
+
};
|
@@ -0,0 +1,27 @@
|
|
1
|
+
/** @internal */
|
2
|
+
export declare const ACTION_HOOK_LABEL = "__ACTION_HOOK__";
|
3
|
+
/** @internal */
|
4
|
+
export declare const KARTE_ACTION_ROOT = "karte-action-root";
|
5
|
+
/** @internal */
|
6
|
+
export declare const KARTE_ACTION_RID = "karte-action-rid";
|
7
|
+
/** @internal */
|
8
|
+
export declare const KARTE_ACTION_SHORTEN_ID = "karte-action-id";
|
9
|
+
/** @internal */
|
10
|
+
export declare const ALL_ACTION_ID = "KARTE_ALL_ACTION_ID";
|
11
|
+
/** @internal */
|
12
|
+
export declare const ALL_ACTION_SHORTEN_ID = "KARTE_ALL_ACTION_SHORTEN_ID";
|
13
|
+
/** @internal */
|
14
|
+
export declare const DEVICE_IDS: string[];
|
15
|
+
/** @internal */
|
16
|
+
export declare const DEVICE_QUERIES: {
|
17
|
+
readonly PC: "screen and (min-width: 641px)"
|
18
|
+
readonly SP: "screen and (max-width: 640px)"
|
19
|
+
};
|
20
|
+
/**
|
21
|
+
* 非推奨
|
22
|
+
*
|
23
|
+
* @deprecated 非推奨
|
24
|
+
*
|
25
|
+
* @internal
|
26
|
+
*/
|
27
|
+
export declare const KARTE_MODAL_ROOT = "karte-modal-root";
|
@@ -0,0 +1,125 @@
|
|
1
|
+
/**
|
2
|
+
* モーダル(ポップアップ)のプロパティ
|
3
|
+
*
|
4
|
+
* @internal
|
5
|
+
*/
|
6
|
+
export interface Props {
|
7
|
+
/**
|
8
|
+
* 全ての条件を満たしたら表示するかどうか
|
9
|
+
*/
|
10
|
+
show_and_condition?: boolean;
|
11
|
+
/**
|
12
|
+
* スクロール率による表示を有効化するかどうか
|
13
|
+
*/
|
14
|
+
show_on_scroll?: boolean;
|
15
|
+
/**
|
16
|
+
* 表示するスクロール率
|
17
|
+
*/
|
18
|
+
show_on_scroll_rate?: number;
|
19
|
+
/**
|
20
|
+
* 条件を満たした時に再表示するかどうか
|
21
|
+
*/
|
22
|
+
show_on_scroll_reenter?: boolean;
|
23
|
+
/**
|
24
|
+
* 時間による表示を有効化するかどうか
|
25
|
+
*/
|
26
|
+
show_on_time?: boolean;
|
27
|
+
/**
|
28
|
+
* 表示する秒数
|
29
|
+
*/
|
30
|
+
show_on_time_count?: number;
|
31
|
+
/**
|
32
|
+
* 全ての条件を満たしたら非表示するかどうか
|
33
|
+
*/
|
34
|
+
hide_and_condition?: boolean;
|
35
|
+
/**
|
36
|
+
* スクロール率で非表示を有効化するかどうか
|
37
|
+
*/
|
38
|
+
hide_on_scroll?: boolean;
|
39
|
+
/**
|
40
|
+
* 非表示にするスクロール率
|
41
|
+
*/
|
42
|
+
hide_on_scroll_rate?: number;
|
43
|
+
/**
|
44
|
+
* 条件を満たした時に表示するかどうか
|
45
|
+
*/
|
46
|
+
hide_on_scroll_releave?: boolean;
|
47
|
+
/**
|
48
|
+
* 時間による非表示を有効化するかどうか
|
49
|
+
*/
|
50
|
+
hide_on_time?: boolean;
|
51
|
+
/**
|
52
|
+
* 非表示にする秒数
|
53
|
+
*/
|
54
|
+
hide_on_time_count?: number;
|
55
|
+
}
|
56
|
+
/**
|
57
|
+
* スクロールに応じてアクションを非表示にするトリガー関数
|
58
|
+
*
|
59
|
+
* @remarks
|
60
|
+
* スクロール率が `hide_on_scroll_rate` に達したときに `hide` 関数を呼び出します。
|
61
|
+
* `show_on_scroll_reenter` が `true` で、かつ `hide_on_scroll_rate` またはその値以下の場合、アクションに対して `show` 関数が呼び出されます。
|
62
|
+
*
|
63
|
+
* @param props - アクションのプロパティ。プロパティには `hide_on_scroll`、`hide_on_scroll_rate` そして `show_on_scroll_reenter` が必要です。
|
64
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
65
|
+
* @param show - アクションを再び表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
66
|
+
*
|
67
|
+
* @returns
|
68
|
+
* スクロールが開始された場合は、クリーンアップする関数を返します。そうでない場合は `null` を返します。
|
69
|
+
*
|
70
|
+
* @internal
|
71
|
+
*/
|
72
|
+
export declare function hideOnScroll<ModalProps extends Pick<Props, "hide_on_scroll" | "hide_on_scroll_rate" | "show_on_scroll_reenter">>(props: ModalProps, hide?: Function, show?: Function): (() => void) | null;
|
73
|
+
/**
|
74
|
+
* 時間に応じてアクションを非表示にするトリガー関数
|
75
|
+
*
|
76
|
+
* @remarks
|
77
|
+
* 時間のカウントが `hide_on_time_count` に達したときに `hide` 関数を呼び出します。
|
78
|
+
*
|
79
|
+
* @param props - アクションのプロパティ。プロパティには `hide_on_time` そして `hide_on_time_count` が必要です。
|
80
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
81
|
+
*
|
82
|
+
* @returns
|
83
|
+
* タイマーが開始された場合、タイマーをクリーンアップする関数を返します。それ以外は `null` を返します。
|
84
|
+
*
|
85
|
+
* @internal
|
86
|
+
*/
|
87
|
+
export declare function hideOnTime<ModalProps extends Pick<Props, "hide_on_time" | "hide_on_time_count">>(props: ModalProps, hide?: Function): (() => void) | null;
|
88
|
+
/**
|
89
|
+
* スクロールに応じてアクションを表示するトリガー関数
|
90
|
+
*
|
91
|
+
* @remarks
|
92
|
+
* スクロール率が `show_on_scroll_rate` に達したときに `show` 関数を呼び出します。
|
93
|
+
* `hide_on_scroll_releave` が `true` で、かつ `show_on_scroll_rate` 以下の場合は、アクションに対して `hide` 関数が呼び出されます。
|
94
|
+
*
|
95
|
+
* @param props - アクションのプロパティ。プロパティには `show_on_scroll`、`show_on_scroll_rate`、'hide_on_scroll_releave' そして `show_on_scroll_reenter` が必要です。
|
96
|
+
* @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
97
|
+
* @param hide - アクションを非表示にするロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
98
|
+
*
|
99
|
+
* @returns
|
100
|
+
* スクロールが開始されている場合は、クリーンアップ関数を返します。そうでない場合は `null` を返します
|
101
|
+
*
|
102
|
+
* @internal
|
103
|
+
*/
|
104
|
+
export declare function showOnScroll<ModalProps extends Pick<Props, "show_on_scroll" | "show_on_scroll_rate" | "hide_on_scroll_releave" | "show_on_scroll_reenter">>(props: ModalProps, show?: Function, hide?: Function): (() => void) | null;
|
105
|
+
/**
|
106
|
+
* 時間に応じてアクションを表示するトリガー関数
|
107
|
+
*
|
108
|
+
* @param props - アクションのプロパティ。プロパティには `show_on_time` そして `show_on_time_count` が必要です。
|
109
|
+
* @param show - アクションを表示するロジックが実装された関数。指定ない場合は noop 関数が使用されます。
|
110
|
+
*
|
111
|
+
* @remarks
|
112
|
+
* 時間のカウントが `show_on_time_count` に達したときに `show` 関数を呼び出します。
|
113
|
+
*
|
114
|
+
* @returns
|
115
|
+
* タイマーが開始された場合、タイマーをクリーンアップする関数を返します。それ以外は `null` を返します。
|
116
|
+
*
|
117
|
+
* @internal
|
118
|
+
*/
|
119
|
+
export declare function showOnTime<ModalProps extends Pick<Props, "show_on_time" | "show_on_time_count">>(props: ModalProps, show?: Function): (() => void) | null;
|
120
|
+
/** @internal */
|
121
|
+
export declare function and(fn: Function, ...conditionFns: Function[]): ReturnType<typeof checkAndDo>;
|
122
|
+
/** @internal */
|
123
|
+
export declare function or(fn: Function, ...conditionFns: Function[]): ReturnType<typeof checkAndDo>;
|
124
|
+
declare function checkAndDo(checkFn: Function, fn: Function, ...conditionFns: Function[]): () => void | null;
|
125
|
+
export {};
|
@@ -0,0 +1,100 @@
|
|
1
|
+
import type { FormData } from "./stores.js";
|
2
|
+
import type { Readable, Writable } from "svelte/store";
|
3
|
+
type AnswerValue = {
|
4
|
+
choices: string[]
|
5
|
+
} | {
|
6
|
+
free_answer: string
|
7
|
+
};
|
8
|
+
type InputValue = any;
|
9
|
+
type RegisterInputFuncArg<T extends InputValue> = {
|
10
|
+
name: string
|
11
|
+
statePath: string
|
12
|
+
validator?: (value: T) => boolean
|
13
|
+
initialValue: T
|
14
|
+
};
|
15
|
+
type RegisterInputFunc = {
|
16
|
+
<T extends InputValue>(arg: RegisterInputFuncArg<T>): {
|
17
|
+
value: Writable<T>
|
18
|
+
isValid: Readable<boolean>
|
19
|
+
}
|
20
|
+
};
|
21
|
+
/** @internal */
|
22
|
+
export declare function createInputRegisterer(formData: Writable<FormData>): RegisterInputFunc;
|
23
|
+
/** @internal */
|
24
|
+
export declare const registerInput: RegisterInputFunc;
|
25
|
+
/** @internal */
|
26
|
+
export declare const registerIdentifyInput: RegisterInputFunc;
|
27
|
+
/** @internal */
|
28
|
+
export declare function deleteValues(statePath: string): void;
|
29
|
+
/** @internal */
|
30
|
+
export declare const getValuesAreValidReadable: (statePath: string) => Readable<boolean>;
|
31
|
+
/** @internal */
|
32
|
+
export declare function submit(): {
|
33
|
+
values?: any
|
34
|
+
identifyValues?: any
|
35
|
+
};
|
36
|
+
/**
|
37
|
+
* 選択式のアンケート回答を追加する
|
38
|
+
*
|
39
|
+
* @param questionId - 質問ID
|
40
|
+
* @param choices - 回答内容
|
41
|
+
*
|
42
|
+
* @public
|
43
|
+
*/
|
44
|
+
export declare function addChoiceAnswer(questionId: string, choices: string[], validation?: {
|
45
|
+
isValid: boolean
|
46
|
+
statePath: string
|
47
|
+
}): void;
|
48
|
+
/**
|
49
|
+
* 自由記述式のアンケート回答を追加する
|
50
|
+
*
|
51
|
+
* @param questionId - 質問ID
|
52
|
+
* @param freeAnswer - 回答内容
|
53
|
+
*
|
54
|
+
* @public
|
55
|
+
*/
|
56
|
+
export declare function addFreeAnswer(questionId: string, freeAnswer: string, validation?: {
|
57
|
+
isValid: boolean
|
58
|
+
statePath: string
|
59
|
+
}): void;
|
60
|
+
/**
|
61
|
+
* 回答済の回答を削除
|
62
|
+
*
|
63
|
+
* @param questionId - 質問ID
|
64
|
+
*
|
65
|
+
* @public
|
66
|
+
*/
|
67
|
+
export declare function removeAnswer(questionId: string): void;
|
68
|
+
/**
|
69
|
+
* 回答済の回答内容を取得する
|
70
|
+
*
|
71
|
+
* @param questionId - 質問ID
|
72
|
+
*
|
73
|
+
* @returns 回答データ
|
74
|
+
*
|
75
|
+
* @public
|
76
|
+
*/
|
77
|
+
export declare function getAnsweredQuestion(questionId: string): AnswerValue | undefined;
|
78
|
+
/**
|
79
|
+
* 回答済の回答IDのリストを取得
|
80
|
+
*
|
81
|
+
* @returns 回答済の質問の質問IDの配列
|
82
|
+
*
|
83
|
+
* @public
|
84
|
+
*/
|
85
|
+
export declare function getAnsweredQuestionIds(): string[];
|
86
|
+
/**
|
87
|
+
* `sendAnswers`のエイリアス
|
88
|
+
*
|
89
|
+
* @public
|
90
|
+
*/
|
91
|
+
export declare function sendAnswer(): boolean;
|
92
|
+
/**
|
93
|
+
* 回答済の回答をまとめてイベントとして送信する
|
94
|
+
*
|
95
|
+
* @returns イベント送信の成功/失敗
|
96
|
+
*
|
97
|
+
* @public
|
98
|
+
*/
|
99
|
+
export declare function sendAnswers(): boolean;
|
100
|
+
export {};
|
@@ -0,0 +1,71 @@
|
|
1
|
+
import type { OnClickOperation, AnimationStyle } from "./prop.js";
|
2
|
+
import type { CloseTrigger } from "./modal.js";
|
3
|
+
/** @internal */
|
4
|
+
export declare const none: () => () => void;
|
5
|
+
/** @internal */
|
6
|
+
export declare const moveTo: (to: string) => () => void;
|
7
|
+
/** @internal */
|
8
|
+
export declare const linkTo: (to: string, targetBlank?: boolean, decode?: boolean) => () => void;
|
9
|
+
/** @internal */
|
10
|
+
export declare const closeApp: (trigger: CloseTrigger) => () => void;
|
11
|
+
/** @internal */
|
12
|
+
export declare const runScript: (handlerName: string) => () => void;
|
13
|
+
/** @internal */
|
14
|
+
export declare const submitForm: (to: string) => () => void;
|
15
|
+
/** @internal */
|
16
|
+
export declare const bootChat: (hide_launcher: boolean, placement_pc: string, placement_mobile: string, horizontal_spacing_pc: number, horizontal_spacing_mobile: number, vertical_spacing_pc: number, vertical_spacing_mobile: number, theme_color: string, header_title: string, header_description: string, launcher_image: string) => () => void;
|
17
|
+
/** @internal */
|
18
|
+
export declare const execOnClickOperation: (onClickOperation: OnClickOperation) => void;
|
19
|
+
/** @internal */
|
20
|
+
export declare const haveFunction: (onClickOperation: OnClickOperation) => boolean;
|
21
|
+
/**
|
22
|
+
* An option for svelte custom animation
|
23
|
+
*/
|
24
|
+
interface CustomAnimationOptions {
|
25
|
+
/**
|
26
|
+
* A Transform value in percent of target element
|
27
|
+
*/
|
28
|
+
transforms: Array<{
|
29
|
+
query: string | null
|
30
|
+
x: number
|
31
|
+
y: number
|
32
|
+
}>;
|
33
|
+
/**
|
34
|
+
* A style of animation(e.g. fade, slide-in)
|
35
|
+
*/
|
36
|
+
animationStyle: AnimationStyle;
|
37
|
+
/**
|
38
|
+
* A waiting time in milliseconds before starting animation
|
39
|
+
*
|
40
|
+
* @defaultValue 0
|
41
|
+
*/
|
42
|
+
delay?: number;
|
43
|
+
/**
|
44
|
+
* A total duration time in milliseconds of the animation
|
45
|
+
*
|
46
|
+
* @defaultValue 1000
|
47
|
+
*/
|
48
|
+
duration?: number;
|
49
|
+
}
|
50
|
+
/**
|
51
|
+
* The function to activate svelte animation.
|
52
|
+
*
|
53
|
+
* @param node - A target node of animation. This argument is passed by svelte, by default.
|
54
|
+
* @param customAnimationOptions - A custom animation option object
|
55
|
+
*
|
56
|
+
* @see {@link https://svelte.dev/docs#template-syntax-element-directives-transition-fn-custom-transition-functions| Custom transition functions} for detail documentation
|
57
|
+
*
|
58
|
+
* @internal
|
59
|
+
*/
|
60
|
+
export declare function customAnimation(node: Element, { transforms, animationStyle, delay, duration }: CustomAnimationOptions): {
|
61
|
+
delay?: undefined
|
62
|
+
duration?: undefined
|
63
|
+
easing?: undefined
|
64
|
+
css?: undefined
|
65
|
+
} | {
|
66
|
+
delay: number
|
67
|
+
duration: number
|
68
|
+
easing: (t: any) => any
|
69
|
+
css: (progress: number) => string
|
70
|
+
};
|
71
|
+
export {};
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import type { ClickableProps } from "../components-flex/props.js";
|
2
|
+
declare const useClickable: ({ eventValue, eventName, onClick, element }: ClickableProps) => {
|
3
|
+
element: string
|
4
|
+
attributes: Record<string, any>
|
5
|
+
handleClick: (e: MouseEvent) => void
|
6
|
+
};
|
7
|
+
export default useClickable;
|
@@ -0,0 +1,63 @@
|
|
1
|
+
import type { ActionVariables, ActionOptions, ActionHook } from "./types.js";
|
2
|
+
import type { SvelteComponentTyped } from "svelte";
|
3
|
+
import type { VariableQuery } from "./collection.js";
|
4
|
+
import type { Props as ModalProps } from "./display-logic.js";
|
5
|
+
/**
|
6
|
+
* アクションを作成する
|
7
|
+
*
|
8
|
+
* @param App - Svelte コンポーネントのエントリポイント
|
9
|
+
* @param options - {@link ActionOptions | オプション}
|
10
|
+
*
|
11
|
+
* @returns アクションを破棄する関数
|
12
|
+
*
|
13
|
+
* @public
|
14
|
+
*/
|
15
|
+
export declare function create<
|
16
|
+
Props extends ModalProps,
|
17
|
+
Variables,
|
18
|
+
VariablesQuery extends Array<VariableQuery>
|
19
|
+
>(App: typeof SvelteComponentTyped, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
|
20
|
+
/**
|
21
|
+
* アクションの破棄する
|
22
|
+
*
|
23
|
+
* @public
|
24
|
+
*/
|
25
|
+
export declare function destroyAction(): void;
|
26
|
+
/**
|
27
|
+
* アクションが作成 (create) される前にフックする関数
|
28
|
+
*
|
29
|
+
* @param fn - 呼び出されるフック関数
|
30
|
+
*
|
31
|
+
* @public
|
32
|
+
*/
|
33
|
+
export declare function onCreate<
|
34
|
+
Props extends ModalProps,
|
35
|
+
Variables
|
36
|
+
>(fn: ActionHook<Props, Variables & ActionVariables>): void;
|
37
|
+
/**
|
38
|
+
* アクションが破棄 (destroy) される前にフックする関数
|
39
|
+
*
|
40
|
+
* @param fn - 呼び出されるフック関数
|
41
|
+
*
|
42
|
+
* @public
|
43
|
+
*/
|
44
|
+
export declare function onDestroy<
|
45
|
+
Props extends ModalProps,
|
46
|
+
Variables
|
47
|
+
>(fn: ActionHook<Props, Variables & ActionVariables>): void;
|
48
|
+
/**
|
49
|
+
* 非推奨
|
50
|
+
*
|
51
|
+
* @deprecated 非推奨
|
52
|
+
*
|
53
|
+
* @internal
|
54
|
+
*/
|
55
|
+
export declare const showModal: typeof create;
|
56
|
+
/**
|
57
|
+
* 非推奨
|
58
|
+
*
|
59
|
+
* @deprecated 非推奨
|
60
|
+
*
|
61
|
+
* @internal
|
62
|
+
*/
|
63
|
+
export declare function destroy(): void;
|
@@ -0,0 +1,25 @@
|
|
1
|
+
import type { ActionSetting } from "./types.js";
|
2
|
+
/** @internal */
|
3
|
+
export declare const actionId: string;
|
4
|
+
/** @internal */
|
5
|
+
export declare const ACTION_DESTROY_EVENT: string;
|
6
|
+
/** @internal */
|
7
|
+
export declare const ACTION_SHOW_EVENT: string;
|
8
|
+
/** @internal */
|
9
|
+
export declare const ACTION_CLOSE_EVENT: string;
|
10
|
+
/** @internal */
|
11
|
+
export declare const ACTION_CHANGE_STATE_EVENT: string;
|
12
|
+
/** @internal */
|
13
|
+
export declare const send_event: (event_name: string, values?: any) => void;
|
14
|
+
/** @internal */
|
15
|
+
export declare const publish_edge: (topic: string, values?: any) => void;
|
16
|
+
/** @internal */
|
17
|
+
export declare const initialize: (setting?: ActionSetting) => () => void;
|
18
|
+
/** @internal */
|
19
|
+
export declare const finalize: () => void;
|
20
|
+
/**
|
21
|
+
* Dispatch the event to destroy KARTE action
|
22
|
+
*
|
23
|
+
* @internal
|
24
|
+
*/
|
25
|
+
export declare function dispatchDestroyEvent(): void;
|
@@ -0,0 +1,121 @@
|
|
1
|
+
type ActionTableResult = number | string | boolean | Date | null | undefined;
|
2
|
+
type ActionTableQueryParam = string | number | boolean | Date;
|
3
|
+
type ActionTableQueryParams = {
|
4
|
+
[key: string]: ActionTableQueryParam | ActionTableQueryParam[]
|
5
|
+
};
|
6
|
+
/**
|
7
|
+
* アクションテーブルの設定情報
|
8
|
+
*
|
9
|
+
* @param api_key - API Key
|
10
|
+
* @param table - テーブル名
|
11
|
+
* @param endpoint - エンドポイント / 指定がない場合はデフォルトのエンドポイントを使用します。検証用途以外での通常利用では指定なしで大丈夫です。
|
12
|
+
*/
|
13
|
+
export type CollectionConfig = {
|
14
|
+
api_key: string
|
15
|
+
table: string
|
16
|
+
collection_endpoint?: string
|
17
|
+
};
|
18
|
+
/**
|
19
|
+
* アクションテーブルを管理するメソッドを取得する
|
20
|
+
*
|
21
|
+
* @param config - アクションテーブル設定情報
|
22
|
+
*
|
23
|
+
* @returns メソッドを返します
|
24
|
+
*
|
25
|
+
* @public
|
26
|
+
*/
|
27
|
+
export declare function collection(config: CollectionConfig): {
|
28
|
+
/**
|
29
|
+
* キーを1つ、または複数指定して、対応するアクションテーブルの行を取得する
|
30
|
+
*
|
31
|
+
* @param key - 取得する行のキーを一つ、または複数配列で指定
|
32
|
+
* @param cb - テーブルの行を取得した後に実行するcallback関数
|
33
|
+
*
|
34
|
+
* @public
|
35
|
+
*/
|
36
|
+
get(key: string | Array<string>, cb: (err: Error | null, items?: ActionTableResult | Array<ActionTableResult>) => void): void
|
37
|
+
/**
|
38
|
+
* クエリーを指定して、アクションテーブルから行を取得する
|
39
|
+
* なお、クエリーは事前に管理画面で設定しておく必要があります。
|
40
|
+
*
|
41
|
+
* @param query_name - クエリー名
|
42
|
+
* @param params - クエリーに指定するパラメーター。 `{key: value}` の形式で指定
|
43
|
+
* @param cb - テーブルの行を取得した後に実行するcallback関数
|
44
|
+
*
|
45
|
+
* @public
|
46
|
+
*/
|
47
|
+
getByQuery(query_name: string, params: ActionTableQueryParams, options: {
|
48
|
+
ignore_fields?: string[]
|
49
|
+
} | null | undefined, cb: (err: Error | null, items?: Array<ActionTableResult>) => void): void
|
50
|
+
/** @internal */
|
51
|
+
set(key: string, value: string, cb: (err: Error | null) => void): void
|
52
|
+
};
|
53
|
+
/** @internal */
|
54
|
+
export type VariableQuery = {
|
55
|
+
resolver: string
|
56
|
+
name: string
|
57
|
+
query: any
|
58
|
+
preview_value?: any
|
59
|
+
};
|
60
|
+
/** @internal */
|
61
|
+
export type ActionTableRowRequestConfig = VariableQuery & {
|
62
|
+
resolver: "action-table-row"
|
63
|
+
query: {
|
64
|
+
table_name: string
|
65
|
+
key: string
|
66
|
+
default_value?: ActionTableResult
|
67
|
+
}
|
68
|
+
preview_value?: ActionTableResult
|
69
|
+
};
|
70
|
+
/** @internal */
|
71
|
+
export type ActionTableRowsRequestConfig = VariableQuery & {
|
72
|
+
resolver: "action-table-rows"
|
73
|
+
query: {
|
74
|
+
table_name: string
|
75
|
+
keys: Array<string>
|
76
|
+
default_value?: Array<ActionTableResult>
|
77
|
+
}
|
78
|
+
preview_value?: Array<ActionTableResult>
|
79
|
+
};
|
80
|
+
/** @internal */
|
81
|
+
export type ActionTableQueryRequestConfig = VariableQuery & {
|
82
|
+
resolver: "action-table-query"
|
83
|
+
query: {
|
84
|
+
table_name: string
|
85
|
+
query_name: string
|
86
|
+
params?: {
|
87
|
+
[key: string]: string
|
88
|
+
}
|
89
|
+
default_value?: Array<ActionTableResult>
|
90
|
+
}
|
91
|
+
preview_value?: Array<ActionTableResult>
|
92
|
+
};
|
93
|
+
/** @internal */
|
94
|
+
export type ActionTableRequestConfig = ActionTableRowRequestConfig | ActionTableRowsRequestConfig | ActionTableQueryRequestConfig;
|
95
|
+
/** @internal */
|
96
|
+
export declare const loadActionTableRow: (config: ActionTableRowRequestConfig, data: {
|
97
|
+
[key: string]: any
|
98
|
+
}, api_key: string, collection_endpoint?: string) => Promise<unknown>;
|
99
|
+
/** @internal */
|
100
|
+
export declare const loadActionTableRows: (config: ActionTableRowsRequestConfig, data: {
|
101
|
+
[key: string]: any
|
102
|
+
}, api_key: string, collection_endpoint?: string) => Promise<unknown>;
|
103
|
+
/** @internal */
|
104
|
+
export declare const loadActionTableQuery: (config: ActionTableQueryRequestConfig, data: {
|
105
|
+
[key: string]: any
|
106
|
+
}, api_key: string, collection_endpoint?: string) => Promise<unknown>;
|
107
|
+
/** @internal */
|
108
|
+
export declare const loadActionTable: (config: Array<VariableQuery>, data: {
|
109
|
+
[key: string]: any
|
110
|
+
}, api_key: string, collection_endpoint?: string) => Promise<{
|
111
|
+
[key: string]: any
|
112
|
+
}>;
|
113
|
+
/** @internal */
|
114
|
+
export declare function setupActionTable(localVariablesQuery: Array<VariableQuery>, data: {
|
115
|
+
[key: string]: any
|
116
|
+
}, apiKey: string, collection_endpoint: string): Promise<{
|
117
|
+
success: boolean
|
118
|
+
}>;
|
119
|
+
/** @internal */
|
120
|
+
export declare function initActionTable(localVariablesQuery: Array<VariableQuery> | undefined): void;
|
121
|
+
export {};
|
@@ -0,0 +1,32 @@
|
|
1
|
+
import { onMount as onMountSvelte, onDestroy as onDestorySvelte, beforeUpdate as beforeUpdateSvelte, afterUpdate as afterUpdateSvelte, tick as tickSvelte } from "svelte";
|
2
|
+
/**
|
3
|
+
* エレメントをマウントしたときに実行される関数の登録
|
4
|
+
*
|
5
|
+
* @param fn - マウントしたときに実行される関数
|
6
|
+
*/
|
7
|
+
export declare const onMount: typeof onMountSvelte;
|
8
|
+
/**
|
9
|
+
* エレメントを破棄したときに実行される関数の登録
|
10
|
+
*
|
11
|
+
* @param fn - マウントしたときに実行される関数
|
12
|
+
*/
|
13
|
+
export declare const onDestory: typeof onDestorySvelte;
|
14
|
+
/**
|
15
|
+
* エレメントを更新する前に実行される関数の登録
|
16
|
+
*
|
17
|
+
* @param fn - マウントしたときに実行される関数
|
18
|
+
*/
|
19
|
+
export declare const beforeUpdate: typeof beforeUpdateSvelte;
|
20
|
+
/**
|
21
|
+
* エレメントを更新した後に実行される関数の登録
|
22
|
+
*
|
23
|
+
* @param fn - マウントしたときに実行される関数
|
24
|
+
*/
|
25
|
+
export declare const afterUpdate: typeof afterUpdateSvelte;
|
26
|
+
/**
|
27
|
+
* エレメントのライフサイクルを進める
|
28
|
+
*
|
29
|
+
* @returns Promise<void>
|
30
|
+
*/
|
31
|
+
export declare const tick: typeof tickSvelte;
|
32
|
+
export declare const LAYOUT_COMPONENT_NAMES: string[];
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import type { BorderProps, ClickableProps, CommonProps } from "../props.js";
|
2
|
+
import type { Properties } from "csstype";
|
3
|
+
export declare const AVATAR_SIZE: {
|
4
|
+
readonly extra_small: "XS(48 x 48)"
|
5
|
+
readonly small: "S(64 x 64)"
|
6
|
+
readonly medium: "M(88 x 88)"
|
7
|
+
readonly large: "L(108 x 108)"
|
8
|
+
readonly extra_large: "XL(128 x 128)"
|
9
|
+
};
|
10
|
+
export declare const AVATAR_SHAPE: {
|
11
|
+
readonly circle: "サークル"
|
12
|
+
readonly square: "スクエア"
|
13
|
+
readonly rounded: "ラウンド"
|
14
|
+
};
|
15
|
+
export type AvatarProps = CommonProps & ClickableProps & BorderProps & {
|
16
|
+
size?: keyof typeof AVATAR_SIZE | number
|
17
|
+
width?: Properties["width"]
|
18
|
+
height?: Properties["height"]
|
19
|
+
shape?: keyof typeof AVATAR_SHAPE
|
20
|
+
image?: string
|
21
|
+
caption?: string
|
22
|
+
alt?: string
|
23
|
+
};
|
24
|
+
export declare const avatarPropsDefault: AvatarProps;
|