Skip to content

Latest commit

 

History

History
772 lines (427 loc) · 55.3 KB

CHANGELOG.md

File metadata and controls

772 lines (427 loc) · 55.3 KB

@graphiql/react

0.28.2

Patch Changes

  • #3843 16b5698 Thanks @dimaMachina! - fix regression in documentation explorer search when clicking on results in dropdown

0.28.1

Patch Changes

  • #3837 5e76a4f Thanks @dimaMachina! - fix query builder updated only first selected field in query editor due recent enabled react-compiler

0.28.0

Minor Changes

0.27.1

Patch Changes

0.27.0

Minor Changes

0.26.2

Patch Changes

0.26.1

Patch Changes

0.26.0

Minor Changes

  • #3619 9aef83a Thanks @Yahkob! - add new prop defaultTheme to set the default color preference theme

Patch Changes

  • #3441 959ed21 Thanks @cimdalli! - fix: set query editor to defaultQuery while adding a new tab or GraphiQL's default query

    # Welcome to GraphiQL
    #
    # GraphiQL is an in-browser tool for writing, validating, and
    # testing GraphQL queries.
    
    ...

0.25.0

Minor Changes

0.24.0

Minor Changes

Patch Changes

0.23.1

Patch Changes

  • #3552 6a0a5e5 Thanks @klippx! - do not clear defaultHeaders when switching between tabs upon reload

0.23.0

Minor Changes

Patch Changes

0.22.4

Patch Changes

0.22.3

Patch Changes

0.22.2

Patch Changes

0.22.1

Patch Changes

0.22.0

Minor Changes

0.21.0

Minor Changes

0.20.4

Patch Changes

0.20.3

Patch Changes

  • #3526 2b6ea316 Thanks @benjie! - Add new useOptimisticState hook that can wrap a useState-like hook to perform optimistic caching of state changes, this helps to avoid losing characters when the user is typing rapidly. Example of usage: const [state, setState] = useOptimisticState(useOperationsEditorState());

0.20.2

Patch Changes

  • #3447 e89c432d Thanks @acao! - Remove initialState for new hooks, add additionalComponent to toolbar to allow buttons to use context

0.20.1

Patch Changes

0.20.0

Minor Changes

  • #3443 f6afd22d Thanks @acao! - Add useHeadersEditorState and generic useEditorState hooks

0.19.4

Patch Changes

0.19.3

Patch Changes

  • #3371 2348641c Thanks @acao! - Solves #2825, an old bug where new tabs were created on every refresh

    the bug occurred when:

    1. shouldPersistHeaders is not set to true
    2. headers or defaultHeaders are provided as props
    3. the user refreshes the browser

0.19.2

Patch Changes

0.19.1

Patch Changes

0.19.0

Minor Changes

  • #3130 9a38de29 Thanks @lesleydreyer! - - Add a "clear history" button to clear all history as well as trash icons to clear individual history items

    • Change so item is in history items or history favorites, not both
    • Fix history label editing so if the same item is in the list more than once it edits the correct label
    • Pass the entire history item in history functions (addToHistory, editLabel, toggleFavorite, etc.) so users building their own HistoryContext.Provider will get any additional props they added to the item in their customized functions
    • Adds a "setActive" callback users can use to customize their UI when the history item is clicked

0.18.0

Minor Changes

  • #3181 9ac84bfc Thanks @B2o5T! - remove initialTabs, use defaultTabs instead

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/dialog by @radix-ui/react-dialog replace @reach/visually-hidden by @radix-ui/react-visually-hidden

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/menu-button by @radix-ui/react-dropdown-menu remove @reach/listbox remove <ToolbarListbox /> and <Listbox /> components (use <Menu /> instead)

  • #3181 9ac84bfc Thanks @B2o5T! - fixed long list items in dropdown were hidden

    rename <Menu /> to <DropdownMenu /> rename <Menu.List /> to <DropdownMenu.Content /> rename <Menu.Item /> to <DropdownMenu.Item /> rename <Menu.Button /> to <DropdownMenu.Button />

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/tooltip by @radix-ui/react-tooltip

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/combobox with Combobox from @headlessui/react

  • #3181 9ac84bfc Thanks @B2o5T! - tabs could be reorderded

Patch Changes

0.18.0-alpha.1

Patch Changes

0.18.0-alpha.0

Minor Changes

  • #3181 9ac84bfc Thanks @B2o5T! - remove initialTabs, use defaultTabs instead

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/dialog by @radix-ui/react-dialog replace @reach/visually-hidden by @radix-ui/react-visually-hidden

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/menu-button by @radix-ui/react-dropdown-menu remove @reach/listbox remove <ToolbarListbox /> and <Listbox /> components (use <Menu /> instead)

  • #3181 9ac84bfc Thanks @B2o5T! - fixed long list items in dropdown were hidden

    rename <Menu /> to <DropdownMenu /> rename <Menu.List /> to <DropdownMenu.Content /> rename <Menu.Item /> to <DropdownMenu.Item /> rename <Menu.Button /> to <DropdownMenu.Button />

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/tooltip by @radix-ui/react-tooltip

  • #3181 9ac84bfc Thanks @B2o5T! - replace @reach/combobox with Combobox from @headlessui/react

  • #3181 9ac84bfc Thanks @B2o5T! - tabs could be reorderded

Patch Changes

0.17.6

Patch Changes

0.17.5

Patch Changes

0.17.4

Patch Changes

0.17.3

Patch Changes

0.17.2

Patch Changes

0.17.1

Patch Changes

0.17.0

Minor Changes

  • #3012 65f5176a Thanks @benjie! - GraphiQL now maintains the DocExplorer navigation stack as best it can when the schema is updated

Patch Changes

0.16.0

Minor Changes

Patch Changes

0.15.0

Minor Changes

  • #2908 3340fd74 Thanks @thomasheyenbrock! - Deprecate the initialTabs prop and add a defaultTabs props that supersedes it

  • #2907 3a7d0007 Thanks @thomasheyenbrock! - Clearly separate the fetching and subscription states for multipart requests (like subscriptions) and show the stop-button as long as the subscription is running

Patch Changes

0.14.0

Minor Changes

Patch Changes

0.13.7

Patch Changes

0.13.6

Patch Changes

0.13.5

Patch Changes

0.13.4

Patch Changes

0.13.3

Patch Changes

  • #2778 905f2e5e Thanks @jonathanawesome! - Adds a box-model reset for all children of the .graphiql-container class. This change facilitated another change to the --sidebar-width variable.

0.13.2

Patch Changes

0.13.1

Patch Changes

0.13.0

Minor Changes

  • #2735 ca067d88 Thanks @thomasheyenbrock! - Add CSS variables for color alpha values:
    • --alpha-secondary: A color for supplementary text that should be read but not be the main focus
    • --alpha-tertiary: A color for supplementary text which is optional to read, i.e. the UI would function without the user reading this text
    • --alpha-background-light, --alpha-background-medium and --alpha-background-heavy: Three alpha values used for backgrounds and borders that have different intensity

Patch Changes

0.12.1

Patch Changes

0.12.0

Minor Changes

Patch Changes

0.11.1

Patch Changes

0.11.0

Minor Changes

  • #2694 e59ec32e Thanks @acao! - BREAKING: The onHasCompletion export has been removed as it is only meant to be used internally.
  • #2694 e59ec32e Thanks @acao! - Add new components:
    • UI components (Button, ButtonGroup, Dialog, Menu, Spinner, Tab, Tabs, Tooltip, UnStyledButton and lots of icon components)
    • Editor components (QueryEditor, VariableEditor, HeaderEditor and ResponseEditor)
    • Toolbar components (ExecuteButton, ToolbarButton, ToolbarMenu and ToolbarSelect)
    • Docs components (Argument, DefaultValue, DeprecationReason, Directive, DocExplorer, ExplorerSection, FieldDocumentation, FieldLink, SchemaDocumentation, Search, TypeDocumentation and TypeLink)
    • History component
    • A GraphiQLProvider component that renders all other existing provider components from @graphiql/react for ease of use
  • #2694 e59ec32e Thanks @acao! - BREAKING: Add a new context provider for plugins. This induces changes to the following other contexts and their provider components:
    • The property isVisible and the methods hide and show of the ExplorerContext have been removed. Also, the property isVisible and the methods hide, show and toggle of the HistoryContext have been removed. Visibility state of plugins is now part of the PluginContext using the visiblePlugin property. The visibility state can be altered using the setVisiblePlugin method of the PluginContext.
    • The isVisible prop of the ExplorerContextProvider has been removed. For controlling the visibility state of plugins you can now use the visiblePlugin prop of the PluginContextProvider.
    • The onToggle prop of the HistoryContextProvider and the onToggleVisibility prop of the ExplorerContextProvider have been removed. For listening on visibility changes for any plugin you can now use the onTogglePluginVisibility prop of the PluginContextProvider.
  • #2694 e59ec32e Thanks @acao! - BREAKING: The ResponseTooltip prop of the ResponseEditor has been renamed to responseTooltip

Patch Changes

0.10.1

Patch Changes

0.10.0

Minor Changes

  • #2651 85d5af25 Thanks @thomasheyenbrock! - BREAKING: The following context properties have been removed as they are only meant for internal use:
    • The subscription property of the ExecutionContext
    • The setSchema method of the SchemaContext
    • The setFetchError method of the SchemaContext
  • #2652 6ff0bab9 Thanks @thomasheyenbrock! - BREAKING: The validationErrors property of the SchemaContext is now always non-null. If the schema is valid then it will contain an empty list.
  • #2644 0aff68a6 Thanks @thomasheyenbrock! - BREAKING: The ResponseEditor component no longer accepts the prop value. Instead you can now pass the prop response to the EditorContextProvider. This aligns it with the API design of the other editor components.

0.9.0

Minor Changes

  • #2642 100af928 Thanks @thomasheyenbrock! - Add a new prop operationName to the ExecutionContextProvider component that controls the operation sent with the request
  • #2642 100af928 Thanks @thomasheyenbrock! - BREAKING: The ExecutionContextProvider and QueryEditor components no longer accepts the onEditOperationName prop. Instead you can now pass this prop to the EditorContextProvider component.

0.8.0

Minor Changes

  • #2636 62317e0b Thanks @thomasheyenbrock! - BREAKING:
    • The ExecutionContextProvider and QueryEditor components no longer accept the externalFragments prop. Instead the prop can now be passed to the EditorContextProvider component. The provider component will normalize the prop value and provide a map of type Map<string, FragmentDefinitionNode> (using the fragment names as keys) as part of the value of the EditorContext.
    • The QueryEditor component no longer accept the validationRules prop. Instead the prop can now be passed to the EditorContextProvider component. The provider component will provide the list of validation rules (empty if there are none) as part of the value of the EditorContext.
    • The ExecutionContextProvider and HeaderEditor components no longer accept the shouldPersistHeaders prop. Instead the EditorContextProvider component now provides the value of its equally named prop as part of the value of the EditorContext.

0.7.1

Patch Changes

0.7.0

Minor Changes

  • #2618 4c814506 Thanks @thomasheyenbrock! - Add a method introspect to the schema context and provide a short key (Shift-Ctrl-R) for triggering introspection

0.6.0

Minor Changes

Patch Changes

0.5.2

Patch Changes

0.5.1

Patch Changes

0.5.0

Minor Changes

Patch Changes

  • #2545 8ce5b483 Thanks @thomasheyenbrock! - Avoid top-level dynamic imports from codemirror that break importing the package in non-browser environments

0.4.3

Patch Changes

  • #2526 26e44120 Thanks @thomasheyenbrock! - Add missing caller arguments to hook calls so that the error message printed when a context provider is missing is more accurate about the component or hook that caused the error

0.4.2

Patch Changes

0.4.1

Patch Changes

0.4.0

Minor Changes

0.3.0

Minor Changes

  • #2450 1e6fc68b Thanks @thomasheyenbrock! - Extract the copy, merge, prettify, and autoCompleteLeafs functions into hooks and remove these functions from the editor context value

Patch Changes

0.2.1

Patch Changes

  • #2435 89f0244f Thanks @thomasheyenbrock! - Move the logic for deriving operation facts from the current query to @graphiql/react and store these facts as properties on the query editor instance
  • #2436 3e5295f0 Thanks @thomasheyenbrock! - Inline logic for clicking a reference to open the docs and remove the onClickReference and onHintInformationRender props of the editor components and hooks

0.2.0

Minor Changes

  • #2413 8be164b1 Thanks @thomasheyenbrock! - Add a StorageContext and a HistoryContext to @graphiql/react that replaces the logic in the graphiql package
  • #2420 3467cd33 Thanks @thomasheyenbrock! - Add a SchemaContext to @graphiql/react that replaces the logic for fetching and validating the schema in the graphiql package

Patch Changes

0.1.2

Patch Changes

0.1.1

Patch Changes

  • #2423 838e58da Thanks @chentsulin! - Fix peer dependency declaration by using || instead of | to link multiple major versions

0.1.0

Minor Changes

  • #2409 f2025ba0 Thanks @thomasheyenbrock! - Move the logic of the variable editor from the graphiql package into a hook useVariableEditor provided by @graphiql/react
  • #2408 d825bb75 Thanks @thomasheyenbrock! - Move the logic of the query editor from the graphiql package into a hook useQueryEditor provided by @graphiql/react
  • #2411 ad448693 Thanks @thomasheyenbrock! - Move the logic of the result viewer from the graphiql package into a hook useResponseEditor provided by @graphiql/react
  • #2404 029ddf82 Thanks @thomasheyenbrock! - Add a context provider for editors and move the logic of the headers editor from the graphiql package into a hook useHeaderEditor provided by @graphiql/react

Patch Changes