@plaidev/karte-action-sdk 1.1.108 → 1.1.109-27920272.d0a496d3

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.
@@ -17,6 +17,7 @@ declare const PropTypes: readonly [
17
17
  "Color",
18
18
  "Alignment",
19
19
  "State",
20
+ "TransitState",
20
21
  "Style",
21
22
  "ModalPlacement",
22
23
  "OnClick"
@@ -88,7 +89,7 @@ type OperationArgumentTypes = {
88
89
  StringKeyword: string;
89
90
  BooleanKeyword: boolean;
90
91
  NumberKeyword: number;
91
- State: string;
92
+ TransitState: string;
92
93
  Url: string;
93
94
  Handler: string;
94
95
  Trigger: string;
@@ -133,7 +134,7 @@ declare const OnClickOperationOptions: readonly [
133
134
  readonly operation: "moveTo";
134
135
  readonly args: readonly [
135
136
  {
136
- readonly type: "State";
137
+ readonly type: "TransitState";
137
138
  readonly default: "/";
138
139
  }
139
140
  ];
@@ -190,7 +191,11 @@ declare const ObjectFits: readonly [
190
191
  "cover"
191
192
  ];
192
193
  type ObjectFit = (typeof ObjectFits)[number];
193
- type ClipPath = string;
194
+ declare const ClipPaths: readonly [
195
+ "none",
196
+ "circle(closest-side)"
197
+ ];
198
+ type ClipPath = (typeof ClipPaths)[number];
194
199
  declare const Repeats: readonly [
195
200
  "repeat",
196
201
  "space",
@@ -225,7 +230,12 @@ declare const WritingModes: readonly [
225
230
  "vertical-lr"
226
231
  ];
227
232
  type WritingMode = (typeof WritingModes)[number];
228
- type ListSeparatorType = "none" | "border" | "gap";
233
+ declare const ListSeparatorTypes: readonly [
234
+ "none",
235
+ "border",
236
+ "gap"
237
+ ];
238
+ type ListSeparatorType = (typeof ListSeparatorTypes)[number];
229
239
  interface BaseListSeparator {
230
240
  type: ListSeparatorType;
231
241
  }
@@ -247,7 +257,11 @@ declare const DefaultListSeparatorNone: Required<ListSeparatorNone>;
247
257
  declare const DefaultListSeparatorBorder: Required<ListSeparatorBorder>;
248
258
  declare const DefaultListSeparatorGap: Required<ListSeparatorGap>;
249
259
  declare const DefaultListSeparator: Required<ListSeparatorBorder>;
250
- type ListBackgroundType = "none" | "stripe";
260
+ declare const ListBackgroundTypes: readonly [
261
+ "none",
262
+ "stripe"
263
+ ];
264
+ type ListBackgroundType = (typeof ListBackgroundTypes)[number];
251
265
  interface BaseListBackground {
252
266
  type: ListBackgroundType;
253
267
  }
@@ -263,7 +277,11 @@ type ListBackground = ListBackgroundNone | ListBackgroundStripe;
263
277
  declare const DefaultListBackgroundNone: Required<ListBackgroundNone>;
264
278
  declare const DefaultListBackgroundStripe: Required<ListBackgroundStripe>;
265
279
  declare const DefaultListBackground: Required<ListBackgroundNone>;
266
- type ListDirection = "vertical" | "horizontal";
280
+ declare const ListDirections: readonly [
281
+ "vertical",
282
+ "horizontal"
283
+ ];
284
+ type ListDirection = (typeof ListDirections)[number];
267
285
  type ListContext = {
268
286
  separator: ListSeparator;
269
287
  background: ListBackground;
@@ -507,6 +525,17 @@ declare function setCustomVariables(variables: CustomVariables): void;
507
525
  * @return {CustomVariables} New custom variables
508
526
  */
509
527
  declare function updateCustomVariables(variables: CustomVariables): CustomVariables;
528
+ interface FormData {
529
+ [name: string]: {
530
+ statePath: string;
531
+ value: any;
532
+ isValid: boolean;
533
+ };
534
+ }
535
+ /**
536
+ * Store for form data
537
+ */
538
+ declare const formData: Writable_<FormData>;
510
539
  type CloseTrigger = "button" | "overlay" | "auto" | "none";
511
540
  declare const ALL_ACTION_ID = "KARTE_ALL_ACTION_ID";
512
541
  declare const ALL_ACTION_SHORTEN_ID = "KARTE_ALL_ACTION_SHORTEN_ID";
@@ -953,6 +982,7 @@ declare namespace widget {
953
982
  "Color",
954
983
  "Alignment",
955
984
  "State",
985
+ "TransitState",
956
986
  "Style",
957
987
  "ModalPlacement",
958
988
  "OnClick"
@@ -1024,7 +1054,7 @@ declare namespace widget {
1024
1054
  StringKeyword: string;
1025
1055
  BooleanKeyword: boolean;
1026
1056
  NumberKeyword: number;
1027
- State: string;
1057
+ TransitState: string;
1028
1058
  Url: string;
1029
1059
  Handler: string;
1030
1060
  Trigger: string;
@@ -1069,7 +1099,7 @@ declare namespace widget {
1069
1099
  readonly operation: "moveTo";
1070
1100
  readonly args: readonly [
1071
1101
  {
1072
- readonly type: "State";
1102
+ readonly type: "TransitState";
1073
1103
  readonly default: "/";
1074
1104
  }
1075
1105
  ];
@@ -1126,7 +1156,11 @@ declare namespace widget {
1126
1156
  "cover"
1127
1157
  ];
1128
1158
  type ObjectFit = (typeof ObjectFits)[number];
1129
- type ClipPath = string;
1159
+ const ClipPaths: readonly [
1160
+ "none",
1161
+ "circle(closest-side)"
1162
+ ];
1163
+ type ClipPath = (typeof ClipPaths)[number];
1130
1164
  const Repeats: readonly [
1131
1165
  "repeat",
1132
1166
  "space",
@@ -1161,7 +1195,12 @@ declare namespace widget {
1161
1195
  "vertical-lr"
1162
1196
  ];
1163
1197
  type WritingMode = (typeof WritingModes)[number];
1164
- type ListSeparatorType = "none" | "border" | "gap";
1198
+ const ListSeparatorTypes: readonly [
1199
+ "none",
1200
+ "border",
1201
+ "gap"
1202
+ ];
1203
+ type ListSeparatorType = (typeof ListSeparatorTypes)[number];
1165
1204
  interface BaseListSeparator {
1166
1205
  type: ListSeparatorType;
1167
1206
  }
@@ -1183,7 +1222,11 @@ declare namespace widget {
1183
1222
  const DefaultListSeparatorBorder: Required<ListSeparatorBorder>;
1184
1223
  const DefaultListSeparatorGap: Required<ListSeparatorGap>;
1185
1224
  const DefaultListSeparator: Required<ListSeparatorBorder>;
1186
- type ListBackgroundType = "none" | "stripe";
1225
+ const ListBackgroundTypes: readonly [
1226
+ "none",
1227
+ "stripe"
1228
+ ];
1229
+ type ListBackgroundType = (typeof ListBackgroundTypes)[number];
1187
1230
  interface BaseListBackground {
1188
1231
  type: ListBackgroundType;
1189
1232
  }
@@ -1199,7 +1242,11 @@ declare namespace widget {
1199
1242
  const DefaultListBackgroundNone: Required<ListBackgroundNone>;
1200
1243
  const DefaultListBackgroundStripe: Required<ListBackgroundStripe>;
1201
1244
  const DefaultListBackground: Required<ListBackgroundNone>;
1202
- type ListDirection = "vertical" | "horizontal";
1245
+ const ListDirections: readonly [
1246
+ "vertical",
1247
+ "horizontal"
1248
+ ];
1249
+ type ListDirection = (typeof ListDirections)[number];
1203
1250
  type ListContext = {
1204
1251
  separator: ListSeparator;
1205
1252
  background: ListBackground;
@@ -1443,6 +1490,17 @@ declare namespace widget {
1443
1490
  * @return {CustomVariables} New custom variables
1444
1491
  */
1445
1492
  function updateCustomVariables(variables: CustomVariables): CustomVariables;
1493
+ interface FormData {
1494
+ [name: string]: {
1495
+ statePath: string;
1496
+ value: any;
1497
+ isValid: boolean;
1498
+ };
1499
+ }
1500
+ /**
1501
+ * Store for form data
1502
+ */
1503
+ const formData: Writable_<FormData>;
1446
1504
  type CloseTrigger = "button" | "overlay" | "auto" | "none";
1447
1505
  const ALL_ACTION_ID = "KARTE_ALL_ACTION_ID";
1448
1506
  const ALL_ACTION_SHORTEN_ID = "KARTE_ALL_ACTION_SHORTEN_ID";
@@ -1855,7 +1913,7 @@ declare namespace widget {
1855
1913
  */
1856
1914
  export { showAction as show, closeAction as hide };
1857
1915
  }
1858
- export { CloseTrigger, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, handleState, initialize, finalize, send_event, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, setAutoStart, Store, getStoreState, SystemConfig, ActionEventHandler, ActionSetting, CustomVariables, actionSetting, getActionSetting, setActionSetting, resetActionSetting, system, getSystem, setSystem, state, setState, getState, states, addState, getStates, opened, isOpened, setOpened, closed, isClosed, setClosed, maximumZindex, setMaximumZindex, internalHandlers, getInternalHandlers, setInternalHandlers, updateInternalHandlers, customHandlers, getCustomHandlers, setCustomHandlers, updateCustomHandlers, destroyed, isDestroyed, setDestroyed, stopped, isStopped, setStopped, customVariables, getCustomVariables, setCustomVariables, updateCustomVariables, NOOP, isPreview, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, ScrollDirection, OnScrollContext, OnScrollFunction, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, Style, StateName, WritingModes, WritingMode, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirection, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, showAction, closeAction, KARTE_ACTION_ROOT, KARTE_ACTION_RID, KARTE_ACTION_SHORTEN_ID, ensureActionRoot, onCreate, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, show, close, AppOptions, App, createApp, collection, widget };
1916
+ export { CloseTrigger, ALL_ACTION_ID, ALL_ACTION_SHORTEN_ID, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, ACTION_CHANGE_STATE_EVENT, handleState, initialize, finalize, send_event, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, hashCode, setAutoStart, Store, getStoreState, SystemConfig, ActionEventHandler, ActionSetting, CustomVariables, actionSetting, getActionSetting, setActionSetting, resetActionSetting, system, getSystem, setSystem, state, setState, getState, states, addState, getStates, opened, isOpened, setOpened, closed, isClosed, setClosed, maximumZindex, setMaximumZindex, internalHandlers, getInternalHandlers, setInternalHandlers, updateInternalHandlers, customHandlers, getCustomHandlers, setCustomHandlers, updateCustomHandlers, destroyed, isDestroyed, setDestroyed, stopped, isStopped, setStopped, customVariables, getCustomVariables, setCustomVariables, updateCustomVariables, FormData, formData, NOOP, isPreview, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, ScrollDirection, OnScrollContext, OnScrollFunction, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, Elasticities, Elasticity, ElasticityStyle, TextDirections, TextDirection, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, ClipPaths, ClipPath, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, BorderStyle, BorderWidth, Style, StateName, WritingModes, WritingMode, ListSeparatorTypes, ListSeparatorNone, ListSeparatorBorder, ListSeparatorGap, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorGap, DefaultListSeparator, ListBackgroundTypes, ListBackgroundNone, ListBackgroundStripe, ListBackground, DefaultListBackgroundNone, DefaultListBackgroundStripe, DefaultListBackground, ListDirections, ListDirection, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, showAction, closeAction, KARTE_ACTION_ROOT, KARTE_ACTION_RID, KARTE_ACTION_SHORTEN_ID, ensureActionRoot, onCreate, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, getActionShadowRoot, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, show, close, AppOptions, App, createApp, collection, widget };
1859
1917
  export { default as State } from './components/State.svelte';
1860
1918
  export { default as StateItem } from './components/StateItem.svelte';
1861
1919
  export { default as Modal } from './components/Modal.svelte';
@@ -1872,10 +1930,12 @@ export { default as ListItem } from './components/ListItem.svelte';
1872
1930
  export { default as EmbedElement } from './components/EmbedElement.svelte';
1873
1931
  export { default as MovieYouTubeElement } from './components/MovieYouTubeElement.svelte';
1874
1932
  export { default as MovieVimeoElement } from './components/MovieVimeoElement.svelte';
1875
- export { default as Form } from './components/Form.svelte';
1876
1933
  export { default as FormTextarea } from './components/FormTextarea.svelte';
1877
1934
  export { default as FormButton } from './components/FormButton.svelte';
1878
1935
  export { default as FormRadioButtons } from './components/FormRadioButtons.svelte';
1936
+ export { default as FormSelect } from './components/FormSelect.svelte';
1937
+ export { default as Slider } from './components/Slider.svelte';
1938
+ export { default as SliderItem } from './components/SliderItem.svelte';
1879
1939
  export { default as TextBlock } from './components/TextBlock.svelte';
1880
1940
  export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
1881
1941
  export { default as ImageBlock } from './components/ImageBlock.svelte';