@plaidev/karte-action-sdk 1.1.263 → 1.1.264
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 +50 -328
- package/dist/hydrate/index.es.js +73 -50
- package/dist/icons.d.ts +6 -111
- package/dist/index.es.d.ts +50 -328
- package/dist/index.es.js +73 -50
- package/dist/templates.cjs.d.ts +1 -1
- package/dist/templates.d.ts +1 -1
- package/package.json +7 -7
package/dist/index.es.js
CHANGED
@@ -725,27 +725,29 @@ const Fonts = [
|
|
725
725
|
'Noto Sans JP',
|
726
726
|
'Sawarabi Gothic',
|
727
727
|
'Zen Kaku Gothic New',
|
728
|
-
'Zen Maru Gothic',
|
729
|
-
'Shippori Mincho',
|
730
|
-
'M PLUS Rounded 1c',
|
731
|
-
'M PLUS 1p',
|
732
|
-
'Kosugi Maru',
|
733
|
-
'Kosugi',
|
734
728
|
'BIZ UDPGothic',
|
729
|
+
'Open Sans',
|
730
|
+
'M PLUS 1p',
|
731
|
+
'M PLUS Rounded 1c',
|
732
|
+
'Kiwi Maru',
|
733
|
+
'Zen Maru Gothic',
|
735
734
|
'Noto Serif JP',
|
735
|
+
'Shippori Mincho',
|
736
736
|
'BIZ UDPMincho',
|
737
737
|
'Roboto',
|
738
|
-
'Open Sans',
|
739
|
-
'Montserrat',
|
740
738
|
'Lato',
|
741
739
|
'Poppins',
|
740
|
+
'Lora',
|
741
|
+
// 廃止予定
|
742
742
|
'Raleway',
|
743
|
+
'Montserrat',
|
743
744
|
'Nunito',
|
744
745
|
'Playfair Display',
|
745
746
|
'Merriweather',
|
746
|
-
'Lora',
|
747
747
|
'Libre Baskerville',
|
748
748
|
'EB Garamond',
|
749
|
+
'Kosugi Maru',
|
750
|
+
'Kosugi',
|
749
751
|
];
|
750
752
|
/** @internal */
|
751
753
|
const Justifies = ['flex-start', 'center', 'flex-end'];
|
@@ -11686,14 +11688,13 @@ const FONT_FAMILY_VARIANT = {
|
|
11686
11688
|
noto_sans_jp: createFontVariant('Noto Sans JP', 'ja', 'kaku'),
|
11687
11689
|
sawarabi_gothic: createFontVariant('Sawarabi Gothic', 'ja', 'kaku'),
|
11688
11690
|
zen_kaku_gothic: createFontVariant('Zen Kaku Gothic', 'ja', 'kaku'),
|
11689
|
-
kosugi: createFontVariant('Kosugi', 'ja', 'kaku'),
|
11690
11691
|
biz_udp_gothic: createFontVariant('BIZ UDPGothic', 'ja', 'kaku'),
|
11691
11692
|
open_sans: createFontVariant('Open Sans', 'ja', 'kaku'),
|
11692
11693
|
sans_serif: createFontVariant('sans-serif', 'ja', 'kaku'),
|
11693
|
-
m_plus_rounded_1c: createFontVariant('M PLUS Rounded 1c', 'ja', 'maru'),
|
11694
11694
|
m_plus_1p: createFontVariant('M PLUS 1p', 'ja', 'maru'),
|
11695
|
+
m_plus_rounded_1c: createFontVariant('M PLUS Rounded 1c', 'ja', 'maru'),
|
11696
|
+
kiwi_maru: createFontVariant('Kiwi Maru', 'ja', 'maru'),
|
11695
11697
|
zen_maru_gothic: createFontVariant('Zen Maru Gothic', 'ja', 'maru'),
|
11696
|
-
kosugi_maru: createFontVariant('Kosugi Maru', 'ja', 'maru'),
|
11697
11698
|
noto_serif_jp: createFontVariant('Noto Serif JP', 'ja', 'min'),
|
11698
11699
|
shippori_micho: createFontVariant('Shippori Mincho', 'ja', 'min'),
|
11699
11700
|
biz_udp_micho: createFontVariant('BIZ UDPMincho', 'ja', 'min'),
|
@@ -11701,11 +11702,11 @@ const FONT_FAMILY_VARIANT = {
|
|
11701
11702
|
roboto: createFontVariant('Roboto', 'en', 'kaku'),
|
11702
11703
|
lato: createFontVariant('Lato', 'en', 'kaku'),
|
11703
11704
|
poppins: createFontVariant('Poppins', 'en', 'kaku'),
|
11704
|
-
raleway: createFontVariant('Raleway', 'en', 'kaku'),
|
11705
|
-
nunito: createFontVariant('Nunito', 'en', 'kaku'),
|
11706
11705
|
lora: createFontVariant('Lora', 'en', 'kaku'),
|
11707
11706
|
monospace: createFontVariant('monospace', 'en', 'kaku'),
|
11708
11707
|
system_ui: createFontVariant('system-ui', 'en', 'kaku'),
|
11708
|
+
// raleway: createFontVariant('Raleway', 'en', 'kaku'),
|
11709
|
+
// nunito: createFontVariant('Nunito', 'en', 'kaku'),
|
11709
11710
|
};
|
11710
11711
|
const FONT_FAMILY_VARIANTS = toVariantArray(FONT_FAMILY_VARIANT);
|
11711
11712
|
const FONT_FAMILY_VARIANT_GROUPS = [
|
@@ -14037,7 +14038,7 @@ const getPropStyles = (callback) => {
|
|
14037
14038
|
};
|
14038
14039
|
};
|
14039
14040
|
|
14040
|
-
const
|
14041
|
+
const callback$4 = ({ brandKit }) => ({
|
14041
14042
|
default: {
|
14042
14043
|
variant: 'normal',
|
14043
14044
|
backgroundColor: brandKit.color_brand,
|
@@ -14103,7 +14104,8 @@ const getButtonThemeStyles = getPropStyles(({ brandKit }) => ({
|
|
14103
14104
|
backgroundColor: 'rgba(255, 255, 255, 0)',
|
14104
14105
|
color: brandKit.color_danger,
|
14105
14106
|
},
|
14106
|
-
})
|
14107
|
+
});
|
14108
|
+
const getButtonThemeStyles = getPropStyles(callback$4);
|
14107
14109
|
const BUTTON_SIZE_STYLES = {
|
14108
14110
|
extra_small: {
|
14109
14111
|
height: '32px',
|
@@ -14138,13 +14140,22 @@ const BUTTON_SIZE_STYLES = {
|
|
14138
14140
|
};
|
14139
14141
|
const BUTTON_ROUND_STYLES = {
|
14140
14142
|
none: {
|
14141
|
-
|
14143
|
+
borderTopLeftRadius: 0,
|
14144
|
+
borderTopRightRadius: 0,
|
14145
|
+
borderBottomLeftRadius: 0,
|
14146
|
+
borderBottomRightRadius: 0,
|
14142
14147
|
},
|
14143
14148
|
default: {
|
14144
|
-
|
14149
|
+
borderTopLeftRadius: '4px',
|
14150
|
+
borderTopRightRadius: '4px',
|
14151
|
+
borderBottomLeftRadius: '4px',
|
14152
|
+
borderBottomRightRadius: '4px',
|
14145
14153
|
},
|
14146
14154
|
fulled: {
|
14147
|
-
|
14155
|
+
borderTopLeftRadius: '9999px',
|
14156
|
+
borderTopRightRadius: '9999px',
|
14157
|
+
borderBottomLeftRadius: '9999px',
|
14158
|
+
borderBottomRightRadius: '9999px',
|
14148
14159
|
},
|
14149
14160
|
};
|
14150
14161
|
const BUTTON_WRAP_STYLES = {
|
@@ -14208,7 +14219,7 @@ function add_css$k(target) {
|
|
14208
14219
|
append_styles(target, "svelte-brd6e9", ".button.svelte-brd6e9{display:inline-flex;gap:0.8em;align-items:center;justify-content:center;text-decoration:none;outline:0;border-width:1px;border-style:solid;line-height:1.5;transition:background-color 0.12s, border-color 0.12s, color 0.12s;cursor:pointer;color:var(--color);border-color:var(--border-color);background-color:var(--bg-color)}.button.svelte-brd6e9:hover{background-color:var(--hover-bg-color);border-color:var(--hover-border-color)}.button-icon.svelte-brd6e9{display:flex;align-items:center;justify-content:center;margin-left:-0.2em;margin-right:-0.2em}");
|
14209
14220
|
}
|
14210
14221
|
|
14211
|
-
// (
|
14222
|
+
// (91:2) {#if props.isIcon && props.iconVariant}
|
14212
14223
|
function create_if_block$7(ctx) {
|
14213
14224
|
let div;
|
14214
14225
|
let icon;
|
@@ -14264,7 +14275,7 @@ function create_if_block$7(ctx) {
|
|
14264
14275
|
};
|
14265
14276
|
}
|
14266
14277
|
|
14267
|
-
// (
|
14278
|
+
// (82:0) <svelte:element {...attributes} this={element} class="button" style={style} data-layer-id={layerId} data-variant={variant} on:click={handleClick} >
|
14268
14279
|
function create_dynamic_element$9(ctx) {
|
14269
14280
|
let svelte_element;
|
14270
14281
|
let t0;
|
@@ -14490,7 +14501,14 @@ function instance$m($$self, $$props, $$invalidate) {
|
|
14490
14501
|
width: props.width,
|
14491
14502
|
fontWeight: props.fontWeight ?? 'bold',
|
14492
14503
|
...BUTTON_WRAP_STYLES[props.wrap ?? buttonPropsDefault.wrap],
|
14493
|
-
...
|
14504
|
+
...props.borderTopLeftRadius
|
14505
|
+
? {
|
14506
|
+
borderTopLeftRadius: props.borderTopLeftRadius,
|
14507
|
+
borderTopRightRadius: props.borderTopRightRadius,
|
14508
|
+
borderBottomLeftRadius: props.borderBottomLeftRadius,
|
14509
|
+
borderBottomRightRadius: props.borderBottomRightRadius
|
14510
|
+
}
|
14511
|
+
: BUTTON_ROUND_STYLES[props.round ?? buttonPropsDefault.round],
|
14494
14512
|
...props.iconAngle
|
14495
14513
|
? { flexDirection: props.iconAngle }
|
14496
14514
|
: {},
|
@@ -14567,7 +14585,7 @@ const BUTTON_OUTLINED_SIZE_STYLES = {
|
|
14567
14585
|
fontSize: '16px',
|
14568
14586
|
},
|
14569
14587
|
};
|
14570
|
-
const
|
14588
|
+
const callback$3 = ({ brandKit }) => ({
|
14571
14589
|
default: {
|
14572
14590
|
color: brandKit.color_brand,
|
14573
14591
|
borderColor: brandKit.color_brand,
|
@@ -14603,7 +14621,8 @@ const getButtonOutlinedThemeStyles = getPropStyles(({ brandKit }) => ({
|
|
14603
14621
|
borderColor: '#FFFFFF',
|
14604
14622
|
backgroundColor: '#000000',
|
14605
14623
|
},
|
14606
|
-
})
|
14624
|
+
});
|
14625
|
+
const getButtonOutlinedThemeStyles = getPropStyles(callback$3);
|
14607
14626
|
const BUTTON_OUTLINED_ROUND_STYLES = {
|
14608
14627
|
none: {
|
14609
14628
|
borderRadius: 0,
|
@@ -14933,7 +14952,7 @@ const BUTTON_TEXT_SIZE_STYLES = {
|
|
14933
14952
|
fontSize: '16px',
|
14934
14953
|
},
|
14935
14954
|
};
|
14936
|
-
const
|
14955
|
+
const callback$2 = ({ brandKit }) => ({
|
14937
14956
|
default: {
|
14938
14957
|
backgroundColor: '#f3f4f6',
|
14939
14958
|
color: brandKit.color_brand,
|
@@ -14966,7 +14985,8 @@ const getButtonTextThemeStyles = getPropStyles(({ brandKit }) => ({
|
|
14966
14985
|
backgroundColor: '#f3f4f6',
|
14967
14986
|
color: brandKit.color_white,
|
14968
14987
|
},
|
14969
|
-
})
|
14988
|
+
});
|
14989
|
+
const getButtonTextThemeStyles = getPropStyles(callback$2);
|
14970
14990
|
|
14971
14991
|
/* src/components-flex/button-text/ButtonText.svelte generated by Svelte v3.53.1 */
|
14972
14992
|
|
@@ -15269,29 +15289,13 @@ const BUTTON_TEXT_THEME = {
|
|
15269
15289
|
white: 'White',
|
15270
15290
|
};
|
15271
15291
|
|
15272
|
-
const CLOSE_BUTTON_PLACEMENT = {
|
15273
|
-
topRight: 'topRight',
|
15274
|
-
topLeft: 'topLeft',
|
15275
|
-
bottomRight: 'bottomRight',
|
15276
|
-
bottomLeft: 'bottomLeft',
|
15277
|
-
};
|
15278
|
-
const CLOSE_BUTTON_ROUND = {
|
15279
|
-
default: 'デフォルト',
|
15280
|
-
none: 'なし',
|
15281
|
-
fulled: '円形',
|
15282
|
-
};
|
15283
|
-
const CLOSE_BUTTON_LABEL_PLACEMENT = {
|
15284
|
-
right: 'right',
|
15285
|
-
left: 'left',
|
15286
|
-
};
|
15287
|
-
|
15288
15292
|
/* src/components-flex/close-button/CloseButton.svelte generated by Svelte v3.53.1 */
|
15289
15293
|
|
15290
15294
|
function add_css$h(target) {
|
15291
15295
|
append_styles(target, "svelte-3133h2", ".close-button.svelte-3133h2.svelte-3133h2{display:inline-flex;align-items:center;justify-content:center;align-self:center;gap:8px;border-radius:100%;background:none;cursor:pointer;border:0;outline:0;transition:background-color 0.12s, border-color 0.12s, color 0.12s}.close-button.svelte-3133h2 svg.svelte-3133h2{transition:transform 0.12s}.close-button.svelte-3133h2:hover svg.svelte-3133h2{transform:rotate(90deg)}.close-button-order-one.svelte-3133h2.svelte-3133h2{order:1}.close-button-order-two.svelte-3133h2.svelte-3133h2{order:2}");
|
15292
15296
|
}
|
15293
15297
|
|
15294
|
-
// (
|
15298
|
+
// (90:2) {#if hasLabel}
|
15295
15299
|
function create_if_block$4(ctx) {
|
15296
15300
|
let span;
|
15297
15301
|
let t;
|
@@ -15321,7 +15325,7 @@ function create_if_block$4(ctx) {
|
|
15321
15325
|
};
|
15322
15326
|
}
|
15323
15327
|
|
15324
|
-
// (
|
15328
|
+
// (71:0) <svelte:element {...attributes} this={element} class="close-button {isLeftLabelPlacement ? 'close-button-order-two' : ''}" data-layer-id={layerId} style={style} on:click={handleClick} >
|
15325
15329
|
function create_dynamic_element$6(ctx) {
|
15326
15330
|
let svelte_element;
|
15327
15331
|
let span;
|
@@ -15585,6 +15589,22 @@ class CloseButton extends SvelteComponent {
|
|
15585
15589
|
}
|
15586
15590
|
}
|
15587
15591
|
|
15592
|
+
const CLOSE_BUTTON_PLACEMENT = {
|
15593
|
+
topRight: 'topRight',
|
15594
|
+
topLeft: 'topLeft',
|
15595
|
+
bottomRight: 'bottomRight',
|
15596
|
+
bottomLeft: 'bottomLeft',
|
15597
|
+
};
|
15598
|
+
const CLOSE_BUTTON_ROUND = {
|
15599
|
+
default: 'デフォルト',
|
15600
|
+
none: 'なし',
|
15601
|
+
fulled: '円形',
|
15602
|
+
};
|
15603
|
+
const CLOSE_BUTTON_LABEL_PLACEMENT = {
|
15604
|
+
right: 'right',
|
15605
|
+
left: 'left',
|
15606
|
+
};
|
15607
|
+
|
15588
15608
|
const ICON_SIZE_STYLES = {
|
15589
15609
|
x_small: {
|
15590
15610
|
width: '12px',
|
@@ -16645,7 +16665,7 @@ class SliderItem extends SvelteComponent {
|
|
16645
16665
|
}
|
16646
16666
|
}
|
16647
16667
|
|
16648
|
-
const
|
16668
|
+
const callback$1 = ({ brandKit }) => ({
|
16649
16669
|
default: {
|
16650
16670
|
color: brandKit.color_text_primary,
|
16651
16671
|
},
|
@@ -16670,7 +16690,8 @@ const getTextThemeStyles = getPropStyles(({ brandKit }) => ({
|
|
16670
16690
|
white: {
|
16671
16691
|
color: brandKit.color_white,
|
16672
16692
|
},
|
16673
|
-
})
|
16693
|
+
});
|
16694
|
+
const getTextThemeStyles = getPropStyles(callback$1);
|
16674
16695
|
|
16675
16696
|
const TEXT_VARIANTS = {
|
16676
16697
|
size: {
|
@@ -17015,7 +17036,7 @@ const TEXT_LINK_SIZE_STYLES = {
|
|
17015
17036
|
fontSize: '16px',
|
17016
17037
|
},
|
17017
17038
|
};
|
17018
|
-
const
|
17039
|
+
const callback = ({ brandKit }) => ({
|
17019
17040
|
default: {
|
17020
17041
|
color: brandKit.color_text_primary,
|
17021
17042
|
},
|
@@ -17034,7 +17055,8 @@ const getTextLinkThemeStyles = getPropStyles(({ brandKit }) => ({
|
|
17034
17055
|
white: {
|
17035
17056
|
color: brandKit.color_white,
|
17036
17057
|
},
|
17037
|
-
})
|
17058
|
+
});
|
17059
|
+
const getTextLinkThemeStyles = getPropStyles(callback);
|
17038
17060
|
|
17039
17061
|
/* src/components-flex/text-link/TextLink.svelte generated by Svelte v3.53.1 */
|
17040
17062
|
|
@@ -18984,8 +19006,8 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
18984
19006
|
|
18985
19007
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
18986
19008
|
function onPlayerReady() {
|
18987
|
-
if (props.mute) {
|
18988
|
-
player.
|
19009
|
+
if (props.mute || props.autoplay) {
|
19010
|
+
player.setVolume(0);
|
18989
19011
|
}
|
18990
19012
|
}
|
18991
19013
|
|
@@ -19002,6 +19024,7 @@ function instance$4($$self, $$props, $$invalidate) {
|
|
19002
19024
|
autoplay: boolToNumber(props.autoplay),
|
19003
19025
|
controls: boolToNumber(props.controls),
|
19004
19026
|
cc_load_policy: boolToNumber(props.showSubtitle),
|
19027
|
+
// TODO: appの場合はフルスクリーンにすると、画面境界の変化を検知し画面遷移が発生 -> 接客自体が消えてしまうため強制OFFにする
|
19005
19028
|
fs: boolToNumber(props.showFullScreen),
|
19006
19029
|
loop: boolToNumber(props.loop),
|
19007
19030
|
playlist: props.videoId
|
package/dist/templates.cjs.d.ts
CHANGED
@@ -30,5 +30,5 @@ declare function createCompatibleCustomScript({ script, templateType, }?: {
|
|
30
30
|
script?: string;
|
31
31
|
templateType?: 'webpopup' | 'script';
|
32
32
|
}): string;
|
33
|
-
declare function createCustomScript(script?: string):
|
33
|
+
declare function createCustomScript(script?: string): ReturnType<typeof createCompatibleCustomScript>;
|
34
34
|
export { createAppScript, createIndexTsx, createCompatibleCustomScript, createCustomScript };
|
package/dist/templates.d.ts
CHANGED
@@ -30,5 +30,5 @@ declare function createCompatibleCustomScript({ script, templateType, }?: {
|
|
30
30
|
script?: string;
|
31
31
|
templateType?: 'webpopup' | 'script';
|
32
32
|
}): string;
|
33
|
-
declare function createCustomScript(script?: string):
|
33
|
+
declare function createCustomScript(script?: string): ReturnType<typeof createCompatibleCustomScript>;
|
34
34
|
export { createAppScript, createIndexTsx, createCompatibleCustomScript, createCustomScript };
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@plaidev/karte-action-sdk",
|
3
|
-
"version": "1.1.
|
3
|
+
"version": "1.1.264",
|
4
4
|
"author": "Plaid Inc.",
|
5
5
|
"license": "Apache-2.0",
|
6
6
|
"module": "./dist/index.es.js",
|
@@ -61,12 +61,12 @@
|
|
61
61
|
"@microsoft/api-extractor": "7.48.0",
|
62
62
|
"@rollup/plugin-alias": "^4.0.0",
|
63
63
|
"@rollup/plugin-commonjs": "^23.0.1",
|
64
|
+
"@rollup/plugin-image": "^3.0.2",
|
64
65
|
"@rollup/plugin-json": "^5.0.0",
|
65
66
|
"@rollup/plugin-node-resolve": "^15.0.0",
|
66
67
|
"@rollup/plugin-replace": "^5.0.0",
|
67
68
|
"@sveltejs/vite-plugin-svelte": "1.0.0-next.37",
|
68
69
|
"@testing-library/svelte": "^5.2.4",
|
69
|
-
"@tsconfig/svelte": "^3.0.0",
|
70
70
|
"@types/brotli": "^1.3.1",
|
71
71
|
"@types/serve-static": "^1.13.10",
|
72
72
|
"brotli": "^1.3.3",
|
@@ -80,6 +80,7 @@
|
|
80
80
|
"playwright": "1.50.0",
|
81
81
|
"preact": "10.5.7",
|
82
82
|
"rimraf": "^3.0.2",
|
83
|
+
"rolldown": "latest",
|
83
84
|
"rollup": "^3.12.0",
|
84
85
|
"rollup-plugin-livereload": "^2.0.0",
|
85
86
|
"rollup-plugin-serve": "^2.0.0",
|
@@ -90,7 +91,7 @@
|
|
90
91
|
"serve-static": "^1.15.0",
|
91
92
|
"svelte": "3.53.1",
|
92
93
|
"svelte-check": "^2.2.7",
|
93
|
-
"svelte-preprocess": "
|
94
|
+
"svelte-preprocess": "5.1.4",
|
94
95
|
"terser": "^5.37.0",
|
95
96
|
"textlint": "^13.1.1",
|
96
97
|
"textlint-plugin-tsdoc": "^0.1.0",
|
@@ -98,14 +99,12 @@
|
|
98
99
|
"textlint-rule-preset-ja-technical-writing": "^7.0.0",
|
99
100
|
"tslib": "^2.3.1",
|
100
101
|
"tsx": "^4.19.2",
|
101
|
-
"
|
102
|
+
"unplugin-isolated-decl": "latest",
|
103
|
+
"typescript": "5.8.2",
|
102
104
|
"vitepress": "1.0.0-alpha.30",
|
103
105
|
"vitest": "3.0.5",
|
104
106
|
"@plaidev/action-compiler": "0.4.231"
|
105
107
|
},
|
106
|
-
"dependencies": {
|
107
|
-
"@rollup/plugin-image": "^3.0.2"
|
108
|
-
},
|
109
108
|
"scripts": {
|
110
109
|
"dev": "tsx ./scripts/preview.ts",
|
111
110
|
"dev:hydrate": "tsx ./scripts/preview.ts --hydrate",
|
@@ -115,6 +114,7 @@
|
|
115
114
|
"setup:template": "tsx ./scripts/template.ts",
|
116
115
|
"setup:concat": "tsx ./scripts/concat.ts",
|
117
116
|
"setup:compile": "tsx ./scripts/compile.ts",
|
117
|
+
"rolldown:build": "rolldown --config ./rolldown.config.mjs && mv ./dist/index.d.ts ./dist/index.es.d.ts",
|
118
118
|
"build": "rollup --config rollup.config.ts --configPlugin rollup-plugin-ts",
|
119
119
|
"build:api": "api-extractor run --local --verbose",
|
120
120
|
"build:watch": "rollup --config rollup.config.ts --configPlugin rollup-plugin-ts -w",
|