@pebble-software/bonsai 0.1.0 → 0.1.2
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/README.md +4 -0
- package/dist/ast.js +10 -0
- package/dist/ast.js.map +1 -0
- package/dist/chunks/builder.meta-WpXc5VBB.js +666 -0
- package/dist/chunks/builder.meta-WpXc5VBB.js.map +1 -0
- package/dist/chunks/{button-CSLrIvsS.js → button-jfJanilw.js} +46 -51
- package/dist/chunks/button-jfJanilw.js.map +1 -0
- package/dist/chunks/{create-renderer-1cky1uN9.js → create-renderer-DHneTPd-.js} +8 -8
- package/dist/chunks/{create-renderer-1cky1uN9.js.map → create-renderer-DHneTPd-.js.map} +1 -1
- package/dist/chunks/index-DzpRdatr.js +359 -0
- package/dist/chunks/index-DzpRdatr.js.map +1 -0
- package/dist/chunks/{render-shared-CIUUkLDn.js → render-shared-Ci28BpkI.js} +601 -931
- package/dist/chunks/render-shared-Ci28BpkI.js.map +1 -0
- package/dist/constants.d.ts +1 -0
- package/dist/constants.js +11 -0
- package/dist/constants.js.map +1 -0
- package/dist/core.js +3 -3
- package/dist/index.js +308 -955
- package/dist/index.js.map +1 -1
- package/dist/library/constants/src/components.d.ts +59 -0
- package/dist/library/constants/src/index.d.ts +2 -0
- package/dist/library/constants/src/webhook-events.d.ts +6 -0
- package/dist/library/schemas/src/bonsai.schema.d.ts +24 -0
- package/dist/library/schemas/src/builder.meta.d.ts +26 -0
- package/dist/presets/calendar.js +83 -74
- package/dist/presets/calendar.js.map +1 -1
- package/dist/presets/signature.js +9 -8
- package/dist/presets/signature.js.map +1 -1
- package/dist/schemas.d.ts +2 -0
- package/dist/schemas.js +13 -0
- package/dist/schemas.js.map +1 -0
- package/dist/styles/css/base.css +144 -0
- package/dist/styles/css/fonts.css +25 -0
- package/dist/styles/css/maplibre.css +29 -0
- package/dist/styles/css/overrides.css +7 -0
- package/dist/styles/css/tailwind.css +1 -0
- package/dist/styles/css/theme.css +197 -0
- package/dist/styles/css/tw-animate.css +1 -0
- package/dist/styles/css/utilities.css +44 -0
- package/dist/styles/presets.json +20 -0
- package/dist/styles/vendor/maplibre-gl.css +701 -0
- package/dist/styles/vendor/tw-animate.css +692 -0
- package/package.json +19 -3
- package/dist/chunks/button-CSLrIvsS.js.map +0 -1
- package/dist/chunks/render-shared-CIUUkLDn.js.map +0 -1
package/README.md
CHANGED
|
@@ -136,6 +136,10 @@ export function Example() {
|
|
|
136
136
|
| `@pebble-software/bonsai/presets/calendar` | `calendarPreset` and the `Calendar` component. |
|
|
137
137
|
| `@pebble-software/bonsai/presets/signature` | `signaturePreset`, the `Signature` component, and the `SignatureProps` type (the signature component's props). |
|
|
138
138
|
| `@pebble-software/bonsai/index.css` | The Tailwind v4 theme source, for your own Tailwind build (see [Styling](#styling)). |
|
|
139
|
+
| `@pebble-software/bonsai/schemas` | Template tooling for editors: the zod `Config` and `NodeSchemas`, plus builder metadata (`getNodeRules`, `getArgsSchema`, `fieldHints`, `FieldControl`, `FieldGroup`). |
|
|
140
|
+
| `@pebble-software/bonsai/constants` | Component type names (`COMPONENT`, `COMPONENT_LIST`) and webhook event names. |
|
|
141
|
+
| `@pebble-software/bonsai/ast` | The expression engine (`compileExpression`, `isExpression`, `parseExpression`, `extractVariables`, `clearExpressionCache`). |
|
|
142
|
+
| `@pebble-software/bonsai/styles/*` | The raw layer stylesheets (`css/*.css`, `vendor/*.css`) and `presets.json`, for compiling template CSS yourself, e.g. `styles/css/theme.css?raw` in Vite. |
|
|
139
143
|
|
|
140
144
|
Named exports of `@pebble-software/bonsai` and `@pebble-software/bonsai/core`:
|
|
141
145
|
|
package/dist/ast.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { a as r, c as i, e as p, i as o, p as x } from "./chunks/index-DzpRdatr.js";
|
|
2
|
+
import "jsep";
|
|
3
|
+
export {
|
|
4
|
+
r as clearExpressionCache,
|
|
5
|
+
i as compileExpression,
|
|
6
|
+
p as extractVariables,
|
|
7
|
+
o as isExpression,
|
|
8
|
+
x as parseExpression
|
|
9
|
+
};
|
|
10
|
+
//# sourceMappingURL=ast.js.map
|
package/dist/ast.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ast.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|