Security News
NVD Backlog Tops 20,000 CVEs Awaiting Analysis as NIST Prepares System Updates
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
@pie-api/pie-element-extensions
Advanced tools
This is a set of Custom Elements and ES Modules that extend the capabilties of @pie-framework/elements
in the context of pie-api
service. They are intended to be deployed for use in a browser with ES imports.
Initially, the Elements will include:
Cell
- an element to render a user response in a small form factor that can be displayed in a table/spreadsheet cell
Response
- an element to rendder more complete user response, in a larger form factor than Cell
but without necessarily rendering the actual question
Future Elements:
Aggregate
- display a PIE with aggreate information about a set of responses
Modules:
This lib may also export modules & functions that are not Custom Elements.
e.g.:
aggregateResponses([session])
- do a map reduce to get aggregate data about user responses.
Under R&D:
pie-api
will support extending the capabilities of 'installed' pies with these extensions through a definition that defines the module urls for the extension's modules. See src/multiple-choice/pie.config.js
yarn add @pie-api/pie-element-extensions/
npm i @pie-api/pie-element-extensions/
<script type="module">
import '@pie-api/pie-element-extensions/pie-element-extensions.js';
</script>
<!-- use one of the elements exported by the above import-->
<multiple-choice-cell></multiple-choice-cell>
npm install
npm run test
src/pie-name
directory.LitElement
from the element module file. Also export this as default.@element tag-name
in comments for the element class@prop {Type} name - description
in coments for the element classsrc/pie-name/test
stories/element-name/[pie-name].stories.js
To run the suite of karma tests, run
npm run test
To run the tests in watch mode (for TDD, for example), run
npm run test:watch
And open the URL that will be logged to consoleon test-server-start
To run a local instance of Storybook for the components, run
npm run storybook
To build a production version of Storybook, run
npm run storybook:build
To scan the project for linting errors, run
npm run lint
You can lint with ESLint and Prettier individually as well
npm run lint:eslint
npm run lint:prettier
To automatically fix many linting errors, run
npm run format
You can format using ESLint and Prettier individually as well
npm run format:eslint
npm run format:prettier
es-dev-server
npm start
To run a local development server that serves the basic demo located in demo/index.html
FAQs
Extended capabilites for pie-elements
The npm package @pie-api/pie-element-extensions receives a total of 1,553 weekly downloads. As such, @pie-api/pie-element-extensions popularity was classified as popular.
We found that @pie-api/pie-element-extensions demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 5 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
Security News
PyPI now supports digital attestations, enhancing security and trust by allowing package maintainers to verify the authenticity of Python packages.