@plaidev/karte-action-sdk 1.1.232 → 1.1.233-28694965.4ee0c515
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/hydrate/index.es.d.ts +276 -8
- package/dist/hydrate/index.es.js +1784 -908
- package/dist/index.es.d.ts +276 -8
- package/dist/index.es.js +1720 -880
- package/dist/templates.cjs.d.ts +1 -2
- package/dist/templates.cjs.js +8 -8
- package/dist/templates.d.ts +1 -2
- package/dist/templates.js +8 -8
- package/package.json +1 -1
- package/meta/karte-action-sdk.api.json +0 -6318
package/dist/templates.cjs.d.ts
CHANGED
@@ -12,9 +12,8 @@ declare function createAppScript(script?: string, icons?: string[], customCompon
|
|
12
12
|
*
|
13
13
|
* @internal
|
14
14
|
*/
|
15
|
-
declare function createIndexTsx({ script
|
15
|
+
declare function createIndexTsx({ script }?: {
|
16
16
|
script?: string;
|
17
|
-
polyfill?: boolean;
|
18
17
|
}): string;
|
19
18
|
/**
|
20
19
|
* 後方互換のためのカスタムスクリプトの初期値の生成
|
package/dist/templates.cjs.js
CHANGED
@@ -48,12 +48,13 @@ import {
|
|
48
48
|
Box,
|
49
49
|
IconElement,
|
50
50
|
CodeElement,
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
51
|
+
FlexButton,
|
52
|
+
FlexIcon,
|
53
|
+
FlexLayout,
|
54
|
+
FlexText,
|
55
|
+
FlexAvatar,
|
56
|
+
FlexImage,
|
57
|
+
FlexModal,
|
57
58
|
} from '@plaidev/karte-action-sdk';
|
58
59
|
|
59
60
|
${icons.length > 0
|
@@ -98,10 +99,9 @@ $: cssVariables = getCssVariables({ ...$data, ...$actionVariables });
|
|
98
99
|
*
|
99
100
|
* @internal
|
100
101
|
*/
|
101
|
-
function createIndexTsx({ script = ''
|
102
|
+
function createIndexTsx({ script = '' } = {}) {
|
102
103
|
// TODO: `script` should be validated!
|
103
104
|
return `import type { KarteAction, Send, Publish, Props, Variables } from './gen';
|
104
|
-
${polyfill ? `import 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver';` : ''}
|
105
105
|
import { create } from '@plaidev/karte-action-sdk';
|
106
106
|
|
107
107
|
import { props, localVariablesQuery, karteTemplate } from './gen';
|
package/dist/templates.d.ts
CHANGED
@@ -12,9 +12,8 @@ declare function createAppScript(script?: string, icons?: string[], customCompon
|
|
12
12
|
*
|
13
13
|
* @internal
|
14
14
|
*/
|
15
|
-
declare function createIndexTsx({ script
|
15
|
+
declare function createIndexTsx({ script }?: {
|
16
16
|
script?: string;
|
17
|
-
polyfill?: boolean;
|
18
17
|
}): string;
|
19
18
|
/**
|
20
19
|
* 後方互換のためのカスタムスクリプトの初期値の生成
|
package/dist/templates.js
CHANGED
@@ -46,12 +46,13 @@ import {
|
|
46
46
|
Box,
|
47
47
|
IconElement,
|
48
48
|
CodeElement,
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
49
|
+
FlexButton,
|
50
|
+
FlexIcon,
|
51
|
+
FlexLayout,
|
52
|
+
FlexText,
|
53
|
+
FlexAvatar,
|
54
|
+
FlexImage,
|
55
|
+
FlexModal,
|
55
56
|
} from '@plaidev/karte-action-sdk';
|
56
57
|
|
57
58
|
${icons.length > 0
|
@@ -96,10 +97,9 @@ $: cssVariables = getCssVariables({ ...$data, ...$actionVariables });
|
|
96
97
|
*
|
97
98
|
* @internal
|
98
99
|
*/
|
99
|
-
function createIndexTsx({ script = ''
|
100
|
+
function createIndexTsx({ script = '' } = {}) {
|
100
101
|
// TODO: `script` should be validated!
|
101
102
|
return `import type { KarteAction, Send, Publish, Props, Variables } from './gen';
|
102
|
-
${polyfill ? `import 'https://polyfill.io/v3/polyfill.min.js?features=IntersectionObserver';` : ''}
|
103
103
|
import { create } from '@plaidev/karte-action-sdk';
|
104
104
|
|
105
105
|
import { props, localVariablesQuery, karteTemplate } from './gen';
|