Skip to content

Commit

Permalink
feat: v1.0.19 with default blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
surajair committed Feb 29, 2024
1 parent 2213f0d commit 735f242
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "Suraj Air",
"license": "BSD-3-Clause",
"homepage": "https://chaibuilder.com",
"version": "1.0.17",
"version": "1.0.19",
"type": "module",
"repository": {
"type": "git",
Expand All @@ -27,6 +27,11 @@
"require": "./dist/render.cjs",
"types": "./dist/render.d.ts"
},
"./blocks": {
"import": "./dist/blocks.js",
"require": "./dist/blocks.cjs",
"types": "./dist/blocks.d.ts"
},
"./ui": {
"import": "./dist/ui.js",
"require": "./dist/ui.cjs",
Expand Down
2 changes: 2 additions & 0 deletions src/default-blocks/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,5 @@ import "./select";
import "./checkbox";
import "./radio";
import "./form-button";

export default "";
2 changes: 1 addition & 1 deletion src/render/RenderChaiBlocks.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from "react";
import { each, filter, get, isEmpty, isString, memoize, omit } from "lodash";
import { twMerge } from "tailwind-merge";
import "../default-blocks";
import "../default-blocks/index.ts";
import { ChaiBlock } from "../core/types/ChaiBlock.ts";
import { SLOT_KEY, STYLES_KEY } from "../core/constants/CONTROLS.ts";
import { getBlockComponent } from "@chaibuilder/runtime";
Expand Down
4 changes: 2 additions & 2 deletions src/render/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
export { RenderChaiBlocks } from "./RenderChaiBlocks";
export { RenderChaiPage } from "./RenderChaiPage";
export * from "./RenderChaiBlocks";
export * from "./RenderChaiPage";
export type { ChaiPageData } from "./functions";
1 change: 1 addition & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export default defineConfig({
core: resolve(__dirname, "src/core/main/index.ts"),
render: resolve(__dirname, "src/render/index.ts"),
ui: resolve(__dirname, "src/ui/index.ts"),
blocks: resolve(__dirname, "src/default-blocks/index.ts"),
lib: resolve(__dirname, "src/core/lib.ts"),
server: resolve(__dirname, "src/server/index.ts"),
studio: resolve(__dirname, "src/studio/index.tsx"),
Expand Down

0 comments on commit 735f242

Please sign in to comment.