330 Commits

Author SHA1 Message Date
dependabot[bot]
5dd988dfd4
Bump typescript from 4.7.4 to 4.8.3 in /website (#2868)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.7.4 to 4.8.3.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.7.4...v4.8.3)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-11 15:57:29 +09:00
dependabot[bot]
dbe653829a
Bump prettier from 2.6.2 to 2.7.1 in /website (#2854)
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.2 to 2.7.1.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.2...2.7.1)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-09-11 15:46:39 +09:00
Rico
9484249948
Update index.mdx (#2865)
Removes double "already" in sentence.
2022-09-10 01:01:28 +05:00
Wambugu
87e1d0e884
Update web-sys.mdx (#2860)
typo error
2022-09-04 15:56:14 +02:00
WorldSEnder
e60c07f746
Remove mentions of wee_alloc (#2857) 2022-09-03 19:10:48 +05:00
Cecile Tonglet
c7b4029e1b
Add old props to fn changed() (#2851)
* Adding old_props to fn changed()

* Change old_props type to &Self::Properties

* Update examples that use fn changed() and want old_props

* Fix tests

* Fix invalid test flags

* cargo fmt

* Oops wrong regex

* Revert change for older version

* Remove unnecessary clone

* Add migration guide

* Oh wow the test was not running xD
2022-08-31 17:10:45 +05:00
Mike Lloyd
72213eec08
Replace reqwasm with gloo-net (#2832)
* Replace reqwasm with gloo-net

* Use crates.io urls instead of github.com
2022-08-17 13:13:15 +05:00
WorldSEnder
8172b9ceac
Document usage of the tracing crate (#2831) 2022-08-16 20:04:08 +09:00
Muhammad Hamza
11fde638ed
Bump website dependencies (#2830) 2022-08-14 21:52:36 +02:00
Muhammad Hamza
a9a7a39d71
Document anti-pattern regarding props (#2817)
* Document anti-pattern regarding props

* fmt

* Review

* Update website/docs/concepts/function-components/properties.mdx

* make prettier happy

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>
2022-08-07 23:16:13 +02:00
dependabot[bot]
2336ee28d6
Bump terser from 5.12.1 to 5.14.2 in /website (#2787)
Bumps [terser](https://github.com/terser/terser) from 5.12.1 to 5.14.2.
- [Release notes](https://github.com/terser/terser/releases)
- [Changelog](https://github.com/terser/terser/blob/master/CHANGELOG.md)
- [Commits](https://github.com/terser/terser/commits)

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

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-21 23:46:03 +09:00
Muhammad Hamza
544990a6b4
Remove component NodeRef (#2783)
* don't attach noderef to components, add test case

* remove node_ref from VNode and VComp

* fmt & macro tests

* remove uneeded test & todo

this test is done at compile time. there's no node_ref field so it can't be set

* feature soundness & clippy

* add marker field, in an attempt to reduce bundle size

* Update migration guide
2022-07-21 01:32:26 +09:00
dependabot[bot]
a528e280f5
Bump @typescript-eslint/parser from 5.27.1 to 5.30.0 in /website (#2765)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.27.1 to 5.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-01 21:41:03 +09:00
dependabot[bot]
06d465da29
Bump typescript from 4.6.3 to 4.7.4 in /website (#2762)
Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.6.3 to 4.7.4.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](https://github.com/Microsoft/TypeScript/compare/v4.6.3...v4.7.4)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-01 21:27:05 +09:00
dependabot[bot]
23668749c6
Bump @typescript-eslint/eslint-plugin from 5.27.1 to 5.30.0 in /website (#2764)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.27.1 to 5.30.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.30.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-01 21:26:21 +09:00
Muhammad Hamza
9c65031258
Add playground to docs (#2751)
* Add #![doc(html_playground_url)]

* Add playground link in website navbar

* Option about playground issue

* translations

* Update packages/yew/src/lib.rs
2022-06-24 23:26:29 +05:00
乐平
467267d799
docs: i18n correction (#2745)
* docs: i18n correction

* remove unneeded node_modules

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-06-24 23:00:38 +05:00
Yohan GOUZERH
8cf55089e0
[tutorial] Add missing import (#2465)
* [tutorial] Add missing import

At line 474, we declare reqwasm and serde but we doesn't add them in scope.
This change is to add the import of Deserialize and Request

* [tutorial] Correct missing import

Correct the missing import declaration by adding it
in the next snippet

* Update PR to resolve the issues

This PR has been blocked for months. I'm updating it so we can merge it

* Apply suggestions from code review

Co-authored-by: Yohan GOUZERH <yohan.gouzerh@viseo.com>
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-06-24 22:47:46 +05:00
Cecile Tonglet
7ddf26752f
Introduce immutable string, array and map (#2563) 2022-06-24 16:58:20 +01:00
Mikkel
59beb2ad01
Updated index.mdx to reflect new stackoverflow survey (2022) (#2747)
rust has been voted the most loved programming language for the 7th year in a row now!
2022-06-23 11:23:31 +02:00
Udasi Tharani
acecfabce7
[Docs] String Literals Behavior (#2734)
* add note for string literals in docs

* Apply suggestion from review

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-06-19 16:51:56 +00:00
Muhammad Hamza
526ecb975e
Increase MSRV to 1.56.1 (#2740) 2022-06-19 18:45:52 +05:00
dependabot[bot]
475cf20a86
Bump @docusaurus/plugin-client-redirects in /website (#2712)
Bumps [@docusaurus/plugin-client-redirects](https://github.com/facebook/docusaurus/tree/HEAD/packages/docusaurus-plugin-client-redirects) from 2.0.0-beta.18 to 2.0.0-beta.21.
- [Release notes](https://github.com/facebook/docusaurus/releases)
- [Changelog](https://github.com/facebook/docusaurus/blob/main/CHANGELOG.md)
- [Commits](https://github.com/facebook/docusaurus/commits/v2.0.0-beta.21/packages/docusaurus-plugin-client-redirects)

---
updated-dependencies:
- dependency-name: "@docusaurus/plugin-client-redirects"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-13 14:31:14 +02:00
WorldSEnder
74c1a709a8
Update a bunch of outdated links (#2723)
* update a bunch of outdated links

* run prettier

* bump deps

* update translations

* change missed translation links
2022-06-13 14:18:08 +02:00
Douglas Sousa
151a6c6481
Update docs attrvalue (#2725)
* update: Promote use of AttrValue instead of String or Rc<String>

* update: Also mention AttrValue in the elements' page

* format: ran fmt:write to correct formatting issue

* fix: refactor doc comments to conform to compiling rules
2022-06-13 13:50:53 +02:00
Maximilian von Hohenbühel
4d6329a755
Update introduction.mdx (#2730)
* Update introduction.mdx

The `if else` example was syntactically correct, but had a semantic issue of not using the condition variable. Could lead to confusion if you are a newbie.

* Update conditional-rendering.mdx

changed if condition variable in html docs
2022-06-12 23:13:47 +09:00
dependabot[bot]
2c63dd8c7e
Bump @typescript-eslint/eslint-plugin from 5.21.0 to 5.27.1 in /website (#2732)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.21.0 to 5.27.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.27.1/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-12 19:01:25 +09:00
dependabot[bot]
7b0678b3f1
Bump @typescript-eslint/parser from 5.23.0 to 5.27.1 in /website (#2731)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.23.0 to 5.27.1.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.27.1/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-06-12 18:43:02 +09:00
Jack DeVries
7272657332
fix typo (#2721) 2022-06-07 12:59:11 +09:00
T.A.V
7dc7195da8
Changed primary color to improve accessibility (#2707)
* changed primary color to improve accessibility

Updated color passes the color contrast ratio test as defined by WCAG (Web Content Accessibility Guidelines)

* Update website/src/css/custom.css

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>

* Update to shades of primary color

Update to the primary color palette in light and dark mode.

* indent for prettier

* single quotes

* Update website/src/css/custom.css

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>
Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-05-26 23:35:16 +02:00
Mark Wainwright
9d00e0ede7
Added notes to the documentation about SVG tag casing (#2703)
* Note about tag casing and fixed example

* Added notes about tag casing

* Removed broken part of SVG example

* Slight change to SVG example

* removed some newlines

* Update website/docs/concepts/html/introduction.mdx

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>

Co-authored-by: WorldSEnder <WorldSEnder@users.noreply.github.com>
2022-05-25 15:52:34 +05:00
WorldSEnder
a6df894f21
Fix: boids and password_strength deployment (#2695)
* fix: boids and password_strength deployment

also adds a compile failure when examples have unresolved symbols

* add caution notice to website
2022-05-21 08:38:18 +05:00
WorldSEnder
6f6c61b975
Allow macro invocations as prop values (#2687)
* fix: macro invocations in props #2267

convert macro invocation Item statements to Exprs

* remove now useless braces in docs
2022-05-18 07:58:46 +02:00
Muhammad Hamza
6b51465c78
yew.rs/api redirect and website fix (#2676) 2022-05-12 22:45:35 +02:00
dependabot[bot]
3fad0ce438
Bump @typescript-eslint/parser from 5.20.0 to 5.23.0 in /website (#2675)
Bumps [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/parser) from 5.20.0 to 5.23.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/parser/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.23.0/packages/parser)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/parser"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-11 20:14:07 +09:00
WorldSEnder
88e4673264
Document event delegation (#2668) 2022-05-07 21:19:32 +05:00
dependabot[bot]
64e2582fda
Bump prettier from 2.6.0 to 2.6.2 in /website (#2588)
Bumps [prettier](https://github.com/prettier/prettier) from 2.6.0 to 2.6.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](https://github.com/prettier/prettier/compare/2.6.0...2.6.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 10:12:31 +09:00
dependabot[bot]
80505ac175
Bump @easyops-cn/docusaurus-search-local in /website (#2645)
Bumps [@easyops-cn/docusaurus-search-local](https://github.com/easyops-cn/docusaurus-search-local) from 0.23.1 to 0.23.2.
- [Release notes](https://github.com/easyops-cn/docusaurus-search-local/releases)
- [Changelog](https://github.com/easyops-cn/docusaurus-search-local/blob/master/CHANGELOG.md)
- [Commits](https://github.com/easyops-cn/docusaurus-search-local/compare/v0.23.1...v0.23.2)

---
updated-dependencies:
- dependency-name: "@easyops-cn/docusaurus-search-local"
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 10:11:38 +09:00
dependabot[bot]
e6e8335d68
Bump @typescript-eslint/eslint-plugin from 5.20.0 to 5.21.0 in /website (#2643)
Bumps [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin) from 5.20.0 to 5.21.0.
- [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases)
- [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md)
- [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v5.21.0/packages/eslint-plugin)

---
updated-dependencies:
- dependency-name: "@typescript-eslint/eslint-plugin"
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-05-06 10:10:48 +09:00
Kaede Hoshikawa
00b94d0051
Make Switch to accept a closure as render function directly (#2659)
* RenderFn can be be directly Fn() now.

* Switch switch to function component.

* Make Link a function component.

* Remove non-exhaustive.

* Add migration guide.

* Update Website Docs.

* Fix CI.

* Pushing to Navigator no longer requires an owned instance.

* Fix CI.

* Fix code size.

* Further optimisation.
2022-05-06 09:56:49 +09:00
Muhammad Hamza
8d9ecf2d20
Wasm doc tests (#2651)
* don't use wasm-pack for wasm tests

* use proper version of wasm-bindgen-cli

* also run with chrome driver

* use cargo pkgid

* wasm doc tests

* setup web drivers

* temp workaround

* fix failures

* remove debug info

* don't be dumb

* specific ref for benchmark workflow so it doesn't fail

* Revert "specific ref for benchmark workflow so it doesn't fail"

This reverts commit c32ad8264fbb4a182892f52f789dbd9822015849.

This should be no longer needed: https://github.com/krausest/js-framework-benchmark/issues/1032#issuecomment-1114303988
2022-05-02 16:10:36 +05:00
Muhammad Hamza
12c9ebb0ea
Move hook API docs to Rustdoc (#2628)
* Move hook API docs to Rustdoc

* npm update, fix links and doc tests and callback docs

* make doc tests pass

* Update packages/yew/src/functional/hooks/use_ref.rs

* Update packages/yew/src/functional/hooks/use_ref.rs

* Update use_ref.rs
2022-04-21 15:28:09 +05:00
WorldSEnder
cd5b8a520c
Improve grammar and paragraph structure in documentation (#2620)
* Read through the docs and correct spelling and grammar

* Run prettier

* Apply review suggestions

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>

* adjust translation messages

Co-authored-by: Muhammad Hamza <muhammadhamza1311@gmail.com>
2022-04-20 16:41:42 +05:00
Jet Li
58db53a026
Allow to consume deps in use_callback (#2617) 2022-04-16 01:43:13 +05:00
WorldSEnder
b580bd4c2f
Code Size: Document and use additional nightly features (#2604)
* code size: doc and use additional nightly features

* add ci paths to run condition

* undo unrelated edit to benchmark workflow

* Add links to nightly feature docs
2022-04-13 13:30:33 +05:00
WorldSEnder
dc60d6099e
Fix links and add CI checks in documentation (#2595)
* Docs overhaul part2

* fix links and require them for CI
* remove translations for 0.17

* remove a bunch of unused documentation

* run prettier

* fixup links and locations of some translations
2022-04-10 21:01:18 +00:00
WorldSEnder
6992a454e3
Introduce a dedicated use_force_update hook (#2586)
* introduce a dedicated use_force_update hook

* fix doc links
2022-04-09 16:54:39 +05:00
Muhammad Hamza
3ad4dbe837
Format website with prettier (#2536)
* add prettier

* ci

* run prettier

* run prettier in CI

* run prettier --write

* ignore README.md

* specify googleAnalytics

* fmt

* npm run write-translations

* fmt

* ignore i18n json files

they're autogenerated and don't like being formatted

* post merge fixes & some updates

* post merge fixes
2022-04-06 22:52:15 +05:00
Kai Jellinghaus
ec1f43aa24
Fix typo(s) in use_callback docs (#2580)
* Fix typo in use-callback.mdx

* Fix the same typo in two more places 🤔

* Fix rest of typos
2022-04-06 16:48:51 +02:00
Muhammad Hamza
4bc61b8da9
Update context docs (#2570)
* update context docs

* fix doc test
2022-04-03 12:52:20 +05:00