Skip to content

Commit 1e92535

Browse files
authored
docs(codesandbox): fix links to keep module view (#1660)
1 parent 1743dfd commit 1e92535

File tree

4 files changed

+21
-21
lines changed

4 files changed

+21
-21
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ platforms:
10931093
> 🚨 We're in the process of moving all examples to the
10941094
> [downshift-examples](https://github.com/downshift-js/downshift-examples) repo
10951095
> (which you can open, interact with, and contribute back to live on
1096-
> [codesandbox](https://codesandbox.io/s/github/kentcdodds/downshift-examples))
1096+
> [codesandbox](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Findex.js&moduleview=1))
10971097
10981098
> 🚨 We're also in the process of updating our examples from the
10991099
> [downshift-docs](https://github.com/downshift-js/downshift-docs) repo which is
@@ -1105,35 +1105,35 @@ platforms:
11051105

11061106
If you're just learning downshift, review these in order:
11071107

1108-
0. [basic automplete with getRootProps](https://codesandbox.io/s/github/kentcdodds/downshift-examples?file=/src/downshift/ordered-examples/00-get-root-props-example.js) -
1108+
0. [basic automplete with getRootProps](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F00-get-root-props-example.js%3A11%2C21&moduleview=1) -
11091109
the same as example #1 but using the correct HTML structure as suggested by
11101110
ARIA-WCAG.
1111-
1. [basic autocomplete](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fordered-examples%2F01-basic-autocomplete.js&moduleview=1) -
1111+
1. [basic autocomplete](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F01-basic-autocomplete.js&moduleview=1) -
11121112
very bare bones, not styled at all. Good place to start.
1113-
2. [styled autocomplete](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fordered-examples%2F02-complete-autocomplete.js&moduleview=1) -
1113+
2. [styled autocomplete](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F02-complete-autocomplete.js&moduleview=1) -
11141114
more complete autocomplete solution using emotion for styling and
11151115
match-sorter for filtering the items.
1116-
3. [typeahead](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fordered-examples%2F03-typeahead.js&moduleview=1) -
1116+
3. [typeahead](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F03-typeahead.js&moduleview=1) -
11171117
Shows how to control the `selectedItem` so the selected item can be one of
11181118
your items or whatever the user types.
1119-
4. [multi-select](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fordered-examples%2F04-multi-select.js&moduleview=1) -
1119+
4. [multi-select](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F04-multi-select.js&moduleview=1) -
11201120
Shows how to create a MultiDownshift component that allows for an array of
11211121
selectedItems for multiple selection using a state reducer
11221122

11231123
**Other Examples:**
11241124

11251125
Check out these examples of more advanced use/edge cases:
11261126

1127-
- [dropdown with select by key](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fother-examples%2Fdropdown-select-by-key%2FCustomDropdown%2Findex.js) -
1127+
- [dropdown with select by key](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fdropdown-select-by-key%2FCustomDropdown%2Findex.js&moduleview=1) -
11281128
An example of using the render prop pattern to utilize a reusable component to
11291129
provide the downshift dropdown component with the functionality of being able
11301130
to highlight a selection item that starts with the key pressed.
1131-
- [using actions](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fother-examples%2Fusing-actions.js&moduleview=1) -
1131+
- [using actions](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fusing-actions.js&moduleview=1) -
11321132
An example of using one of downshift's actions as an event handler.
1133-
- [gmail's composition recipients field](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fother-examples%2Fgmail%2Findex.js&moduleview=1) -
1133+
- [gmail's composition recipients field](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fgmail%2Findex.js&moduleview=1) -
11341134
An example of a highly complex autocomplete component featuring asynchronously
11351135
loading items, multiple selection, and windowing (with react-virtualized)
1136-
- [Downshift HOC and Compound Components](https://codesandbox.io/s/github/kentcdodds/downshift-examples/tree/master/?module=%2Fsrc%2Fother-examples%2Fhoc%2Findex.js&moduleview=1) -
1136+
- [Downshift HOC and Compound Components](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fother-examples%2Fhoc%2Findex.js&moduleview=1) -
11371137
An example of how to implementat compound components with
11381138
`React.createContext` and a downshift higher order component. This is
11391139
generally not recommended because the render prop API exported by downshift is
@@ -1144,7 +1144,7 @@ Check out these examples of more advanced use/edge cases:
11441144

11451145
_🚨 This is a great contribution opportunity!_ These are examples that have not
11461146
yet been migrated to
1147-
[downshift-examples](https://codesandbox.io/s/github/kentcdodds/downshift-examples).
1147+
[downshift-examples](https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Findex.js&moduleview=1).
11481148
You're more than welcome to make PRs to the examples repository to move these
11491149
examples over there.
11501150
[Watch this to learn how to contribute completely in the browser](https://www.youtube.com/watch?v=3PAQbhdkTtI&index=2&t=21s&list=PLV5CVI1eNcJgCrPH_e6d57KRUTiDZgs0u)
@@ -1526,8 +1526,8 @@ MIT
15261526
https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-select-only.html
15271527
[docsite]: https://downshift-js.com/
15281528
[code-sandbox-try-it-out]:
1529-
https://codesandbox.io/s/github/kentcdodds/downshift-examples?file=/src/downshift/ordered-examples/00-get-root-props-example.js
1529+
https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F00-get-root-props-example.js&moduleview=1
15301530
[code-sandbox-no-get-root-props]:
1531-
https://codesandbox.io/s/github/kentcdodds/downshift-examples?file=/src/downshift/ordered-examples/01-basic-autocomplete.js
1531+
https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fdownshift%2Fordered-examples%2F01-basic-autocomplete.js&moduleview=1
15321532
[migration-guide-v7]:
15331533
https://github.com/downshift-js/downshift/tree/master/src/hooks/MIGRATION_V7.md

src/hooks/useCombobox/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,13 +1142,13 @@ suggestion and the Codesandbox for it, and we will take it from there.
11421142
[combobox-aria-example-both]:
11431143
https://www.w3.org/WAI/ARIA/apg/example-index/combobox/combobox-autocomplete-both.html
11441144
[sandbox-example]:
1145-
https://codesandbox.io/s/github/kentcdodds/downshift-examples?file=/src/hooks/useCombobox/basic-usage.js
1145+
https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fhooks%2FuseCombobox%2Fbasic-usage.js&moduleview=1
11461146
[state-change-file]:
11471147
https://github.com/downshift-js/downshift/blob/master/src/hooks/useCombobox/stateChangeTypes.js
11481148
[blog-post-prop-getters]:
11491149
https://blog.kentcdodds.com/how-to-give-rendering-control-to-users-with-prop-getters-549eaef76acf
11501150
[docsite]: https://downshift-js.com/
1151-
[sandbox-repo]: https://codesandbox.io/s/github/kentcdodds/downshift-examples
1151+
[sandbox-repo]: https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Findex.js&moduleview=1
11521152
[advanced-react-component-patterns-course]:
11531153
https://github.com/downshift-js/downshift#advanced-react-component-patterns-course
11541154
[migration-guide-v7]:

src/hooks/useMultipleSelection/README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -948,18 +948,18 @@ docsite examples. If you have such an example, please create an issue with the
948948
suggestion and the Codesandbox for it, and we will take it from there.
949949

950950
[sandbox-example]:
951-
https://codesandbox.io/s/github/kentcdodds/downshift-examples?file=/src/hooks/useMultipleSelection/combobox.js
951+
https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fhooks%2FuseMultipleSelection%2Fcombobox.js&moduleview=1
952952
[select-sandbox-example]:
953-
https://codesandbox.io/s/github/kentcdodds/downshift-examples?file=/src/hooks/useMultipleSelection/select.js
953+
https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fhooks%2FuseMultipleSelection%2Fselect.js&moduleview=1
954954
[state-change-file]:
955955
https://github.com/downshift-js/downshift/blob/master/src/hooks/useMultipleSelection/stateChangeTypes.js
956956
[blog-post-prop-getters]:
957957
https://kentcdodds.com/blog/how-to-give-rendering-control-to-users-with-prop-getters-549eaef76acf
958958
[docsite]: https://downshift-js.com/
959-
[sandbox-repo]: https://codesandbox.io/s/github/kentcdodds/downshift-examples
959+
[sandbox-repo]: https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Findex.js&moduleview=1
960960
[advanced-react-component-patterns-course]:
961961
https://github.com/downshift-js/downshift#advanced-react-component-patterns-course
962962
[migration-guide-v8]:
963963
https://github.com/downshift-js/downshift/tree/master/src/hooks/MIGRATION_V8.md
964964
[migration-guide-v9]:
965-
https://github.com/downshift-js/downshift/tree/master/src/hooks/MIGRATION_V9.md
965+
https://github.com/downshift-js/downshift/tree/master/src/hooks/MIGRATION_V9.md

src/hooks/useSelect/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -970,13 +970,13 @@ suggestion and the Codesandbox for it, and we will take it from there.
970970
[select-aria]:
971971
https://w3c.github.io/aria-practices/examples/combobox/combobox-select-only.html
972972
[sandbox-example]:
973-
https://codesandbox.io/s/github/kentcdodds/downshift-examples?file=/src/hooks/useSelect/basic-usage.js
973+
https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Fhooks%2FuseSelect%2Fbasic-usage.js&moduleview=1
974974
[state-change-file]:
975975
https://github.com/downshift-js/downshift/blob/master/src/hooks/useSelect/stateChangeTypes.js
976976
[blog-post-prop-getters]:
977977
https://blog.kentcdodds.com/how-to-give-rendering-control-to-users-with-prop-getters-549eaef76acf
978978
[docsite]: https://downshift-js.com/
979-
[sandbox-repo]: https://codesandbox.io/s/github/kentcdodds/downshift-examples
979+
[sandbox-repo]: https://codesandbox.io/p/sandbox/github/kentcdodds/downshift-examples?file=%2Fsrc%2Findex.js&moduleview=1
980980
[advanced-react-component-patterns-course]:
981981
https://github.com/downshift-js/downshift#advanced-react-component-patterns-course
982982
[migration-guide-v7]:

0 commit comments

Comments
 (0)