@broxium/compiler 1.5.0 → 1.5.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.
package/dist/index.js CHANGED
@@ -154,11 +154,13 @@ export function useRouter() {
154
154
 
155
155
  export function useParams() { return {}; }
156
156
 
157
- export function BrodoxHead({ title, description }) {
157
+ export function BrodoxHead({ title, description, cssContent }) {
158
158
  if (title && typeof globalThis.__brodoxCollectHead === 'function')
159
159
  globalThis.__brodoxCollectHead({ type: 'title', props: { content: title } });
160
160
  if (description && typeof globalThis.__brodoxCollectHead === 'function')
161
161
  globalThis.__brodoxCollectHead({ type: 'meta', props: { name: 'description', content: description } });
162
+ if (cssContent && typeof globalThis.__brodoxCollectHead === 'function')
163
+ globalThis.__brodoxCollectHead({ type: 'style', props: { content: cssContent } });
162
164
  return null;
163
165
  }
164
166
 
package/dist/index.mjs CHANGED
@@ -125,11 +125,13 @@ export function useRouter() {
125
125
 
126
126
  export function useParams() { return {}; }
127
127
 
128
- export function BrodoxHead({ title, description }) {
128
+ export function BrodoxHead({ title, description, cssContent }) {
129
129
  if (title && typeof globalThis.__brodoxCollectHead === 'function')
130
130
  globalThis.__brodoxCollectHead({ type: 'title', props: { content: title } });
131
131
  if (description && typeof globalThis.__brodoxCollectHead === 'function')
132
132
  globalThis.__brodoxCollectHead({ type: 'meta', props: { name: 'description', content: description } });
133
+ if (cssContent && typeof globalThis.__brodoxCollectHead === 'function')
134
+ globalThis.__brodoxCollectHead({ type: 'style', props: { content: cssContent } });
133
135
  return null;
134
136
  }
135
137
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@broxium/compiler",
3
- "version": "1.5.0",
3
+ "version": "1.5.1",
4
4
  "description": "Brodox component compiler — TSX to ESM server + client bundles",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",