@bagelink/blox 1.5.17 → 1.5.22
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/dist/blox.css +720 -68
- package/dist/components/base/Button.vue.d.ts.map +1 -1
- package/dist/components/base/Container.vue.d.ts.map +1 -1
- package/dist/components/base/Image.vue.d.ts.map +1 -1
- package/dist/components/base/Spacer.vue.d.ts.map +1 -1
- package/dist/components/base/Text.vue.d.ts.map +1 -1
- package/dist/components/base/Title.vue.d.ts.map +1 -1
- package/dist/components/blocks/BigImage.vue.d.ts +12 -0
- package/dist/components/blocks/BigImage.vue.d.ts.map +1 -0
- package/dist/components/blocks/BigQuote.vue.d.ts +14 -0
- package/dist/components/blocks/BigQuote.vue.d.ts.map +1 -0
- package/dist/components/blocks/BlockFooter.vue.d.ts +17 -0
- package/dist/components/blocks/BlockFooter.vue.d.ts.map +1 -0
- package/dist/components/blocks/BlockNav.vue.d.ts +22 -0
- package/dist/components/blocks/BlockNav.vue.d.ts.map +1 -0
- package/dist/components/blocks/Cards.vue.d.ts +18 -0
- package/dist/components/blocks/Cards.vue.d.ts.map +1 -0
- package/dist/components/blocks/Contact.vue.d.ts +22 -0
- package/dist/components/blocks/Contact.vue.d.ts.map +1 -0
- package/dist/components/blocks/CountDown.vue.d.ts +76 -0
- package/dist/components/blocks/CountDown.vue.d.ts.map +1 -0
- package/dist/components/blocks/Cta.vue.d.ts +15 -0
- package/dist/components/blocks/Cta.vue.d.ts.map +1 -0
- package/dist/components/blocks/Faq.vue.d.ts +20 -0
- package/dist/components/blocks/Faq.vue.d.ts.map +1 -0
- package/dist/components/blocks/Grid.vue.d.ts +24 -0
- package/dist/components/blocks/Grid.vue.d.ts.map +1 -0
- package/dist/components/blocks/Icons.vue.d.ts +16 -0
- package/dist/components/blocks/Icons.vue.d.ts.map +1 -0
- package/dist/components/blocks/IconsList.vue.d.ts +22 -0
- package/dist/components/blocks/IconsList.vue.d.ts.map +1 -0
- package/dist/components/blocks/ImageCarousel.vue.d.ts +16 -0
- package/dist/components/blocks/ImageCarousel.vue.d.ts.map +1 -0
- package/dist/components/blocks/ImageLinkBoxes.vue.d.ts +14 -0
- package/dist/components/blocks/ImageLinkBoxes.vue.d.ts.map +1 -0
- package/dist/components/blocks/Logos.vue.d.ts +17 -0
- package/dist/components/blocks/Logos.vue.d.ts.map +1 -0
- package/dist/components/blocks/PopUp.vue.d.ts +23 -0
- package/dist/components/blocks/PopUp.vue.d.ts.map +1 -0
- package/dist/components/blocks/PriceTable.vue.d.ts +24 -0
- package/dist/components/blocks/PriceTable.vue.d.ts.map +1 -0
- package/dist/components/blocks/Space.vue.d.ts +25 -0
- package/dist/components/blocks/Space.vue.d.ts.map +1 -0
- package/dist/components/blocks/Tabs.vue.d.ts +15 -0
- package/dist/components/blocks/Tabs.vue.d.ts.map +1 -0
- package/dist/components/blocks/Team.vue.d.ts +19 -0
- package/dist/components/blocks/Team.vue.d.ts.map +1 -0
- package/dist/components/blocks/Testimonials.vue.d.ts +18 -0
- package/dist/components/blocks/Testimonials.vue.d.ts.map +1 -0
- package/dist/components/blocks/Text.vue.d.ts +10 -0
- package/dist/components/blocks/Text.vue.d.ts.map +1 -0
- package/dist/components/blocks/TextImage.vue.d.ts +20 -0
- package/dist/components/blocks/TextImage.vue.d.ts.map +1 -0
- package/dist/components/blocks/TextSide.vue.d.ts +19 -0
- package/dist/components/blocks/TextSide.vue.d.ts.map +1 -0
- package/dist/components/blocks/Title.vue.d.ts +16 -0
- package/dist/components/blocks/Title.vue.d.ts.map +1 -0
- package/dist/components/blocks/TitleSide.vue.d.ts +21 -0
- package/dist/components/blocks/TitleSide.vue.d.ts.map +1 -0
- package/dist/components/blocks/VideoBox.vue.d.ts +15 -0
- package/dist/components/blocks/VideoBox.vue.d.ts.map +1 -0
- package/dist/components/blocks/blocks.d.ts +27 -0
- package/dist/components/blocks/blocks.d.ts.map +1 -0
- package/dist/components/index.d.ts +4 -3
- package/dist/components/index.d.ts.map +1 -1
- package/dist/config/baseComponents.d.ts.map +1 -1
- package/dist/config/blockComponents.d.ts +41 -0
- package/dist/config/blockComponents.d.ts.map +1 -0
- package/dist/core/communication.d.ts.map +1 -1
- package/dist/core/registry.d.ts.map +1 -1
- package/dist/core/renderer.d.ts.map +1 -1
- package/dist/core/types.d.ts.map +1 -1
- package/dist/index.cjs +9223 -472
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +9124 -458
- package/dist/setup.d.ts +4 -4
- package/dist/setup.d.ts.map +1 -1
- package/dist/utils/componentPreviewGenerator.d.ts +113 -0
- package/dist/utils/componentPreviewGenerator.d.ts.map +1 -0
- package/dist/utils/normalizer.d.ts.map +1 -1
- package/dist/utils/styles.d.ts.map +1 -1
- package/dist/views/ExternalPreview.vue.d.ts.map +1 -1
- package/dist/views/RenderPage.vue.d.ts.map +1 -1
- package/package.json +3 -2
- package/components/base/Button.vue +0 -140
- package/components/base/Container.vue +0 -64
- package/components/base/Image.vue +0 -75
- package/components/base/Spacer.vue +0 -33
- package/components/base/Text.vue +0 -37
- package/components/base/Title.vue +0 -55
- package/components/index.ts +0 -20
- package/config/baseComponents.ts +0 -364
- package/core/communication.ts +0 -140
- package/core/registry.ts +0 -108
- package/core/renderer.ts +0 -217
- package/core/types.ts +0 -148
- package/dist/example-setup.d.ts +0 -1
- package/dist/example-setup.d.ts.map +0 -1
- package/dist/styles.d.ts +0 -8
- package/dist/styles.d.ts.map +0 -1
- package/dist/vite.config.d.ts +0 -3
- package/dist/vite.config.d.ts.map +0 -1
- package/index.ts +0 -43
- package/setup.ts +0 -472
- package/utils/normalizer.ts +0 -74
- package/utils/styles.ts +0 -228
- package/views/ExternalPreview.vue +0 -415
- package/views/RenderPage.vue +0 -127
package/core/renderer.ts
DELETED
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core Rendering Logic
|
|
3
|
-
*
|
|
4
|
-
* Handles the rendering of page components with proper style injection
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
import type { PageData, ComponentData } from './types'
|
|
8
|
-
import { getResponsiveCSS } from '../utils/styles'
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* Inject responsive CSS into the page
|
|
12
|
-
*/
|
|
13
|
-
export function injectResponsiveCSS(): void {
|
|
14
|
-
// Check if already injected
|
|
15
|
-
if (document.getElementById('blox-responsive-css')) {
|
|
16
|
-
return
|
|
17
|
-
}
|
|
18
|
-
|
|
19
|
-
const style = document.createElement('style')
|
|
20
|
-
style.id = 'blox-responsive-css'
|
|
21
|
-
style.textContent = getResponsiveCSS()
|
|
22
|
-
document.head.appendChild(style)
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
/**
|
|
26
|
-
* Inject custom code into head or body
|
|
27
|
-
*/
|
|
28
|
-
export function injectCode(code: string | undefined, target: 'head' | 'body'): void {
|
|
29
|
-
if (!code) return
|
|
30
|
-
|
|
31
|
-
const element = document.querySelector(target)
|
|
32
|
-
if (element) {
|
|
33
|
-
const div = document.createElement('div')
|
|
34
|
-
div.innerHTML = code
|
|
35
|
-
element.appendChild(div)
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Load a Google Font
|
|
41
|
-
*/
|
|
42
|
-
const loadedFonts = new Set<string>()
|
|
43
|
-
|
|
44
|
-
export function loadGoogleFont(fontName: string): Promise<void> {
|
|
45
|
-
if (!fontName || loadedFonts.has(fontName)) {
|
|
46
|
-
return Promise.resolve()
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
return new Promise((resolve, reject) => {
|
|
50
|
-
const cleanFontName = fontName.trim().replace(/\s+/g, '+')
|
|
51
|
-
const fontUrl = `https://fonts.googleapis.com/css2?family=${cleanFontName}:wght@400;500;600;700&display=swap`
|
|
52
|
-
|
|
53
|
-
const linkElement = document.createElement('link')
|
|
54
|
-
linkElement.rel = 'stylesheet'
|
|
55
|
-
linkElement.href = fontUrl
|
|
56
|
-
linkElement.setAttribute('data-font-name', fontName)
|
|
57
|
-
|
|
58
|
-
linkElement.onload = () => {
|
|
59
|
-
console.log(`✅ Font loaded: ${fontName}`)
|
|
60
|
-
loadedFonts.add(fontName)
|
|
61
|
-
resolve()
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
linkElement.onerror = () => {
|
|
65
|
-
console.error(`❌ Failed to load font: ${fontName}`)
|
|
66
|
-
reject(new Error(`Failed to load font: ${fontName}`))
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
document.head.appendChild(linkElement)
|
|
70
|
-
})
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
/**
|
|
74
|
-
* Load all fonts used in components
|
|
75
|
-
*/
|
|
76
|
-
export async function loadComponentFonts(components: ComponentData[]): Promise<void> {
|
|
77
|
-
const fontsToLoad = new Set<string>()
|
|
78
|
-
|
|
79
|
-
components.forEach((comp) => {
|
|
80
|
-
if (comp.data?.fontFamily) {
|
|
81
|
-
fontsToLoad.add(comp.data.fontFamily)
|
|
82
|
-
}
|
|
83
|
-
if (comp.data?.fontFamilyMobile) {
|
|
84
|
-
fontsToLoad.add(comp.data.fontFamilyMobile)
|
|
85
|
-
}
|
|
86
|
-
})
|
|
87
|
-
|
|
88
|
-
await Promise.all(Array.from(fontsToLoad).map(font => loadGoogleFont(font)))
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Apply global font to the page
|
|
93
|
-
*/
|
|
94
|
-
export function applyGlobalFont(fontName: string): void {
|
|
95
|
-
if (!fontName) return
|
|
96
|
-
|
|
97
|
-
// Remove existing global font styles
|
|
98
|
-
const existingStyle = document.getElementById('blox-global-font')
|
|
99
|
-
if (existingStyle) {
|
|
100
|
-
existingStyle.remove()
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
// Apply font globally
|
|
104
|
-
const style = document.createElement('style')
|
|
105
|
-
style.id = 'blox-global-font'
|
|
106
|
-
style.textContent = `
|
|
107
|
-
body {
|
|
108
|
-
font-family: "${fontName}", sans-serif;
|
|
109
|
-
}
|
|
110
|
-
.blox-page-wrapper {
|
|
111
|
-
font-family: "${fontName}", sans-serif !important;
|
|
112
|
-
}
|
|
113
|
-
.blox-page-wrapper * {
|
|
114
|
-
font-family: inherit;
|
|
115
|
-
}
|
|
116
|
-
`
|
|
117
|
-
document.head.appendChild(style)
|
|
118
|
-
|
|
119
|
-
// Load the font
|
|
120
|
-
loadGoogleFont(fontName)
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
/**
|
|
124
|
-
* Apply page settings to the document
|
|
125
|
-
*/
|
|
126
|
-
export function applyPageSettings(pageData: PageData): void {
|
|
127
|
-
const { pageSettings } = pageData
|
|
128
|
-
|
|
129
|
-
if (!pageSettings) return
|
|
130
|
-
|
|
131
|
-
// Language and direction
|
|
132
|
-
if (pageSettings.pageLanguage) {
|
|
133
|
-
document.documentElement.lang = pageSettings.pageLanguage
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
if (pageSettings.pageDirection) {
|
|
137
|
-
document.documentElement.dir = pageSettings.pageDirection
|
|
138
|
-
document.body.dir = pageSettings.pageDirection
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// Font
|
|
142
|
-
if (pageSettings.selectedGoogleFont) {
|
|
143
|
-
applyGlobalFont(pageSettings.selectedGoogleFont)
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
// Custom codes
|
|
147
|
-
injectCode(pageSettings.additionalHeadCode, 'head')
|
|
148
|
-
injectCode(pageSettings.additionalBodyCode, 'body')
|
|
149
|
-
|
|
150
|
-
// Favicon
|
|
151
|
-
if (pageSettings.customFavicon) {
|
|
152
|
-
let faviconLink = document.querySelector('link[rel="icon"]') as HTMLLinkElement
|
|
153
|
-
if (!faviconLink) {
|
|
154
|
-
faviconLink = document.createElement('link')
|
|
155
|
-
faviconLink.rel = 'icon'
|
|
156
|
-
document.head.appendChild(faviconLink)
|
|
157
|
-
}
|
|
158
|
-
faviconLink.href = pageSettings.customFavicon
|
|
159
|
-
}
|
|
160
|
-
|
|
161
|
-
// Meta tags
|
|
162
|
-
applyMetaTags(pageSettings)
|
|
163
|
-
}
|
|
164
|
-
|
|
165
|
-
/**
|
|
166
|
-
* Apply meta tags
|
|
167
|
-
*/
|
|
168
|
-
function applyMetaTags(settings: any): void {
|
|
169
|
-
// OG Image
|
|
170
|
-
if (settings.customOgImage) {
|
|
171
|
-
updateOrCreateMeta('og:image', settings.customOgImage, 'property')
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
// Keywords
|
|
175
|
-
if (settings.customKeywords) {
|
|
176
|
-
updateOrCreateMeta('keywords', settings.customKeywords)
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Robots
|
|
180
|
-
if (settings.customRobotsMeta) {
|
|
181
|
-
updateOrCreateMeta('robots', settings.customRobotsMeta)
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
/**
|
|
186
|
-
* Helper to update or create meta tags
|
|
187
|
-
*/
|
|
188
|
-
function updateOrCreateMeta(name: string, content: string, attribute: 'name' | 'property' = 'name'): void {
|
|
189
|
-
const selector = `meta[${attribute}="${name}"]`
|
|
190
|
-
let metaTag = document.querySelector(selector) as HTMLMetaElement
|
|
191
|
-
|
|
192
|
-
if (!metaTag) {
|
|
193
|
-
metaTag = document.createElement('meta')
|
|
194
|
-
metaTag.setAttribute(attribute, name)
|
|
195
|
-
document.head.appendChild(metaTag)
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
metaTag.content = content
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
/**
|
|
202
|
-
* Initialize the page for rendering
|
|
203
|
-
*/
|
|
204
|
-
export async function initializePage(pageData: PageData): Promise<void> {
|
|
205
|
-
// Inject responsive CSS
|
|
206
|
-
injectResponsiveCSS()
|
|
207
|
-
|
|
208
|
-
// Apply page settings
|
|
209
|
-
applyPageSettings(pageData)
|
|
210
|
-
|
|
211
|
-
// Load component fonts
|
|
212
|
-
await loadComponentFonts(pageData.components)
|
|
213
|
-
|
|
214
|
-
// Inject header and body codes
|
|
215
|
-
injectCode(pageData.header_code, 'head')
|
|
216
|
-
injectCode(pageData.body_code, 'body')
|
|
217
|
-
}
|
package/core/types.ts
DELETED
|
@@ -1,148 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Core type definitions for the Blox external preview library
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
// Component data structure
|
|
6
|
-
export interface ComponentData {
|
|
7
|
-
id: string
|
|
8
|
-
type: string
|
|
9
|
-
data: Record<string, any>
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
// Page structure
|
|
13
|
-
export interface PageData {
|
|
14
|
-
id?: string
|
|
15
|
-
components: ComponentData[]
|
|
16
|
-
pageSettings?: PageSettings
|
|
17
|
-
header_code?: string
|
|
18
|
-
body_code?: string
|
|
19
|
-
language?: Record<string, any>
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Page settings
|
|
23
|
-
export interface PageSettings {
|
|
24
|
-
selectedGoogleFont?: string
|
|
25
|
-
pageLanguage?: string
|
|
26
|
-
pageDirection?: 'ltr' | 'rtl'
|
|
27
|
-
additionalHeadCode?: string
|
|
28
|
-
additionalBodyCode?: string
|
|
29
|
-
customFavicon?: string
|
|
30
|
-
customOgImage?: string
|
|
31
|
-
customKeywords?: string
|
|
32
|
-
customRobotsMeta?: string
|
|
33
|
-
customAnalyticsCode?: string
|
|
34
|
-
disableGlobalHeadCode?: boolean
|
|
35
|
-
disableGlobalBodyCode?: boolean
|
|
36
|
-
disableGoogleAnalytics?: boolean
|
|
37
|
-
disableFacebookPixel?: boolean
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
// Global settings
|
|
41
|
-
export interface GlobalSettings {
|
|
42
|
-
selectedGoogleFont?: string
|
|
43
|
-
pageLanguage?: string
|
|
44
|
-
pageDirection?: 'ltr' | 'rtl'
|
|
45
|
-
globalHeadCode?: string
|
|
46
|
-
globalBodyCode?: string
|
|
47
|
-
favicon?: string
|
|
48
|
-
ogImage?: string
|
|
49
|
-
siteKeywords?: string
|
|
50
|
-
googleAnalyticsId?: string
|
|
51
|
-
facebookPixelId?: string
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
// Message types for postMessage communication
|
|
55
|
-
export type MessageType =
|
|
56
|
-
| 'ready'
|
|
57
|
-
| 'update'
|
|
58
|
-
| 'focus'
|
|
59
|
-
| 'highlight'
|
|
60
|
-
| 'preview'
|
|
61
|
-
| 'meta'
|
|
62
|
-
| 'delete'
|
|
63
|
-
| 'disableLinks'
|
|
64
|
-
| 'newBlock'
|
|
65
|
-
|
|
66
|
-
export interface EditorMessage {
|
|
67
|
-
type: MessageType
|
|
68
|
-
message?: any
|
|
69
|
-
data?: any
|
|
70
|
-
isMobile?: boolean
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
// Component props interface
|
|
74
|
-
export interface BlockProps {
|
|
75
|
-
isMobile?: boolean
|
|
76
|
-
[key: string]: any
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
// Style configuration
|
|
80
|
-
export interface StyleConfig {
|
|
81
|
-
// Spacing
|
|
82
|
-
marginTop?: number
|
|
83
|
-
marginBottom?: number
|
|
84
|
-
marginTopMobile?: number
|
|
85
|
-
marginBottomMobile?: number
|
|
86
|
-
padding?: number
|
|
87
|
-
paddingMobile?: number
|
|
88
|
-
|
|
89
|
-
// Width
|
|
90
|
-
width?: number
|
|
91
|
-
widthMobile?: number
|
|
92
|
-
widthPercent?: number
|
|
93
|
-
widthPercentMobile?: number
|
|
94
|
-
fullWidth?: boolean
|
|
95
|
-
fullWidthMobile?: boolean
|
|
96
|
-
|
|
97
|
-
// Colors
|
|
98
|
-
backgroundColor?: string
|
|
99
|
-
backgroundColorMobile?: string
|
|
100
|
-
textColor?: string
|
|
101
|
-
textColorMobile?: string
|
|
102
|
-
|
|
103
|
-
// Border
|
|
104
|
-
borderWidth?: number
|
|
105
|
-
borderWidthMobile?: number
|
|
106
|
-
borderStyle?: string
|
|
107
|
-
borderStyleMobile?: string
|
|
108
|
-
borderColor?: string
|
|
109
|
-
borderColorMobile?: string
|
|
110
|
-
borderRadius?: number
|
|
111
|
-
borderRadiusMobile?: number
|
|
112
|
-
|
|
113
|
-
// Typography
|
|
114
|
-
fontFamily?: string
|
|
115
|
-
fontFamilyMobile?: string
|
|
116
|
-
center?: boolean
|
|
117
|
-
centerMobile?: boolean
|
|
118
|
-
|
|
119
|
-
// Effects
|
|
120
|
-
shadowType?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'custom'
|
|
121
|
-
shadowTypeMobile?: 'none' | 'sm' | 'md' | 'lg' | 'xl' | 'custom'
|
|
122
|
-
zIndex?: number
|
|
123
|
-
zIndexMobile?: number
|
|
124
|
-
|
|
125
|
-
// Visibility
|
|
126
|
-
showDesktop?: boolean
|
|
127
|
-
showMobile?: boolean
|
|
128
|
-
|
|
129
|
-
// Custom
|
|
130
|
-
customId?: string
|
|
131
|
-
customCSS?: string
|
|
132
|
-
}
|
|
133
|
-
|
|
134
|
-
// Registry types
|
|
135
|
-
export type ComponentConstructor = any // Vue component constructor
|
|
136
|
-
|
|
137
|
-
export interface ComponentRegistry {
|
|
138
|
-
[key: string]: ComponentConstructor
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
// Renderer configuration
|
|
142
|
-
export interface RendererConfig {
|
|
143
|
-
components: ComponentRegistry
|
|
144
|
-
pageData: PageData
|
|
145
|
-
isMobile?: boolean
|
|
146
|
-
previewMode?: boolean
|
|
147
|
-
editorMode?: boolean
|
|
148
|
-
}
|
package/dist/example-setup.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
//# sourceMappingURL=example-setup.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"example-setup.d.ts","sourceRoot":"","sources":["../example-setup.ts"],"names":[],"mappings":"AAeA,OAAO,8BAA8B,CAAA"}
|
package/dist/styles.d.ts
DELETED
package/dist/styles.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../styles.ts"],"names":[],"mappings":"AAAA;;;;;GAKG"}
|
package/dist/vite.config.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"vite.config.d.ts","sourceRoot":"","sources":["../vite.config.ts"],"names":[],"mappings":";AASA,wBAoCG"}
|
package/index.ts
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Blox External Preview Library
|
|
3
|
-
* Main entry point
|
|
4
|
-
*/
|
|
5
|
-
|
|
6
|
-
// Component exports
|
|
7
|
-
export * from './components'
|
|
8
|
-
|
|
9
|
-
// Configuration exports
|
|
10
|
-
export * from './config/baseComponents'
|
|
11
|
-
|
|
12
|
-
// Core exports
|
|
13
|
-
export * from './core/communication'
|
|
14
|
-
export * from './core/registry'
|
|
15
|
-
export * from './core/renderer'
|
|
16
|
-
export * from './core/types'
|
|
17
|
-
|
|
18
|
-
// Setup and registration - Main API
|
|
19
|
-
export {
|
|
20
|
-
type BloxInstance,
|
|
21
|
-
type BloxOptions,
|
|
22
|
-
ComponentValidationError,
|
|
23
|
-
createBlox,
|
|
24
|
-
createComponentConfig,
|
|
25
|
-
type RegisterOptions,
|
|
26
|
-
type RouteOptions,
|
|
27
|
-
} from './setup'
|
|
28
|
-
|
|
29
|
-
// Legacy exports (deprecated)
|
|
30
|
-
export {
|
|
31
|
-
getAllComponentConfigs,
|
|
32
|
-
registerBaseComponents,
|
|
33
|
-
registerCustomComponent,
|
|
34
|
-
registerCustomComponents,
|
|
35
|
-
} from './setup'
|
|
36
|
-
|
|
37
|
-
// Utility exports
|
|
38
|
-
export * from './utils/normalizer'
|
|
39
|
-
export * from './utils/styles'
|
|
40
|
-
|
|
41
|
-
// View exports
|
|
42
|
-
export { default as ExternalPreview } from './views/ExternalPreview.vue'
|
|
43
|
-
export { default as RenderPage } from './views/RenderPage.vue'
|