{"_id":"@atlaschain/atlas-lib","_rev":"2-bd16ec9c1c4740b9749b2ed1550fbfaa","name":"@atlaschain/atlas-lib","dist-tags":{"latest":"3.0.1"},"versions":{"3.0.0":{"name":"@atlaschain/atlas-lib","version":"3.0.0","author":{"name":"Atlas Chain Foundation"},"license":"MIT","_id":"@atlaschain/atlas-lib@3.0.0","maintainers":[{"name":"atlaschain","email":"jq@atlaschain.org"}],"dist":{"shasum":"af8003270aa2094f3476220b1765f87ae9b3f0c1","tarball":"https://registry.npmjs.org/@atlaschain/atlas-lib/-/atlas-lib-3.0.0.tgz","fileCount":202,"integrity":"sha512-iyOeLRovETdbL6st0rhWlXTz0ebN0n8qPPLJBMRIMWqLGuAShHxZmw6VlPCzgzupM/3qdbxErEL2Zo1tGm/Xwg==","signatures":[{"sig":"MEYCIQD4f+gjnphGKhHrPno2M6UJ2+YtBat3CCyk6D5xWvynQgIhANnIol7+J/u4GButegaskNP3QuWrSDb2PedGVG9I40CY","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":2161165},"main":"dist/index.js","husky":{"hooks":{"pre-commit":"tsdx lint"}},"module":"dist/atlas-lib.esm.js","engines":{"node":">=16"},"release":{"plugins":["@semantic-release/npm","@semantic-release/release-notes-generator","@semantic-release/github","@semantic-release/commit-analyzer","@semantic-release/git","@semantic-release/changelog"],"branches":["main",{"name":"staging","prerelease":"staging"}]},"scripts":{"lint":"tsdx lint","size":"size-limit","build":"tsdx build && yarn build-tailwind","start":"tsdx watch","prebuild":"rimraf dist","gen:icons":"node tooling/gen-sprite.mjs","storybook":"storybook dev -p 6006","check-types":"tsc --noEmit","build-tailwind":"NODE_ENV=production npx tailwindcss -i ./src/tailwind.css -o ./dist/styles.css --minify","build-storybook":"storybook build","serve-storybook":"serve storybook-static"},"typings":"dist/index.d.ts","_npmUser":{"name":"atlaschain","email":"jq@atlaschain.org"},"prettier":{"semi":true,"printWidth":120,"singleQuote":true,"trailingComma":"es5"},"size-limit":[{"path":"dist/atlas-lib.esm.js","limit":"20 KB"}],"_npmVersion":"10.9.0","description":"## Node","directories":{},"_nodeVersion":"22.12.0","dependencies":{"sass":"^1.70.0","prismjs":"^1.29.0","slugify":"^1.6.6","react-share":"^4.4.1","react-slick":"^0.29.0","react-player":"^2.12.0","react-countup":"^6.5.0","react-feather":"^2.0.10","slick-carousel":"^1.8.1","tailwind-merge":"^1.14.0","html-react-parser":"^5.1.10","@types/react-slick":"^0.23.13","react-fast-marquee":"^1.6.0","@radix-ui/react-tooltip":"^1.0.6","class-variance-authority":"^0.7.0"},"_hasShrinkwrap":false,"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","devDependencies":{"next":"^13.4.4","tsdx":"^0.14.1","husky":"^8.0.3","react":"^18.2.0","tslib":"^2.5.3","rimraf":"^5.0.1","cssnano":"^6.0.1","postcss":"^8.4.24","react-is":"^18.2.0","react-dom":"^18.2.0","storybook":"^7.1.0-alpha.30","prop-types":"^15.8.1","size-limit":"^8.2.4","typescript":"^5.1.3","@babel/core":"^7.22.1","svg-spreact":"^1.3.2","tailwindcss":"^3.4.1","@types/react":"^18.2.8","autoprefixer":"^10.4.14","babel-loader":"^9.1.2","@storybook/cli":"^7.1.0-alpha.30","@types/prismjs":"^1.26.3","@storybook/react":"^7.1.0-alpha.30","@types/dompurify":"^3.0.2","@types/react-dom":"^18.2.4","@babel/preset-env":"^7.22.4","@storybook/addons":"^7.1.0-alpha.30","@storybook/blocks":"^7.1.0-alpha.30","@storybook/nextjs":"^7.0.20","@babel/preset-react":"^7.22.3","@rollup/plugin-image":"^3.0.2","rollup-plugin-styles":"^4.0.0","@semantic-release/git":"^10.0.1","@semantic-release/npm":"^10.0.3","@storybook/addon-info":"^6.0.0-alpha.2","@storybook/addon-links":"^7.1.0-alpha.30","@babel/preset-typescript":"^7.21.5","@semantic-release/github":"^8.0.7","@storybook/addon-styling":"^1.0.8","@storybook/react-webpack5":"^7.1.0-alpha.30","@storybook/testing-library":"^0.0.14-next.2","@semantic-release/changelog":"^6.0.3","@storybook/addon-essentials":"^7.1.0-alpha.30","@size-limit/preset-small-lib":"^8.2.4","@storybook/addon-interactions":"^7.1.0-alpha.30","@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/release-notes-generator":"^11.0.1"},"peerDependencies":{"next":">=13","react":">=16"},"_npmOperationalInternal":{"tmp":"tmp/atlas-lib_3.0.0_1756971912942_0.21266209026067573","host":"s3://npm-registry-packages-npm-production"}},"3.0.1":{"version":"3.0.1","license":"MIT","name":"@atlaschain/atlas-lib","author":{"name":"Atlas Chain Foundation"},"main":"dist/index.js","typings":"dist/index.d.ts","module":"dist/atlas-lib.esm.js","size-limit":[{"path":"dist/atlas-lib.esm.js","limit":"20 KB"}],"engines":{"node":">=16"},"husky":{"hooks":{"pre-commit":"tsdx lint"}},"prettier":{"printWidth":120,"semi":true,"singleQuote":true,"trailingComma":"es5"},"release":{"branches":["main",{"name":"staging","prerelease":"staging"}],"plugins":["@semantic-release/npm","@semantic-release/release-notes-generator","@semantic-release/github","@semantic-release/commit-analyzer","@semantic-release/git","@semantic-release/changelog"]},"scripts":{"start":"tsdx watch","prebuild":"rimraf dist","build":"tsdx build && yarn build-tailwind","lint":"tsdx lint","size":"size-limit","storybook":"storybook dev -p 6006","build-storybook":"storybook build","serve-storybook":"serve storybook-static","build-tailwind":"NODE_ENV=production npx tailwindcss -i ./src/tailwind.css -o ./dist/styles.css --minify","check-types":"tsc --noEmit","gen:icons":"node tooling/gen-sprite.mjs"},"peerDependencies":{"next":">=13","react":">=16"},"devDependencies":{"@babel/core":"^7.22.1","@babel/preset-env":"^7.22.4","@babel/preset-react":"^7.22.3","@babel/preset-typescript":"^7.21.5","@rollup/plugin-image":"^3.0.2","@semantic-release/changelog":"^6.0.3","@semantic-release/commit-analyzer":"^9.0.2","@semantic-release/git":"^10.0.1","@semantic-release/github":"^8.0.7","@semantic-release/npm":"^10.0.3","@semantic-release/release-notes-generator":"^11.0.1","@size-limit/preset-small-lib":"^8.2.4","@storybook/addon-essentials":"^7.1.0-alpha.30","@storybook/addon-info":"^6.0.0-alpha.2","@storybook/addon-interactions":"^7.1.0-alpha.30","@storybook/addon-links":"^7.1.0-alpha.30","@storybook/addon-styling":"^1.0.8","@storybook/addons":"^7.1.0-alpha.30","@storybook/blocks":"^7.1.0-alpha.30","@storybook/cli":"^7.1.0-alpha.30","@storybook/nextjs":"^7.0.20","@storybook/react":"^7.1.0-alpha.30","@storybook/react-webpack5":"^7.1.0-alpha.30","@storybook/testing-library":"^0.0.14-next.2","@types/dompurify":"^3.0.2","@types/prismjs":"^1.26.3","@types/react":"^18.2.8","@types/react-dom":"^18.2.4","autoprefixer":"^10.4.14","babel-loader":"^9.1.2","cssnano":"^6.0.1","husky":"^8.0.3","next":"^13.4.4","postcss":"^8.4.24","prop-types":"^15.8.1","react":"^18.2.0","react-dom":"^18.2.0","react-is":"^18.2.0","rimraf":"^5.0.1","rollup-plugin-styles":"^4.0.0","size-limit":"^8.2.4","storybook":"^7.1.0-alpha.30","svg-spreact":"^1.3.2","tailwindcss":"^3.4.1","tsdx":"^0.14.1","tslib":"^2.5.3","typescript":"^5.1.3"},"dependencies":{"@radix-ui/react-tooltip":"^1.0.6","@types/react-slick":"^0.23.13","class-variance-authority":"^0.7.0","html-react-parser":"^5.1.10","prismjs":"^1.29.0","react-countup":"^6.5.0","react-fast-marquee":"^1.6.0","react-feather":"^2.0.10","react-player":"^2.12.0","react-share":"^4.4.1","react-slick":"^0.29.0","sass":"^1.70.0","slick-carousel":"^1.8.1","slugify":"^1.6.6","tailwind-merge":"^1.14.0"},"packageManager":"yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e","_id":"@atlaschain/atlas-lib@3.0.1","description":"## Node","_nodeVersion":"22.12.0","_npmVersion":"10.9.0","dist":{"integrity":"sha512-5DYi/Znza0mudsqxs8aA1EqWVwj2w6wduY8E9nQRTC6adZxQvDb4gEGOotZKHsXNmkV1lK967J+Qbt2IRmSeaA==","shasum":"d962dd05b59d893461542a0b10e8b0d536d32bdc","tarball":"https://registry.npmjs.org/@atlaschain/atlas-lib/-/atlas-lib-3.0.1.tgz","fileCount":202,"unpackedSize":2161171,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEUCIEwSwEe/vIehrL9iGWPN1GMM6SlYMOoydmFjQEJTmvnuAiEAg4CPhSsuOkORLXGUHlgTkkOQbLrAsywDn+xON7v+ljo="}]},"_npmUser":{"name":"atlaschain","email":"jq@atlaschain.org"},"directories":{},"maintainers":[{"name":"atlaschain","email":"jq@atlaschain.org"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/atlas-lib_3.0.1_1756975502178_0.22619360917948717"},"_hasShrinkwrap":false}},"time":{"created":"2025-09-04T07:45:12.828Z","modified":"2025-09-04T08:45:02.561Z","3.0.0":"2025-09-04T07:45:13.166Z","3.0.1":"2025-09-04T08:45:02.400Z"},"author":{"name":"Atlas Chain Foundation"},"license":"MIT","description":"## Node","maintainers":[{"name":"atlaschain","email":"jq@atlaschain.org"}],"readme":"# Getting Started\n\n## Node\n\nThis project uses Node v20.2.0 and has an `.nvmrc`. If you have `nvm` installed you can run `nvm use` to switch to the correct version.\n\nIf you don't have `nvm` installed you can install it [here](https://github.com/nvm-sh/nvm).\n\n## Workflow\n\n### Linking\n\nThe recommended workflow to test within the Atlas Next.js site is to run TSDX in dev mode:\n\n```bash\nyarn start\n```\n\nAfter modules have compiled and watcher is running, build the tailwind css file:\n\n```bash\nyarn build-tailwind\n```\n\nThis builds to `/dist` and runs the project in watch mode so any edits you save inside `src` cause a rebuild to `/dist`.\n\nYou can then symlink the package to Atlas's codebase so you can import your modules from the dev build.\n\nTo link:\n\n```bash\n# In the root of this project\nyarn link\n```\n\nNavigate to your local build of Atlas's Next site and run:\n\n```bash\n# In the root of the Atlas Next.js site\nyarn link @atlaschain/atlas-lib\n```\n\nYou can now import from `@atlaschain/atlas-lib` and test locally.\n\n### Storybook\n\nRun inside another terminal:\n\n```bash\nyarn storybook\n```\n\nThis loads the stories from all files with `.stories`.\n\nStorybook runs on port `http://localhost:6006/` by default.\n\n## File Architecture\n\nThis is the basic folder structure for this project:\n\n```txt\n├── src\n│   ├── components\n│   │   └── CoolComponent\n│   │       ├── coolComponent.stories.tsx\n│   │       └── index.tsx\n│   ├── molecules\n│   │   └── Button\n│   │       ├── button.stories.tsx\n│   │       └── index.tsx\n│   ├── index.tsx       # Entry Point\n│   └── tailwind.css    # Style Entry\n│\n\n```\n\n## Development\n\n### Configuration\n\nCode quality is set up for you with `prettier`, `husky`, and `lint-staged`. Adjustments can (and will) still be made, this is just a bare-bones setup.\n\n### TypeScript\n\n`tsconfig.json` is set up to interpret `dom` and `esnext` types, as well as `react` for `jsx`. To prevent import errors we will add `import React from 'react'` at the top of each file that uses it.\n\n### Exports\n\nPer Palmer Group guidelines, [always use named exports.](https://github.com/palmerhq/typescript#exports) Code split inside your React app instead of your React library.\n\n> This library uses relative paths for imports. Absolute paths may still pass the build, but they will break when imported into another project.\n\n### Styles\n\nDue to complications with `Bootstrap` all Tailwind utility classes are prefixed with `tw-`.\n\nThe entry point for the project is `src/tailwind.css`.\n\n### Icons\n\nAn icon sprite is currently generated from the `src/assets/icons` directory. To add to the icon sprite just add an SVG to the directory and run `yarn gen:icons` to create a new sprite.\n\n> To be less limiting in the style of icon, the generation process does NOT strip away inlined `fill` or `stroke` tags. So it's important that you process the SVG beforehand to be compliant with the needs of the icon.\n\n## Build\n\n### Module Formats\n\nCJS, ESModules, and UMD module formats are supported.\n\nThe appropriate paths are configured in `package.json` and `dist/index.js` accordingly. Please report if any issues are found.\n\n### Rollup\n\nTSDX uses [Rollup](https://rollupjs.org) as a bundler and generates multiple rollup configs for various module formats and build settings. See [Optimizations](#optimizations) for details.\n\nRollup uses a minifier called Terser that doesn't support typescript optional chaining. Because of this, we need to use vanilla null checks throughout this project.\n","readmeFilename":"README.md"}