@bagelink/blox 1.15.360 → 1.15.362
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 +20 -39
- package/dist/createBloxApp.d.ts +2 -2
- package/package.json +6 -2
package/README.md
CHANGED
|
@@ -1,61 +1,42 @@
|
|
|
1
1
|
# @bagelink/blox
|
|
2
2
|
|
|
3
|
-
Blox
|
|
4
|
-
|
|
5
|
-
## Features
|
|
6
|
-
|
|
7
|
-
- 🎨 **Page Builder Integration** - Full support for drag-and-drop page building
|
|
8
|
-
- 📄 **Static Page Management** - Manage JSON-based static page data
|
|
9
|
-
- 🔌 **Component Registry** - Flexible component registration system
|
|
10
|
-
- 📡 **Communication System** - Built-in messaging for builder-preview communication
|
|
11
|
-
- 🎯 **Type-Safe** - Full TypeScript support
|
|
12
|
-
- 🖼️ **Base Components** - Pre-built components (Button, Text, Image, etc.)
|
|
13
|
-
- 📱 **Responsive** - Mobile and desktop support
|
|
3
|
+
Blox provides Vue components, routing, previews, and static generation for
|
|
4
|
+
Bagelink websites.
|
|
14
5
|
|
|
15
6
|
## Installation
|
|
16
7
|
|
|
17
8
|
```bash
|
|
18
|
-
|
|
19
|
-
# or
|
|
20
|
-
pnpm add @bagelink/blox
|
|
21
|
-
# or
|
|
22
|
-
yarn add @bagelink/blox
|
|
9
|
+
pnpm add @bagelink/blox @bagelink/vue vue vue-router
|
|
23
10
|
```
|
|
24
11
|
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
Blox is a Vue 3 library for building drag-and-drop page builders and managing static data for web applications. It provides a complete solution for creating external preview systems and rendering dynamic page content.
|
|
28
|
-
|
|
29
|
-
## Features
|
|
12
|
+
## CSS
|
|
30
13
|
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
- 🔌 **Component Registry** - Flexible component registration system
|
|
34
|
-
- 📡 **Communication System** - Built-in messaging for builder-preview communication
|
|
35
|
-
- 🎯 **Type-Safe** - Full TypeScript support
|
|
36
|
-
- 🖼️ **Base Components** - Pre-built components (Button, Text, Image, etc.)
|
|
37
|
-
- 📱 **Responsive** - Mobile and desktop support
|
|
14
|
+
Every Blox website must import these two stylesheets once, from its client
|
|
15
|
+
entry (`src/main.ts`), before project styles:
|
|
38
16
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
# or
|
|
44
|
-
pnpm add @bagelink/blox vue-router
|
|
45
|
-
# or
|
|
46
|
-
yarn add @bagelink/blox vue-router
|
|
17
|
+
```ts
|
|
18
|
+
import '@bagelink/vue/styles/core.css'
|
|
19
|
+
import '@bagelink/blox/style.css'
|
|
20
|
+
import './styles/main.css'
|
|
47
21
|
```
|
|
48
22
|
|
|
49
|
-
|
|
23
|
+
Use `@bagelink/vue/styles/admin.css` instead of `core.css` only for admin
|
|
24
|
+
applications that need the Bagel font pack.
|
|
25
|
+
|
|
26
|
+
Do not import `@bagelink/vue/dist/style.css` or
|
|
27
|
+
`@bagelink/blox/dist/style.css`; those internal paths are retained only for
|
|
28
|
+
existing projects. Import the same entries in local development and CI so a
|
|
29
|
+
source alias cannot hide a package-export problem.
|
|
50
30
|
|
|
51
|
-
|
|
31
|
+
## Quick Start
|
|
52
32
|
|
|
53
33
|
```typescript
|
|
54
34
|
// main.ts
|
|
55
35
|
import { createApp } from 'vue'
|
|
56
36
|
import { createRouter, createWebHistory } from 'vue-router'
|
|
57
37
|
import { createBlox, ButtonConfig, TextConfig, TitleConfig } from '@bagelink/blox'
|
|
58
|
-
import '@bagelink/
|
|
38
|
+
import '@bagelink/vue/styles/core.css'
|
|
39
|
+
import '@bagelink/blox/style.css'
|
|
59
40
|
|
|
60
41
|
import App from './App.vue'
|
|
61
42
|
|
package/dist/createBloxApp.d.ts
CHANGED
|
@@ -115,8 +115,8 @@ export interface BloxAppResult {
|
|
|
115
115
|
* import router from './router'
|
|
116
116
|
* import { createApi, axios } from '@shared/api'
|
|
117
117
|
*
|
|
118
|
-
* import '@bagelink/vue/
|
|
119
|
-
* import '@bagelink/blox/
|
|
118
|
+
* import '@bagelink/vue/styles/core.css'
|
|
119
|
+
* import '@bagelink/blox/style.css'
|
|
120
120
|
*
|
|
121
121
|
* const blocks = import.meta.glob('./components/blocks/*.vue', { eager: true })
|
|
122
122
|
*
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bagelink/blox",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.15.
|
|
4
|
+
"version": "1.15.362",
|
|
5
5
|
"description": "Blox page builder library for drag-and-drop page building and static data management",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Bagel Studio",
|
|
@@ -30,7 +30,10 @@
|
|
|
30
30
|
"bin": {
|
|
31
31
|
"blox-ssg": "./dist/ssg/cli.mjs"
|
|
32
32
|
},
|
|
33
|
-
"sideEffects":
|
|
33
|
+
"sideEffects": [
|
|
34
|
+
"**/*.css",
|
|
35
|
+
"**/*.vue"
|
|
36
|
+
],
|
|
34
37
|
"exports": {
|
|
35
38
|
"./package.json": "./package.json",
|
|
36
39
|
"./vite": {
|
|
@@ -62,6 +65,7 @@
|
|
|
62
65
|
"types": "./dist/utils/styles.d.ts",
|
|
63
66
|
"import": "./dist/utils/styles.mjs"
|
|
64
67
|
},
|
|
68
|
+
"./style.css": "./dist/style.css",
|
|
65
69
|
"./dist/style.css": "./dist/style.css"
|
|
66
70
|
},
|
|
67
71
|
"main": "./dist/index.cjs",
|