Граф коммитов

788 Коммитов

Автор SHA1 Сообщение Дата
Keith Cirkel 5245044468
add stylable behavior 2022-09-22 17:58:13 +01:00
Kristján Oddsson bf71d4aeab
Merge pull request #282 from github/dependabot/bundler/docs/commonmarker-0.23.6
Bump commonmarker from 0.23.4 to 0.23.6 in /docs
2022-09-22 09:57:43 +02:00
dependabot[bot] cf1e17b052
Bump commonmarker from 0.23.4 to 0.23.6 in /docs
Bumps [commonmarker](https://github.com/gjtorikian/commonmarker) from 0.23.4 to 0.23.6.
- [Release notes](https://github.com/gjtorikian/commonmarker/releases)
- [Changelog](https://github.com/gjtorikian/commonmarker/blob/main/CHANGELOG.md)
- [Commits](https://github.com/gjtorikian/commonmarker/compare/v0.23.4...v0.23.6)

---
updated-dependencies:
- dependency-name: commonmarker
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-09-22 02:17:50 +00:00
Keith Cirkel c7983581ad
Merge pull request #280 from github/upgrade-all-dependencies
upgrade all dependencies
2022-09-07 10:49:07 +01:00
Keith Cirkel 2afd16383c
Merge branch 'main' into upgrade-all-dependencies 2022-09-07 10:45:49 +01:00
Kristján Oddsson 73865bacca
Add me as a CODEOWNER 2022-09-07 09:45:05 +00:00
Keith Cirkel eb864c5ad2
upgrade all dependencies 2022-09-05 17:27:19 +01:00
Keith Cirkel 56caca9151
Merge pull request #278 from github/add-provideasync
add provideAsync
2022-09-02 09:47:16 +01:00
Keith Cirkel 0e5c8bf00e
create animation frame test helper 2022-09-02 09:39:58 +01:00
Keith Cirkel 9dcf260c5f
Merge branch 'main' into add-provideasync 2022-09-02 09:31:58 +01:00
Keith Cirkel b03be65265
bump size limit 2022-09-02 09:31:43 +01:00
Keith Cirkel 63e0e7cb8c
add docs for provideAsync 2022-09-01 18:37:00 +01:00
Keith Cirkel f539ca1fa7
add provideAsync 2022-09-01 18:36:59 +01:00
Keith Cirkel 5a4cf0787b
Merge pull request #274 from robin4a4/fix/prev-next-urls
wrong urls for prev and next links
2022-08-17 15:23:44 +01:00
Robin Marillia 923075c99f revert modif on lock file 2022-08-16 21:49:33 +02:00
Robin Marillia d3f6e827be fix: add baseurl to prev and next links to fix the 404 error in production on github pages 2022-08-16 21:46:56 +02:00
Keith Cirkel a7abf9d580
Merge pull request #272 from robin4a4/prev-and-next-links
Prev and next links
2022-08-16 19:09:22 +01:00
Robin Marillia 8b4a45c9bf revert the lock file to main 2022-08-15 19:26:51 +02:00
Robin Marillia e0b70605d0 add working prev and next links 2022-08-15 19:17:53 +02:00
robin marillia da8c189dd3 feat: add pagination component 2022-08-14 16:48:05 +02:00
robin marillia 7c5312e3c6 feat: add links for prev and next guide page 2022-08-12 13:35:44 +01:00
Keith Cirkel 009ffd8ca6
Merge pull request #270 from robin4a4/anchor-accent-color
fix: better anchor colors from Primer primitives
2022-08-08 15:19:13 +01:00
Robin Marillia 716c4dbdb3 fix: better anchor colors from Primer primitives 2022-08-05 23:29:57 +02:00
Keith Cirkel bb28e3d291
Merge pull request #269 from github/fix-docs
Fix image link and alt text
2022-08-04 11:23:06 +01:00
Kristján Oddsson e146bd4795 Fix image link and alt text
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 12:19:09 +02:00
Keith Cirkel e81d7789ba
Merge pull request #268 from github/lazy-define
`lazyDefine` components
2022-08-04 11:04:25 +01:00
Kristján Oddsson f0e572e83c Add documentation for `lazyDefine`
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 84621efac5 Export `lazyDefine` in index
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 9fc890bc0d Remove default `document.body` from function signature 2022-08-04 11:55:53 +02:00
Kristján Oddsson d81a887a93 Remove addStrategy function 2022-08-04 11:55:53 +02:00
Kristján Oddsson df339849ae Disable wrong eslint rule
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 702fe87b00 Add tests for the different strategies
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 8e9da7d24e Add test to make sure callbacks are only called once
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson d5400983ab prettier
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 1b509ca594 Scan whole document on each `lazyDefine`
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson a0c45c462e Add some basic tests for `lazyDefine`
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson ec912f202d Add tests for `addStrategy`
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 943c929323 Check actual object rather than string
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson d790e4b5cd Rename `whenSeen` to `lazyDefine`
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 2e858fb2a8 Add a `visible` strategy
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson f6489c9be6 Pass in the element tag name to strategies
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 065bde1a0b Convert callback Array to a Set
This prevents callbacks being called twice or more for a given dynamic
element.

Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 612cc18c09 Observe elements when `whenSeen` is called
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 49b4cc0ccc Use abort controller to remove event handlers
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 57148d0dfb Add more event listeners for interaction check
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 926d61bacc Listen to `readystatechange` instead of `DOMContentLoaded`
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 061a038916 Copy `lazy-define.ts` from `github/github`
Co-authored-by: Keith Cirkel <keithamus@users.noreply.github.com>
2022-08-04 11:55:53 +02:00
Kristján Oddsson 6dd8ff932b
Merge pull request #266 from github/make-node-resolve-default-in-web-test-runner
Make node resolve default in web test runner
2022-08-02 12:20:25 +02:00
Keith Cirkel 6910e5a4af
drop redundant test/* path
this is in the config so should not be needed
2022-07-01 16:40:56 +01:00
Keith Cirkel 91c6e1e7f0
drop redunant flag
This flag is now redundant based on the previous commit which makes this option default in the config
2022-07-01 16:37:26 +01:00