@codady/coax 0.0.7 → 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.
@@ -174,20 +174,20 @@
174
174
  <span class="filename">replace.html</span>
175
175
  </a>
176
176
 
177
- <a href="steam.html" class="card">
177
+ <a href="stream.html" class="card">
178
178
  <h2>使用 stream 方法手动真实流式输出</h2>
179
179
  <p>手动控制流式输出代码,模拟实时代码生成效果。</p>
180
- <span class="filename">steam.html</span>
180
+ <span class="filename">stream.html</span>
181
181
  </a>
182
182
 
183
183
  <a href="theme.html" class="card">
184
- <h2>Coax 语法高亮配色增强实验室</h2>
184
+ <h2>定制主题实验室</h2>
185
185
  <p>交互式配色实验室,可自定义各语言 token 颜色并实时预览。</p>
186
186
  <span class="filename">theme.html</span>
187
187
  </a>
188
188
 
189
189
  <a href="tools.html" class="card">
190
- <h2>Coax 代码高亮插件</h2>
190
+ <h2>使用 tools 属性打开工具箱</h2>
191
191
  <p>展示 Coax 内置工具插件,如复制代码等功能。</p>
192
192
  <span class="filename">tools.html</span>
193
193
  </a>
@@ -206,7 +206,7 @@
206
206
  </main>
207
207
 
208
208
  <footer>
209
- <p>Coax 示例库 &copy; 2025</p>
209
+ <p>Coax 示例库 &copy; 2026</p>
210
210
  <p>所有示例均使用 Coax 代码高亮 Web 组件实现。</p>
211
211
  </footer>
212
212
  </div>
@@ -4,12 +4,12 @@
4
4
  <head>
5
5
  <meta charset="UTF-8">
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
7
- <title>Coax - 模块化定制高亮主题</title>
7
+ <title>Coax - 模块化应用并定制主题</title>
8
8
 
9
9
  </head>
10
10
 
11
11
  <body>
12
- <h1>Coax - 模块化定制高亮主题</h1>
12
+ <h1>Coax - 模块化应用并定制主题</h1>
13
13
  <ax-code lang="css">
14
14
  <code>
15
15
  /* Main Layout Style */
@@ -36,7 +36,7 @@
36
36
 
37
37
  <script type='module'>
38
38
 
39
- const {Coax,css} = await import('../dist/coax.esm.js');
39
+ const { Coax, css } = await import('../dist/coax.esm.js');
40
40
 
41
41
  css.themeStyles = `
42
42
  :host {
@@ -57,9 +57,13 @@
57
57
  }
58
58
  }
59
59
  `;
60
+ Coax.register('css', {
61
+ alias: 'CSS',
62
+ rules: css,
63
+ });
60
64
  customElements.define(`ax-code`, Coax);
61
65
 
62
-
66
+
63
67
  </script>
64
68
  </body>
65
69
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codady/coax",
3
- "version": "0.0.7",
3
+ "version": "0.0.9",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
File without changes