From bc5a1f8e482b38a2f363e5020c7d8ffac482647b Mon Sep 17 00:00:00 2001 From: Benjamin Zekavica Date: Mon, 18 Dec 2023 21:25:35 +0100 Subject: [PATCH 1/7] added documentation for the text-decoration-control component --- docs/assets/text-decoration-component.png | Bin 0 -> 10181 bytes .../text-decoration-control/README.md | 44 ++++++++++++++++++ 2 files changed, 44 insertions(+) create mode 100644 docs/assets/text-decoration-component.png create mode 100644 packages/block-editor/src/components/text-decoration-control/README.md diff --git a/docs/assets/text-decoration-component.png b/docs/assets/text-decoration-component.png new file mode 100644 index 0000000000000000000000000000000000000000..4626f953cf9c13ca0d8a1a4d6a8f4435890223f2 GIT binary patch literal 10181 zcmZ9S2RzmP_s2Ep8$tsS8bXqfjEu6guf5kzB|C}kwaMNi^O~909wF;vl@(p%;@Ycl zxz{zymi50>zwht&_jvfs_xRj<-sgE<=X`Fkx~lvIaz=6z5|Rsw3No4`B&Px5|JQ%c z5U<>ly6ZyRF~DT?VOn&Wo_AK z&z@~A2un2?Z=4LC^j~Ba&l5a|GT)}_lSrH3BB)odwT~52a%DH68bX(0|UQ) z{p#=U-{0S#n3#x*i(_G7IXXI8qU($zAz>R=l#$YQ9$QKcHDMeE17zuf&e~yQ{DTme zXOT+2d6sOdhSB<$F83w5C5^2#)b%zp(Vi+!awnKb5cv3wTa7ReKkY3YQ1G{Oc@^cZ z{u*M0B?*%(uwndqNm8!kPQL?4@Tb!$@@|r&NpC<&V5iWelJq1{$rfL$hhBfrNR*%? zCk_AI5L@EHNc#WwA;I+ry(0lhaHpBFDaiWKNUDBpZXLu@XTjba6t&~V<~A*QsAy3$ z=90#Zq$!d7M~$JwJT(vj&g%z}=@k7~<)mOAdf^2rSr1sz({j29Rrhub z(u=IX3L4-e)f9pJ{OzgtHkt2F_1iVI3{3Zp9$rz*vEsk#m>l?uGAF!~=Nz@q=Tl|v zK2qYm(W=p!am?>o z-s-4xfzGl6h5j0uUj1ev?9&Yl0v-CX$sRIdt44bZL75JfLTsWx8kmLV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weC@|WEI%Ywgqd0 z|F8&CiDkj5e6U~{o_w~YjPKut^=aY8V>ozf^hQd?Qy1LdcRTNVeimDqk!Z~cJ?#-9 z2tk;#b(B+{xp;1M1S&G*SuA5{S{er|RT#VV&?!-;JX^PBQUm#8l4;G%Xtc0vAT(;5S;wnnh>tlPOi6Li*7uA7jOeT(( za^P6*8%r1bge6*Jt(4EOeb=e9lGd(G%Ti+Dm7`)BZhQDTD*P*_*pb$dlQP0BZ1OVo zZo)$;Po3~uH^f4pZejzNh;kxorl8oT1rhN==zQp~|y6La#OAcK+ zLlIh<)m#>Lw~}IYJfy(Y%&J!F3V3moG`S7OI95Oh6Yx^icTPem~d$bGyGzdXkG0o5JLND}-a` zJn2MK65ayDPT3ShCnX`i=lA+UAYudSkR$r1Bt82f>_AzD4Dok)B#N@CG9}Vaef|&m CBlNrg literal 0 HcmV?d00001 diff --git a/packages/block-editor/src/components/text-decoration-control/README.md b/packages/block-editor/src/components/text-decoration-control/README.md new file mode 100644 index 00000000000000..7dd9aabf6dd543 --- /dev/null +++ b/packages/block-editor/src/components/text-decoration-control/README.md @@ -0,0 +1,44 @@ +# TextDecorationControl + +The Text Decoration Control component accepts the following props: + +- `value` (string, required): The current value of the text decoration. Possible values are `none`, `underline`, `line-through`. +- `onChange` (function, required): A callback function called when the text decoration value changes. It receives the new value as an argument. + +![TextDecorationControl Element in Inspector Control](https://raw.githubusercontent.com/WordPress/gutenberg/HEAD/docs/assets/text-decoration-component.png?raw=true) + +## Table of Contents + +1. [Usage](#usage) +3. [Properties](#props) + +## Usage + +```jsx +import { TextDecorationControl } from '@wordpress/block-editor'; +``` + +Then, you can use the component in your block editor UI: + +```jsx + setAttributes({ textDecoration: newValue })} +/> +``` + +### Props + +### `value` + +- **Type:** `String` +- **Default:** `none` +- **Options:** `none`, `underline`, `line-through` + +The current value of the Text Decoration setting. You may only choose from the `Options` listed above. + +### `onChange` + +- **Type:** `Function` + +A callback function invoked when the Text Decoration value is changed via an interaction with any of the buttons. Called with the Text Decoration value (`none`, `underline`, `line-through`) as the only argument. \ No newline at end of file From eb02020c269fa01084a926de2eeb1082e750b051 Mon Sep 17 00:00:00 2001 From: Benjamin Zekavica Date: Mon, 18 Dec 2023 21:33:23 +0100 Subject: [PATCH 2/7] removed dubbled content --- .../src/components/text-decoration-control/README.md | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/block-editor/src/components/text-decoration-control/README.md b/packages/block-editor/src/components/text-decoration-control/README.md index 7dd9aabf6dd543..b6104879351f3a 100644 --- a/packages/block-editor/src/components/text-decoration-control/README.md +++ b/packages/block-editor/src/components/text-decoration-control/README.md @@ -1,10 +1,5 @@ # TextDecorationControl -The Text Decoration Control component accepts the following props: - -- `value` (string, required): The current value of the text decoration. Possible values are `none`, `underline`, `line-through`. -- `onChange` (function, required): A callback function called when the text decoration value changes. It receives the new value as an argument. - ![TextDecorationControl Element in Inspector Control](https://raw.githubusercontent.com/WordPress/gutenberg/HEAD/docs/assets/text-decoration-component.png?raw=true) ## Table of Contents From 03c861e134c10b371e820142f8629162cc702b5a Mon Sep 17 00:00:00 2001 From: Benjamin Zekavica Date: Tue, 19 Dec 2023 09:47:40 +0100 Subject: [PATCH 3/7] updated components name --- .../src/components/text-decoration-control/README.md | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/packages/block-editor/src/components/text-decoration-control/README.md b/packages/block-editor/src/components/text-decoration-control/README.md index b6104879351f3a..f4b26e44c307e1 100644 --- a/packages/block-editor/src/components/text-decoration-control/README.md +++ b/packages/block-editor/src/components/text-decoration-control/README.md @@ -1,22 +1,20 @@ # TextDecorationControl -![TextDecorationControl Element in Inspector Control](https://raw.githubusercontent.com/WordPress/gutenberg/HEAD/docs/assets/text-decoration-component.png?raw=true) +Notice: This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes. -## Table of Contents +![TextDecorationControl Element in Inspector Control](https://raw.githubusercontent.com/WordPress/gutenberg/HEAD/docs/assets/text-decoration-component.png?raw=true) -1. [Usage](#usage) -3. [Properties](#props) ## Usage ```jsx -import { TextDecorationControl } from '@wordpress/block-editor'; +import { __experimentalTextDecorationControl } from '@wordpress/block-editor'; ``` Then, you can use the component in your block editor UI: ```jsx - setAttributes({ textDecoration: newValue })} /> From 9137e2a36e1f0cafef5aecd9f33ddc67dfc32867 Mon Sep 17 00:00:00 2001 From: Benjamin Zekavica Date: Tue, 19 Dec 2023 09:49:06 +0100 Subject: [PATCH 4/7] formatting > fix --- .../src/components/text-decoration-control/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/text-decoration-control/README.md b/packages/block-editor/src/components/text-decoration-control/README.md index f4b26e44c307e1..6728eb65afcf0d 100644 --- a/packages/block-editor/src/components/text-decoration-control/README.md +++ b/packages/block-editor/src/components/text-decoration-control/README.md @@ -1,6 +1,6 @@ # TextDecorationControl -Notice: This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes. +**Notice: This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.** ![TextDecorationControl Element in Inspector Control](https://raw.githubusercontent.com/WordPress/gutenberg/HEAD/docs/assets/text-decoration-component.png?raw=true) From 29ca012d2a5c70a2f4ab2e64dc60261d7949caad Mon Sep 17 00:00:00 2001 From: Benjamin Zekavica Date: Thu, 21 Dec 2023 08:14:31 +0100 Subject: [PATCH 5/7] Update packages/block-editor/src/components/text-decoration-control/README.md Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> --- .../src/components/text-decoration-control/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/text-decoration-control/README.md b/packages/block-editor/src/components/text-decoration-control/README.md index 6728eb65afcf0d..9b7bd4a51112a2 100644 --- a/packages/block-editor/src/components/text-decoration-control/README.md +++ b/packages/block-editor/src/components/text-decoration-control/README.md @@ -1,6 +1,9 @@ # TextDecorationControl -**Notice: This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes.** +
+This feature is still experimental. “Experimental” means this is an early implementation subject to drastic and breaking changes. +
+
![TextDecorationControl Element in Inspector Control](https://raw.githubusercontent.com/WordPress/gutenberg/HEAD/docs/assets/text-decoration-component.png?raw=true) From b83cf56b1b6862d0f39e67a9d2f3551844d4d15c Mon Sep 17 00:00:00 2001 From: Benjamin Zekavica Date: Thu, 21 Dec 2023 08:15:26 +0100 Subject: [PATCH 6/7] Update packages/block-editor/src/components/text-decoration-control/README.md Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> --- .../src/components/text-decoration-control/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/text-decoration-control/README.md b/packages/block-editor/src/components/text-decoration-control/README.md index 9b7bd4a51112a2..065ac55860e985 100644 --- a/packages/block-editor/src/components/text-decoration-control/README.md +++ b/packages/block-editor/src/components/text-decoration-control/README.md @@ -11,7 +11,7 @@ This feature is still experimental. “Experimental” means this is an early im ## Usage ```jsx -import { __experimentalTextDecorationControl } from '@wordpress/block-editor'; +import { __experimentalTextDecorationControl as TextDecorationControl } from '@wordpress/block-editor'; ``` Then, you can use the component in your block editor UI: From 34c2573a092eaa6c5701e0cb6dace765e59da074 Mon Sep 17 00:00:00 2001 From: Benjamin Zekavica Date: Thu, 21 Dec 2023 08:15:33 +0100 Subject: [PATCH 7/7] Update packages/block-editor/src/components/text-decoration-control/README.md Co-authored-by: Aaron Robertshaw <60436221+aaronrobertshaw@users.noreply.github.com> --- .../src/components/text-decoration-control/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/block-editor/src/components/text-decoration-control/README.md b/packages/block-editor/src/components/text-decoration-control/README.md index 065ac55860e985..a606140baa330e 100644 --- a/packages/block-editor/src/components/text-decoration-control/README.md +++ b/packages/block-editor/src/components/text-decoration-control/README.md @@ -17,7 +17,7 @@ import { __experimentalTextDecorationControl as TextDecorationControl } from '@w Then, you can use the component in your block editor UI: ```jsx -<__experimentalTextDecorationControl + setAttributes({ textDecoration: newValue })} />