@qrdx/cli 0.0.8 → 0.0.9
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.
- package/dist/index.js +10 -2
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { readFileSync, mkdirSync, writeFileSync, createReadStream } from 'fs';
|
|
3
3
|
import { join, resolve, extname } from 'path';
|
|
4
4
|
import { readFile } from 'fs/promises';
|
|
5
|
-
import { BODY_PATTERN, CORNER_EYE_PATTERNS, CORNER_EYE_DOT_PATTERNS, getTemplateIds,
|
|
5
|
+
import { BODY_PATTERN, CORNER_EYE_PATTERNS, CORNER_EYE_DOT_PATTERNS, getTemplateIds, BUILT_IN_FRAMES, DEFAULT_FRAME_TEXT, FRAME_TEXT_MAX_LENGTH, DEFAULT_MARGIN, getFrameDimensions, colorConfigSchema, errorLevelSchema, QRCodeSVG, svgToEPS, FRAME_STYLES } from 'qrdx';
|
|
6
6
|
import { getQRAsPNG } from 'qrdx/node';
|
|
7
7
|
import { createElement } from 'react';
|
|
8
8
|
import { renderToStaticMarkup } from 'react-dom/server';
|
|
@@ -842,7 +842,15 @@ async function runGenerate(args, meta) {
|
|
|
842
842
|
if (flags.frame === void 0 && !frame) {
|
|
843
843
|
const res = await p.select({
|
|
844
844
|
message: `Frame ${DIM}(call-to-action label around the code)${RESET}`,
|
|
845
|
-
|
|
845
|
+
// Every built-in frame, by its style name and its name
|
|
846
|
+
options: [
|
|
847
|
+
{ value: "none", label: "none" },
|
|
848
|
+
...BUILT_IN_FRAMES.map((item) => ({
|
|
849
|
+
value: item.style,
|
|
850
|
+
label: item.style,
|
|
851
|
+
hint: item.name
|
|
852
|
+
}))
|
|
853
|
+
],
|
|
846
854
|
initialValue: "none"
|
|
847
855
|
});
|
|
848
856
|
if (isCancel2(res)) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@qrdx/cli",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "QR code generator CLI for developers: styled SVG, PNG, WebP and vector EPS QR codes from the command line",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"qr-code",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"dependencies": {
|
|
46
46
|
"@clack/prompts": "^1.8.1",
|
|
47
47
|
"picocolors": "^1.1.1",
|
|
48
|
-
"qrdx": "0.0.
|
|
48
|
+
"qrdx": "0.0.52",
|
|
49
49
|
"react": "19.3.1",
|
|
50
50
|
"react-dom": "19.3.1"
|
|
51
51
|
},
|