{"_id":"@bostonuniversity/block-imports","_rev":"4-6e7ce938f57fbc3ae111700572b13747","name":"@bostonuniversity/block-imports","dist-tags":{"latest":"0.1.4"},"versions":{"0.2.0":{"name":"@bostonuniversity/block-imports","version":"0.2.0","keywords":[],"author":{"url":"https://www.bu.edu/marcom/","name":"Boston University"},"license":"GPL-2.0-or-later","_id":"@bostonuniversity/block-imports@0.2.0","maintainers":[{"name":"buweb","email":"webteam@bu.edu"},{"name":"jdub233","email":"tamlin@mac.com"},{"name":"dannycrews","email":"dancrews@me.com"},{"name":"rfera213","email":"rfera213@bu.edu"},{"name":"smtierneybu","email":"tierneys@bu.edu"},{"name":"timkingbuedu","email":"timking@bu.edu"},{"name":"hirozed","email":"npmjs@ziro88.com"},{"name":"acketon","email":"acketon@gmail.com"}],"contributors":[{"name":"Sean Tierney","email":"tierneys@bu.edu"},{"name":"Dakota Chichester","email":"acketon@bu.edu"},{"name":"Tim King","email":"timking@bu.edu"}],"homepage":"https://github.com/bu-ist/block-imports","bugs":{"url":"https://github.com/bu-ist/block-imports/issues"},"dist":{"shasum":"84edc6815cc7ff678fa45bc0bc50b7bd6d80b282","tarball":"https://registry.npmjs.org/@bostonuniversity/block-imports/-/block-imports-0.2.0.tgz","fileCount":102,"integrity":"sha512-i2PAk2HIdZdVTTRD0IMD54Oe1zTBG1bwRRXGUkg0nnAW5AXKaQoRfvfLi9k9zhaWA/YSlg/T+K+AxgJabffiaQ==","signatures":[{"sig":"MEQCIHFlnSw9BQnWBYcBrjLj5i87Bl10xVhgA+pWLnSymEh1AiB86fAzDxsATxgN1S2gVltWk/rJ76pLcwxAvpLOx0J4Xw==","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":13732506},"main":"index.js","watch":{"yalc:changed":{"quiet":false,"patterns":["components","index.js","package.json"],"extensions":"js,scss,php,json"}},"gitHead":"f5608ec67798280589d22cc5ede559c119d7a816","scripts":{"lint":"npm-run-all lint:css lint:html lint:js lint:md lint:pkg","yalc":"yalc publish","watch":"npm-watch","format":"wp-scripts format","lint:js":"wp-scripts lint-js","lint:md":"wp-scripts lint-md-docs","lint:css":"wp-scripts lint-style","lint:pkg":"wp-scripts lint-pkg-json","lint:html":"linthtml '**!(node_modules|build|vendor)/*.php'","yalc:push":"yalc publish --push","__CLEANUP__":"=======================================================================","lint:js:fix":"wp-scripts lint-js --fix","yalc:changed":"yalc push --changed"},"_npmUser":{"name":"timkingbuedu","email":"timking@bu.edu"},"repository":{"url":"git+https://github.com/bu-ist/block-imports.git","type":"git"},"_npmVersion":"6.14.16","description":"Block Imports for BU Plugins and Themes","directories":{},"_nodeVersion":"12.22.12","dependencies":{"classnames":"^2.5.1","@wordpress/date":"^5.1.0","@wordpress/api-fetch":"^6.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"yalc":"^1.0.0-pre.53","npm-watch":"^0.13.0","npm-run-all":"^4.1.5","@wordpress/env":"^10.18.0","@wordpress/icons":"^10.1.0","@linthtml/linthtml":"^0.9.5","@wordpress/scripts":"^27.1.0"},"_npmOperationalInternal":{"tmp":"tmp/block-imports_0.2.0_1741100288684_0.4421174542111006","host":"s3://npm-registry-packages-npm-production"}},"0.1.4":{"name":"@bostonuniversity/block-imports","version":"0.1.4","keywords":[],"author":{"url":"https://www.bu.edu/marcom/","name":"Boston University"},"license":"GPL-2.0-or-later","_id":"@bostonuniversity/block-imports@0.1.4","maintainers":[{"name":"buweb","email":"webteam@bu.edu"},{"name":"jdub233","email":"tamlin@mac.com"},{"name":"dannycrews","email":"dancrews@me.com"},{"name":"rfera213","email":"rfera213@bu.edu"},{"name":"smtierneybu","email":"tierneys@bu.edu"},{"name":"timkingbuedu","email":"timking@bu.edu"},{"name":"hirozed","email":"npmjs@ziro88.com"},{"name":"acketon","email":"acketon@gmail.com"}],"contributors":[{"name":"Sean Tierney","email":"tierneys@bu.edu"},{"name":"Dakota Chichester","email":"acketon@bu.edu"},{"name":"Tim King","email":"timking@bu.edu"}],"homepage":"https://github.com/bu-ist/block-imports","bugs":{"url":"https://github.com/bu-ist/block-imports/issues"},"dist":{"shasum":"3eca748d34c4750352253bdbf1adefea14ce748e","tarball":"https://registry.npmjs.org/@bostonuniversity/block-imports/-/block-imports-0.1.4.tgz","fileCount":134,"integrity":"sha512-AXYhUDmbI0VmI3amxpDcq45QMlQSimkOtqhAYXlAhPqMAWKmBuB3msLI3hATHVog5foRQf6w8vP7h8HZIUwccw==","signatures":[{"sig":"MEYCIQDCGwEoG4DCj+b2TGLU+jSv7PSour9WOw7EYqVDANHsHgIhAOrqtQFF+OWcduoqi3N+O0AI8jIU11x//Bpe5GdL7SDA","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":3255421},"main":"index.js","gitHead":"af7882fb24f7144151f5084d9956bc56f3e18886","scripts":{"lint":"npm-run-all lint:css lint:html lint:js lint:md lint:pkg","start":"wp-scripts start","format":"wp-scripts format","lint:js":"wp-scripts lint-js","lint:md":"wp-scripts lint-md-docs","lint:css":"wp-scripts lint-style","lint:pkg":"wp-scripts lint-pkg-json","lint:html":"linthtml '**!(node_modules|build|vendor)/*.php'","__CLEANUP__":"=======================================================================","lint:js:fix":"wp-scripts lint-js --fix","__DEVELOPMENT__":"==================================================================="},"_npmUser":{"name":"timkingbuedu","email":"timking@bu.edu"},"repository":{"url":"git+https://github.com/bu-ist/block-imports.git","type":"git"},"_npmVersion":"10.8.2","description":"Block Imports for BU Plugins and Themes","directories":{},"_nodeVersion":"20.19.3","dependencies":{"classnames":"^2.5.1","@wordpress/date":"^5.1.0","@wordpress/api-fetch":"^6.0.0"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"yalc":"^1.0.0-pre.53","lodash":"^4.17.21","npm-run-all":"^4.1.5","react-window":"^1.8.11","@dnd-kit/core":"^6.3.1","@emotion/styled":"^11.14.0","@leeoniya/ufuzzy":"^1.0.18","@wordpress/icons":"^10.1.0","@dnd-kit/sortable":"^10.0.0","@dnd-kit/modifiers":"^9.0.0","@dnd-kit/utilities":"^3.2.2","@linthtml/linthtml":"^0.9.5","@wordpress/scripts":"^27.1.0","@tanstack/react-query":"^5.67.1"},"_npmOperationalInternal":{"tmp":"tmp/block-imports_0.1.4_1752784329846_0.20067088999938787","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2025-03-04T14:58:08.569Z","modified":"2025-11-12T14:57:06.627Z","0.2.0":"2025-03-04T14:58:09.108Z","0.1.4":"2025-07-17T20:32:10.136Z"},"bugs":{"url":"https://github.com/bu-ist/block-imports/issues"},"author":{"url":"https://www.bu.edu/marcom/","name":"Boston University"},"license":"GPL-2.0-or-later","homepage":"https://github.com/bu-ist/block-imports","keywords":[],"repository":{"url":"git+https://github.com/bu-ist/block-imports.git","type":"git"},"description":"Block Imports for BU Plugins and Themes","contributors":[{"name":"Sean Tierney","email":"tierneys@bu.edu"},{"name":"Dakota Chichester","email":"acketon@bu.edu"},{"name":"Tim King","email":"timking@bu.edu"}],"maintainers":[{"email":"webteam@bu.edu","name":"buweb"},{"email":"tamlin@mac.com","name":"jdub233"},{"email":"dancrews@me.com","name":"dannycrews"},{"email":"rfera213@bu.edu","name":"rfera213"},{"email":"Keri@bu.edu","name":"keribu"},{"email":"timking@bu.edu","name":"timkingbuedu"},{"email":"npmjs@ziro88.com","name":"hirozed"},{"email":"acketon@gmail.com","name":"acketon"}],"readme":"# BU Block Imports\n\nStandardized set of components, hooks, and utilities that can be used within WordPress blocks.\n\n__In Development:__ This is just starting (March 2025) and it should be assumed that nothing actually works yet. Bug reports, feature requests, questions, and pull requests are welcome.\n\n## Installation\n\n1. Run `npm i @bostonuniversity/block-imports -D` within your WordPress theme or plugin.\n2. Within your block editor code, import the relevant component(s) e.g. `import { ContentPicker } from '@bostonuniversity/block-imports';`\n\n## Components\n\n[Components](https://www.w3schools.com/react/react_components.asp) are independent and reusable bits of code. They serve the same purpose as JavaScript functions, but work in isolation and return HTML.\n\n__These should be named in PascalCase without a BU namespace. They should use the [`.mjs`](https://v8.dev/features/modules#mjs) extension.__\n\n- ![alt text](readme-icons/IssueClosedOld.svg) [AllowedBlocks](components/AllowedBlocks)\n- ![alt text](readme-icons/IssueClosedOld.svg) [Background](components/Background)\n- ![alt text](readme-icons/IssueClosedOld.svg) [BlockIcons](components/BlockIcons)\n- ![alt text](readme-icons/IssueClosedOld.svg) [ColorSettings](components/ColorSettings)\n- ![alt text](readme-icons/IssueClosedOld.svg) [ContentPicker](components/ContentPicker)\n- ![alt text](readme-icons/IssueClosedOld.svg) [CustomBlockAppender](components/CustomBlockAppender)\n- ![alt text](readme-icons/IssueClosedOld.svg) [FetchAllTermSelectControl](components/FetchAllTermSelectControl)\n- ![alt text](readme-icons/IssueClosedOld.svg) [HelpWrapper](components/HelpWrapper)\n- ![alt text](readme-icons/IssueClosedOld.svg) [IconPicker](components/IconPicker)\n- ![alt text](readme-icons/IssueClosedOld.svg) [Image](components/Image)\n- ![alt text](readme-icons/IssueClosedOld.svg) [LinkToolbar](components/LinkToolbar)\n- ![alt text](readme-icons/IssueClosedOld.svg) [LoadingSpinner](components/LoadingSpinner)\n- ![alt text](readme-icons/IssueClosedOld.svg) [MediaCredit](components/MediaCredit)\n- ![alt text](readme-icons/IssueClosedOld.svg) [Optional](components/Optional)\n- ![alt text](readme-icons/IssueClosedOld.svg) [ParagraphCaptionStyle](components/ParagraphCaptionStyle)\n- ![alt text](readme-icons/IssueClosedOld.svg) [ParagraphEndOfArticleStyle](components/ParagraphEndOfArticleStyle)\n- ![alt text](readme-icons/IssueClosedOld.svg) [PlainTextWithLimit](components/PlainTextWithLimit)\n- ![alt text](readme-icons/IssueClosedOld.svg) [PostChooser](components/PostChooser)\n- ![alt text](readme-icons/IssueClosedOld.svg) [PostPicker](components/PostPicker)\n- ![alt text](readme-icons/IssueClosedOld.svg) [Repeater](components/Repeater)\n- ![alt text](readme-icons/IssueClosedOld.svg) [RichTextWithLimit](components/RichTextWithLimit)\n- ![alt text](readme-icons/IssueClosedOld.svg) [ShareTool](components/ShareTool)\n\n## Hooks\n\nThese are [React Hooks](https://www.w3schools.com/react/react_hooks.asp), not WordPress Hooks. Hooks allow function components to have access to state, lifecycle methods, and other React features.\n\n__These should be named in camelCase without a BU namespace. They should use the [`.mjs`](https://v8.dev/features/modules#mjs) extension.__\n\n- ![alt text](readme-icons/IssueClosedOld.svg) [use-filtered-list](hooks/use-filtered-list)\n- ![alt text](readme-icons/IssueClosedOld.svg) [use-icons](hooks/use-icons)\n- ![alt text](readme-icons/IssueClosedOld.svg) [useAllTerms](hooks/useAllTerms)\n- ![alt text](readme-icons/ApprovedChanges.svg) [useMedia](hooks/useMedia)\n- ![alt text](readme-icons/IssueClosedOld.svg) [useRenderAppenderWithBlockLimit](hooks/useRenderAppenderWithBlockLimit)\n- ![alt text](readme-icons/IssueClosedOld.svg) [useRequestData](hooks/useRequestData)\n\n## Utils\n\nThese are just your standard garden variety javascript functions. They don't need all the features that hooks have.\n\n__These should be named in camelCase without a BU namespace. They should use the [`.mjs`](https://v8.dev/features/modules#mjs) extension.__\n\n- ![alt text](readme-icons/IssueDrafted.svg) [umlautEverything](utils/umlautEverything)\n\n---\n\n## Development\n\nEach folder should contain a README.md file explaining the purpose and usage of the component/hook/util.\n\n### Debugging\n\nThere is no build for this package. You can debug it though by running `npx wp-scripts build index.js` and ensure all paths can be resolved.\n\n### Publishing & Release Process\n\nThis package is managed through NPM.  It can be found here: <https://www.npmjs.com/package/@bostonuniversity/block-components>\n\nThis repo has an action that will run whenever a new release is created.\n\nTo learn more about how NPM is managed for BU projects, please read <https://developer.bu.edu/webteam/developer/vcs/npm-javascript-packages/>\n\nNOTE: you should verify that the package JSON file includes the following to make publishing easier:\n\n```javascript\n\"publishConfig\": {\n    \"access\": \"public\"\n  }\n```\n","readmeFilename":"README.md"}