@prismicio/editor-ui
TypeScript icon, indicating that this package has built-in type declarations

0.4.54 • Public • Published

editor-ui

radix-ui GOTCHAS

  • When passing a React Node as children to a radix primitive that has the asChild prop, you must spread all unused props into that React Node, even if at the type level there doesn't seem to be any remaining props. This is because radix secretly set a lot of extra props on the React Node you gave it. For an example of this, see BaseInput's otherProps. We favor using asChild to reduce the number of DOM nodes and make it easy to size children.

How to add a new SVG icon

  1. Export the SVG icon from Figma. It should always be the variant with a viewbox of 24x24.
  2. Move the file to src/icons and rename it with the official Material name: https://fonts.google.com/icons but with a lower camel case name.
  3. You can repeat 1. and 2. as many times as needed.
  4. Run deno task update-icons (it does not matter where in the monorepo you run this from)
  5. Check that your icon is visible in Storybook.

Mark components or functions as private.

In some cases a subset of functions are only used within editor-ui and should not be available outside of the package. By using TSDoc we can mark our these functions as private, thereby showing intent. If you were to export this function from the package, there would greater sentiment to evaluate if that is indeed the desired outcome.

/**
 * @private
 * This is an internal component we will always use this within the context of a xyz component.
 */

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.4.5487latest
0.4.50-shared-onboarding-in-page-builder.14alpha
0.4.25-alpha.feat-support-group-in-primary.11alpha.feat-support-group-in-primary

Version History

VersionDownloads (Last 7 Days)Published
0.4.5487
0.4.5375
0.4.5281
0.4.5140
0.4.50-shared-onboarding-in-page-builder.14
0.4.503
0.4.49-alpha.feat-onboarding-guide.64
0.4.49-alpha.feat-onboarding-guide.55
0.4.49-alpha.feat-onboarding-guide.44
0.4.49-alpha.feat-onboarding-guide.33
0.4.490
0.4.50-alpha.xru-test-extension.00
0.4.49-alpha.feat-onboarding-guide.20
0.4.49-alpha.feat-onboarding-guide.10
0.4.49-alpha.feat-onboarding-guide.00
0.4.480
0.4.48-alpha.xru-test-animation.00
0.4.470
0.4.47-alpha.fix-navigator-isse.00
0.4.460
0.4.45-alpha.feat-animated-card-variant.10
0.4.45-alpha.feat-animated-card-variant.00
0.4.450
0.4.440
0.4.44-new-codeblock-re-release.40
0.4.44-new-codeblock-re-release.30
0.4.44-new-codeblock-re-release.20
0.4.430
0.4.42-alpha.revert-code-block.00
0.4.420
0.4.42-alpha.dialog-key-up.00
0.4.410
0.4.400
0.4.390
0.4.380
0.4.370
0.4.37-alpha.dialog-actions.00
0.4.360
0.4.350
0.4.340
0.4.34-alpha-dialog-animation-callback.10
0.4.34-alpha-dialog-animation-callback.00
0.4.330
0.4.33-alpha.feat-not-tooltip-animation.00
0.4.320
0.4.31-alpha.editor-ui-dropdown-image-tooltip.30
0.4.310
0.4.31-alpha.editor-ui-dropdown-image-tooltip.20
0.4.31-alpha.editor-ui-dropdown-image-tooltip.10
0.4.31-alpha.editor-ui-dropdown-image-tooltip.00
0.4.31-alpha.app-color-scheme.00
0.4.300
0.4.290
0.4.281
0.4.271
0.4.260
0.4.25-alpha.feat-support-group-in-primary.11
0.4.250
0.4.240
0.4.230
0.4.220
0.4.210
0.4.201
0.4.190
0.4.180
0.4.170
0.4.161
0.4.150
0.4.140
0.4.130
0.4.121
0.4.110
0.4.100
0.4.90
0.4.80
0.4.70
0.4.60
0.4.50
0.4.41
0.4.329
0.4.2124
0.4.174
0.4.00
0.3.135
0.3.01,614
0.2.00
0.1.0299
0.1.0-rc.50
0.1.0-rc.40
0.1.0-rc.30
0.1.0-rc.20
0.1.0-rc.10

Package Sidebar

Install

npm i @prismicio/editor-ui

Weekly Downloads

2,488

Version

0.4.54

License

UNLICENSED

Unpacked Size

3.17 MB

Total Files

299

Last publish

Collaborators

  • srflp
  • jomifepe
  • bohdan-one
  • paulyvpg
  • ruben-prismic
  • filipeue
  • rafa17
  • levimykel
  • chrrrs
  • xrutayisire
  • boubiyeah
  • dani-mp
  • nvld
  • samuelhorn
  • prismic
  • raph22
  • sre
  • arnaudlewis
  • amaurycahuet
  • michel.chau
  • gholgot
  • odim
  • prismic-ci
  • lihbr
  • bapmrl
  • angeloashmore