@plaidev/karte-action-sdk 1.1.132-27959670.6c9aecaf → 1.1.132-27959707.9408cf31

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.
@@ -6,6 +6,10 @@ import { setContext, getContext, createEventDispatcher, onMount, onDestroy as on
6
6
  /** @internal */
7
7
  const NOOP = (_args) => { }; // eslint-disable-line @typescript-eslint/no-unused-vars
8
8
  /** @internal */
9
+ const isPreview = () => {
10
+ return true;
11
+ };
12
+ /** @internal */
9
13
  const handleFocus = (node) => (e) => {
10
14
  if (node) {
11
15
  // trap focus
@@ -1554,6 +1558,7 @@ const loadActionTableQuery = async (config, api_key, endpoint) => {
1554
1558
  return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).getByQuery(config.default.query_name, config.default.params, null, (err, data) => (err ? reject(err) : resolve(data))));
1555
1559
  };
1556
1560
  const loadActionTable = async (config, api_key, endpoint) => {
1561
+ console.log('[debug] loadActionTable', isPreview(), api_key);
1557
1562
  const results = config.map(c => c.preview_value)
1558
1563
  ;
1559
1564
  return config.reduce((acc, c, i) => {
package/dist/index.es.js CHANGED
@@ -6,6 +6,10 @@ import { setContext, getContext, createEventDispatcher, onMount, onDestroy as on
6
6
  /** @internal */
7
7
  const NOOP = (_args) => { }; // eslint-disable-line @typescript-eslint/no-unused-vars
8
8
  /** @internal */
9
+ const isPreview = () => {
10
+ return false;
11
+ };
12
+ /** @internal */
9
13
  const handleFocus = (node) => (e) => {
10
14
  if (node) {
11
15
  // trap focus
@@ -1624,6 +1628,7 @@ const loadActionTableQuery = async (config, api_key, endpoint) => {
1624
1628
  return new Promise((resolve, reject) => collection$1({ endpoint, api_key, table: config.default.table_name }).getByQuery(config.default.query_name, config.default.params, null, (err, data) => (err ? reject(err) : resolve(data))));
1625
1629
  };
1626
1630
  const loadActionTable = async (config, api_key, endpoint) => {
1631
+ console.log('[debug] loadActionTable', isPreview(), api_key);
1627
1632
  const results = await Promise.all(config
1628
1633
  .filter(c => c.resolver === 'action-table-row' ||
1629
1634
  c.resolver === 'action-table-rows' ||
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaidev/karte-action-sdk",
3
- "version": "1.1.132-27959670.6c9aecaf",
3
+ "version": "1.1.132-27959707.9408cf31",
4
4
  "author": "Plaid Inc.",
5
5
  "license": "Apache-2.0",
6
6
  "module": "./dist/index.es.js",