@liquid-js/lyr-extras 0.0.0-stage → 22.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (29) hide show
  1. package/LICENSE.txt +23 -0
  2. package/README.md +61 -2
  3. package/fesm2022/liquid-js-lyr-extras-chart.mjs +871 -0
  4. package/fesm2022/liquid-js-lyr-extras-chart.mjs.map +1 -0
  5. package/fesm2022/liquid-js-lyr-extras-color-picker.mjs +821 -0
  6. package/fesm2022/liquid-js-lyr-extras-color-picker.mjs.map +1 -0
  7. package/fesm2022/liquid-js-lyr-extras-markdown-editor.mjs +923 -0
  8. package/fesm2022/liquid-js-lyr-extras-markdown-editor.mjs.map +1 -0
  9. package/fesm2022/liquid-js-lyr-extras-markdown-viewer.mjs +369 -0
  10. package/fesm2022/liquid-js-lyr-extras-markdown-viewer.mjs.map +1 -0
  11. package/fesm2022/liquid-js-lyr-extras-mask.mjs +240 -0
  12. package/fesm2022/liquid-js-lyr-extras-mask.mjs.map +1 -0
  13. package/fesm2022/liquid-js-lyr-extras-media.mjs +1142 -0
  14. package/fesm2022/liquid-js-lyr-extras-media.mjs.map +1 -0
  15. package/fesm2022/liquid-js-lyr-extras-phone-input.mjs +864 -0
  16. package/fesm2022/liquid-js-lyr-extras-phone-input.mjs.map +1 -0
  17. package/fesm2022/liquid-js-lyr-extras-qr-code.mjs +236 -0
  18. package/fesm2022/liquid-js-lyr-extras-qr-code.mjs.map +1 -0
  19. package/fesm2022/liquid-js-lyr-extras.mjs +0 -0
  20. package/package.json +159 -3
  21. package/types/liquid-js-lyr-extras-chart.d.ts +294 -0
  22. package/types/liquid-js-lyr-extras-color-picker.d.ts +311 -0
  23. package/types/liquid-js-lyr-extras-markdown-editor.d.ts +367 -0
  24. package/types/liquid-js-lyr-extras-markdown-viewer.d.ts +174 -0
  25. package/types/liquid-js-lyr-extras-mask.d.ts +130 -0
  26. package/types/liquid-js-lyr-extras-media.d.ts +517 -0
  27. package/types/liquid-js-lyr-extras-phone-input.d.ts +428 -0
  28. package/types/liquid-js-lyr-extras-qr-code.d.ts +113 -0
  29. package/types/liquid-js-lyr-extras.d.ts +1 -0
package/LICENSE.txt ADDED
@@ -0,0 +1,23 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Akveo.
4
+ Copyright (c) 2026 Liquid-JS and contributors.
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining a copy
7
+ of this software and associated documentation files (the "Software"), to deal
8
+ in the Software without restriction, including without limitation the rights
9
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
+ copies of the Software, and to permit persons to whom the Software is
11
+ furnished to do so, subject to the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be included in all
14
+ copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22
+ SOFTWARE.
23
+
package/README.md CHANGED
@@ -1,3 +1,62 @@
1
- # Temporary Holding Version
1
+ # Lyra extras
2
2
 
3
- This version is a temporary placeholder for this package. An operational version to replace this has been submitted for review and is awaiting a staged release.
3
+ [![GitHub license](https://img.shields.io/github/license/Liquid-JS/lyra.svg)](https://github.com/Liquid-JS/lyra/blob/master/LICENSE.txt)
4
+ [![npm](https://img.shields.io/npm/dm/@liquid-js/lyr-extras.svg)](https://www.npmjs.com/package/@liquid-js/lyr-extras)
5
+ [![scope](https://img.shields.io/npm/v/@liquid-js/lyr-extras.svg)](https://www.npmjs.com/package/@liquid-js/lyr-extras)
6
+
7
+ Lyra components built on other libraries. Each component is in its own entry point, so an app only installs the
8
+ libraries of the components it uses.
9
+
10
+ ## Quick links
11
+
12
+ - [QR code](https://liquid-js.github.io/lyra/extras/components/qr-code/overview/)
13
+ - [Markdown editor](https://liquid-js.github.io/lyra/extras/components/markdown-editor/overview/)
14
+ - [Markdown viewer](https://liquid-js.github.io/lyra/extras/components/markdown-viewer/overview/)
15
+ - [Phone input](https://liquid-js.github.io/lyra/extras/components/phone-input/overview/)
16
+ - [Input mask](https://liquid-js.github.io/lyra/extras/components/input-mask/overview/)
17
+ - [Color picker](https://liquid-js.github.io/lyra/extras/components/color-picker/overview/)
18
+ - [Chart](https://liquid-js.github.io/lyra/extras/components/chart/overview/)
19
+ - [Video and audio](https://liquid-js.github.io/lyra/extras/components/video-audio/overview/)
20
+
21
+ ### Installing
22
+
23
+ Install the package with the libraries of the components you use, e.g. for the QR code:
24
+
25
+ ```sh
26
+ npm install --save @liquid-js/lyr-extras @liquid-js/qr-code-styling
27
+ ```
28
+
29
+ | Entry point | Component | Needs |
30
+ | --------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- |
31
+ | `@liquid-js/lyr-extras/qr-code` | `nb-qr-code`, a QR code with downloads | `@liquid-js/qr-code-styling` |
32
+ | `@liquid-js/lyr-extras/markdown-editor` | `nb-markdown-editor`, markdown with a preview and a WYSIWYG mode | `@liquid-js/underflow`, `remark`, `remark-gfm`, `remark-frontmatter`, `nxt-highlightjs`, `highlight.js` |
33
+ | `@liquid-js/lyr-extras/markdown-viewer` | `nb-markdown-viewer`, markdown rendered with Angular templates | `ngx-remark`, `remark`, `remark-gfm`, `remark-smartypants`, `nxt-highlightjs`, `highlight.js` |
34
+ | `@liquid-js/lyr-extras/phone-input` | `nb-phone-input`, a phone number with its country | `libphonenumber-js`, `i18n-iso-countries`, `nxt-flags` |
35
+ | `@liquid-js/lyr-extras/mask` | `nbMask`, formats what is typed with a mask | `maska` |
36
+ | `@liquid-js/lyr-extras/color-picker` | `nb-color-picker`, a colour field with a picker dialog | `nxt-color-picker` |
37
+ | `@liquid-js/lyr-extras/chart` | `nb-chart` and line, bar and pie charts in the theme's colours | `chart.js` |
38
+ | `@liquid-js/lyr-extras/media` | `nb-video` and `nb-audio`, players with Lyra's controls | `@videojs/core`, `@videojs/media`, `@videojs/store` |
39
+
40
+ Video.js 10's packages, which the video and audio players need, are under the Apache 2.0 licence. Streams and
41
+ embeds play with Video.js's engines, e.g. `@videojs/hlsjs-video` for HLS, which an app sets with
42
+ `provideNbMediaPlayer` and which are only downloaded when a player first needs one.
43
+
44
+ ### Import a component
45
+
46
+ ```ts
47
+ import { NbQrCodeComponent } from '@liquid-js/lyr-extras/qr-code'
48
+
49
+ @Component({
50
+ ...
51
+ imports: [
52
+ ...
53
+ NbQrCodeComponent
54
+ ]
55
+ })
56
+ ```
57
+
58
+ ### Include it in HTML template
59
+
60
+ ```html
61
+ <nb-qr-code data="https://example.com/" />
62
+ ```