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

adding context types to get and listen methods #131

Conversation

rami-monday
Copy link
Collaborator

overriding settings type depending on you app settings configured in dev center
Screen Shot 2023-11-30 at 13 01 25

LISTEN: Typescript override the context with AppFeature[type]Context
Screen Shot 2023-11-30 at 12 59 08

GET: Context type without overriding well show the common context type for all feature types
Screen Shot 2023-11-30 at 12 58 54

LISTEN: Context type without overriding well show the common context type for all feature types
Screen Shot 2023-11-30 at 12 58 06

GET: javascript overriding context type by passing appFeatureType as an option
Screen Shot 2023-11-30 at 12 57 54

GET: javascript list of app feature types to get context type based on
Screen Shot 2023-11-30 at 12 57 41

Screen Shot 2023-11-30 at 12 57 18

package.json Outdated
@@ -16,6 +16,7 @@
"server-sdk.js"
],
"dependencies": {
"monday-ui-react-core": "^2.63.2",
Copy link
Collaborator

Choose a reason for hiding this comment

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

this SDK is also used by nodejs servers, so we better only get the types from this package and also move this to devDependencies

@@ -0,0 +1,238 @@
import { Theme } from "monday-ui-react-core/dist/types/components/ThemeProvider/ThemeProviderConstants";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
import { Theme } from "monday-ui-react-core/dist/types/components/ThemeProvider/ThemeProviderConstants";
import type { Theme } from "monday-ui-react-core/dist/types/components/ThemeProvider/ThemeProviderConstants";

package.json Outdated
@@ -1,6 +1,6 @@
{
"name": "monday-sdk-js",
"version": "0.4.12",
"version": "0.4.13",
Copy link
Collaborator

Choose a reason for hiding this comment

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

It's a big change, let's bump to 0.5.0

Copy link
Collaborator

@gregra81 gregra81 left a comment

Choose a reason for hiding this comment

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

Amazing job 👏

@rami-monday rami-monday merged commit 076fd87 into mondaycom:master Dec 3, 2023
1 check passed
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.

None yet

2 participants