summaryrefslogtreecommitdiff
path: root/packages/integrations/lit/server.js (follow)
AgeCommit message (Collapse)AuthorFilesLines
2023-11-08Fix Lit integration hydration ordering (#9018)Gravatar Augustine Kim 1-1/+1
* Provide renderer instance to `customElementHostStack` * Add changeset
2023-07-03feat: use typescript-eslint@v6's reworked configs (#7425)Gravatar Josh Goldberg ✨ 1-2/+2
2023-04-05Fix lit integration nested component rendering (#6752)Gravatar Augustine Kim 1-1/+6
* Provide renderInfo to renderShadow * Add test for rendering nested components * Add changeset
2023-03-29Update lit-ssr dependency (#6681)Gravatar Elliott Marquez 1-1/+0
* update lit-ssr dependency * delete unnecessary lit shim checks * delete another unused lit shim feature * fix sass build * bump lit and polyfill versions to match ssr req * shim HTMLElement in test * remove lit global shim workarounds * re-shim Astro's ce.define * remove fix window test and shim HTML Element * Update .changeset/gold-windows-fly.md Co-authored-by: Augustine Kim <ajk830@gmail.com> * fix window check test * implement suggestoins --------- Co-authored-by: Augustine Kim <ajk830@gmail.com>
2023-02-24[ci] formatGravatar natemoo-re 1-3/+3
2023-02-24[Lit] render DSD attributes based on `shadowRootOptions` (#6351)Gravatar Reece McDonald 1-1/+5
* [Lit] render DSD attributes based on `shadowRootOptions` ## Changes - Update `@astrojs/lit`’s `server.js` to properly render elements with `delegatesFocus: false` set in their `shadowRootOptions`. - Logic is based on `@lit-labs/ssr` [latest implementation as found here](https://github.com/lit/lit/blob/b0c3f82ef0f97326a205e77e7e1043b75a5cc53f/packages/labs/ssr/src/lib/render-value.ts#L738) ## Testing A test was added to ensure an element with `delegatesFocus` set to true has this attribute properly included in the rendered static markup. * chore: add changeset
2023-02-01[Lit] Forwards compatiblity for streaming Declarative Shadow DOM (#6055)Gravatar Elliott Marquez 1-1/+1
* Forwards compatiblity for streaming DSD * add shadowrootmode * update tests * add changeset
2023-02-01[Lit] Fix hydration not having the same reactive values as server (#6080)Gravatar Elliott Marquez 1-3/+11
* Fix lit hydration not having the same reactive values * add changeset * add clientEntrypoint to package exports * update tests * add changeset * only add defer-hydration when strictly necessary * remove second changest * fix test typos
2023-01-07[ci] formatGravatar matthewp 1-1/+1
2023-01-07[@astrojs/lit] Fix slotted content into main (#5791)Gravatar Sebastiaan 1-5/+16
* Fix add the missing slot attribute to child nodes * Add lit slot tests * Add changeset
2022-06-23Enable named slots in renderers (#3652)Gravatar Nate Moore 1-4/+12
* feat: pass all slots to renderers * refactor: pass `slots` as top-level props * test: add named slot test for frameworks * fix: nested hydration, slots that are not initially rendered * test: add nested-recursive e2e test * fix: render unmatched custom element children * chore: update lockfile * fix: unrendered slots for client:only * fix(lit): ensure lit integration uses new slots API * chore: add changeset * chore: add changesets * fix: lit slots * feat: convert dash-case or snake_case slots to camelCase for JSX * feat: remove tmpl special logic * test: add slot components-in-markdown test * refactor: prefer Object.entries.map() to for/of loop Co-authored-by: Nate Moore <nate@astro.build>
2022-06-21[ci] formatGravatar matthewp 1-2/+2
2022-06-21Support re-exporting astro components containing client components (#3625)Gravatar Matthew Phillips 1-1/+7
* Support re-exporting astro components containing client components * Include metadata for markdown too * Fix ssr, probably * Inject post-build * Remove tagName custom element test * Allows using the constructor for lit elements * Fix hoisted script scanning * Pass through plugin context * Get edge functions working in the edge tests * Fix types for the edge function integration * Upgrade the compiler * Upgrade compiler version * Better release notes for lit * Update .changeset/unlucky-hairs-camp.md Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com> * Properly test that the draft was not rendered * Prevent from rendering draft posts * Add a changeset about the build perf improvement. Co-authored-by: Nate Moore <natemoo-re@users.noreply.github.com>
2022-05-16test(@astrojs/lit): adding tests (#3375)Gravatar Daniel Vivar 1-6/+8
* test(@astrojs/lit): adding tests * changeset
2022-03-18Astro Integration System (#2820)Gravatar Fred K. Schott 1-0/+72
* update examples * add initial integrations * update tests * update astro * update ci * get final tests working * update injectelement todo * update ben code review * respond to final code review feedback