Registry / storage / ngdox-storage

ngdox-storage

JSON →
library2.1.8jsnpmunverified

A React component library for creating storage services, specifically designed for NGSC company's internal use. Version 2.1.8 requires React 18.2.0+ and react-dom 18.2.0+ as peer dependencies. It provides a StorageComponent that displays folders and files with SCSS styling. The package is built for UI storage management, integrating with backend APIs for folder and file operations. Release cadence is irregular, focused on internal NGSC needs. Key differentiator: tailor-made for NGSC's storage service architecture.

npm install ngdox-storage
INSTALL
IMPORT
SIG · NGDOX-STORAGE
N
ngdox-storage
storagejavascriptv2.1.8
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

StorageComponent
import { StorageComponent } from 'ngdox-storage'
import StorageComponent from 'ngdox-storage'
Named export, default import does not work
CSS import
import 'ngdox-storage/src/scss/Storage.scss'
import 'ngdox-storage/dist/Storage.css'
CSS must be imported from the source SCSS path; no pre-compiled CSS is provided
Full module import (CommonJS)
const { StorageComponent } = require('ngdox-storage')
const ngdoxStorage = require('ngdox-storage')
CommonJS require with destructuring; default require gives an object, not the component

Shows basic usage of StorageComponent with folder list and application prop, including SCSS import.

import React from 'react'; import ReactDOM from 'react-dom'; import 'ngdox-storage/src/scss/Storage.scss'; import { StorageComponent } from 'ngdox-storage'; const folders = [ { id: 'folder1', name: 'Project' }, { id: 'folder2', name: 'Group' } ]; function App() { return ( <StorageComponent ListFolder={folders} application="storage-service" /> ); } ReactDOM.render(<App />, document.getElementById('root'));
Debug
Known issues
breakingRequires React 18.2.0+ as peer dependency; incompatible with older React versions
fix
Upgrade React to version 18.2.0 or later
affects: >=2.1.8
gotchaSCSS import path is from 'node_modules/ngdox-storage/src/scss/Storage.scss', which may not work with all bundler configurations without additional SCSS loader setup
fix
Ensure your bundler supports SCSS imports from node_modules, or configure a resolve alias
affects: >=0.0.0
deprecatedThe package is intended for internal NGSC company use; no public documentation or support
fix
Consider using a more widely supported storage UI library if not part of NGSC
affects: >=0.0.0
Errors
Common errors & fixes
Module not found: Can't resolve 'ngdox-storage/src/scss/Storage.scss'
Bundler cannot resolve SCSS import from package source; missing SCSS loader
fix
Add a SCSS loader (e.g., sass-loader) to your webpack or other bundler config
Attempted import error: 'StorageComponent' is not exported from 'ngdox-storage'
Using default import instead of named import
fix
Use import { StorageComponent } from 'ngdox-storage'
Uncaught TypeError: Cannot read properties of undefined (reading 'ListFolder')
ListFolder prop is required but not provided or is undefined
fix
Pass a valid array of folder objects as ListFolder prop
Upgrade
Version history
2.1.8latest on npm
Audit
Dependencies
reactrequiredPeer dependency required for rendering components
react-domrequiredPeer dependency required for DOM rendering
Agent activity
16 hits · last 30 days
node
16
Resources
ngdox-storage — npm install ngdox-storage · libregistry