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

chore: enable easier electron builds by hosting some packages #4383

Merged
merged 46 commits into from
Oct 15, 2020

Conversation

a-b-r-o-w-n
Copy link
Contributor

Description

  • Introduces @botframework-composer npm scope for some shared packages that can be installed inside of plugins. This reduces the yarn workspace magic and fixes electron builds due to missing dependencies.
  • Removes @bfc/shared dependency from @bfc/extension-client to ease installation outside of the workspace and in preparation for publishing.

Task Item

#minor

}
const VisualDesigner: React.FC<VisualDesignerProps> = ({ onFocus, onBlur, schema }): JSX.Element => {
const VisualDesigner: React.FC<VisualDesignerProps> = ({ onFocus, onBlur, schema, data: inputData }): JSX.Element => {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@yeze322 can you look at this in particular? I removed data from the shell, requiring the editor contexts to decide how to get their own data. Eventually, the useShell hook will be agnostic to where it is getting invoked, but I will follow up this PR with that work.

@coveralls
Copy link

coveralls commented Oct 15, 2020

Coverage Status

Coverage increased (+0.2%) to 55.994% when pulling 0f9bb4d on abrown/extensions/hooks-refactor into 2ea3f45 on main.

@a-b-r-o-w-n a-b-r-o-w-n merged commit 27345fe into main Oct 15, 2020
@a-b-r-o-w-n a-b-r-o-w-n deleted the abrown/extensions/hooks-refactor branch October 15, 2020 20:45

// if the intent name changes or intent names in the regex patterns
// we need to reset the local value
useEffect(() => {
const pattern = getRegexIntentPattern(currentDialog, intentName);
const pattern = getRegexIntentPattern(formData, intentName);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

refs #4653

@cwhitten cwhitten mentioned this pull request Nov 13, 2020
lei9444 pushed a commit to lei9444/BotFramework-Composer-1 that referenced this pull request Jun 15, 2021
…oft#4383)

* decompose shell and api into smaller types

* nest plugin pages under bot scope

* simplify webpack config

* make extension client external

* add mechanism to sync client shell to iframe plugin host

* only fetch extensions when app mounts

* add plugin pages selector

* output source maps with extension bundles

* rename file

* clean up manifest after loading extensions

* add project api hook

* update sample plugin to use project api

* disable sample-ui-plugin

* do not sync store to window

* prepare test-utils and types for publishing

* update package references to published pacakges

* add types package

* remove shared dependency from extension-client

* remove data from shell

* more types updates

* add useFormHook to expose current form data

* re-order useEffects

* add missing import

* move types to dependencies

* fix type errors

* add missing dependency

* fix tests

* remove old comments

* update lockfile

* use stub currentDialog when none found

* fix build:dev

* fix merge conflict

* add @botframework-composer/types to client
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants