@riebeckite/plugin-qr-code 0.0.5 → 0.0.6

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/README.md CHANGED
@@ -100,4 +100,4 @@ The caption comes from the code-block `title` (code meta) or a leading
100
100
 
101
101
  ## See also
102
102
 
103
- - [Plugin guide](../../docs/plugins_en.md)
103
+ - [Plugin guide](../../../docs/en/plugin-system.md)
package/dist/index.d.ts CHANGED
@@ -1,7 +1,7 @@
1
1
  import { DEFAULT_QR_CODE_OPTIONS } from "./src/options.js";
2
2
  import type { QrCodeOptions } from "./src/types.js";
3
- export { buildQrSvg } from "./src/render.js";
4
3
  export { resolveQrCodeOptions } from "./src/options.js";
4
+ export { buildQrSvg } from "./src/render.js";
5
5
  export type { QrBuildResult, QrCodeLevel, QrCodeOptions, ResolvedQrCodeOptions, } from "./src/types.js";
6
6
  export declare function qrCode(options?: QrCodeOptions): import("@riebeckite/core").RiebeckitePlugin<QrCodeOptions>;
7
7
  export declare const qrCodePlugin: typeof qrCode;
package/dist/index.js CHANGED
@@ -506,8 +506,8 @@ var init_rehype = __esm({
506
506
 
507
507
  // index.ts
508
508
  init_options();
509
- init_render();
510
509
  init_options();
510
+ init_render();
511
511
  import {
512
512
  createStyleAsset,
513
513
  definePlugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riebeckite/plugin-qr-code",
3
- "version": "0.0.5",
3
+ "version": "0.0.6",
4
4
  "license": "Apache-2.0",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -16,7 +16,7 @@
16
16
  },
17
17
  "dependencies": {
18
18
  "qrcode": "^1.5.4",
19
- "@riebeckite/core": "0.0.5"
19
+ "@riebeckite/core": "0.0.6"
20
20
  },
21
21
  "publishConfig": {
22
22
  "access": "public"
package/style.css CHANGED
@@ -1,72 +1,72 @@
1
- .rb-qr {
2
- --rb-qr-paper: var(--rb-color-paper, #ffffff);
3
- --rb-qr-ink: var(--rb-color-ink, #000000);
4
- --rb-qr-muted: var(--rb-color-muted, #69645c);
5
- --rb-qr-rule: var(
6
- --rb-color-border,
7
- color-mix(in srgb, var(--rb-qr-ink) 18%, transparent)
8
- );
9
- box-sizing: border-box;
10
- width: fit-content;
11
- max-width: 100%;
12
- margin: 2rem auto;
13
- border: 1px solid var(--rb-qr-rule);
14
- background: var(--rb-qr-paper);
15
- color: var(--rb-qr-ink);
16
- }
17
-
18
- .rb-qr__caption {
19
- padding: 0.5rem 0.75rem;
20
- border-bottom: 1px solid var(--rb-qr-rule);
21
- color: var(--rb-qr-muted);
22
- font-size: 0.8125rem;
23
- text-align: center;
24
- }
25
-
26
- .rb-qr__canvas {
27
- display: grid;
28
- place-items: center;
29
- padding: 1rem;
30
- }
31
-
32
- .rb-qr__canvas > svg {
33
- display: block;
34
- max-width: 100%;
35
- height: auto;
36
- }
37
-
38
- .rb-qr__fallback {
39
- border-top: 1px solid var(--rb-qr-rule);
40
- color: var(--rb-qr-muted);
41
- font-size: 0.8125rem;
42
- }
43
-
44
- .rb-qr__fallback summary {
45
- cursor: pointer;
46
- padding: 0.5rem 0.75rem;
47
- }
48
-
49
- .rb-qr__fallback pre {
50
- overflow: auto;
51
- margin: 0 1rem 0.75rem;
52
- padding: 0.75rem;
53
- border-top: 1px solid var(--rb-qr-rule);
54
- color: var(--rb-qr-ink);
55
- background: color-mix(in srgb, var(--rb-qr-ink) 6%, transparent);
56
- }
57
-
58
- .rb-qr[data-qr="error"] .rb-qr__canvas:empty::before {
59
- content: "QR code could not be rendered.";
60
- color: var(--rb-qr-muted);
61
- }
62
-
63
- .rb-qr[data-qr="pending"] .rb-qr__canvas:empty::before {
64
- content: "Rendering QR code…";
65
- color: var(--rb-qr-muted);
66
- }
67
-
68
- html[data-theme="dark"] .rb-qr,
69
- html.dark .rb-qr {
70
- --rb-qr-paper: var(--rb-color-ink, #000000);
71
- --rb-qr-ink: var(--rb-color-paper, #ffffff);
72
- }
1
+ .rb-qr {
2
+ --rb-qr-paper: var(--rb-color-paper, #ffffff);
3
+ --rb-qr-ink: var(--rb-color-ink, #000000);
4
+ --rb-qr-muted: var(--rb-color-muted, #69645c);
5
+ --rb-qr-rule: var(
6
+ --rb-color-border,
7
+ color-mix(in srgb, var(--rb-qr-ink) 18%, transparent)
8
+ );
9
+ box-sizing: border-box;
10
+ width: fit-content;
11
+ max-width: 100%;
12
+ margin: 2rem auto;
13
+ border: 1px solid var(--rb-qr-rule);
14
+ background: var(--rb-qr-paper);
15
+ color: var(--rb-qr-ink);
16
+ }
17
+
18
+ .rb-qr__caption {
19
+ padding: 0.5rem 0.75rem;
20
+ border-bottom: 1px solid var(--rb-qr-rule);
21
+ color: var(--rb-qr-muted);
22
+ font-size: 0.8125rem;
23
+ text-align: center;
24
+ }
25
+
26
+ .rb-qr__canvas {
27
+ display: grid;
28
+ place-items: center;
29
+ padding: 1rem;
30
+ }
31
+
32
+ .rb-qr__canvas > svg {
33
+ display: block;
34
+ max-width: 100%;
35
+ height: auto;
36
+ }
37
+
38
+ .rb-qr__fallback {
39
+ border-top: 1px solid var(--rb-qr-rule);
40
+ color: var(--rb-qr-muted);
41
+ font-size: 0.8125rem;
42
+ }
43
+
44
+ .rb-qr__fallback summary {
45
+ cursor: pointer;
46
+ padding: 0.5rem 0.75rem;
47
+ }
48
+
49
+ .rb-qr__fallback pre {
50
+ overflow: auto;
51
+ margin: 0 1rem 0.75rem;
52
+ padding: 0.75rem;
53
+ border-top: 1px solid var(--rb-qr-rule);
54
+ color: var(--rb-qr-ink);
55
+ background: color-mix(in srgb, var(--rb-qr-ink) 6%, transparent);
56
+ }
57
+
58
+ .rb-qr[data-qr="error"] .rb-qr__canvas:empty::before {
59
+ content: "QR code could not be rendered.";
60
+ color: var(--rb-qr-muted);
61
+ }
62
+
63
+ .rb-qr[data-qr="pending"] .rb-qr__canvas:empty::before {
64
+ content: "Rendering QR code…";
65
+ color: var(--rb-qr-muted);
66
+ }
67
+
68
+ html[data-theme="dark"] .rb-qr,
69
+ html.dark .rb-qr {
70
+ --rb-qr-paper: var(--rb-color-ink, #000000);
71
+ --rb-qr-ink: var(--rb-color-paper, #ffffff);
72
+ }