@stackone/connect-sdk 1.2.2 → 1.2.3

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.
package/dist/index.es.mjs CHANGED
@@ -1 +1 @@
1
- import{getBlockPipeFunctionsFromConfigs as o,blockPipe as n}from"@stackone/core";const c=async({block:c,getBlockPipeFunctionsFromConfigsFn:i=o,blockPipeFn:t=n})=>{const e=i({fieldConfigs:c.fieldConfigs});return await t({blockFunctions:e,block:c})};export{c as executeBlock};
1
+ import{getBlockPipeStepsFromConfigs as o,blockPipe as e}from"@stackone/core";const c=async({block:c,getBlockPipeStepsFromConfigsFn:n=o,blockPipeFn:t=e})=>{const i=n({fieldConfigs:c.fieldConfigs});return await t({blockSteps:i,block:c})};export{c as executeBlockSteps};
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var o=require("@stackone/core");exports.executeBlock=async({block:e,getBlockPipeFunctionsFromConfigsFn:c=o.getBlockPipeFunctionsFromConfigs,blockPipeFn:i=o.blockPipe})=>{const n=c({fieldConfigs:e.fieldConfigs});return await i({blockFunctions:n,block:e})};
1
+ "use strict";var e=require("@stackone/core");exports.executeBlockSteps=async({block:o,getBlockPipeStepsFromConfigsFn:c=e.getBlockPipeStepsFromConfigs,blockPipeFn:s=e.blockPipe})=>{const t=c({fieldConfigs:o.fieldConfigs});return await s({blockSteps:t,block:o})};
@@ -0,0 +1,12 @@
1
+ import type { Block } from '@stackone/core';
2
+ import { getBlockPipeStepsFromConfigs, blockPipe } from '@stackone/core';
3
+ export declare const executeBlockSteps: ({ block, getBlockPipeStepsFromConfigsFn, blockPipeFn, }: {
4
+ block: Block;
5
+ getBlockPipeStepsFromConfigsFn?: (({ fieldConfigs, }: {
6
+ fieldConfigs?: import("@stackone/core").BlockFieldConfig[] | undefined;
7
+ }) => import("@stackone/core").BlockStep[]) | undefined;
8
+ blockPipeFn?: (({ blockSteps, block, }: {
9
+ blockSteps: import("@stackone/core").BlockStep[];
10
+ block: Block;
11
+ }) => Promise<Block>) | undefined;
12
+ }) => Promise<Block>;
@@ -1 +1 @@
1
- export { executeBlock } from './executeBlock';
1
+ export { executeBlockSteps } from './executeBlockSteps';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/connect-sdk",
3
- "version": "1.2.2",
3
+ "version": "1.2.3",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -1,11 +0,0 @@
1
- import { Block, getBlockPipeFunctionsFromConfigs, blockPipe } from '@stackone/core';
2
- export declare const executeBlock: ({ block, getBlockPipeFunctionsFromConfigsFn, blockPipeFn, }: {
3
- block: Block;
4
- getBlockPipeFunctionsFromConfigsFn?: (({ fieldConfigs, }: {
5
- fieldConfigs?: import("@stackone/core").BlockFieldConfig[] | undefined;
6
- }) => import("@stackone/core").BlockFunction[]) | undefined;
7
- blockPipeFn?: (({ blockFunctions, block, }: {
8
- blockFunctions: import("@stackone/core").BlockFunction[];
9
- block: Block;
10
- }) => Promise<Block>) | undefined;
11
- }) => Promise<Block>;