@plaidev/karte-action-sdk 1.1.232-28654876.dc7c8de8 → 1.1.232-28663591.feead91d

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.
@@ -12,9 +12,8 @@ declare function createAppScript(script?: string, icons?: string[], customCompon
12
12
  *
13
13
  * @internal
14
14
  */
15
- declare function createIndexTsx({ script, polyfill, }?: {
15
+ declare function createIndexTsx({ script }?: {
16
16
  script?: string;
17
- polyfill?: boolean;
18
17
  }): string;
19
18
  /**
20
19
  * 後方互換のためのカスタムスクリプトの初期値の生成
@@ -98,10 +98,9 @@ $: cssVariables = getCssVariables({ ...$data, ...$actionVariables });
98
98
  *
99
99
  * @internal
100
100
  */
101
- function createIndexTsx({ script = '', polyfill = false, } = {}) {
101
+ function createIndexTsx({ script = '' } = {}) {
102
102
  // TODO: `script` should be validated!
103
103
  return `import type { KarteAction, Send, Publish, Props, Variables } from './gen';
104
- ${polyfill ? `import 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver';` : ''}
105
104
  import { create } from '@plaidev/karte-action-sdk';
106
105
 
107
106
  import { props, localVariablesQuery, karteTemplate } from './gen';
@@ -12,9 +12,8 @@ declare function createAppScript(script?: string, icons?: string[], customCompon
12
12
  *
13
13
  * @internal
14
14
  */
15
- declare function createIndexTsx({ script, polyfill, }?: {
15
+ declare function createIndexTsx({ script }?: {
16
16
  script?: string;
17
- polyfill?: boolean;
18
17
  }): string;
19
18
  /**
20
19
  * 後方互換のためのカスタムスクリプトの初期値の生成
package/dist/templates.js CHANGED
@@ -96,10 +96,9 @@ $: cssVariables = getCssVariables({ ...$data, ...$actionVariables });
96
96
  *
97
97
  * @internal
98
98
  */
99
- function createIndexTsx({ script = '', polyfill = false, } = {}) {
99
+ function createIndexTsx({ script = '' } = {}) {
100
100
  // TODO: `script` should be validated!
101
101
  return `import type { KarteAction, Send, Publish, Props, Variables } from './gen';
102
- ${polyfill ? `import 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver';` : ''}
103
102
  import { create } from '@plaidev/karte-action-sdk';
104
103
 
105
104
  import { props, localVariablesQuery, karteTemplate } from './gen';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.232-28654876.dc7c8de8",
3
+ "version": "1.1.232-28663591.feead91d",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",