@stackone/connect-sdk 1.2.3 → 1.3.0

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{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};
1
+ import{getBlockPipeStepsFromConfigs as o,blockPipe as t,BlockStepsFactory as c}from"@stackone/core";const e=async({block:c,getBlockPipeStepsFromConfigsFn:e=o,blockPipeFn:n=t})=>{const s=e({fieldConfigs:c.fieldConfigs});return await n({blockSteps:s,block:c})},n=async({block:o,step:t,buildBlockStepFunction:e=c.build})=>{const n=e({type:t.name});return await n({block:o,params:t.params})};export{e as executeBlockSteps,n as executeSingleBlockStep};
package/dist/index.js CHANGED
@@ -1 +1 @@
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})};
1
+ "use strict";var e=require("@stackone/core");exports.executeBlockSteps=async({block:o,getBlockPipeStepsFromConfigsFn:t=e.getBlockPipeStepsFromConfigs,blockPipeFn:c=e.blockPipe})=>{const s=t({fieldConfigs:o.fieldConfigs});return await c({blockSteps:s,block:o})},exports.executeSingleBlockStep=async({block:o,step:t,buildBlockStepFunction:c=e.BlockStepsFactory.build})=>{const s=c({type:t.name});return await s({block:o,params:t.params})};
@@ -1,5 +1,5 @@
1
- import type { Block } from '@stackone/core';
2
- import { getBlockPipeStepsFromConfigs, blockPipe } from '@stackone/core';
1
+ import type { Block, BlockStepDefinition } from '@stackone/core';
2
+ import { getBlockPipeStepsFromConfigs, blockPipe, BlockStepsFactory } from '@stackone/core';
3
3
  export declare const executeBlockSteps: ({ block, getBlockPipeStepsFromConfigsFn, blockPipeFn, }: {
4
4
  block: Block;
5
5
  getBlockPipeStepsFromConfigsFn?: (({ fieldConfigs, }: {
@@ -10,3 +10,10 @@ export declare const executeBlockSteps: ({ block, getBlockPipeStepsFromConfigsFn
10
10
  block: Block;
11
11
  }) => Promise<Block>) | undefined;
12
12
  }) => Promise<Block>;
13
+ export declare const executeSingleBlockStep: ({ block, step, buildBlockStepFunction, }: {
14
+ block: Block;
15
+ step: BlockStepDefinition;
16
+ buildBlockStepFunction?: (({ type }: {
17
+ type: import("@stackone/core").BlockStepType;
18
+ }) => import("@stackone/core").BlockStep) | undefined;
19
+ }) => Promise<Block>;
@@ -1 +1 @@
1
- export { executeBlockSteps } from './executeBlockSteps';
1
+ export { executeBlockSteps, executeSingleBlockStep } from './executeBlockSteps';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@stackone/connect-sdk",
3
- "version": "1.2.3",
3
+ "version": "1.3.0",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.es.js",
@@ -14,7 +14,9 @@
14
14
  "scripts": {
15
15
  "clean": "rimraf dist",
16
16
  "prebuild": "npm run clean",
17
- "build": "rollup -c",
17
+ "build": "rollup -c --environment NODE_ENV:production",
18
+ "prebuild:dev": "npm run clean",
19
+ "build:dev": "rollup -c --environment NODE_ENV:development",
18
20
  "lint": "tsc --project tsconfig.json && eslint \"src/**/*.ts\"",
19
21
  "lint:fix": "npm run lint -- --fix",
20
22
  "test": "vitest run",