Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: Refine Type Setup #333

Merged
merged 9 commits into from
Jun 18, 2024
Merged

Conversation

fabiankaegy
Copy link
Member

Description of the Change

Update the remaining components to TS and refine the general type setup.

Copy link

github-actions bot commented Jun 18, 2024

Size Change: +1.99 kB (+3.14%)

Total Size: 65.4 kB

Filename Size Change
dist/index.js 104 B -63.3 kB (-99.84%) 🏆
dist/api/index.js 247 B +247 B (new file) 🆕
dist/api/register-block-extension/index.js 7.23 kB +7.23 kB (new file) 🆕
dist/api/register-icons/index.js 263 B +263 B (new file) 🆕
dist/components/author/context.js 394 B +394 B (new file) 🆕
dist/components/content-search/types.js 11 B +11 B (new file) 🆕
dist/components/content-search/utils.js 7.25 kB +7.25 kB (new file) 🆕
dist/components/index.js 1.39 kB +1.39 kB (new file) 🆕
dist/components/inner-block-slider/icons.js 503 B +503 B (new file) 🆕
dist/components/inner-block-slider/index.js 5.8 kB +5.8 kB (new file) 🆕
dist/components/optional/index.js 379 B +379 B (new file) 🆕
dist/components/post-context/context.js 321 B +321 B (new file) 🆕
dist/components/post-meta/utilities.js 1.2 kB +1.2 kB (new file) 🆕
dist/components/post-term-list/context.js 285 B +285 B (new file) 🆕
dist/components/repeater/index.js 9.53 kB +9.53 kB (new file) 🆕
dist/hooks/index.js 1.08 kB +1.08 kB (new file) 🆕
dist/hooks/use-all-terms/index.js 820 B +820 B (new file) 🆕
dist/hooks/use-block-parent-attributes/index.js 1.38 kB +1.38 kB (new file) 🆕
dist/hooks/use-filtered-list/index.js 1.53 kB +1.53 kB (new file) 🆕
dist/hooks/use-has-selected-inner-block/index.js 646 B +646 B (new file) 🆕
dist/hooks/use-icons/index.js 2 kB +2 kB (new file) 🆕
dist/hooks/use-is-plugin-active/index.js 1.07 kB +1.07 kB (new file) 🆕
dist/hooks/use-is-supported-meta-value/index.js 614 B +614 B (new file) 🆕
dist/hooks/use-is-supported-taxonomy/index.js 901 B +901 B (new file) 🆕
dist/hooks/use-media/index.js 721 B +721 B (new file) 🆕
dist/hooks/use-on-click-outside.js 2.62 kB +2.62 kB (new file) 🆕
dist/hooks/use-popover/index.js 1.44 kB +1.44 kB (new file) 🆕
dist/hooks/use-post-meta-value/index.js 1.06 kB +1.06 kB (new file) 🆕
dist/hooks/use-post/index.js 974 B +974 B (new file) 🆕
dist/hooks/use-primary-term/index.js 2.46 kB +2.46 kB (new file) 🆕
dist/hooks/use-request-data/index.js 1.51 kB +1.51 kB (new file) 🆕
dist/hooks/use-script/index.js 1.16 kB +1.16 kB (new file) 🆕
dist/hooks/use-selected-term-ids/index.js 1.04 kB +1.04 kB (new file) 🆕
dist/hooks/use-selected-terms-of-saved-post/index.js 864 B +864 B (new file) 🆕
dist/hooks/use-selected-terms/index.js 1.91 kB +1.91 kB (new file) 🆕
dist/hooks/use-taxonomy/index.js 607 B +607 B (new file) 🆕
dist/stores/icons/actions.js 586 B +586 B (new file) 🆕
dist/stores/icons/index.js 557 B +557 B (new file) 🆕
dist/stores/icons/reducer.js 1.2 kB +1.2 kB (new file) 🆕
dist/stores/icons/selectors.js 1.73 kB +1.73 kB (new file) 🆕
dist/stores/icons/types.js 11 B +11 B (new file) 🆕
dist/stores/index.js 46 B +46 B (new file) 🆕

compressed-size-action

Copy link

cypress bot commented Jun 18, 2024

Passing run #890 ↗︎

0 6 0 0 Flakiness 0

Details:

migrate RichTextCharaterLimit to TypeScript
Project: 10up Block Components Commit: 3c2e5815dd
Status: Passed Duration: 01:18 💡
Started: Jun 18, 2024 11:36 AM Ended: Jun 18, 2024 11:38 AM

Review all test suite changes for PR #333 ↗︎

@fabiankaegy fabiankaegy merged commit 3934d98 into develop Jun 18, 2024
7 of 8 checks passed
@fabiankaegy fabiankaegy deleted the fix/update-custom-block-appender-to-ts branch June 18, 2024 11:39
@cypress cypress bot mentioned this pull request Jun 18, 2024
4 tasks
const { avatarURL: defaultAvatarUrl } = useSelect((select) => {
// @ts-ignore-next-line The type definitions for the block editor store are incomplete.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use @ts-expect-error instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants