@plaidev/karte-action-sdk 1.1.264 → 1.1.265-29058826.de4fe889

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.
@@ -1,10 +1,10 @@
1
- import { SvelteComponentDev } from "svelte/internal";
2
- import { Writable as Writable_ } from "svelte/store";
1
+ import { SvelteComponentTyped } from "svelte";
3
2
  import { onMount as onMountSvelte } from "svelte";
4
3
  import { onDestroy as onDestorySvelte } from "svelte";
5
4
  import { beforeUpdate as beforeUpdateSvelte } from "svelte";
6
5
  import { afterUpdate as afterUpdateSvelte } from "svelte";
7
6
  import { tick as tickSvelte } from "svelte";
7
+ import { Writable as Writable_ } from "svelte/store";
8
8
  import { Properties } from "csstype";
9
9
  import { Properties as Properties$0 } from "preact/src/jsx-csstype";
10
10
  /** @internal */
@@ -413,7 +413,7 @@ type ModalProps = Props;
413
413
  *
414
414
  * @public
415
415
  */
416
- declare function create<Props extends ModalProps, Variables, VariablesQuery extends Array<VariableQuery>>(App: typeof SvelteComponentDev, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
416
+ declare function create<Props extends ModalProps, Variables, VariablesQuery extends Array<VariableQuery>>(App: typeof SvelteComponentTyped, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
417
417
  /**
418
418
  * アクションの破棄する
419
419
  *
@@ -1476,7 +1476,7 @@ declare const ensureModalRoot: typeof ensureActionRoot;
1476
1476
  *
1477
1477
  * @internal
1478
1478
  */
1479
- declare function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, VariablesQuery, VariablesQuery>): App;
1479
+ declare function createApp<Props, Variables, VariablesQuery>(App: SvelteComponentTyped, options?: AppOptions<Props, VariablesQuery, VariablesQuery>): App;
1480
1480
  /**
1481
1481
  * 非推奨
1482
1482
  *
@@ -2051,7 +2051,7 @@ declare namespace widget {
2051
2051
  */
2052
2052
  function getActionRoot(): ShadowRoot | null;
2053
2053
  /** @internal */
2054
- function createModal<Props extends ModalProps, Variables, VariablesQuery extends Array<VariableQuery>>(App: typeof SvelteComponentDev, options?: ActionOptions<Props, VariablesQuery & ActionVariables, VariablesQuery>): () => void;
2054
+ function createModal<Props extends ModalProps, Variables, VariablesQuery extends Array<VariableQuery>>(App: typeof SvelteComponentTyped, options?: ActionOptions<Props, VariablesQuery & ActionVariables, VariablesQuery>): () => void;
2055
2055
  /** @internal */
2056
2056
  function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement;
2057
2057
  // -------- The following codes are deprecated --------
@@ -2127,7 +2127,7 @@ declare namespace widget {
2127
2127
  *
2128
2128
  * @internal
2129
2129
  */
2130
- function createApp<Props, Variables, VariablesQuery>(App: typeof SvelteComponentDev, options?: AppOptions<Props, VariablesQuery, VariablesQuery>): App;
2130
+ function createApp<Props, Variables, VariablesQuery>(App: SvelteComponentTyped, options?: AppOptions<Props, VariablesQuery, VariablesQuery>): App;
2131
2131
  /**
2132
2132
  * 非推奨
2133
2133
  *
@@ -2460,6 +2460,9 @@ type CustomizeCssProps = {
2460
2460
  type BrandStyleProps = {
2461
2461
  customBrandKit?: Partial<BrandKit>;
2462
2462
  };
2463
+ type ActionTableProps = {
2464
+ actionTableKey?: string;
2465
+ };
2463
2466
  type CommonProps = MetaProps & PositionProps & CustomizeCssProps & BrandStyleProps;
2464
2467
  type ClickableProps = {
2465
2468
  onClick?: OnClickOperation;
@@ -2618,8 +2621,8 @@ declare const CLOSE_BUTTON_ROUND: {
2618
2621
  readonly fulled: "\u5186\u5F62";
2619
2622
  };
2620
2623
  declare const CLOSE_BUTTON_LABEL_PLACEMENT: {
2621
- right: string;
2622
- left: string;
2624
+ readonly right: "right";
2625
+ readonly left: "left";
2623
2626
  };
2624
2627
  type CloseButtonProps = CommonProps & ClickableProps & BorderProps & {
2625
2628
  size?: number;
@@ -2654,9 +2657,9 @@ type IconProps = CommonProps & ClickableProps & {
2654
2657
  };
2655
2658
  declare const ICON_SIZE_STYLES: PropStyles<IconProps, "size">;
2656
2659
  declare const IMAGE_ROUND_SHAPE: {
2657
- readonly circle: "\u30B5\u30FC\u30AF\u30EB";
2660
+ readonly circle: "\u30E9\u30A6\u30F3\u30C9 / \u30DF\u30C7\u30A3\u30A2\u30E0";
2661
+ readonly rounded: "\u30E9\u30A6\u30F3\u30C9 / \u30B9\u30E2\u30FC\u30EB";
2658
2662
  readonly square: "\u30B9\u30AF\u30A8\u30A2";
2659
- readonly rounded: "\u30E9\u30A6\u30F3\u30C9";
2660
2663
  };
2661
2664
  declare const IMAGE_ASPECT_VARIANTS: {
2662
2665
  "1/1": string;
@@ -2670,12 +2673,14 @@ declare const IMAGE_ASPECT_VARIANTS: {
2670
2673
  "3/4": string;
2671
2674
  "9/16": string;
2672
2675
  };
2673
- type ImageProps = CommonProps & ClickableProps & AspectProps & BorderProps & {
2676
+ type ImageProps = CommonProps & ClickableProps & AspectProps & RadiusProps & BorderProps & {
2674
2677
  image?: string;
2675
2678
  width?: Properties["width"];
2679
+ height?: Properties["height"];
2676
2680
  alt?: string;
2677
2681
  shape?: keyof typeof IMAGE_ROUND_SHAPE;
2678
2682
  };
2683
+ declare const IMAGE_ROUND_STYLES: PropStyles<ImageProps, "shape">;
2679
2684
  declare const LAYOUT_DISPLAY_TYPE: readonly [
2680
2685
  "inline-flex",
2681
2686
  "flex",
@@ -2708,6 +2713,7 @@ type LayerLayoutProps = CommonProps & ClickableProps & OverflowProps & BorderPro
2708
2713
  direction?: LayoutFlexDirection;
2709
2714
  align?: LayoutFlexAlign;
2710
2715
  justify?: LayoutFlexJustify;
2716
+ gap?: Properties["gap"];
2711
2717
  rowGap?: Properties["rowGap"];
2712
2718
  columnGap?: Properties["columnGap"];
2713
2719
  width?: Properties["width"];
@@ -2797,7 +2803,10 @@ type TextLinkProps = CommonProps & ClickableProps & LinkProps & FontFamilyProps
2797
2803
  };
2798
2804
  declare const TEXT_LINK_SIZE_STYLES: PropStyles<TextLinkProps, "size">;
2799
2805
  declare const getTextLinkThemeStyles: (customBrandKit?: Partial<BrandKit>) => BrandableStyles<TextLinkProps>;
2800
- type ListProps = CommonProps & {
2806
+ type FrameModalProps = CommonProps & OverflowProps & BorderProps & RadiusProps & ShadowProps & BackgroundColorProps & BackgroundImageProps & {
2807
+ width?: Properties["width"];
2808
+ };
2809
+ type ListProps = CommonProps & ActionTableProps & {
2801
2810
  gap?: Properties["gap"];
2802
2811
  borderWidth?: Properties["borderTopWidth"];
2803
2812
  borderStyle?: Properties["borderTopStyle"];
@@ -2893,7 +2902,32 @@ type CodeProps = CommonProps & {
2893
2902
  rawScript?: string;
2894
2903
  };
2895
2904
  declare const ROUND_STYLES: Record<keyof typeof ROUND_VARIANT, Pick<Properties, "borderTopLeftRadius" | "borderTopRightRadius" | "borderBottomLeftRadius" | "borderBottomRightRadius">>;
2896
- export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, PropStyles, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, BrandStyleProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AspectProps, FontFamilyProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, avatarPropsDefault, AVATAR_SIZE_STYLES, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANT, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, getButtonThemeStyles, BUTTON_SIZE_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, getButtonOutlinedThemeStyles, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, getButtonTextThemeStyles, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, IMAGE_ROUND_SHAPE, IMAGE_ASPECT_VARIANTS, ImageProps, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, SliderItemProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, getTextThemeStyles, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, getTextLinkThemeStyles, ListProps, ListItemProps, LIST_ITEM_CONTEXT_KEY, ListItemContext, MultiColumnProps, MultiColumnItemProps, MULTI_COLUMN_ITEM_CONTEXT_KEY, MultiColumnItemContext, YoutubeProps, CountDownProps, CountDownValueType, CountDownValueProps, CountDownValues, ClipboardProps, CodeProps, BrandKit, getBrandKit, useBrandKit, ROUND_STYLES, VariantStyles, VariantDefinition, VariantDefinitionGroup, ASPECT_VARIANT, AspectVariantCode, ASPECT_VARIANTS, FontVariantMeta, FONT_FAMILY_VARIANT, FontFamilyVariantCode, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, SHADOW_VARIANT, ShadowVariantCode, SHADOW_VARIANTS };
2905
+ type FlexComponentSchemaPropType = "string" | "url" | "number" | "boolean" | "color" | "date_string";
2906
+ type FlexComponentSchemaProp<Props extends Record<string, any>, Key extends keyof Props> = {
2907
+ key: Key;
2908
+ type: FlexComponentSchemaPropType;
2909
+ suggestions: Props[Key][];
2910
+ default?: Props[Key];
2911
+ priority?: number;
2912
+ };
2913
+ type FlexComponentSchema<Props extends Record<string, any> = object> = {
2914
+ props: FlexComponentSchemaProp<Props, keyof Props>[];
2915
+ };
2916
+ declare const createProp: <Props extends Record<string, any>, K extends keyof Props>(key: K, type: FlexComponentSchemaPropType, suggestions?: Props[K][], priority?: number, defaultValue?: Props[K]) => FlexComponentSchemaProp<Props, K>;
2917
+ declare const flexComponentSchemes: {
2918
+ readonly FlexAvatar: FlexComponentSchema<AvatarProps>;
2919
+ readonly FlexButton: FlexComponentSchema<ButtonProps>;
2920
+ readonly FlexClipCopy: FlexComponentSchema<ClipboardProps>;
2921
+ readonly FlexCloseButton: FlexComponentSchema<CloseButtonProps>;
2922
+ readonly FlexCountDown: FlexComponentSchema<CountDownProps>;
2923
+ readonly FlexIcon: FlexComponentSchema<IconProps>;
2924
+ readonly FlexImage: FlexComponentSchema<ImageProps>;
2925
+ readonly FlexLayout: FlexComponentSchema<LayerLayoutProps>;
2926
+ readonly FlexList: FlexComponentSchema<ListProps>;
2927
+ readonly FlexListItem: FlexComponentSchema<ListItemProps>;
2928
+ readonly FlexText: FlexComponentSchema<LayerTextProps>;
2929
+ };
2930
+ export { ACTION_HOOK_LABEL, KARTE_MODAL_ROOT, create, destroyAction, onCreate, onDestroy, showModal, destroy, initialize, finalize, loadGlobalScript, loadGlobalStyle, applyGlobalCss, getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state, onScroll, onTime, getLogs, getEvents, logger, listenLogger, hideOnScroll, hideOnTime, showOnScroll, showOnTime, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, DefaultElasticity, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, RegExpProp, Image, LengthUnits, LengthUnit, Length, Color, FontWeight, SYSTEM_FONT, Fonts, Font, Justifies, Justify, Alignments, Alignment, FlexDirections, FlexDirection, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, BoxShadow, Style, TransitState, WritingModes, WritingMode, DateTime, Icon, ListSeparatorTypes, EdgePosition, DefaultEdgePosition, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, SlideButtonIcon, SlideButtonText, SlideButton, DefaultSlideButton, SlideButtonPosition, SlideNavigationButton, DefaultSlideNavigationButton, FormInputName, FormButtonColor, DefaultFormButtonColor, ModalStyle, ModalBreakPoint, DefaultModalBreakPoint, FormIdentifyTextFields, FormIdentifyTextField, FormIdentifyTextFieldValidations, FormIdentifyTextFieldPlaceholders, DefaultFormIdentifyTextField, FormIdentifyBooleanFields, FormIdentifyBooleanField, DefaultFormIdentifyBooleanField, showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog, collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable, addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers, widget, onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES, PropStyles, ROUND_VARIANT, PositionProps, MetaProps, CustomizeCssProps, BrandStyleProps, ActionTableProps, CommonProps, ClickableProps, OverflowProps, BorderProps, PaddingProps, RadiusProps, BackgroundColorProps, BackgroundImageProps, ShadowProps, WithIconProps, LinkProps, AspectProps, FontFamilyProps, AVATAR_SIZE, AVATAR_SHAPE, AvatarProps, avatarPropsDefault, AVATAR_SIZE_STYLES, BUTTON_SIZE, BUTTON_THEME, BUTTON_VARIANT, BUTTON_ROUND, BUTTON_LINK_TARGET, BUTTON_ICON_ANGLE, ButtonProps, buttonPropsDefault, getButtonThemeStyles, BUTTON_SIZE_STYLES, BUTTON_ROUND_STYLES, BUTTON_WRAP_STYLES, ButtonOutlinedProps, buttonOutlinedPropsDefault, BUTTON_OUTLINED_SIZE_STYLES, getButtonOutlinedThemeStyles, BUTTON_OUTLINED_ROUND_STYLES, BUTTON_OUTLINED_WRAP_STYLES, BUTTON_TEXT_SIZE, BUTTON_TEXT_THEME, ButtonTextProps, BUTTON_TEXT_SIZE_STYLES, getButtonTextThemeStyles, CLOSE_BUTTON_PLACEMENT, CLOSE_BUTTON_ROUND, CLOSE_BUTTON_LABEL_PLACEMENT, CloseButtonProps, ICON_SIZE, ICON_VARIANTS, IconProps, ICON_SIZE_STYLES, IMAGE_ROUND_SHAPE, IMAGE_ASPECT_VARIANTS, ImageProps, IMAGE_ROUND_STYLES, LAYOUT_DISPLAY_TYPE, LayoutDisplayType, LAYOUT_DIRECTION, LayoutFlexDirection, LAYOUT_ALIGN, LayoutFlexAlign, LAYOUT_JUSTIFY, LayoutFlexJustify, LayerLayoutProps, SliderProps, SliderItemProps, LAYER_TEXT_SIZE, TEXT_THEME, TEXT_STYLE, LayerTextProps, getTextThemeStyles, TEXT_VARIANTS, TEXT_LINK_SIZE, TEXT_LINK_THEME, TEXT_LINK_UNDERLINE, TextLinkProps, TEXT_LINK_SIZE_STYLES, getTextLinkThemeStyles, FrameModalProps, ListProps, ListItemProps, LIST_ITEM_CONTEXT_KEY, ListItemContext, MultiColumnProps, MultiColumnItemProps, MULTI_COLUMN_ITEM_CONTEXT_KEY, MultiColumnItemContext, YoutubeProps, CountDownProps, CountDownValueType, CountDownValueProps, CountDownValues, ClipboardProps, CodeProps, BrandKit, getBrandKit, useBrandKit, ROUND_STYLES, VariantStyles, VariantDefinition, VariantDefinitionGroup, ASPECT_VARIANT, AspectVariantCode, ASPECT_VARIANTS, FontVariantMeta, FONT_FAMILY_VARIANT, FontFamilyVariantCode, FONT_FAMILY_VARIANTS, FONT_FAMILY_VARIANT_GROUPS, SHADOW_VARIANT, ShadowVariantCode, SHADOW_VARIANTS, createProp, flexComponentSchemes };
2897
2931
  export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction, OnScrollContext, OnScrollFunction, ScrollDirection, LogLevel, Log, Event, ActionCloseHook, ShowTrigger, CloseTrigger, CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig };
2898
2932
  export { default as State } from './components/State.svelte';
2899
2933
  export { default as StateItem } from './components/StateItem.svelte';