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

782 Коммитов

Автор SHA1 Сообщение Дата
Kristján Oddsson 73865bacca
Add me as a CODEOWNER 2022-09-07 09:45:05 +00: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
Keith Cirkel 1d57b70217
apply `nodeResolve: true` to web-test-runner config 2022-07-01 16:36:41 +01:00
Keith Cirkel 629ab224c8
Merge pull request #265 from github/optional-dash
allow for customising prefix of @attr names
2022-06-27 14:51:22 +01:00
Kristján Oddsson b98b71927b
allow for customising prefix of @attr names 2022-06-27 12:28:43 +01:00
Kristján Oddsson 31ad1a02d3
Merge pull request #264 from github/dependabot/npm_and_yarn/jpeg-js-0.4.4
Bump jpeg-js from 0.4.3 to 0.4.4
2022-06-17 09:54:53 +02:00
dependabot[bot] 6ad60d4818
Bump jpeg-js from 0.4.3 to 0.4.4
Bumps [jpeg-js](https://github.com/eugeneware/jpeg-js) from 0.4.3 to 0.4.4.
- [Release notes](https://github.com/eugeneware/jpeg-js/releases)
- [Commits](https://github.com/eugeneware/jpeg-js/compare/v0.4.3...v0.4.4)

---
updated-dependencies:
- dependency-name: jpeg-js
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-06-17 02:05:28 +00:00
Kristján Oddsson 846c85412f
Merge pull request #258 from github/simplify-abilities-docs-link-to-expanded-create-ability-docs
simplify abilities docs - link to expanded Create Ability docs
2022-05-26 12:19:37 +01:00