Wykres commitów

23 Commity (next)

Autor SHA1 Wiadomość Data
Konnor Rogers 7891dbef93
Add missing extensions (#1770)
* fix(typescript): add missing extension to imports in typescript

This is required for the types to work with the new
`--module-resolution=node16`.

The list of places to fix was obtained by a crude script:

```sh
rg -g'**/*.ts' -g'!**/*.test.ts' ' from\s+.\.' | rg -v '\.js'
```

References #1765

* add missing extensions

* revert tsconfig

* prettier

* fix test files for NodeNext

* prettier

* changelog entry

* prettier

* prettier

* prettier

---------

Co-authored-by: Andrey Lushnikov <aslushnikov@gmail.com>
2023-12-08 12:30:31 -05:00
Coridyn e786aa86b5
Fix React .d.ts files to import from valid path; fixes #1713 (#1714) 2023-11-13 11:09:11 -05:00
Cory LaViska e5da26fe6d
fix empty react index; closes #1659 (#1663) 2023-10-19 10:30:16 -04:00
Cory LaViska 3882eb151d remove unused dep 2023-10-16 12:39:05 -04:00
Cory LaViska 39a0fafdc3 remove whitespace 2023-10-13 13:53:12 -04:00
Christian Schilling 7041357bf5 Updated @lit-labs/react to @lit/react now as this is stable 2023-10-13 09:38:05 +02:00
Cory LaViska c7b53cff47 update prettier 2023-10-12 13:56:11 -04:00
Konnor Rogers 87837df35c
remove extra react component wrapper, upgrade to v2 of @lit-labs/react (#1531)
* remove extra react wrapper, upgrade to v2 of @lit-labs/react, call define in module.

* add changelog entry

* prettier
2023-08-22 11:26:54 -04:00
Konnor Rogers 539eaded73
Update React Wrappers with Refs that work (#1526)
* fix react types for refs

* fix displayName

* fix displayName]

* attempt to fix typings for React refs

* fix bad type

* prettier

* add changelog entry

* prettier
2023-08-18 13:31:50 -04:00
Konnor Rogers 31ef2f7929
remove side-effects key, update React docs for cherry-picking (#1485)
* remove side-effects, update React docs for cherry-picking

* prettier

* add PR #

* prettier

* fix react import paths

* Update docs/pages/frameworks/react.md

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>

* add colons to imports

---------

Co-authored-by: Cory LaViska <cory@abeautifulsite.net>
2023-08-07 13:20:34 -04:00
Konnor Rogers 3a61d20d93
Create non-auto-registering routes (#1450)
* initial attempt at not auto defining

* add files with -

* continued work on removing auto-define

* fix component definitions

* update with new tag stuff

* fix lots of things

* fix improper scoped elements

* working through side effects

* continued react wrapper work

* update changelog

* formatting

* fixes

* update changelog

* lint / formatting

* fix version injection

* fix version injection, work on test

* fix version injection, work on test

* fix merge conflicts

* fix jsdoc null issue

* fix templates

* use exports

* working on tests

* working on registration mocking

* fix customElements test

* linting

* fix some test stuff

* clean up test

* clean up comment

* rename scopedElements to dependencies

* linting / formatting

* linting / formatting

* mark all packages external and still bundle

* set bundle false

* set bundle true

* dont minify

* fix merge conflicts

* use built shoelace-element

* fix lint errors

* prettier

* appease eslint

* appease eslint gods

* appease eslint gods

* appease eslint gods

* appease eslint gods

* add shoelace-autoloader

* move it all into 1 function

* add exportmaps note

* prettier

* add jsdelivr entrypoint

* read as utf8

* update docs with .component.js importS

* prettier
2023-07-24 13:00:07 -04:00
Ben Anderson 8fd01e1eda
Add event types to react wrapper components (#1419)
* Rename SlSlideChange for consistency with other events

* Setup React event types for events used by Shoelace components

Means that consumers of Shoelace via the React wrapper will be able to
use callback methods with the correct event type, instead of having to
rely on casting and friends when using Typescript.

* Add docs demonstrating importing event types for React callbacks
2023-07-12 11:31:27 -04:00
Konnor Rogers 60d7f688eb
fix extensionless imports (#1394) 2023-06-22 10:56:24 -04:00
Cory LaViska 57b13d848a nicer build (abort still erroring) 2023-06-07 13:28:22 -04:00
Alan Chambers 0e1b792bf7
Update `make-react.js` script to use new @lit-labs/react createComponent options object (#1090)
* Update react wrapper signature

Updated react createComponent to use new options object

* removed unused pascalCase import
2023-01-03 08:57:27 -05:00
Cory LaViska cc305f8957 replace all paths in CEM 2022-11-10 16:27:23 -05:00
Cory LaViska 47388d4a3f update deps 2022-07-27 16:17:23 -04:00
Cory LaViska c368af633c use event.reactName 2022-02-04 09:28:35 -05:00
Cory LaViska 4e9573334a fix outdir bug 2022-01-26 08:46:20 -05:00
Jason O'Neill 9fb3b5cfed feat: add ESLint, improve types, improve a11y 2022-01-15 21:47:14 -08:00
Jason O'Neill ca346ccbb2
update dependencies, cleanup, refine (#642)
* update dependencies, cleanup, refine

fixes #637

* update CI command to verify
2022-01-06 08:44:13 -05:00
Cory LaViska d80fe902b3 fix lgtm warnings 2021-11-24 10:59:31 -05:00
Cory LaViska a4c9b9c8cf add react support into lib 2021-11-04 07:27:18 -04:00