@plaidev/karte-action-sdk 1.1.75 → 1.1.76
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/hydrate/index.es.d.ts +40 -2
- package/dist/hydrate/index.es.js +404 -59
- package/dist/index.es.d.ts +40 -2
- package/dist/index.es.js +384 -59
- package/package.json +1 -1
|
@@ -153,7 +153,7 @@ declare const LengthUnits: readonly [
|
|
|
153
153
|
];
|
|
154
154
|
type LengthUnit = typeof LengthUnits[number];
|
|
155
155
|
type Length = `${number}${LengthUnit}` | "auto";
|
|
156
|
-
type Color = `#${string}`;
|
|
156
|
+
type Color = `#${string}` | `rgba(${string})`;
|
|
157
157
|
declare const Justifies: readonly [
|
|
158
158
|
"flex-start",
|
|
159
159
|
"center",
|
|
@@ -189,8 +189,44 @@ declare const Cursors: string[];
|
|
|
189
189
|
type Cursor = typeof Cursors[number];
|
|
190
190
|
declare const Overflows: string[];
|
|
191
191
|
type Overflow = typeof Overflows[number];
|
|
192
|
+
type Border = string;
|
|
192
193
|
type Style = string;
|
|
193
194
|
type StateName = string;
|
|
195
|
+
type ListSeparatorType = "none" | "border" | "stripe";
|
|
196
|
+
interface BaseListSeparator {
|
|
197
|
+
type: ListSeparatorType;
|
|
198
|
+
}
|
|
199
|
+
interface ListSeparatorNone extends BaseListSeparator {
|
|
200
|
+
type: "none";
|
|
201
|
+
}
|
|
202
|
+
interface ListSeparatorBorder extends BaseListSeparator {
|
|
203
|
+
type: "border";
|
|
204
|
+
border?: Border;
|
|
205
|
+
}
|
|
206
|
+
interface ListSeparatorStripe extends BaseListSeparator {
|
|
207
|
+
type: "stripe";
|
|
208
|
+
background1?: Color;
|
|
209
|
+
background2?: Color;
|
|
210
|
+
}
|
|
211
|
+
type ListSeparator = ListSeparatorNone | ListSeparatorBorder | ListSeparatorStripe;
|
|
212
|
+
declare const DefaultListSeparatorNone: ListSeparatorNone;
|
|
213
|
+
declare const DefaultListSeparatorBorder: ListSeparatorBorder;
|
|
214
|
+
declare const DefaultListSeparatorStripe: ListSeparatorStripe;
|
|
215
|
+
declare const DefaultListSeparator: ListSeparatorBorder;
|
|
216
|
+
type ListDirection = "vertical" | "horizontal";
|
|
217
|
+
type ListItemSize = string;
|
|
218
|
+
declare const DefaultListItemSize = "100%";
|
|
219
|
+
type ListContext = {
|
|
220
|
+
separator: ListSeparator;
|
|
221
|
+
direction: ListDirection;
|
|
222
|
+
registerItem: (props: {
|
|
223
|
+
onMount: (props: {
|
|
224
|
+
index: number;
|
|
225
|
+
length: number;
|
|
226
|
+
}) => void;
|
|
227
|
+
}) => string;
|
|
228
|
+
unregisterItem: (id: string) => void;
|
|
229
|
+
};
|
|
194
230
|
// Wrap svelte tools
|
|
195
231
|
type Store<T> = Writable_<T>;
|
|
196
232
|
declare const getStoreState: typeof get_;
|
|
@@ -569,7 +605,7 @@ declare const collection: (config: {
|
|
|
569
605
|
} | null | undefined, cb: (err: Error | null, items?: any) => void): void;
|
|
570
606
|
set(key: string, value: string, cb: (err: Error | null) => void): void;
|
|
571
607
|
};
|
|
572
|
-
export { Store, getStoreState, ActionEventHandler, CONSTANTS, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, state, states, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Style, StateName, hideOnScroll, hideOnTime, showOnScroll, showOnTime, NOOP, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, show, close, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, AppOptions, App, createApp, collection };
|
|
608
|
+
export { Store, getStoreState, ActionEventHandler, CONSTANTS, actionId, ACTION_SHOW_EVENT, ACTION_CLOSE_EVENT, ACTION_DESTROY_EVENT, state, states, closed, maximumZindex, internalHandlers, customHandlers, destroyed, stopped, customVariables, setAutoStart, setState, initialize, finalize, send_event, isPreview, setMiximumZindex, none, moveTo, linkTo, closeApp, runScript, execOnClickOperation, haveFunction, customAnimation, loadGlobalScript, applyGlobalCss, loadGlobalStyle, handleFocus, setPreviousFocus, handleKeydown, getPositionStyle, getTransform, getMarginStyle, onScroll, onTime, hasSuffix, toBr, randStr, PropTypes, PropType, Code, MediaQueries, MediaQuery, Directions, Direction, AnimationStyles, AnimationStyle, ModalPositions, ModalPosition, ModalMargin, ModalPlacement, DefaultModalPlacement, OperationArgumentType, Operation, OnClickOperationOptions, OnClickOperation, LongText, Url, Image, LengthUnits, LengthUnit, Length, Color, Justifies, Justify, Alignments, Alignment, ObjectFits, ObjectFit, Repeats, Repeat, BackgroundSizes, BackgroundSize, Cursors, Cursor, Overflows, Overflow, Border, Style, StateName, ListSeparator, DefaultListSeparatorNone, DefaultListSeparatorBorder, DefaultListSeparatorStripe, DefaultListSeparator, ListDirection, ListItemSize, DefaultListItemSize, ListContext, hideOnScroll, hideOnTime, showOnScroll, showOnTime, NOOP, ActionProps, ActionOptions, create, dispatchDestroyEvent, destroy, show, close, KARTE_ACTION_ROOT, KARTE_ACTION_RID, ensureActionRoot, onShow, onClose, onDestroy, onChangeState, h, createFog, EmbedLogic, embed, applyCss, loadStyle, showModal, ModalOptions, KARTE_MODAL_ROOT, ensureModalRoot, AppOptions, App, createApp, collection };
|
|
573
609
|
export { default as State } from './components/State.svelte';
|
|
574
610
|
export { default as StateItem } from './components/StateItem.svelte';
|
|
575
611
|
export { default as Modal } from './components/Modal.svelte';
|
|
@@ -581,6 +617,8 @@ export { default as FlexItem } from './components/FlexItem.svelte';
|
|
|
581
617
|
export { default as TextElement } from './components/TextElement.svelte';
|
|
582
618
|
export { default as TextButtonElement } from './components/TextButtonElement.svelte';
|
|
583
619
|
export { default as ImageElement } from './components/ImageElement.svelte';
|
|
620
|
+
export { default as List } from './components/List.svelte';
|
|
621
|
+
export { default as ListItem } from './components/ListItem.svelte';
|
|
584
622
|
export { default as TextBlock } from './components/TextBlock.svelte';
|
|
585
623
|
export { default as TextButtonBlock } from './components/TextButtonBlock.svelte';
|
|
586
624
|
export { default as ImageBlock } from './components/ImageBlock.svelte';
|