Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added new execCommand method #166

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Conversation

rmarchet
Copy link
Collaborator

Description

Add new execCommand method

Motivation and Context

Implement a way to send commands to the SDK frontend to control its UI elements

Usage examples

import BeePLugin from '@beefree.io/sdk'

const beePlugin = new BeePlugin()
try {
  const res = await beePlugin.execCommand('select', { target: { uuid: 'xxxxx-xxxxx-xxxxx' } })
} catch (error) {
  // ...
}

Types of changes

  • new method execCommand
  • new TS types for execCommand and its arguments

Copy link

github-actions bot commented Nov 20, 2024

Code Coverage Report

Coverage after merging feat/exec-command into master

83.53%
Coverage Report
FileBranchesFuncsLinesUncovered Lines
src
   index.ts60%5.77%58.43%..., 90, 91, 96, 97
src/services
   api.ts100%50%100%
   axios.ts100%100%100%
src/types
   bee.ts100%100%100%
src/utils
   Constants.ts100%100%100%
   utils.ts0%0%73.33%..., 8, 8, 8, 8

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant