@plaidev/karte-action-sdk 1.1.139-27968061.3a293fdc → 1.1.139-27968067.f08728d1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,4 @@
1
- declare function createAppScript(script?: string): string;
1
+ declare function createAppScript(script?: string, icons?: string[]): string;
2
2
  declare function createIndexTsx({ script, polyfill, }?: {
3
3
  script?: string;
4
4
  polyfill?: boolean;
@@ -1,6 +1,6 @@
1
1
  'use strict';
2
2
 
3
- function createAppScript(script = '') {
3
+ function createAppScript(script = '', icons = []) {
4
4
  // TODO: `script` should be validated!
5
5
  return `<script lang="ts">
6
6
  // SDK generated imports: DON'T TOUCH THIS
@@ -34,8 +34,11 @@ import {
34
34
  FormRatingButtonsNumber,
35
35
  Countdown,
36
36
  Box,
37
+ IconElement,
37
38
  } from '@plaidev/karte-action-sdk';
38
39
 
40
+ ${icons.length > 0 ? `import { ${icons.join(',')} } from '@plaidev/karte-action-sdk/icons';` : ''}
41
+
39
42
  export let send: (event_name: string, values?: any) => void;
40
43
  let data_: Data;
41
44
  export { data_ as data };
@@ -1,4 +1,4 @@
1
- declare function createAppScript(script?: string): string;
1
+ declare function createAppScript(script?: string, icons?: string[]): string;
2
2
  declare function createIndexTsx({ script, polyfill, }?: {
3
3
  script?: string;
4
4
  polyfill?: boolean;
package/dist/templates.js CHANGED
@@ -1,4 +1,4 @@
1
- function createAppScript(script = '') {
1
+ function createAppScript(script = '', icons = []) {
2
2
  // TODO: `script` should be validated!
3
3
  return `<script lang="ts">
4
4
  // SDK generated imports: DON'T TOUCH THIS
@@ -32,8 +32,11 @@ import {
32
32
  FormRatingButtonsNumber,
33
33
  Countdown,
34
34
  Box,
35
+ IconElement,
35
36
  } from '@plaidev/karte-action-sdk';
36
37
 
38
+ ${icons.length > 0 ? `import { ${icons.join(',')} } from '@plaidev/karte-action-sdk/icons';` : ''}
39
+
37
40
  export let send: (event_name: string, values?: any) => void;
38
41
  let data_: Data;
39
42
  export { data_ as data };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.139-27968061.3a293fdc",
3
+ "version": "1.1.139-27968067.f08728d1",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",
@@ -23,6 +23,10 @@
23
23
  "require": "./dist/templates.cjs.js",
24
24
  "types": "./dist/templates.d.ts"
25
25
  },
26
+ "./icons": {
27
+ "import": "./dist/icons.js",
28
+ "types": "./dist/icons.d.ts"
29
+ },
26
30
  "./package.json": "./package.json",
27
31
  "./dist/*": "./dist/*"
28
32
  },
@@ -34,6 +38,9 @@
34
38
  "templates": [
35
39
  "./dist/templates.d.ts"
36
40
  ],
41
+ "icons": [
42
+ "./dist/icons.d.ts"
43
+ ],
37
44
  "*": [
38
45
  "./dist/index.es.d.ts"
39
46
  ]
@@ -121,5 +128,8 @@
121
128
  },
122
129
  "publishConfig": {
123
130
  "access": "public"
131
+ },
132
+ "dependencies": {
133
+ "@rollup/plugin-image": "^3.0.2"
124
134
  }
125
135
  }