* first pass
* remove old
* remove delete drill prop
* remove two more drills
* two more drills
* remove one drill
* constify
* two more drills
* remove preview mode get/set drills
* undrill exportAsHAR
* undrill debug response download
* undrill prettify option
* save ipc for next pass
* fix delete response
* make delete function uniform
* address feedback comments
* transform
* nest components to remove drills
* sort props
* rename overloaded children prop
* check for the length of children in request-group-row
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
* add unit test for dropdown component
* refactor dropdown to function component wip
* use useLayoutEffect for updating the position
* update types to use DropdownHandle
* remove unused forcedposition
* remove dropup
* add warning about dropdown container
* add useCallback/useMemo
* re-export the container id for tests
* split the state
* Fix issue with activity toggle accessibility
* add unit tests
* update styled components to the object format
Co-authored-by: Mark Kim <mark.kim@konghq.com>
Co-authored-by: gatzjames <jamesgatzos@gmail.com>
* remove nunjucks usage from core themes
* adds package downloader script
* adds runtime validation for plugins still using nunjucks
* generateThemeCSS no longer needs to be async
* removes Nunjucks as valid type
* fix: edit cookie shows expires as an Invalid Date
* refactor: using date-fns for validation
* use datetime-local input and transform
* use defaultValue
Co-authored-by: tangweikun <tangweikun@corp.netease.com>
Co-authored-by: jackkav <jackkav@gmail.com>
* first pass
* simplify timeouts+intervals
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
* use key to tidy up url bar
* fix lint error in hook
* fix type-check
* add border-right
* Update packages/insomnia/src/ui/css/components/request-url-bar.less
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
* use --hl
Co-authored-by: James Gatz <jamesgatzos@gmail.com>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>
* editable
* wrapper debug
* method dropdown
* request actions dropdown
* response history dropdown
* wrapper home
* copy button
* auth dropdown
* env dropdown
* content type dropdown
* fix types
* second pass
* response csv viewer
* useCallback pass
* more useCallbacks
* wrapper unit test
* simplify pagelayout
* fix editable bug in unit test
* wrapper unit test useCallbacks
* some gentle tidying
* useCallback usage for async func
* switch to useInterval
* updates types for Editable, Highlight, et al.
* moves usage after declaration
* extracts FC for AuthDropdown items
* removes some prop drilling and extracts component
* adds mandaotry useCallback, rm unused props, types
* use named exports from react npm like rest of project
eventually, we will remove usages of `React` default export since it's a hack from half a decade ago that's no longer necessary now that jsx-transform is a thing.
* removes unnecessary useImperativeHandle (we learn somethin' every day)
* adds necessary useCallback, removes unnecessary useImparativeHandle, TS
* fixes types for useRef (turns out you don't need null in the generic)
* removes unused props
* fixes types from ref helpers
* fixes return from useCallback
* updates useCallback usages
* fixes bind
* fixes lint
for some reason, kept getting:
```
insomnia: /home/dimitri/src/github.com/Kong/insomnia/packages/insomnia/src/preload.js
insomnia: 0:0 error Parsing error: "parserOptions.project" has been set for @typescript-eslint/parser.
insomnia: The file does not match your project config: packages/insomnia/src/preload.js.
insomnia: The file must be included in at least one of the projects provided
```
* revert incomplete type change
* remove unnecessary useEffect
Co-authored-by: Dimitri Mitropoulos <dimitrimitropoulos@gmail.com>
apply font-ligatures-variant style to all elements
Co-authored-by: Vincenzo De Petris <vincenzodepetris@gmail.it>
Co-authored-by: Filipe Freire <livrofubia@gmail.com>