giggles 0.3.9 → 0.3.10

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.
@@ -9,9 +9,9 @@ var defaultTheme = {
9
9
  hintDimColor: "#5C5C5C",
10
10
  hintHighlightColor: "#D4D4D4",
11
11
  hintHighlightDimColor: "#A0A0A0",
12
- indicator: "\u25B8",
13
- checkedIndicator: "\u2713",
14
- uncheckedIndicator: "\u25CB"
12
+ indicator: "\u25B6",
13
+ checkedIndicator: "\u25A3",
14
+ uncheckedIndicator: "\u25FB"
15
15
  };
16
16
  var ThemeContext = createContext(defaultTheme);
17
17
  function ThemeProvider({ theme, children }) {
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  useTheme
3
- } from "./chunk-PVXJL6SX.js";
3
+ } from "./chunk-EVD6YPS3.js";
4
4
 
5
5
  // src/ui/CodeBlock.tsx
6
6
  import Prism from "prismjs";
@@ -16,6 +16,9 @@ var defaultTokenColors = {
16
16
  punctuation: "#ABB2BF",
17
17
  builtin: "#E5C07B",
18
18
  className: "#E5C07B",
19
+ variable: "#E06C75",
20
+ property: "#E06C75",
21
+ regex: "#98C379",
19
22
  inserted: "#98C379",
20
23
  deleted: "#E06C75"
21
24
  };
@@ -72,9 +75,31 @@ function getTokenColor(type, colors) {
72
75
  return colors.builtin;
73
76
  case "class-name":
74
77
  case "maybe-class-name":
78
+ case "namespace":
75
79
  return colors.className;
80
+ case "variable":
81
+ return colors.variable;
82
+ case "property":
83
+ case "string-property":
84
+ return colors.property;
85
+ case "regex":
86
+ case "regex-source":
87
+ case "regex-delimiter":
88
+ case "regex-flags":
89
+ return colors.regex;
90
+ case "url":
91
+ return colors.string;
76
92
  case "attr-name":
77
93
  return colors.function;
94
+ case "entity":
95
+ return colors.builtin;
96
+ case "atrule":
97
+ return colors.keyword;
98
+ case "selector":
99
+ return colors.className;
100
+ case "bold":
101
+ case "italic":
102
+ return colors.keyword;
78
103
  case "inserted-sign":
79
104
  case "inserted":
80
105
  return colors.inserted;
package/dist/index.js CHANGED
@@ -18,7 +18,7 @@ import {
18
18
  import {
19
19
  ThemeProvider,
20
20
  useTheme
21
- } from "./chunk-PVXJL6SX.js";
21
+ } from "./chunk-EVD6YPS3.js";
22
22
 
23
23
  // src/core/GigglesProvider.tsx
24
24
  import { jsx } from "react/jsx-runtime";
@@ -1,9 +1,9 @@
1
1
  import {
2
2
  CodeBlock
3
- } from "../chunk-TFYBLNEZ.js";
3
+ } from "../chunk-WJRBHS5J.js";
4
4
  import {
5
5
  useTheme
6
- } from "../chunk-PVXJL6SX.js";
6
+ } from "../chunk-EVD6YPS3.js";
7
7
 
8
8
  // src/ui/Markdown.tsx
9
9
  import Table from "cli-table3";
@@ -196,6 +196,9 @@ type TokenColors = {
196
196
  punctuation: string;
197
197
  builtin: string;
198
198
  className: string;
199
+ variable: string;
200
+ property: string;
201
+ regex: string;
199
202
  inserted: string;
200
203
  deleted: string;
201
204
  };
package/dist/ui/index.js CHANGED
@@ -7,10 +7,10 @@ import {
7
7
  } from "../chunk-CKA5JJ4B.js";
8
8
  import {
9
9
  CodeBlock
10
- } from "../chunk-TFYBLNEZ.js";
10
+ } from "../chunk-WJRBHS5J.js";
11
11
  import {
12
12
  useTheme
13
- } from "../chunk-PVXJL6SX.js";
13
+ } from "../chunk-EVD6YPS3.js";
14
14
 
15
15
  // src/ui/CommandPalette.tsx
16
16
  import { useState } from "react";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "giggles",
3
- "version": "0.3.9",
3
+ "version": "0.3.10",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",