Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/lang-core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openuidev/lang-core",
"version": "0.2.5",
"version": "0.2.6",
"description": "Framework-agnostic core for OpenUI Lang: parser, prompt generation, validation, and type definitions",
"license": "MIT",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion packages/openui-cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@openuidev/cli",
"version": "0.0.7",
"version": "0.0.8",
"description": "CLI for OpenUI — scaffold generative UI chat apps and generate LLM system prompts from component libraries",
"bin": {
"openui": "dist/index.js"
Expand Down
5 changes: 5 additions & 0 deletions packages/react-ui/cp-css.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ function ensureDirectoryExists(dirPath) {
// Wrap a CSS file's contents in @layer openui { ... } if not already wrapped.
// Idempotency check protects watch-mode and back-to-back builds.
function wrapInLayer(content) {
// Sass emits a UTF-8 BOM for files with non-ASCII output. At byte 0 the
// decoder strips it, but wrapping would push it inside the layer block,
// where U+FEFF parses as an identifier and kills the first rule
// (e.g. the :root theme tokens). Strip it before wrapping.
content = content.replace(/^\uFEFF/, "");
if (content.trim() === "") return content;
if (/^\s*@layer\s+openui\b/.test(content)) return content;
return `@layer openui{${content}}`;
Expand Down
2 changes: 1 addition & 1 deletion packages/react-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"type": "module",
"name": "@openuidev/react-ui",
"license": "MIT",
"version": "0.11.8",
"version": "0.12.0",
"description": "Component library for Generative UI SDK",
"main": "dist/index.cjs",
"module": "dist/index.mjs",
Expand Down
Loading