@myissue/vue-website-page-builder 3.0.19 → 3.0.21

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 CHANGED
@@ -16,6 +16,20 @@ A Vue 3 page builder component with drag & drop functionality for creating dynam
16
16
  npm install @myissue/vue-website-page-builder
17
17
  ```
18
18
 
19
+ ### Important: CSS Import Required
20
+
21
+ The page builder requires its CSS file to be imported for proper styling and automatic icon loading:
22
+
23
+ ```js
24
+ import '@myissue/vue-website-page-builder/style.css'
25
+ ```
26
+
27
+ This import automatically includes:
28
+
29
+ - ✅ Page builder styles
30
+ - ✅ Google Material Icons (no additional setup needed)
31
+ - ✅ Responsive design utilities
32
+
19
33
  ## Click & Drop Page Builder
20
34
 
21
35
  [Play around with the page builder](https://www.builder-demo.myissue.dk)
@@ -107,6 +121,8 @@ import '@myissue/vue-website-page-builder/style.css'
107
121
  </template>
108
122
  ```
109
123
 
124
+ > **📝 Note**: Google Material Icons are automatically loaded when you import the CSS file. No additional setup required for icons!
125
+
110
126
  ### Customization
111
127
 
112
128
  Customizing the page builder is made simple since all the logic resides in the PageBuilder Class.
@@ -135,7 +151,7 @@ import SearchComponent from './ComponentsPageBuilder/SearchComponent.vue'
135
151
 
136
152
  You can display your company logo in the page builder interface by passing a logo URL to the `PageBuilderLogo` prop. When provided, the logo will appear in the top toolbar of the page builder.
137
153
 
138
- #### Basic Usage
154
+ Basic Usage:
139
155
 
140
156
  ```vue
141
157
  <script setup>
@@ -148,7 +164,7 @@ import '@myissue/vue-website-page-builder/style.css'
148
164
  </template>
149
165
  ```
150
166
 
151
- #### Configuration Options
167
+ configuration Options
152
168
 
153
169
  | Prop | Type | Default | Description |
154
170
  | ----------------- | -------- | ------- | ----------------------------------- |
@@ -156,22 +172,33 @@ import '@myissue/vue-website-page-builder/style.css'
156
172
 
157
173
  #### Examples
158
174
 
159
- **With company logo:**
175
+ The logo will be displayed with a subtle border separator and proper spacing in the page builder toolbar.
160
176
 
161
- ```vue
162
- <PageBuilder PageBuilderLogo="/logo/square-logo.svg" />
163
- ```
177
+ ## Troubleshooting
164
178
 
165
- ```
179
+ ### Icons Not Displaying
166
180
 
167
- #### Logo Requirements
181
+ If Material Icons are not displaying correctly, verify that:
168
182
 
169
- - **Format**: SVG, PNG, or JPG recommended
170
- - **Size**: Optimized for 24px height (width will scale proportionally)
171
- - **Path**: Can be absolute URL, relative path, or imported asset
172
- - **Accessibility**: Include appropriate alt text (automatically set to "Logo")
183
+ 1. **CSS Import**: Ensure you're importing the CSS file:
173
184
 
174
- The logo will be displayed with a subtle border separator and proper spacing in the page builder toolbar.
185
+ ```js
186
+ import '@myissue/vue-website-page-builder/style.css'
187
+ ```
188
+
189
+ 2. **Network Access**: The package loads icons from Google Fonts CDN. Ensure your application can access:
190
+
191
+ ```
192
+ https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined
193
+ ```
194
+
195
+ 3. **Content Security Policy**: If using CSP, allow Google Fonts:
196
+ ```html
197
+ <meta
198
+ http-equiv="Content-Security-Policy"
199
+ content="font-src 'self' https://fonts.googleapis.com;"
200
+ />
201
+ ```
175
202
 
176
203
  ## Contributing
177
204
 
@@ -184,4 +211,3 @@ The logo will be displayed with a subtle border separator and proper spacing in
184
211
  ## License
185
212
 
186
213
  [MIT License](./LICENSE)
187
- ```