@plaidev/karte-action-sdk 1.1.269-29160322.e3d433de → 1.1.269-29161921.5f4ecb39
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 +1 -0
- package/dist/actionEvent.d.ts +1 -0
- package/dist/collection.d.ts +39 -39
- package/dist/components/index.d.ts +1 -0
- package/dist/components-flex/avatar/types.d.ts +16 -15
- package/dist/components-flex/brand-kit.d.ts +11 -11
- package/dist/components-flex/button/types.d.ts +43 -40
- package/dist/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/components-flex/button-text/types.d.ts +27 -24
- package/dist/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/components-flex/close-button/types.d.ts +21 -21
- package/dist/components-flex/code/types.d.ts +3 -3
- package/dist/components-flex/count-down/types.d.ts +7 -7
- package/dist/components-flex/icon/types.d.ts +9 -9
- package/dist/components-flex/image/types.d.ts +18 -18
- package/dist/components-flex/layout/types.d.ts +9 -9
- package/dist/components-flex/list/types.d.ts +18 -18
- package/dist/components-flex/modal/types.d.ts +1 -1
- package/dist/components-flex/multi-column/types.d.ts +19 -19
- package/dist/components-flex/props.d.ts +56 -56
- package/dist/components-flex/schemas.d.ts +17 -17
- package/dist/components-flex/shared/types.d.ts +6 -6
- package/dist/components-flex/slider/types.d.ts +6 -6
- package/dist/components-flex/styles.d.ts +1 -1
- package/dist/components-flex/text/constants.d.ts +1 -1
- package/dist/components-flex/text/styles.d.ts +1 -1
- package/dist/components-flex/text/types.d.ts +32 -29
- package/dist/components-flex/text-link/types.d.ts +24 -21
- package/dist/components-flex/utils/color.d.ts +3 -3
- package/dist/components-flex/utils/parser.d.ts +2 -2
- package/dist/components-flex/variants.d.ts +26 -11
- package/dist/components-flex/youtube/types.d.ts +12 -11
- package/dist/constants.d.ts +3 -2
- package/dist/enhancedStopPropagation.d.ts +1 -1
- package/dist/form.d.ts +15 -15
- package/dist/functions.d.ts +11 -11
- package/dist/hooks/useClickable.d.ts +3 -3
- package/dist/hooks/useText.d.ts +2 -2
- package/dist/hydrate/action.d.ts +1 -0
- package/dist/hydrate/actionEvent.d.ts +1 -0
- package/dist/hydrate/collection.d.ts +39 -39
- package/dist/hydrate/components/index.d.ts +1 -0
- package/dist/hydrate/components-flex/avatar/types.d.ts +16 -15
- package/dist/hydrate/components-flex/brand-kit.d.ts +11 -11
- package/dist/hydrate/components-flex/button/types.d.ts +43 -40
- package/dist/hydrate/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/hydrate/components-flex/button-text/types.d.ts +27 -24
- package/dist/hydrate/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/hydrate/components-flex/close-button/types.d.ts +21 -21
- package/dist/hydrate/components-flex/code/types.d.ts +3 -3
- package/dist/hydrate/components-flex/count-down/types.d.ts +7 -7
- package/dist/hydrate/components-flex/icon/types.d.ts +9 -9
- package/dist/hydrate/components-flex/image/types.d.ts +18 -18
- package/dist/hydrate/components-flex/layout/types.d.ts +9 -9
- package/dist/hydrate/components-flex/list/types.d.ts +18 -18
- package/dist/hydrate/components-flex/modal/types.d.ts +1 -1
- package/dist/hydrate/components-flex/multi-column/types.d.ts +19 -19
- package/dist/hydrate/components-flex/props.d.ts +56 -56
- package/dist/hydrate/components-flex/schemas.d.ts +17 -17
- package/dist/hydrate/components-flex/shared/types.d.ts +6 -6
- package/dist/hydrate/components-flex/slider/types.d.ts +6 -6
- package/dist/hydrate/components-flex/styles.d.ts +1 -1
- package/dist/hydrate/components-flex/text/constants.d.ts +1 -1
- package/dist/hydrate/components-flex/text/styles.d.ts +1 -1
- package/dist/hydrate/components-flex/text/types.d.ts +32 -29
- package/dist/hydrate/components-flex/text-link/types.d.ts +24 -21
- package/dist/hydrate/components-flex/utils/color.d.ts +3 -3
- package/dist/hydrate/components-flex/utils/parser.d.ts +2 -2
- package/dist/hydrate/components-flex/variants.d.ts +26 -11
- package/dist/hydrate/components-flex/youtube/types.d.ts +12 -11
- package/dist/hydrate/constants.d.ts +3 -2
- package/dist/hydrate/enhancedStopPropagation.d.ts +1 -1
- package/dist/hydrate/form.d.ts +15 -15
- package/dist/hydrate/functions.d.ts +11 -11
- package/dist/hydrate/hooks/useClickable.d.ts +3 -3
- package/dist/hydrate/hooks/useText.d.ts +2 -2
- package/dist/hydrate/index.d.ts +7 -5
- package/dist/hydrate/index.es.js +416 -2692
- package/dist/hydrate/index.svelte5.d.ts +6 -5
- package/dist/hydrate/logger.d.ts +14 -14
- package/dist/hydrate/modal.d.ts +9 -7
- package/dist/hydrate/modal.svelte5.d.ts +9 -7
- package/dist/hydrate/prop.d.ts +127 -127
- package/dist/hydrate/stores.d.ts +16 -16
- package/dist/hydrate/types.d.ts +15 -14
- package/dist/hydrate/utils.d.ts +36 -36
- package/dist/hydrate/widget.d.ts +10 -10
- package/dist/icons.d.ts +7 -4
- package/dist/index.es.d.ts +7 -5
- package/dist/index.es.js +413 -2677
- package/dist/logger.d.ts +14 -14
- package/dist/modal.d.ts +9 -7
- package/dist/modal.svelte5.d.ts +9 -7
- package/dist/prop.d.ts +127 -127
- package/dist/stores.d.ts +16 -16
- package/dist/svelte5/action.d.ts +1 -0
- package/dist/svelte5/actionEvent.d.ts +1 -0
- package/dist/svelte5/collection.d.ts +39 -39
- package/dist/svelte5/components/index.d.ts +1 -0
- package/dist/svelte5/components-flex/avatar/types.d.ts +16 -15
- package/dist/svelte5/components-flex/brand-kit.d.ts +11 -11
- package/dist/svelte5/components-flex/button/types.d.ts +43 -40
- package/dist/svelte5/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/svelte5/components-flex/button-text/types.d.ts +27 -24
- package/dist/svelte5/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/svelte5/components-flex/close-button/types.d.ts +21 -21
- package/dist/svelte5/components-flex/code/types.d.ts +3 -3
- package/dist/svelte5/components-flex/count-down/types.d.ts +7 -7
- package/dist/svelte5/components-flex/icon/types.d.ts +9 -9
- package/dist/svelte5/components-flex/image/types.d.ts +18 -18
- package/dist/svelte5/components-flex/layout/types.d.ts +9 -9
- package/dist/svelte5/components-flex/list/types.d.ts +18 -18
- package/dist/svelte5/components-flex/modal/types.d.ts +1 -1
- package/dist/svelte5/components-flex/multi-column/types.d.ts +19 -19
- package/dist/svelte5/components-flex/props.d.ts +56 -56
- package/dist/svelte5/components-flex/schemas.d.ts +17 -17
- package/dist/svelte5/components-flex/shared/types.d.ts +6 -6
- package/dist/svelte5/components-flex/slider/types.d.ts +6 -6
- package/dist/svelte5/components-flex/styles.d.ts +1 -1
- package/dist/svelte5/components-flex/text/constants.d.ts +1 -1
- package/dist/svelte5/components-flex/text/styles.d.ts +1 -1
- package/dist/svelte5/components-flex/text/types.d.ts +32 -29
- package/dist/svelte5/components-flex/text-link/types.d.ts +24 -21
- package/dist/svelte5/components-flex/utils/color.d.ts +3 -3
- package/dist/svelte5/components-flex/utils/parser.d.ts +2 -2
- package/dist/svelte5/components-flex/variants.d.ts +26 -11
- package/dist/svelte5/components-flex/youtube/types.d.ts +12 -11
- package/dist/svelte5/constants.d.ts +3 -2
- package/dist/svelte5/form.d.ts +15 -15
- package/dist/svelte5/functions.d.ts +11 -11
- package/dist/svelte5/hooks/useClickable.d.ts +3 -3
- package/dist/svelte5/hooks/useText.d.ts +2 -2
- package/dist/svelte5/hydrate/action.d.ts +1 -0
- package/dist/svelte5/hydrate/actionEvent.d.ts +1 -0
- package/dist/svelte5/hydrate/collection.d.ts +39 -39
- package/dist/svelte5/hydrate/components/index.d.ts +1 -0
- package/dist/svelte5/hydrate/components-flex/avatar/types.d.ts +16 -15
- package/dist/svelte5/hydrate/components-flex/brand-kit.d.ts +11 -11
- package/dist/svelte5/hydrate/components-flex/button/types.d.ts +43 -40
- package/dist/svelte5/hydrate/components-flex/button-outlined/types.d.ts +17 -14
- package/dist/svelte5/hydrate/components-flex/button-text/types.d.ts +27 -24
- package/dist/svelte5/hydrate/components-flex/clip-copy/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/close-button/types.d.ts +21 -21
- package/dist/svelte5/hydrate/components-flex/code/types.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/count-down/types.d.ts +7 -7
- package/dist/svelte5/hydrate/components-flex/icon/types.d.ts +9 -9
- package/dist/svelte5/hydrate/components-flex/image/types.d.ts +18 -18
- package/dist/svelte5/hydrate/components-flex/layout/types.d.ts +9 -9
- package/dist/svelte5/hydrate/components-flex/list/types.d.ts +18 -18
- package/dist/svelte5/hydrate/components-flex/modal/types.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/multi-column/types.d.ts +19 -19
- package/dist/svelte5/hydrate/components-flex/props.d.ts +56 -56
- package/dist/svelte5/hydrate/components-flex/schemas.d.ts +17 -17
- package/dist/svelte5/hydrate/components-flex/shared/types.d.ts +6 -6
- package/dist/svelte5/hydrate/components-flex/slider/types.d.ts +6 -6
- package/dist/svelte5/hydrate/components-flex/styles.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/text/constants.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/text/styles.d.ts +1 -1
- package/dist/svelte5/hydrate/components-flex/text/types.d.ts +32 -29
- package/dist/svelte5/hydrate/components-flex/text-link/types.d.ts +24 -21
- package/dist/svelte5/hydrate/components-flex/utils/color.d.ts +3 -3
- package/dist/svelte5/hydrate/components-flex/utils/parser.d.ts +2 -2
- package/dist/svelte5/hydrate/components-flex/variants.d.ts +26 -11
- package/dist/svelte5/hydrate/components-flex/youtube/types.d.ts +12 -11
- package/dist/svelte5/hydrate/constants.d.ts +3 -2
- package/dist/svelte5/hydrate/form.d.ts +15 -15
- package/dist/svelte5/hydrate/functions.d.ts +11 -11
- package/dist/svelte5/hydrate/hooks/useClickable.d.ts +3 -3
- package/dist/svelte5/hydrate/hooks/useText.d.ts +2 -2
- package/dist/svelte5/hydrate/index.es.d.ts +6 -5
- package/dist/svelte5/hydrate/index.es.js +16 -20
- package/dist/svelte5/hydrate/logger.d.ts +14 -14
- package/dist/svelte5/hydrate/modal.d.ts +9 -7
- package/dist/svelte5/hydrate/modal.svelte5.d.ts +9 -7
- package/dist/svelte5/hydrate/prop.d.ts +127 -127
- package/dist/svelte5/hydrate/stores.d.ts +16 -16
- package/dist/svelte5/hydrate/types.d.ts +15 -14
- package/dist/svelte5/hydrate/utils.d.ts +36 -36
- package/dist/svelte5/hydrate/widget.d.ts +10 -10
- package/dist/svelte5/index.es.d.ts +6 -5
- package/dist/svelte5/index.es.js +16 -20
- package/dist/svelte5/index.front2.es.js +42 -46
- package/dist/svelte5/index.svelte5.d.ts +6 -5
- package/dist/svelte5/logger.d.ts +14 -14
- package/dist/svelte5/modal.d.ts +9 -7
- package/dist/svelte5/modal.svelte5.d.ts +9 -7
- package/dist/svelte5/prop.d.ts +127 -127
- package/dist/svelte5/stores.d.ts +16 -16
- package/dist/svelte5/types.d.ts +15 -14
- package/dist/svelte5/utils.d.ts +36 -36
- package/dist/svelte5/widget.d.ts +10 -10
- package/dist/templates.cjs.js +0 -1
- package/dist/templates.d.ts +5 -3
- package/dist/types.d.ts +15 -14
- package/dist/utils.d.ts +36 -36
- package/dist/widget.d.ts +10 -10
- package/package.json +3 -3
@@ -3,17 +3,18 @@ export { create, destroyAction, onCreate, onDestroy, showModal, destroy } from "
|
|
3
3
|
export { initialize, finalize } from "./actionEvent.js";
|
4
4
|
export { loadGlobalScript, loadGlobalStyle, applyGlobalCss } from "./script.js";
|
5
5
|
export { getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state } from "./stores.js";
|
6
|
-
export { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction } from "./types.js";
|
6
|
+
export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction } from "./types.js";
|
7
7
|
export { onScroll, onTime } from "./utils.js";
|
8
|
-
export { OnScrollContext, OnScrollFunction, ScrollDirection } from "./utils.js";
|
8
|
+
export type { OnScrollContext, OnScrollFunction, ScrollDirection } from "./utils.js";
|
9
9
|
export { getLogs, getEvents, logger, listenLogger } from "./logger.js";
|
10
|
-
export { LogLevel, Log, Event } from "./logger.js";
|
10
|
+
export type { LogLevel, Log, Event } from "./logger.js";
|
11
|
+
// 以下は互換性のため
|
11
12
|
export { hideOnScroll, hideOnTime, showOnScroll, showOnTime } from "./display-logic.js";
|
12
13
|
export * from "./prop.js";
|
13
14
|
export { showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog } from "./modal.svelte5.js";
|
14
|
-
export { ActionCloseHook, ShowTrigger, CloseTrigger } from "./modal.svelte5.js";
|
15
|
+
export type { ActionCloseHook, ShowTrigger, CloseTrigger } from "./modal.svelte5.js";
|
15
16
|
export { collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable } from "./collection.js";
|
16
|
-
export { CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig } from "./collection.js";
|
17
|
+
export type { CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig } from "./collection.js";
|
17
18
|
export { addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers } from "./form.js";
|
18
19
|
export * as widget from "./widget.js";
|
19
20
|
export { onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES } from "./components/index.js";
|
package/dist/svelte5/index.es.js
CHANGED
@@ -220,7 +220,7 @@ function onScroll(rate, fn) {
|
|
220
220
|
const rates = Array.isArray(rate) ? rate : [rate];
|
221
221
|
const body = window.document.body;
|
222
222
|
const html = window.document.documentElement;
|
223
|
-
const contexts = new Map();
|
223
|
+
const contexts = /* @__PURE__ */ new Map();
|
224
224
|
rates.forEach((rate$1) => {
|
225
225
|
contexts.set(rate$1, {
|
226
226
|
rate: rate$1,
|
@@ -1171,7 +1171,7 @@ const logger = {
|
|
1171
1171
|
const log$1 = cloneToJson({
|
1172
1172
|
level: "info",
|
1173
1173
|
messages,
|
1174
|
-
date: new Date()
|
1174
|
+
date: /* @__PURE__ */ new Date()
|
1175
1175
|
});
|
1176
1176
|
w(window).postMessage({
|
1177
1177
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1185,7 +1185,7 @@ const logger = {
|
|
1185
1185
|
const log$1 = cloneToJson({
|
1186
1186
|
level: "info",
|
1187
1187
|
messages,
|
1188
|
-
date: new Date()
|
1188
|
+
date: /* @__PURE__ */ new Date()
|
1189
1189
|
});
|
1190
1190
|
w(window).postMessage({
|
1191
1191
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1199,7 +1199,7 @@ const logger = {
|
|
1199
1199
|
const log$1 = cloneToJson({
|
1200
1200
|
level: "error",
|
1201
1201
|
messages,
|
1202
|
-
date: new Date()
|
1202
|
+
date: /* @__PURE__ */ new Date()
|
1203
1203
|
});
|
1204
1204
|
w(window).postMessage({
|
1205
1205
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1213,7 +1213,7 @@ const logger = {
|
|
1213
1213
|
const log$1 = cloneToJson({
|
1214
1214
|
level: "warn",
|
1215
1215
|
messages,
|
1216
|
-
date: new Date()
|
1216
|
+
date: /* @__PURE__ */ new Date()
|
1217
1217
|
});
|
1218
1218
|
w(window).postMessage({
|
1219
1219
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1227,7 +1227,7 @@ const logger = {
|
|
1227
1227
|
const log$1 = cloneToJson({
|
1228
1228
|
level: "system",
|
1229
1229
|
messages,
|
1230
|
-
date: new Date()
|
1230
|
+
date: /* @__PURE__ */ new Date()
|
1231
1231
|
});
|
1232
1232
|
w(window).postMessage({
|
1233
1233
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1241,10 +1241,10 @@ const logger = {
|
|
1241
1241
|
const event = values ? {
|
1242
1242
|
name,
|
1243
1243
|
values,
|
1244
|
-
date: new Date()
|
1244
|
+
date: /* @__PURE__ */ new Date()
|
1245
1245
|
} : {
|
1246
1246
|
name,
|
1247
|
-
date: new Date()
|
1247
|
+
date: /* @__PURE__ */ new Date()
|
1248
1248
|
};
|
1249
1249
|
w(window).postMessage({
|
1250
1250
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1286,7 +1286,7 @@ function listenLogger() {
|
|
1286
1286
|
const log$1 = {
|
1287
1287
|
level,
|
1288
1288
|
messages,
|
1289
|
-
date: new Date()
|
1289
|
+
date: /* @__PURE__ */ new Date()
|
1290
1290
|
};
|
1291
1291
|
logs.push(log$1);
|
1292
1292
|
} else if (detail.method === "event") {
|
@@ -1295,10 +1295,10 @@ function listenLogger() {
|
|
1295
1295
|
const karteEvent = values ? {
|
1296
1296
|
name,
|
1297
1297
|
values,
|
1298
|
-
date: new Date()
|
1298
|
+
date: /* @__PURE__ */ new Date()
|
1299
1299
|
} : {
|
1300
1300
|
name,
|
1301
|
-
date: new Date()
|
1301
|
+
date: /* @__PURE__ */ new Date()
|
1302
1302
|
};
|
1303
1303
|
events.push(karteEvent);
|
1304
1304
|
}
|
@@ -1812,11 +1812,7 @@ async function fixFontFaceIssue(href, cssRules) {
|
|
1812
1812
|
const split = href.split("/");
|
1813
1813
|
const stylePath = split.slice(0, split.length - 1).join("/");
|
1814
1814
|
const cssText = cssRule.cssText;
|
1815
|
-
const newCssText = cssText.replace(
|
1816
|
-
// relative paths
|
1817
|
-
/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,
|
1818
|
-
`url("${stylePath}/$4")`
|
1819
|
-
);
|
1815
|
+
const newCssText = cssText.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g, `url("${stylePath}/$4")`);
|
1820
1816
|
if (cssText === newCssText) return;
|
1821
1817
|
fixedRules.push(newCssText);
|
1822
1818
|
});
|
@@ -2786,7 +2782,7 @@ function getMemoryStore(key) {
|
|
2786
2782
|
function setLocalStore(key, value, options = { expire: false }) {
|
2787
2783
|
const item = {
|
2788
2784
|
val: value,
|
2789
|
-
last: new Date().getTime()
|
2785
|
+
last: (/* @__PURE__ */ new Date()).getTime()
|
2790
2786
|
};
|
2791
2787
|
if (options.expire) item.expire = options.expire;
|
2792
2788
|
localStorage.setItem(STORE_LS_KEY_PREFIX + key, JSON.stringify(item));
|
@@ -2811,7 +2807,7 @@ function getLocalStore(key) {
|
|
2811
2807
|
return;
|
2812
2808
|
}
|
2813
2809
|
if (item.val === void 0) return;
|
2814
|
-
const now = new Date().getTime();
|
2810
|
+
const now = (/* @__PURE__ */ new Date()).getTime();
|
2815
2811
|
if (now - item.last > item.expire) {
|
2816
2812
|
localStorage.removeItem(lsKey);
|
2817
2813
|
return;
|
@@ -6579,9 +6575,9 @@ function CountDown($$anchor, $$props) {
|
|
6579
6575
|
let layerId = $$2.prop($$props, "layerId", 8, "");
|
6580
6576
|
useInjectCustomizeCss(props());
|
6581
6577
|
let remainingTime = $$2.mutable_state();
|
6582
|
-
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : new Date();
|
6578
|
+
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : /* @__PURE__ */ new Date();
|
6583
6579
|
function calcRemainingTime(limit) {
|
6584
|
-
return limit - new Date().getTime();
|
6580
|
+
return limit - (/* @__PURE__ */ new Date()).getTime();
|
6585
6581
|
}
|
6586
6582
|
function formatTimeDiff(ms) {
|
6587
6583
|
const diffDay = Math.floor(ms / 1e3 / 60 / 60 / 24);
|
@@ -221,7 +221,7 @@ function onScroll(rate, fn) {
|
|
221
221
|
const rates = Array.isArray(rate) ? rate : [rate];
|
222
222
|
const body = window.document.body;
|
223
223
|
const html = window.document.documentElement;
|
224
|
-
const contexts = new Map();
|
224
|
+
const contexts = /* @__PURE__ */ new Map();
|
225
225
|
rates.forEach((rate$1) => {
|
226
226
|
contexts.set(rate$1, {
|
227
227
|
rate: rate$1,
|
@@ -854,7 +854,7 @@ const state = writable("/");
|
|
854
854
|
*
|
855
855
|
* @public
|
856
856
|
*/
|
857
|
-
function setState
|
857
|
+
function setState(stateId, options) {
|
858
858
|
if (isPreview() && options?.disableInPreview) return;
|
859
859
|
state.set(stateId);
|
860
860
|
}
|
@@ -868,7 +868,7 @@ function setState$1(stateId, options) {
|
|
868
868
|
*
|
869
869
|
* @public
|
870
870
|
*/
|
871
|
-
function getState
|
871
|
+
function getState() {
|
872
872
|
return get(state);
|
873
873
|
}
|
874
874
|
/**
|
@@ -1172,7 +1172,7 @@ const logger = {
|
|
1172
1172
|
const log$1 = cloneToJson({
|
1173
1173
|
level: "info",
|
1174
1174
|
messages,
|
1175
|
-
date: new Date()
|
1175
|
+
date: /* @__PURE__ */ new Date()
|
1176
1176
|
});
|
1177
1177
|
w(window).postMessage({
|
1178
1178
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1186,7 +1186,7 @@ const logger = {
|
|
1186
1186
|
const log$1 = cloneToJson({
|
1187
1187
|
level: "info",
|
1188
1188
|
messages,
|
1189
|
-
date: new Date()
|
1189
|
+
date: /* @__PURE__ */ new Date()
|
1190
1190
|
});
|
1191
1191
|
w(window).postMessage({
|
1192
1192
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1200,7 +1200,7 @@ const logger = {
|
|
1200
1200
|
const log$1 = cloneToJson({
|
1201
1201
|
level: "error",
|
1202
1202
|
messages,
|
1203
|
-
date: new Date()
|
1203
|
+
date: /* @__PURE__ */ new Date()
|
1204
1204
|
});
|
1205
1205
|
w(window).postMessage({
|
1206
1206
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1214,7 +1214,7 @@ const logger = {
|
|
1214
1214
|
const log$1 = cloneToJson({
|
1215
1215
|
level: "warn",
|
1216
1216
|
messages,
|
1217
|
-
date: new Date()
|
1217
|
+
date: /* @__PURE__ */ new Date()
|
1218
1218
|
});
|
1219
1219
|
w(window).postMessage({
|
1220
1220
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1228,7 +1228,7 @@ const logger = {
|
|
1228
1228
|
const log$1 = cloneToJson({
|
1229
1229
|
level: "system",
|
1230
1230
|
messages,
|
1231
|
-
date: new Date()
|
1231
|
+
date: /* @__PURE__ */ new Date()
|
1232
1232
|
});
|
1233
1233
|
w(window).postMessage({
|
1234
1234
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1242,10 +1242,10 @@ const logger = {
|
|
1242
1242
|
const event = values ? {
|
1243
1243
|
name,
|
1244
1244
|
values,
|
1245
|
-
date: new Date()
|
1245
|
+
date: /* @__PURE__ */ new Date()
|
1246
1246
|
} : {
|
1247
1247
|
name,
|
1248
|
-
date: new Date()
|
1248
|
+
date: /* @__PURE__ */ new Date()
|
1249
1249
|
};
|
1250
1250
|
w(window).postMessage({
|
1251
1251
|
type: "KARTE-ACTION-LOGGER",
|
@@ -1287,7 +1287,7 @@ function listenLogger() {
|
|
1287
1287
|
const log$1 = {
|
1288
1288
|
level,
|
1289
1289
|
messages,
|
1290
|
-
date: new Date()
|
1290
|
+
date: /* @__PURE__ */ new Date()
|
1291
1291
|
};
|
1292
1292
|
logs.push(log$1);
|
1293
1293
|
} else if (detail.method === "event") {
|
@@ -1296,10 +1296,10 @@ function listenLogger() {
|
|
1296
1296
|
const karteEvent = values ? {
|
1297
1297
|
name,
|
1298
1298
|
values,
|
1299
|
-
date: new Date()
|
1299
|
+
date: /* @__PURE__ */ new Date()
|
1300
1300
|
} : {
|
1301
1301
|
name,
|
1302
|
-
date: new Date()
|
1302
|
+
date: /* @__PURE__ */ new Date()
|
1303
1303
|
};
|
1304
1304
|
events.push(karteEvent);
|
1305
1305
|
}
|
@@ -1343,7 +1343,7 @@ const publish_edge = (topic, values) => {
|
|
1343
1343
|
/** @internal */
|
1344
1344
|
const initialize = (setting) => {
|
1345
1345
|
const newSetting = setSetting(setting);
|
1346
|
-
if (newSetting.initialState) setState
|
1346
|
+
if (newSetting.initialState) setState(newSetting.initialState);
|
1347
1347
|
setOpened(true);
|
1348
1348
|
setClosed(false);
|
1349
1349
|
return () => finalize();
|
@@ -1507,7 +1507,7 @@ const DEFAULT_COLLECTION_ENDPOINT = "https://action-table.karte.io/collection";
|
|
1507
1507
|
*
|
1508
1508
|
* @public
|
1509
1509
|
*/
|
1510
|
-
function collection
|
1510
|
+
function collection(config) {
|
1511
1511
|
const endpoint = config.collection_endpoint || DEFAULT_COLLECTION_ENDPOINT;
|
1512
1512
|
const api_key = config.api_key;
|
1513
1513
|
const table = config.table;
|
@@ -1568,7 +1568,7 @@ const loadActionTableRow = async (config, data, api_key, collection_endpoint) =>
|
|
1568
1568
|
if (defaultValue != null) return resolve(defaultValue);
|
1569
1569
|
return reject("key is not found.");
|
1570
1570
|
}
|
1571
|
-
return collection
|
1571
|
+
return collection({
|
1572
1572
|
collection_endpoint,
|
1573
1573
|
api_key,
|
1574
1574
|
table: config.query.table_name
|
@@ -1605,7 +1605,7 @@ const loadActionTableRows = async (config, data, api_key, collection_endpoint) =
|
|
1605
1605
|
if (defaultValue != null) return resolve(defaultValue);
|
1606
1606
|
return reject("key is not found.");
|
1607
1607
|
}
|
1608
|
-
return collection
|
1608
|
+
return collection({
|
1609
1609
|
collection_endpoint,
|
1610
1610
|
api_key,
|
1611
1611
|
table: config.query.table_name
|
@@ -1641,7 +1641,7 @@ const loadActionTableQuery = async (config, data, api_key, collection_endpoint)
|
|
1641
1641
|
if (defaultValue != null) return resolve(defaultValue);
|
1642
1642
|
return reject("key is not found.");
|
1643
1643
|
}
|
1644
|
-
return collection
|
1644
|
+
return collection({
|
1645
1645
|
collection_endpoint,
|
1646
1646
|
api_key,
|
1647
1647
|
table: config.query.table_name
|
@@ -1721,7 +1721,7 @@ const handleState = (event) => {
|
|
1721
1721
|
oldState: event.detail.from ?? "",
|
1722
1722
|
newState: event.detail.to ?? ""
|
1723
1723
|
});
|
1724
|
-
setState
|
1724
|
+
setState(event.detail.to, { disableInPreview: event.detail.disableInPreview });
|
1725
1725
|
}
|
1726
1726
|
};
|
1727
1727
|
/**
|
@@ -1813,11 +1813,7 @@ async function fixFontFaceIssue(href, cssRules) {
|
|
1813
1813
|
const split = href.split("/");
|
1814
1814
|
const stylePath = split.slice(0, split.length - 1).join("/");
|
1815
1815
|
const cssText = cssRule.cssText;
|
1816
|
-
const newCssText = cssText.replace(
|
1817
|
-
// relative paths
|
1818
|
-
/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g,
|
1819
|
-
`url("${stylePath}/$4")`
|
1820
|
-
);
|
1816
|
+
const newCssText = cssText.replace(/url\s*\(\s*['"]?(?!((\/)|((?:https?:)?\/\/)|(?:data:?:)))([^'")]+)['"]?\s*\)/g, `url("${stylePath}/$4")`);
|
1821
1817
|
if (cssText === newCssText) return;
|
1822
1818
|
fixedRules.push(newCssText);
|
1823
1819
|
});
|
@@ -1905,14 +1901,14 @@ function createModal(App, options = {
|
|
1905
1901
|
if (trigger !== "auto" && !hasAlreadySentMessageCloseEvent) {
|
1906
1902
|
options.send("message_close", {
|
1907
1903
|
trigger,
|
1908
|
-
state: getState
|
1904
|
+
state: getState()
|
1909
1905
|
});
|
1910
1906
|
hasAlreadySentMessageCloseEvent = true;
|
1911
1907
|
}
|
1912
1908
|
sendErrorIfMessageOpenEventNotSent();
|
1913
1909
|
options.send("_message_state_changed", {
|
1914
1910
|
trigger,
|
1915
|
-
oldState: getState
|
1911
|
+
oldState: getState(),
|
1916
1912
|
newState: ""
|
1917
1913
|
});
|
1918
1914
|
setOpened(false);
|
@@ -1949,14 +1945,14 @@ function createModal(App, options = {
|
|
1949
1945
|
if (!result.success) return;
|
1950
1946
|
}
|
1951
1947
|
if (!hasAlreadySentMessageOpenEvent) {
|
1952
|
-
options.send("message_open", { state: getState
|
1948
|
+
options.send("message_open", { state: getState() });
|
1953
1949
|
hasAlreadySentMessageOpenEvent = true;
|
1954
1950
|
}
|
1955
1951
|
sendErrorIfMessageOpenEventNotSent();
|
1956
1952
|
options.send("_message_state_changed", {
|
1957
1953
|
trigger,
|
1958
1954
|
oldState: "",
|
1959
|
-
newState: getState
|
1955
|
+
newState: getState()
|
1960
1956
|
});
|
1961
1957
|
setOpened(true);
|
1962
1958
|
setClosed(false);
|
@@ -2614,14 +2610,14 @@ function sendAnswers() {
|
|
2614
2610
|
//#region src/widget.ts
|
2615
2611
|
var widget_exports = {};
|
2616
2612
|
__export(widget_exports, {
|
2617
|
-
collection: () => collection,
|
2618
|
-
getState: () => getState,
|
2613
|
+
collection: () => collection$1,
|
2614
|
+
getState: () => getState$1,
|
2619
2615
|
getVal: () => getVal,
|
2620
2616
|
hide: () => closeAction$1,
|
2621
2617
|
method: () => method,
|
2622
2618
|
on: () => on,
|
2623
2619
|
onChangeVal: () => onChangeVal,
|
2624
|
-
setState: () => setState,
|
2620
|
+
setState: () => setState$1,
|
2625
2621
|
setVal: () => setVal,
|
2626
2622
|
show: () => showAction$1,
|
2627
2623
|
storage: () => storage
|
@@ -2738,10 +2734,10 @@ function on(name, callback$5) {
|
|
2738
2734
|
*
|
2739
2735
|
* @public
|
2740
2736
|
*/
|
2741
|
-
function setState(stateId) {
|
2737
|
+
function setState$1(stateId) {
|
2742
2738
|
const stateIds = getStates();
|
2743
2739
|
if (stateIds.includes(stateId)) return;
|
2744
|
-
setState
|
2740
|
+
setState(stateId);
|
2745
2741
|
}
|
2746
2742
|
/**
|
2747
2743
|
* 現在のステートを取得する
|
@@ -2750,8 +2746,8 @@ function setState(stateId) {
|
|
2750
2746
|
*
|
2751
2747
|
* @public
|
2752
2748
|
*/
|
2753
|
-
function getState() {
|
2754
|
-
return getState
|
2749
|
+
function getState$1() {
|
2750
|
+
return getState();
|
2755
2751
|
}
|
2756
2752
|
/**
|
2757
2753
|
* ページ内の変数を設定する
|
@@ -2787,7 +2783,7 @@ function getMemoryStore(key) {
|
|
2787
2783
|
function setLocalStore(key, value, options = { expire: false }) {
|
2788
2784
|
const item = {
|
2789
2785
|
val: value,
|
2790
|
-
last: new Date().getTime()
|
2786
|
+
last: (/* @__PURE__ */ new Date()).getTime()
|
2791
2787
|
};
|
2792
2788
|
if (options.expire) item.expire = options.expire;
|
2793
2789
|
localStorage.setItem(STORE_LS_KEY_PREFIX + key, JSON.stringify(item));
|
@@ -2812,7 +2808,7 @@ function getLocalStore(key) {
|
|
2812
2808
|
return;
|
2813
2809
|
}
|
2814
2810
|
if (item.val === void 0) return;
|
2815
|
-
const now = new Date().getTime();
|
2811
|
+
const now = (/* @__PURE__ */ new Date()).getTime();
|
2816
2812
|
if (now - item.last > item.expire) {
|
2817
2813
|
localStorage.removeItem(lsKey);
|
2818
2814
|
return;
|
@@ -2836,10 +2832,10 @@ const storage = {
|
|
2836
2832
|
*
|
2837
2833
|
* @public
|
2838
2834
|
*/
|
2839
|
-
function collection(table) {
|
2835
|
+
function collection$1(table) {
|
2840
2836
|
const systemConfig = getSystem();
|
2841
2837
|
const collectionName = table.replace(/^v2\//, "");
|
2842
|
-
return collection
|
2838
|
+
return collection({
|
2843
2839
|
api_key: systemConfig.apiKey || "mock",
|
2844
2840
|
collection_endpoint: systemConfig.collection_endpoint,
|
2845
2841
|
table: collectionName
|
@@ -3307,7 +3303,7 @@ const toCssOverflow = (p) => {
|
|
3307
3303
|
//#endregion
|
3308
3304
|
//#region src/functions.ts
|
3309
3305
|
function _moveTo(to) {
|
3310
|
-
const currentState = getState
|
3306
|
+
const currentState = getState();
|
3311
3307
|
window.dispatchEvent(new CustomEvent(ACTION_CHANGE_STATE_EVENT, { detail: {
|
3312
3308
|
from: currentState,
|
3313
3309
|
to,
|
@@ -3328,7 +3324,7 @@ const linkTo = (to, targetBlank = true, decode = false) => () => {
|
|
3328
3324
|
async function _send() {
|
3329
3325
|
send_event("message_click", {
|
3330
3326
|
url: decodedTo,
|
3331
|
-
state: getState
|
3327
|
+
state: getState()
|
3332
3328
|
});
|
3333
3329
|
await sleep(450);
|
3334
3330
|
}
|
@@ -6580,9 +6576,9 @@ function CountDown($$anchor, $$props) {
|
|
6580
6576
|
let layerId = $$3.prop($$props, "layerId", 8, "");
|
6581
6577
|
useInjectCustomizeCss(props());
|
6582
6578
|
let remainingTime = $$3.mutable_state();
|
6583
|
-
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : new Date();
|
6579
|
+
let timeLimit = props().timeLimit ? new Date(props().timeLimit) : /* @__PURE__ */ new Date();
|
6584
6580
|
function calcRemainingTime(limit) {
|
6585
|
-
return limit - new Date().getTime();
|
6581
|
+
return limit - (/* @__PURE__ */ new Date()).getTime();
|
6586
6582
|
}
|
6587
6583
|
function formatTimeDiff(ms) {
|
6588
6584
|
const diffDay = Math.floor(ms / 1e3 / 60 / 60 / 24);
|
@@ -7138,7 +7134,7 @@ __export(index_svelte5_exports, {
|
|
7138
7134
|
buttonPropsDefault: () => buttonPropsDefault,
|
7139
7135
|
close: () => close,
|
7140
7136
|
closeAction: () => closeAction,
|
7141
|
-
collection: () => collection
|
7137
|
+
collection: () => collection,
|
7142
7138
|
create: () => create,
|
7143
7139
|
createApp: () => createApp,
|
7144
7140
|
createFog: () => createFog,
|
@@ -7161,7 +7157,7 @@ __export(index_svelte5_exports, {
|
|
7161
7157
|
getEventHandlers: () => getEventHandlers,
|
7162
7158
|
getEvents: () => getEvents,
|
7163
7159
|
getLogs: () => getLogs,
|
7164
|
-
getState: () => getState
|
7160
|
+
getState: () => getState,
|
7165
7161
|
getStates: () => getStates,
|
7166
7162
|
getSystem: () => getSystem,
|
7167
7163
|
getTextLinkThemeStyles: () => getTextLinkThemeStyles,
|
@@ -7196,7 +7192,7 @@ __export(index_svelte5_exports, {
|
|
7196
7192
|
sendAnswers: () => sendAnswers,
|
7197
7193
|
setEventHandlers: () => setEventHandlers,
|
7198
7194
|
setSetting: () => setSetting,
|
7199
|
-
setState: () => setState
|
7195
|
+
setState: () => setState,
|
7200
7196
|
setVariables: () => setVariables,
|
7201
7197
|
show: () => show,
|
7202
7198
|
showAction: () => showAction,
|
@@ -3,17 +3,18 @@ export { create, destroyAction, onCreate, onDestroy, showModal, destroy } from "
|
|
3
3
|
export { initialize, finalize } from "./actionEvent.js";
|
4
4
|
export { loadGlobalScript, loadGlobalStyle, applyGlobalCss } from "./script.js";
|
5
5
|
export { getState, setState, getStates, isOpened, getVariables, setVariables, resetVariables, getEventHandlers, setEventHandlers, resetEventHandlers, getSystem, setSetting, eventHandlers, variables, formData, state } from "./stores.js";
|
6
|
-
export { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction } from "./types.js";
|
6
|
+
export type { SystemConfig, ActionVariables, ActionEventHandler, ActionProps, ActionOptions, ActionHook, ActionHookLog, ActionChangeStateHook, SendFunction, PublishFunction } from "./types.js";
|
7
7
|
export { onScroll, onTime } from "./utils.js";
|
8
|
-
export { OnScrollContext, OnScrollFunction, ScrollDirection } from "./utils.js";
|
8
|
+
export type { OnScrollContext, OnScrollFunction, ScrollDirection } from "./utils.js";
|
9
9
|
export { getLogs, getEvents, logger, listenLogger } from "./logger.js";
|
10
|
-
export { LogLevel, Log, Event } from "./logger.js";
|
10
|
+
export type { LogLevel, Log, Event } from "./logger.js";
|
11
|
+
// 以下は互換性のため
|
11
12
|
export { hideOnScroll, hideOnTime, showOnScroll, showOnTime } from "./display-logic.js";
|
12
13
|
export * from "./prop.js";
|
13
14
|
export { showAction, closeAction, loadStyle, applyCss, onShow, onClose, onChangeState, getActionRoot, getCssVariables, show, close, ensureModalRoot, createApp, createFog } from "./modal.svelte5.js";
|
14
|
-
export { ActionCloseHook, ShowTrigger, CloseTrigger } from "./modal.svelte5.js";
|
15
|
+
export type { ActionCloseHook, ShowTrigger, CloseTrigger } from "./modal.svelte5.js";
|
15
16
|
export { collection, loadActionTableRow, loadActionTableRows, loadActionTableQuery, loadActionTable } from "./collection.js";
|
16
|
-
export { CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig } from "./collection.js";
|
17
|
+
export type { CollectionConfig, ActionTableRowRequestConfig, ActionTableRowsRequestConfig, ActionTableQueryRequestConfig, ActionTableRequestConfig } from "./collection.js";
|
17
18
|
export { addChoiceAnswer, addFreeAnswer, removeAnswer, getAnsweredQuestion, getAnsweredQuestionIds, sendAnswer, sendAnswers } from "./form.js";
|
18
19
|
export * as widget from "./widget.js";
|
19
20
|
export { onMount, onDestory, beforeUpdate, afterUpdate, tick, LAYOUT_COMPONENT_NAMES } from "./components/index.js";
|
package/dist/svelte5/logger.d.ts
CHANGED
@@ -5,15 +5,15 @@
|
|
5
5
|
export type LogLevel = "info" | "error" | "warn" | "system";
|
6
6
|
/** @internal */
|
7
7
|
export type Log = {
|
8
|
-
level: LogLevel
|
9
|
-
messages: any
|
10
|
-
date?: Date
|
8
|
+
level: LogLevel;
|
9
|
+
messages: any;
|
10
|
+
date?: Date;
|
11
11
|
};
|
12
12
|
/** @internal */
|
13
13
|
export type Event = {
|
14
|
-
name: string
|
15
|
-
values?: any
|
16
|
-
date?: Date
|
14
|
+
name: string;
|
15
|
+
values?: any;
|
16
|
+
date?: Date;
|
17
17
|
};
|
18
18
|
/** @internal */
|
19
19
|
export declare function getLogs(): Log[];
|
@@ -25,14 +25,14 @@ export declare function getEvents(): Event[];
|
|
25
25
|
* @internal
|
26
26
|
*/
|
27
27
|
export declare const logger: {
|
28
|
-
info: (...messages: any[]) => void
|
29
|
-
log: (...messages: any[]) => void
|
30
|
-
error: (...messages: any[]) => void
|
31
|
-
warn: (...messages: any[]) => void
|
32
|
-
system: (...messages: any[]) => void
|
33
|
-
event: (name: string, values?: any) => void
|
34
|
-
clear: () => void
|
35
|
-
clearEvents: () => void
|
28
|
+
info: (...messages: any[]) => void;
|
29
|
+
log: (...messages: any[]) => void;
|
30
|
+
error: (...messages: any[]) => void;
|
31
|
+
warn: (...messages: any[]) => void;
|
32
|
+
system: (...messages: any[]) => void;
|
33
|
+
event: (name: string, values?: any) => void;
|
34
|
+
clear: () => void;
|
35
|
+
clearEvents: () => void;
|
36
36
|
};
|
37
37
|
/**
|
38
38
|
* メッセージを実行ログに表示する
|
package/dist/svelte5/modal.d.ts
CHANGED
@@ -92,8 +92,9 @@ export declare function applyCss(css: string): Promise<HTMLStyleElement>;
|
|
92
92
|
* @public
|
93
93
|
*/
|
94
94
|
export declare function loadStyle(href: string): Promise<void>;
|
95
|
+
// @internal
|
95
96
|
export declare function getCssVariables(data: {
|
96
|
-
[key: string]: string | number
|
97
|
+
[key: string]: string | number;
|
97
98
|
}): string;
|
98
99
|
/**
|
99
100
|
* アクションのルートの DOM 要素を取得する
|
@@ -111,6 +112,7 @@ export declare function createModal<
|
|
111
112
|
>(App: typeof SvelteComponentTyped, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
|
112
113
|
/** @internal */
|
113
114
|
export declare function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement;
|
115
|
+
// -------- The following codes are deprecated --------
|
114
116
|
/**
|
115
117
|
* 非推奨
|
116
118
|
*
|
@@ -204,11 +206,11 @@ export declare function createApp<
|
|
204
206
|
* @internal
|
205
207
|
*/
|
206
208
|
export declare function createFog({ color, opacity, zIndex, onclick }: {
|
207
|
-
color?: string
|
208
|
-
opacity?: string
|
209
|
-
zIndex?: number
|
210
|
-
onclick: () => void
|
209
|
+
color?: string;
|
210
|
+
opacity?: string;
|
211
|
+
zIndex?: number;
|
212
|
+
onclick: () => void;
|
211
213
|
}): {
|
212
|
-
fog: HTMLElement | null
|
213
|
-
close: () => void
|
214
|
+
fog: HTMLElement | null;
|
215
|
+
close: () => void;
|
214
216
|
};
|
@@ -92,8 +92,9 @@ export declare function applyCss(css: string): Promise<HTMLStyleElement>;
|
|
92
92
|
* @public
|
93
93
|
*/
|
94
94
|
export declare function loadStyle(href: string): Promise<void>;
|
95
|
+
// @internal
|
95
96
|
export declare function getCssVariables(data: {
|
96
|
-
[key: string]: string | number
|
97
|
+
[key: string]: string | number;
|
97
98
|
}): string;
|
98
99
|
/**
|
99
100
|
* アクションのルートの DOM 要素を取得する
|
@@ -111,6 +112,7 @@ export declare function createModal<
|
|
111
112
|
>(App: typeof SvelteComponentTyped, options?: ActionOptions<Props, Variables & ActionVariables, VariablesQuery>): () => void;
|
112
113
|
/** @internal */
|
113
114
|
export declare function ensureActionRoot(useShadow?: boolean): ShadowRoot | HTMLElement;
|
115
|
+
// -------- The following codes are deprecated --------
|
114
116
|
/**
|
115
117
|
* 非推奨
|
116
118
|
*
|
@@ -204,11 +206,11 @@ export declare function createApp<
|
|
204
206
|
* @internal
|
205
207
|
*/
|
206
208
|
export declare function createFog({ color, opacity, zIndex, onclick }: {
|
207
|
-
color?: string
|
208
|
-
opacity?: string
|
209
|
-
zIndex?: number
|
210
|
-
onclick: () => void
|
209
|
+
color?: string;
|
210
|
+
opacity?: string;
|
211
|
+
zIndex?: number;
|
212
|
+
onclick: () => void;
|
211
213
|
}): {
|
212
|
-
fog: HTMLElement | null
|
213
|
-
close: () => void
|
214
|
+
fog: HTMLElement | null;
|
215
|
+
close: () => void;
|
214
216
|
};
|