@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.
@@ -716,27 +716,29 @@ const Fonts = [
716
716
  'Noto Sans JP',
717
717
  'Sawarabi Gothic',
718
718
  'Zen Kaku Gothic New',
719
- 'Zen Maru Gothic',
720
- 'Shippori Mincho',
721
- 'M PLUS Rounded 1c',
722
- 'M PLUS 1p',
723
- 'Kosugi Maru',
724
- 'Kosugi',
725
719
  'BIZ UDPGothic',
720
+ 'Open Sans',
721
+ 'M PLUS 1p',
722
+ 'M PLUS Rounded 1c',
723
+ 'Kiwi Maru',
724
+ 'Zen Maru Gothic',
726
725
  'Noto Serif JP',
726
+ 'Shippori Mincho',
727
727
  'BIZ UDPMincho',
728
728
  'Roboto',
729
- 'Open Sans',
730
- 'Montserrat',
731
729
  'Lato',
732
730
  'Poppins',
731
+ 'Lora',
732
+ // 廃止予定
733
733
  'Raleway',
734
+ 'Montserrat',
734
735
  'Nunito',
735
736
  'Playfair Display',
736
737
  'Merriweather',
737
- 'Lora',
738
738
  'Libre Baskerville',
739
739
  'EB Garamond',
740
+ 'Kosugi Maru',
741
+ 'Kosugi',
740
742
  ];
741
743
  /** @internal */
742
744
  const Justifies = ['flex-start', 'center', 'flex-end'];
@@ -12340,14 +12342,13 @@ const FONT_FAMILY_VARIANT = {
12340
12342
  noto_sans_jp: createFontVariant('Noto Sans JP', 'ja', 'kaku'),
12341
12343
  sawarabi_gothic: createFontVariant('Sawarabi Gothic', 'ja', 'kaku'),
12342
12344
  zen_kaku_gothic: createFontVariant('Zen Kaku Gothic', 'ja', 'kaku'),
12343
- kosugi: createFontVariant('Kosugi', 'ja', 'kaku'),
12344
12345
  biz_udp_gothic: createFontVariant('BIZ UDPGothic', 'ja', 'kaku'),
12345
12346
  open_sans: createFontVariant('Open Sans', 'ja', 'kaku'),
12346
12347
  sans_serif: createFontVariant('sans-serif', 'ja', 'kaku'),
12347
- m_plus_rounded_1c: createFontVariant('M PLUS Rounded 1c', 'ja', 'maru'),
12348
12348
  m_plus_1p: createFontVariant('M PLUS 1p', 'ja', 'maru'),
12349
+ m_plus_rounded_1c: createFontVariant('M PLUS Rounded 1c', 'ja', 'maru'),
12350
+ kiwi_maru: createFontVariant('Kiwi Maru', 'ja', 'maru'),
12349
12351
  zen_maru_gothic: createFontVariant('Zen Maru Gothic', 'ja', 'maru'),
12350
- kosugi_maru: createFontVariant('Kosugi Maru', 'ja', 'maru'),
12351
12352
  noto_serif_jp: createFontVariant('Noto Serif JP', 'ja', 'min'),
12352
12353
  shippori_micho: createFontVariant('Shippori Mincho', 'ja', 'min'),
12353
12354
  biz_udp_micho: createFontVariant('BIZ UDPMincho', 'ja', 'min'),
@@ -12355,11 +12356,11 @@ const FONT_FAMILY_VARIANT = {
12355
12356
  roboto: createFontVariant('Roboto', 'en', 'kaku'),
12356
12357
  lato: createFontVariant('Lato', 'en', 'kaku'),
12357
12358
  poppins: createFontVariant('Poppins', 'en', 'kaku'),
12358
- raleway: createFontVariant('Raleway', 'en', 'kaku'),
12359
- nunito: createFontVariant('Nunito', 'en', 'kaku'),
12360
12359
  lora: createFontVariant('Lora', 'en', 'kaku'),
12361
12360
  monospace: createFontVariant('monospace', 'en', 'kaku'),
12362
12361
  system_ui: createFontVariant('system-ui', 'en', 'kaku'),
12362
+ // raleway: createFontVariant('Raleway', 'en', 'kaku'),
12363
+ // nunito: createFontVariant('Nunito', 'en', 'kaku'),
12363
12364
  };
12364
12365
  const FONT_FAMILY_VARIANTS = toVariantArray(FONT_FAMILY_VARIANT);
12365
12366
  const FONT_FAMILY_VARIANT_GROUPS = [
@@ -15094,7 +15095,7 @@ const getPropStyles = (callback) => {
15094
15095
  };
15095
15096
  };
15096
15097
 
15097
- const getButtonThemeStyles = getPropStyles(({ brandKit }) => ({
15098
+ const callback$4 = ({ brandKit }) => ({
15098
15099
  default: {
15099
15100
  variant: 'normal',
15100
15101
  backgroundColor: brandKit.color_brand,
@@ -15160,7 +15161,8 @@ const getButtonThemeStyles = getPropStyles(({ brandKit }) => ({
15160
15161
  backgroundColor: 'rgba(255, 255, 255, 0)',
15161
15162
  color: brandKit.color_danger,
15162
15163
  },
15163
- }));
15164
+ });
15165
+ const getButtonThemeStyles = getPropStyles(callback$4);
15164
15166
  const BUTTON_SIZE_STYLES = {
15165
15167
  extra_small: {
15166
15168
  height: '32px',
@@ -15195,13 +15197,22 @@ const BUTTON_SIZE_STYLES = {
15195
15197
  };
15196
15198
  const BUTTON_ROUND_STYLES = {
15197
15199
  none: {
15198
- borderRadius: 0,
15200
+ borderTopLeftRadius: 0,
15201
+ borderTopRightRadius: 0,
15202
+ borderBottomLeftRadius: 0,
15203
+ borderBottomRightRadius: 0,
15199
15204
  },
15200
15205
  default: {
15201
- borderRadius: '4px',
15206
+ borderTopLeftRadius: '4px',
15207
+ borderTopRightRadius: '4px',
15208
+ borderBottomLeftRadius: '4px',
15209
+ borderBottomRightRadius: '4px',
15202
15210
  },
15203
15211
  fulled: {
15204
- borderRadius: '56px',
15212
+ borderTopLeftRadius: '9999px',
15213
+ borderTopRightRadius: '9999px',
15214
+ borderBottomLeftRadius: '9999px',
15215
+ borderBottomRightRadius: '9999px',
15205
15216
  },
15206
15217
  };
15207
15218
  const BUTTON_WRAP_STYLES = {
@@ -15265,7 +15276,7 @@ function add_css$k(target) {
15265
15276
  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}");
15266
15277
  }
15267
15278
 
15268
- // (86:2) {#if props.isIcon && props.iconVariant}
15279
+ // (91:2) {#if props.isIcon && props.iconVariant}
15269
15280
  function create_if_block$7(ctx) {
15270
15281
  let div;
15271
15282
  let icon;
@@ -15331,7 +15342,7 @@ function create_if_block$7(ctx) {
15331
15342
  };
15332
15343
  }
15333
15344
 
15334
- // (77:0) <svelte:element {...attributes} this={element} class="button" style={style} data-layer-id={layerId} data-variant={variant} on:click={handleClick} >
15345
+ // (82:0) <svelte:element {...attributes} this={element} class="button" style={style} data-layer-id={layerId} data-variant={variant} on:click={handleClick} >
15335
15346
  function create_dynamic_element$9(ctx) {
15336
15347
  let svelte_element;
15337
15348
  let t0;
@@ -15582,7 +15593,14 @@ function instance$m($$self, $$props, $$invalidate) {
15582
15593
  width: props.width,
15583
15594
  fontWeight: props.fontWeight ?? 'bold',
15584
15595
  ...BUTTON_WRAP_STYLES[props.wrap ?? buttonPropsDefault.wrap],
15585
- ...BUTTON_ROUND_STYLES[props.round ?? buttonPropsDefault.round],
15596
+ ...props.borderTopLeftRadius
15597
+ ? {
15598
+ borderTopLeftRadius: props.borderTopLeftRadius,
15599
+ borderTopRightRadius: props.borderTopRightRadius,
15600
+ borderBottomLeftRadius: props.borderBottomLeftRadius,
15601
+ borderBottomRightRadius: props.borderBottomRightRadius
15602
+ }
15603
+ : BUTTON_ROUND_STYLES[props.round ?? buttonPropsDefault.round],
15586
15604
  ...props.iconAngle
15587
15605
  ? { flexDirection: props.iconAngle }
15588
15606
  : {},
@@ -15659,7 +15677,7 @@ const BUTTON_OUTLINED_SIZE_STYLES = {
15659
15677
  fontSize: '16px',
15660
15678
  },
15661
15679
  };
15662
- const getButtonOutlinedThemeStyles = getPropStyles(({ brandKit }) => ({
15680
+ const callback$3 = ({ brandKit }) => ({
15663
15681
  default: {
15664
15682
  color: brandKit.color_brand,
15665
15683
  borderColor: brandKit.color_brand,
@@ -15695,7 +15713,8 @@ const getButtonOutlinedThemeStyles = getPropStyles(({ brandKit }) => ({
15695
15713
  borderColor: '#FFFFFF',
15696
15714
  backgroundColor: '#000000',
15697
15715
  },
15698
- }));
15716
+ });
15717
+ const getButtonOutlinedThemeStyles = getPropStyles(callback$3);
15699
15718
  const BUTTON_OUTLINED_ROUND_STYLES = {
15700
15719
  none: {
15701
15720
  borderRadius: 0,
@@ -16059,7 +16078,7 @@ const BUTTON_TEXT_SIZE_STYLES = {
16059
16078
  fontSize: '16px',
16060
16079
  },
16061
16080
  };
16062
- const getButtonTextThemeStyles = getPropStyles(({ brandKit }) => ({
16081
+ const callback$2 = ({ brandKit }) => ({
16063
16082
  default: {
16064
16083
  backgroundColor: '#f3f4f6',
16065
16084
  color: brandKit.color_brand,
@@ -16092,7 +16111,8 @@ const getButtonTextThemeStyles = getPropStyles(({ brandKit }) => ({
16092
16111
  backgroundColor: '#f3f4f6',
16093
16112
  color: brandKit.color_white,
16094
16113
  },
16095
- }));
16114
+ });
16115
+ const getButtonTextThemeStyles = getPropStyles(callback$2);
16096
16116
 
16097
16117
  /* src/components-flex/button-text/ButtonText.svelte generated by Svelte v3.53.1 */
16098
16118
 
@@ -16429,29 +16449,13 @@ const BUTTON_TEXT_THEME = {
16429
16449
  white: 'White',
16430
16450
  };
16431
16451
 
16432
- const CLOSE_BUTTON_PLACEMENT = {
16433
- topRight: 'topRight',
16434
- topLeft: 'topLeft',
16435
- bottomRight: 'bottomRight',
16436
- bottomLeft: 'bottomLeft',
16437
- };
16438
- const CLOSE_BUTTON_ROUND = {
16439
- default: 'デフォルト',
16440
- none: 'なし',
16441
- fulled: '円形',
16442
- };
16443
- const CLOSE_BUTTON_LABEL_PLACEMENT = {
16444
- right: 'right',
16445
- left: 'left',
16446
- };
16447
-
16448
16452
  /* src/components-flex/close-button/CloseButton.svelte generated by Svelte v3.53.1 */
16449
16453
 
16450
16454
  function add_css$h(target) {
16451
16455
  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}");
16452
16456
  }
16453
16457
 
16454
- // (91:2) {#if hasLabel}
16458
+ // (90:2) {#if hasLabel}
16455
16459
  function create_if_block$4(ctx) {
16456
16460
  let span;
16457
16461
  let t;
@@ -16491,7 +16495,7 @@ function create_if_block$4(ctx) {
16491
16495
  };
16492
16496
  }
16493
16497
 
16494
- // (72:0) <svelte:element {...attributes} this={element} class="close-button {isLeftLabelPlacement ? 'close-button-order-two' : ''}" data-layer-id={layerId} style={style} on:click={handleClick} >
16498
+ // (71:0) <svelte:element {...attributes} this={element} class="close-button {isLeftLabelPlacement ? 'close-button-order-two' : ''}" data-layer-id={layerId} style={style} on:click={handleClick} >
16495
16499
  function create_dynamic_element$6(ctx) {
16496
16500
  let svelte_element;
16497
16501
  let span;
@@ -16791,6 +16795,22 @@ class CloseButton extends SvelteComponent {
16791
16795
  }
16792
16796
  }
16793
16797
 
16798
+ const CLOSE_BUTTON_PLACEMENT = {
16799
+ topRight: 'topRight',
16800
+ topLeft: 'topLeft',
16801
+ bottomRight: 'bottomRight',
16802
+ bottomLeft: 'bottomLeft',
16803
+ };
16804
+ const CLOSE_BUTTON_ROUND = {
16805
+ default: 'デフォルト',
16806
+ none: 'なし',
16807
+ fulled: '円形',
16808
+ };
16809
+ const CLOSE_BUTTON_LABEL_PLACEMENT = {
16810
+ right: 'right',
16811
+ left: 'left',
16812
+ };
16813
+
16794
16814
  const ICON_SIZE_STYLES = {
16795
16815
  x_small: {
16796
16816
  width: '12px',
@@ -17945,7 +17965,7 @@ class SliderItem extends SvelteComponent {
17945
17965
  }
17946
17966
  }
17947
17967
 
17948
- const getTextThemeStyles = getPropStyles(({ brandKit }) => ({
17968
+ const callback$1 = ({ brandKit }) => ({
17949
17969
  default: {
17950
17970
  color: brandKit.color_text_primary,
17951
17971
  },
@@ -17970,7 +17990,8 @@ const getTextThemeStyles = getPropStyles(({ brandKit }) => ({
17970
17990
  white: {
17971
17991
  color: brandKit.color_white,
17972
17992
  },
17973
- }));
17993
+ });
17994
+ const getTextThemeStyles = getPropStyles(callback$1);
17974
17995
 
17975
17996
  const TEXT_VARIANTS = {
17976
17997
  size: {
@@ -18343,7 +18364,7 @@ const TEXT_LINK_SIZE_STYLES = {
18343
18364
  fontSize: '16px',
18344
18365
  },
18345
18366
  };
18346
- const getTextLinkThemeStyles = getPropStyles(({ brandKit }) => ({
18367
+ const callback = ({ brandKit }) => ({
18347
18368
  default: {
18348
18369
  color: brandKit.color_text_primary,
18349
18370
  },
@@ -18362,7 +18383,8 @@ const getTextLinkThemeStyles = getPropStyles(({ brandKit }) => ({
18362
18383
  white: {
18363
18384
  color: brandKit.color_white,
18364
18385
  },
18365
- }));
18386
+ });
18387
+ const getTextLinkThemeStyles = getPropStyles(callback);
18366
18388
 
18367
18389
  /* src/components-flex/text-link/TextLink.svelte generated by Svelte v3.53.1 */
18368
18390
 
@@ -20455,8 +20477,8 @@ function instance$4($$self, $$props, $$invalidate) {
20455
20477
 
20456
20478
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
20457
20479
  function onPlayerReady() {
20458
- if (props.mute) {
20459
- player.mute();
20480
+ if (props.mute || props.autoplay) {
20481
+ player.setVolume(0);
20460
20482
  }
20461
20483
  }
20462
20484
 
@@ -20473,6 +20495,7 @@ function instance$4($$self, $$props, $$invalidate) {
20473
20495
  autoplay: boolToNumber(props.autoplay),
20474
20496
  controls: boolToNumber(props.controls),
20475
20497
  cc_load_policy: boolToNumber(props.showSubtitle),
20498
+ // TODO: appの場合はフルスクリーンにすると、画面境界の変化を検知し画面遷移が発生 -> 接客自体が消えてしまうため強制OFFにする
20476
20499
  fs: boolToNumber(props.showFullScreen),
20477
20500
  loop: boolToNumber(props.loop),
20478
20501
  playlist: props.videoId
package/dist/icons.d.ts CHANGED
@@ -1,114 +1,9 @@
1
- declare const ICONS: readonly [{
2
- readonly name: "arrow-down";
3
- readonly type: "solid";
4
- readonly component: "ArrowDownSolid";
5
- readonly src: string;
6
- }, {
7
- readonly name: "arrow-left";
8
- readonly type: "solid";
9
- readonly component: "ArrowLeftSolid";
10
- readonly src: string;
11
- }, {
12
- readonly name: "arrow-right";
13
- readonly type: "solid";
14
- readonly component: "ArrowRightSolid";
15
- readonly src: string;
16
- }, {
17
- readonly name: "arrow-up-right-from-square";
18
- readonly type: "solid";
19
- readonly component: "ArrowUpRightFromSquareSolid";
20
- readonly src: string;
21
- }, {
22
- readonly name: "arrow-up";
23
- readonly type: "solid";
24
- readonly component: "ArrowUpSolid";
25
- readonly src: string;
26
- }, {
27
- readonly name: "bell";
28
- readonly type: "solid";
29
- readonly component: "BellSolid";
30
- readonly src: string;
31
- }, {
32
- readonly name: "cart-shopping";
33
- readonly type: "solid";
34
- readonly component: "CartShoppingSolid";
35
- readonly src: string;
36
- }, {
37
- readonly name: "check";
38
- readonly type: "solid";
39
- readonly component: "CheckSolid";
40
- readonly src: string;
41
- }, {
42
- readonly name: "chevron-down";
43
- readonly type: "solid";
44
- readonly component: "ChevronDownSolid";
45
- readonly src: string;
46
- }, {
47
- readonly name: "chevron-left";
48
- readonly type: "solid";
49
- readonly component: "ChevronLeftSolid";
50
- readonly src: string;
51
- }, {
52
- readonly name: "chevron-right";
53
- readonly type: "solid";
54
- readonly component: "ChevronRightSolid";
55
- readonly src: string;
56
- }, {
57
- readonly name: "chevron-up";
58
- readonly type: "solid";
59
- readonly component: "ChevronUpSolid";
60
- readonly src: string;
61
- }, {
62
- readonly name: "circle-question";
63
- readonly type: "solid";
64
- readonly component: "CircleQuestionSolid";
65
- readonly src: string;
66
- }, {
67
- readonly name: "circle";
68
- readonly type: "solid";
69
- readonly component: "CircleSolid";
70
- readonly src: string;
71
- }, {
72
- readonly name: "copy";
73
- readonly type: "solid";
74
- readonly component: "CopySolid";
75
- readonly src: string;
76
- }, {
77
- readonly name: "paper-plane";
78
- readonly type: "solid";
79
- readonly component: "PaperPlaneSolid";
80
- readonly src: string;
81
- }, {
82
- readonly name: "ticket";
83
- readonly type: "solid";
84
- readonly component: "TicketSolid";
85
- readonly src: string;
86
- }, {
87
- readonly name: "truck";
88
- readonly type: "solid";
89
- readonly component: "TruckSolid";
90
- readonly src: string;
91
- }, {
92
- readonly name: "users";
93
- readonly type: "solid";
94
- readonly component: "UsersSolid";
95
- readonly src: string;
96
- }, {
97
- readonly name: "window-maximize";
98
- readonly type: "solid";
99
- readonly component: "WindowMaximizeSolid";
100
- readonly src: string;
101
- }, {
102
- readonly name: "window-minimize";
103
- readonly type: "solid";
104
- readonly component: "WindowMinimizeSolid";
105
- readonly src: string;
106
- }, {
107
- readonly name: "xmark";
108
- readonly type: "solid";
109
- readonly component: "XmarkSolid";
110
- readonly src: string;
111
- }];
1
+ declare const ICONS: {
2
+ name: string;
3
+ type: string;
4
+ component: string;
5
+ src: string;
6
+ }[];
112
7
  export { default as ArrowDownSolid } from './icons/solid/arrow-down.svg';
113
8
  export { default as ArrowLeftSolid } from './icons/solid/arrow-left.svg';
114
9
  export { default as ArrowRightSolid } from './icons/solid/arrow-right.svg';