@eduboxpro/studio 0.1.33 → 0.1.34
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/fesm2022/eduboxpro-studio.mjs +35 -1
- package/fesm2022/eduboxpro-studio.mjs.map +1 -1
- package/index.d.ts +300 -2
- package/package.json +1 -1
|
@@ -7958,6 +7958,40 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
7958
7958
|
args: ['paste', ['$event']]
|
|
7959
7959
|
}] } });
|
|
7960
7960
|
|
|
7961
|
+
/**
|
|
7962
|
+
* Block System Types and Interfaces
|
|
7963
|
+
* Core models for dynamic page rendering in EduBox
|
|
7964
|
+
*
|
|
7965
|
+
* @packageDocumentation
|
|
7966
|
+
*/
|
|
7967
|
+
// ============================================
|
|
7968
|
+
// Type Guards
|
|
7969
|
+
// ============================================
|
|
7970
|
+
function isLayoutBlock(block) {
|
|
7971
|
+
return ['flex-container', 'grid-container', 'div', 'card', 'section'].includes(block.type);
|
|
7972
|
+
}
|
|
7973
|
+
function isContentBlock(block) {
|
|
7974
|
+
return ['text', 'image', 'video', 'html', 'code', 'list'].includes(block.type);
|
|
7975
|
+
}
|
|
7976
|
+
function isInteractiveBlock(block) {
|
|
7977
|
+
return ['button', 'alert', 'badge', 'link', 'slider', 'tabs', 'accordion'].includes(block.type);
|
|
7978
|
+
}
|
|
7979
|
+
function isFormBlock(block) {
|
|
7980
|
+
return ['form', 'input', 'textarea', 'select', 'checkbox'].includes(block.type);
|
|
7981
|
+
}
|
|
7982
|
+
function isStudioBlock(block) {
|
|
7983
|
+
return block.type.startsWith('studio-');
|
|
7984
|
+
}
|
|
7985
|
+
function hasChildren(block) {
|
|
7986
|
+
return Array.isArray(block.children) && block.children.length > 0;
|
|
7987
|
+
}
|
|
7988
|
+
|
|
7989
|
+
/**
|
|
7990
|
+
* @eduboxpro/studio - Models
|
|
7991
|
+
*
|
|
7992
|
+
* Type definitions and interfaces for the block system
|
|
7993
|
+
*/
|
|
7994
|
+
|
|
7961
7995
|
/**
|
|
7962
7996
|
* Public API Surface of @eduboxpro/studio
|
|
7963
7997
|
*/
|
|
@@ -7969,5 +8003,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.12", ngImpo
|
|
|
7969
8003
|
* Generated bundle index. Do not edit.
|
|
7970
8004
|
*/
|
|
7971
8005
|
|
|
7972
|
-
export { BadgeComponent, BadgeWrapperComponent, BottomNavigationComponent, ButtonComponent, ButtonGroupComponent, ButtonToggleGroupComponent, COUNTRY_OPTIONS, CardComponent, ChatComponent, ChatInputComponent, ChatMessageComponent, CheckboxComponent, ColorPickerCompactComponent, ColorPickerComponent, ConfirmDialogComponent, ConfirmDialogService, DEFAULT_COLOR_PRESETS, DrawerComponent, DrawerService, DropdownComponent, IconComponent, InputComponent, InspectorComponent, MASK_PRESETS, MaskDirective, MaskEngine, MenuComponent, ModalComponent, NavbarComponent, PaginationComponent, PhoneInputComponent, PopoverComponent, RadioButtonComponent, STUDIO_CONFIG, SelectComponent, SidebarComponent, SignalStore, StudioConfigService, SwitchComponent, TableColumnDirective, TableComponent, TabsComponent, TextareaComponent, ThemeSwitchComponent, ToastComponent, ToastService, TooltipComponent, classNames, isSafeUrl, loadGoogleFont, loadGoogleFonts, provideStudioConfig, provideStudioIcons, sanitizeUrl, withConfigDefault };
|
|
8006
|
+
export { BadgeComponent, BadgeWrapperComponent, BottomNavigationComponent, ButtonComponent, ButtonGroupComponent, ButtonToggleGroupComponent, COUNTRY_OPTIONS, CardComponent, ChatComponent, ChatInputComponent, ChatMessageComponent, CheckboxComponent, ColorPickerCompactComponent, ColorPickerComponent, ConfirmDialogComponent, ConfirmDialogService, DEFAULT_COLOR_PRESETS, DrawerComponent, DrawerService, DropdownComponent, IconComponent, InputComponent, InspectorComponent, MASK_PRESETS, MaskDirective, MaskEngine, MenuComponent, ModalComponent, NavbarComponent, PaginationComponent, PhoneInputComponent, PopoverComponent, RadioButtonComponent, STUDIO_CONFIG, SelectComponent, SidebarComponent, SignalStore, StudioConfigService, SwitchComponent, TableColumnDirective, TableComponent, TabsComponent, TextareaComponent, ThemeSwitchComponent, ToastComponent, ToastService, TooltipComponent, classNames, hasChildren, isContentBlock, isFormBlock, isInteractiveBlock, isLayoutBlock, isSafeUrl, isStudioBlock, loadGoogleFont, loadGoogleFonts, provideStudioConfig, provideStudioIcons, sanitizeUrl, withConfigDefault };
|
|
7973
8007
|
//# sourceMappingURL=eduboxpro-studio.mjs.map
|