@solidxai/core-ui 0.1.13-beta.2 → 0.1.13-beta.3
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/components/auth/SolidOTPVerify.d.ts +3 -0
- package/dist/components/auth/SolidOTPVerify.d.ts.map +1 -0
- package/dist/components/auth/SolidOTPVerify.js +67 -0
- package/dist/components/auth/SolidOTPVerify.js.map +1 -0
- package/dist/components/auth/SolidOTPVerify.tsx +133 -0
- package/dist/components/common/AuthBanner.d.ts +3 -0
- package/dist/components/common/AuthBanner.d.ts.map +1 -0
- package/dist/components/common/AuthBanner.js +15 -0
- package/dist/components/common/AuthBanner.js.map +1 -0
- package/dist/components/common/AuthBanner.tsx +41 -0
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts +2 -0
- package/dist/components/common/SingleSelectAutoCompleteField.d.ts.map +1 -0
- package/dist/components/common/SingleSelectAutoCompleteField.js +92 -0
- package/dist/components/common/SingleSelectAutoCompleteField.js.map +1 -0
- package/dist/components/common/SingleSelectAutoCompleteField.tsx +73 -0
- package/dist/components/common/SolidExportStepper.d.ts +12 -0
- package/dist/components/common/SolidExportStepper.d.ts.map +1 -0
- package/dist/components/common/SolidExportStepper.js +30 -0
- package/dist/components/common/SolidExportStepper.js.map +1 -0
- package/dist/components/common/SolidExportStepper.tsx +135 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts +2 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.d.ts.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js +50 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.js.map +1 -0
- package/dist/components/core/common/LoadDynamicJsxComponent.tsx +70 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts +2 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.d.ts.map +1 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js +16 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.js.map +1 -0
- package/dist/components/core/common/SolidGenericImport/SolidImportWrapper.tsx +29 -0
- package/dist/components/core/dashboard/DashboardFilter.d.ts +13 -0
- package/dist/components/core/dashboard/DashboardFilter.d.ts.map +1 -0
- package/dist/components/core/dashboard/DashboardFilter.js +299 -0
- package/dist/components/core/dashboard/DashboardFilter.js.map +1 -0
- package/dist/components/core/dashboard/DashboardFilter.tsx +348 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts +3 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.d.ts.map +1 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js +21 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.js.map +1 -0
- package/dist/components/core/dashboard/PrimeDataTableWrapper.tsx +40 -0
- package/dist/components/core/dashboard/SolidDashboard.d.ts +28 -0
- package/dist/components/core/dashboard/SolidDashboard.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboard.js +183 -0
- package/dist/components/core/dashboard/SolidDashboard.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboard.module.css +83 -0
- package/dist/components/core/dashboard/SolidDashboard.tsx +263 -0
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts +24 -0
- package/dist/components/core/dashboard/SolidDashboardBody.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardBody.js +162 -0
- package/dist/components/core/dashboard/SolidDashboardBody.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardBody.tsx +168 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js +11 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardFilterRequired.tsx +28 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.d.ts +3 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.js +6 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardHeader.tsx +10 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.js +10 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardLoading.tsx +61 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts +3 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js +12 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardNotAvailable.tsx +32 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts +2 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.js +11 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardRenderError.tsx +28 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts +19 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.js +171 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.js.map +1 -0
- package/dist/components/core/dashboard/SolidDashboardVariable.tsx +259 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts +9 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.js +42 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.js.map +1 -0
- package/dist/components/core/dashboard/SolidQuestionRenderer.tsx +99 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts +9 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js +35 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/ChartJsRenderer.tsx +48 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts +7 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js +22 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/PrimeReactDatatableRenderer.tsx +51 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts +2 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.d.ts.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.js +4 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.js.map +1 -0
- package/dist/components/core/dashboard/chart-renderers/init-chartjs.ts +25 -0
- package/dist/components/core/dashboard/dashboard-utils.d.ts +2 -0
- package/dist/components/core/dashboard/dashboard-utils.d.ts.map +1 -0
- package/dist/components/core/dashboard/dashboard-utils.js +38 -0
- package/dist/components/core/dashboard/dashboard-utils.js.map +1 -0
- package/dist/components/core/dashboard/dashboard-utils.ts +39 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts +10 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js +16 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardFormViewChangeHandler.ts +19 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts +8 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js +64 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionFieldChangeHandler.ts +30 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts +8 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js +62 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboard/dashboardQuestionOnFormLoadHandler.ts +29 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts +4 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.d.ts.map +1 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js +23 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.js.map +1 -0
- package/dist/components/core/extension/solid-core/dashboardQuestion/ChartFormPreviewWidget.tsx +36 -0
- package/dist/components/core/form/fields/SolidMediaMultipleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.js +111 -106
- package/dist/components/core/form/fields/SolidMediaMultipleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaMultipleField.tsx +165 -134
- package/dist/components/core/form/fields/SolidMediaSingleField.d.ts.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.js +81 -84
- package/dist/components/core/form/fields/SolidMediaSingleField.js.map +1 -1
- package/dist/components/core/form/fields/SolidMediaSingleField.tsx +97 -86
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js +92 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidChatterMessageCoModelEntityIdFormViewWidget.tsx +68 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts +3 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.d.ts.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js +111 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.js.map +1 -0
- package/dist/components/core/form/fields/widgets/SolidLovTypeChangeFormEditWidget.tsx +122 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts +12 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.js +145 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.js.map +1 -0
- package/dist/components/core/kanban/SolidKanbanViewFields.tsx +164 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js +87 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidManyToOneFilterElement.tsx +59 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js +73 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidSelectionDynamicFilterElement.tsx +50 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts +2 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js +20 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidSelectionStaticFilterElement.tsx +32 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts +12 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.d.ts.map +1 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js +81 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.js.map +1 -0
- package/dist/components/core/kanban/SolidVarInputsFilterElement.tsx +184 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBigintKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidBooleanKanbanField.tsx +16 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js +21 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidComputedKanbanField.tsx +23 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDateKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDatetimeKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidDecimalKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidExternalIdKanbanField.tsx +12 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidFloatKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIdKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js +16 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidIntKanbanField.tsx +20 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidLongTextKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js +56 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaMultipleKanbanField.tsx +140 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js +42 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidMediaSingleKanbanField.tsx +164 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js +11 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRelationKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidRichTextKanbanField.tsx +9 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionDynamicKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidSelectionStaticKanbanField.tsx +14 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js +37 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidShortTextKanbanField.tsx +121 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidTimeKanbanField.tsx +12 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js +8 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/SolidUuidKanbanField.tsx +13 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts +4 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.d.ts.map +1 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js +7 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.js.map +1 -0
- package/dist/components/core/kanban/kanban-fields/relations/SolidRelationManyToOneKanbanField.tsx +16 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts +2 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.d.ts.map +1 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js +39 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.js.map +1 -0
- package/dist/components/core/list/SolidListViewRowButtonContextMenu.tsx +40 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts +12 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.d.ts.map +1 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.js +81 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.js.map +1 -0
- package/dist/components/core/list/SolidVarInputsFilterElement.tsx +184 -0
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js +42 -81
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaMultipleColumn.tsx +90 -120
- package/dist/components/core/list/columns/SolidMediaSingleColumn.d.ts.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js +34 -42
- package/dist/components/core/list/columns/SolidMediaSingleColumn.js.map +1 -1
- package/dist/components/core/list/columns/SolidMediaSingleColumn.tsx +51 -46
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js +87 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidChatterMessageCoModelEntityIdListViewWidget.tsx +70 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js +33 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.js.map +1 -0
- package/dist/components/core/list/widgets/SolidMqMessageStageListViewWidget.tsx +50 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts +3 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.d.ts.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js +158 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.js.map +1 -0
- package/dist/components/core/list/widgets/SolidSummarizeListHeaderActionMqMessages.tsx +185 -0
- package/dist/components/layout/DashboardHeader.d.ts +3 -0
- package/dist/components/layout/DashboardHeader.d.ts.map +1 -0
- package/dist/components/layout/DashboardHeader.js +20 -0
- package/dist/components/layout/DashboardHeader.js.map +1 -0
- package/dist/components/layout/DashboardHeader.tsx +94 -0
- package/dist/helpers/# no such endpoints exist, need to calle +3 -0
- package/dist/helpers/ToastContainer.d.ts +4 -0
- package/dist/helpers/ToastContainer.d.ts.map +1 -0
- package/dist/helpers/ToastContainer.js +49 -0
- package/dist/helpers/ToastContainer.js.map +1 -0
- package/dist/helpers/ToastContainer.tsx +94 -0
- package/dist/helpers/downloadMediaFile.d.ts.map +1 -1
- package/dist/helpers/downloadMediaFile.js +10 -3
- package/dist/helpers/downloadMediaFile.js.map +1 -1
- package/dist/helpers/downloadMediaFile.tsx +13 -7
- package/dist/helpers/fileTypeIcon.d.ts +3 -2
- package/dist/helpers/fileTypeIcon.d.ts.map +1 -1
- package/dist/helpers/fileTypeIcon.js +11 -7
- package/dist/helpers/fileTypeIcon.js.map +1 -1
- package/dist/helpers/fileTypeIcon.tsx +12 -7
- package/dist/helpers/mediaType.d.ts +7 -0
- package/dist/helpers/mediaType.d.ts.map +1 -1
- package/dist/helpers/mediaType.js +39 -8
- package/dist/helpers/mediaType.js.map +1 -1
- package/dist/helpers/mediaType.ts +46 -7
- package/dist/helpers/mediaUrl.d.ts +2 -0
- package/dist/helpers/mediaUrl.d.ts.map +1 -0
- package/dist/helpers/mediaUrl.js +10 -0
- package/dist/helpers/mediaUrl.js.map +1 -0
- package/dist/helpers/mediaUrl.ts +11 -0
- package/dist/helpers/showToast.d.ts +5 -0
- package/dist/helpers/showToast.d.ts.map +1 -0
- package/dist/helpers/showToast.js +17 -0
- package/dist/helpers/showToast.js.map +1 -0
- package/dist/helpers/showToast.ts +13 -0
- package/dist/helpers/studioSandbox.d.ts +31 -0
- package/dist/helpers/studioSandbox.d.ts.map +1 -0
- package/dist/helpers/studioSandbox.js +104 -0
- package/dist/helpers/studioSandbox.js.map +1 -0
- package/dist/helpers/studioSandbox.ts +117 -0
- package/dist/nextAuth/authProviders.d.ts +4 -0
- package/dist/nextAuth/authProviders.d.ts.map +1 -0
- package/dist/nextAuth/authProviders.js +198 -0
- package/dist/nextAuth/authProviders.js.map +1 -0
- package/dist/nextAuth/authProviders.tsx +232 -0
- package/dist/nextAuth/handleLogout.d.ts +2 -0
- package/dist/nextAuth/handleLogout.d.ts.map +1 -0
- package/dist/nextAuth/handleLogout.js +36 -0
- package/dist/nextAuth/handleLogout.js.map +1 -0
- package/dist/nextAuth/handleLogout.tsx +39 -0
- package/dist/nextAuth/refreshAccessToken.d.ts +2 -0
- package/dist/nextAuth/refreshAccessToken.d.ts.map +1 -0
- package/dist/nextAuth/refreshAccessToken.js +24 -0
- package/dist/nextAuth/refreshAccessToken.js.map +1 -0
- package/dist/nextAuth/refreshAccessToken.tsx +28 -0
- package/dist/redux/api/dashboardApi.d.ts +23 -0
- package/dist/redux/api/dashboardApi.d.ts.map +1 -0
- package/dist/redux/api/dashboardApi.js +35 -0
- package/dist/redux/api/dashboardApi.js.map +1 -0
- package/dist/redux/api/dashboardApi.ts +56 -0
- package/dist/redux/api/dashboardLayoutApi.d.ts +24 -0
- package/dist/redux/api/dashboardLayoutApi.d.ts.map +1 -0
- package/dist/redux/api/dashboardLayoutApi.js +34 -0
- package/dist/redux/api/dashboardLayoutApi.js.map +1 -0
- package/dist/redux/api/dashboardLayoutApi.ts +55 -0
- package/dist/redux/api/dashboardQuestionApi.d.ts +5 -0
- package/dist/redux/api/dashboardQuestionApi.d.ts.map +1 -0
- package/dist/redux/api/dashboardQuestionApi.js +18 -0
- package/dist/redux/api/dashboardQuestionApi.js.map +1 -0
- package/dist/redux/api/dashboardQuestionApi.ts +17 -0
- package/dist/redux/features/settingsSlice.d.ts +20 -0
- package/dist/redux/features/settingsSlice.d.ts.map +1 -0
- package/dist/redux/features/settingsSlice.js +39 -0
- package/dist/redux/features/settingsSlice.js.map +1 -0
- package/dist/redux/features/settingsSlice.ts +60 -0
- package/dist/resources/images/Footerbg.png +0 -0
- package/dist/resources/images/LoginBanner.png +0 -0
- package/dist/resources/images/dashboard/Ellipse 1.svg +10 -0
- package/dist/resources/images/dashboard/Rectangle 17.svg +10 -0
- package/dist/resources/images/dashboard/Rectangle 25.svg +11 -0
- package/dist/resources/images/dashboard/image 5.svg +9 -0
- package/dist/resources/images/loginhero.png +0 -0
- package/dist/resources/images/logo.png +0 -0
- package/dist/resources/images/radix-logo-white.png +0 -0
- package/dist/resources/images/radix-logo.png +0 -0
- package/dist/resources/images/signupBanner.png +0 -0
- package/dist/resources/shadcn-base.css +16 -70
- package/dist/resources/solid-tailwind-generated.css +1 -1
- package/package.json +1 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts +0 -8
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js +0 -6
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorHeaderAction.ts +0 -13
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts +0 -11
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.d.ts.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js +0 -10
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.js.map +0 -1
- package/dist/components/core/extension/solid-core/workflowDefinition/list/openWorkflowDefinitionEditorRowAction.ts +0 -22
- package/dist/components/core/list/SolidCustomListColumn.d.ts +0 -8
- package/dist/components/core/list/SolidCustomListColumn.d.ts.map +0 -1
- package/dist/components/core/list/SolidCustomListColumn.js +0 -47
- package/dist/components/core/list/SolidCustomListColumn.js.map +0 -1
- package/dist/components/core/list/SolidCustomListColumn.tsx +0 -57
- package/dist/components/workflow/WorkflowFlowCanvas.css +0 -431
- package/dist/components/workflow/WorkflowFlowCanvas.d.ts +0 -41
- package/dist/components/workflow/WorkflowFlowCanvas.d.ts.map +0 -1
- package/dist/components/workflow/WorkflowFlowCanvas.js +0 -705
- package/dist/components/workflow/WorkflowFlowCanvas.js.map +0 -1
- package/dist/components/workflow/WorkflowFlowCanvas.tsx +0 -1274
- package/dist/components/workflow/WorkflowNodeDocsPanel.css +0 -247
- package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts +0 -22
- package/dist/components/workflow/WorkflowNodeDocsPanel.d.ts.map +0 -1
- package/dist/components/workflow/WorkflowNodeDocsPanel.js +0 -97
- package/dist/components/workflow/WorkflowNodeDocsPanel.js.map +0 -1
- package/dist/components/workflow/WorkflowNodeDocsPanel.tsx +0 -363
- package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts +0 -50
- package/dist/components/workflow/WorkflowNodeSchemaEditor.d.ts.map +0 -1
- package/dist/components/workflow/WorkflowNodeSchemaEditor.js +0 -309
- package/dist/components/workflow/WorkflowNodeSchemaEditor.js.map +0 -1
- package/dist/components/workflow/WorkflowNodeSchemaEditor.tsx +0 -808
- package/dist/helpers/modulePackageResumeState.d.ts +0 -6
- package/dist/helpers/modulePackageResumeState.d.ts.map +0 -1
- package/dist/helpers/modulePackageResumeState.js +0 -46
- package/dist/helpers/modulePackageResumeState.js.map +0 -1
- package/dist/helpers/modulePackageResumeState.ts +0 -57
- package/dist/redux/api/workflowDefinitionEditorApi.d.ts +0 -17
- package/dist/redux/api/workflowDefinitionEditorApi.d.ts.map +0 -1
- package/dist/redux/api/workflowDefinitionEditorApi.js +0 -38
- package/dist/redux/api/workflowDefinitionEditorApi.js.map +0 -1
- package/dist/redux/api/workflowDefinitionEditorApi.ts +0 -40
- package/dist/redux/api/workflowNodeApi.d.ts +0 -6
- package/dist/redux/api/workflowNodeApi.d.ts.map +0 -1
- package/dist/redux/api/workflowNodeApi.js +0 -14
- package/dist/redux/api/workflowNodeApi.js.map +0 -1
- package/dist/redux/api/workflowNodeApi.ts +0 -18
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.css +0 -970
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts +0 -3
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.d.ts.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js +0 -1287
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.js.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionEditorPage.tsx +0 -2572
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.css +0 -151
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts +0 -3
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.d.ts.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js +0 -250
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.js.map +0 -1
- package/dist/routes/pages/admin/core/WorkflowDefinitionListPage.tsx +0 -455
- package/dist/types/workflow-node.d.ts +0 -127
- package/dist/types/workflow-node.d.ts.map +0 -1
- package/dist/types/workflow-node.js +0 -2
- package/dist/types/workflow-node.js.map +0 -1
- package/dist/types/workflow-node.ts +0 -162
|
@@ -1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wBAAwB,EAAC,WAAW,EAAC,KAAK,EAAC,aAAa,EAAC,OAAO,GAAG,EAChH,eAAM,CAAC,EAAC,KAAK,EAAC,CAAC,EAAC,IAAI,EAAC,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,KAAK,EAAC,EAAE,EAAC,KAAK,EAAC,IAAI,EAAC,uBAAuB,GAAG,IACnF,CACT,CAAC;AACN,CAAC,CAAC","sourcesContent":["import React from \"react\";\n\ntype FileTypeIconTone = {\n bg: string;\n corner: string;\n};\n\nconst DEFAULT_FILE_ICON: FileTypeIconTone = {\n bg: \"#64748B\",\n corner: \"#CBD5E1\"\n};\n\nconst FILE_TYPE_ICON_MAP: Record<string, FileTypeIconTone> = {\n pdf: { bg: \"#DC2626\", corner: \"#FCA5A5\" },\n txt: { bg: \"#475569\", corner: \"#CBD5E1\" },\n doc: { bg: \"#2563EB\", corner: \"#93C5FD\" },\n docx: { bg: \"#2563EB\", corner: \"#93C5FD\" },\n xls: { bg: \"#16A34A\", corner: \"#86EFAC\" },\n xlsx: { bg: \"#16A34A\", corner: \"#86EFAC\" },\n csv: { bg: \"#059669\", corner: \"#A7F3D0\" },\n ppt: { bg: \"#EA580C\", corner: \"#FDBA74\" },\n pptx: { bg: \"#EA580C\", corner: \"#FDBA74\" },\n zip: { bg: \"#7C3AED\", corner: \"#C4B5FD\" },\n rar: { bg: \"#7C3AED\", corner: \"#C4B5FD\" },\n webm: { bg: \"#4F46E5\", corner: \"#A5B4FC\" },\n ogg: { bg: \"#DB2777\", corner: \"#F9A8D4\" },\n wav: { bg: \"#DB2777\", corner: \"#F9A8D4\" }\n};\n\nconst getFileExtension = (fileName?: string, fileUrl?: string) => {\n const value = fileName || fileUrl;\n if (!value) {\n return \"\";\n }\n\n const cleanValue = value.split(\"?\")[0];\n return cleanValue.split(\".\").pop()?.toLowerCase() ?? \"\";\n};\n\nexport const getFileTypeIconTone = (fileUrl: string, fileName?: string) => {\n const extension = getFileExtension(fileName, fileUrl);\n return FILE_TYPE_ICON_MAP[extension] ?? DEFAULT_FILE_ICON;\n};\n\nexport const SolidFileTypeIcon = ({ fileUrl, fileName, size = 24, className }: { fileUrl: string; fileName?: string; size?: number; className?: string }) => {\n const icon = getFileTypeIconTone(fileUrl, fileName);\n\n return (\n <svg\n xmlns=\"http://www.w3.org/2000/svg\"\n width={size}\n height={size}\n viewBox=\"0 0 32 32\"\n fill=\"none\"\n className={className}\n aria-hidden\n >\n <path\n d=\"M7.5 2.5h12L26 9v19.5a2 2 0 0 1-2 2H7.5a2 2 0 0 1-2-2v-24a2 2 0 0 1 2-2Z\"\n fill={icon.bg}\n />\n <path\n d=\"M19.5 2.5V8a1 1 0 0 0 1 1H26L19.5 2.5Z\"\n fill={icon.corner}\n />\n <path d=\"M9.5 12.25h9.5M9.5 15.25h12\" stroke=\"rgba(255,255,255,0.42)\" strokeWidth=\"1.4\" strokeLinecap=\"round\" />\n <rect x=\"7.5\" y=\"18\" width=\"17\" height=\"7.5\" rx=\"1.5\" fill=\"rgba(255,255,255,0.2)\" />\n </svg>\n );\n};\n"]}
|
|
@@ -27,18 +27,23 @@ const FILE_TYPE_ICON_MAP: Record<string, FileTypeIconTone> = {
|
|
|
27
27
|
wav: { bg: "#DB2777", corner: "#F9A8D4" }
|
|
28
28
|
};
|
|
29
29
|
|
|
30
|
-
const getFileExtension = (fileUrl
|
|
31
|
-
const
|
|
32
|
-
|
|
30
|
+
const getFileExtension = (fileName?: string, fileUrl?: string) => {
|
|
31
|
+
const value = fileName || fileUrl;
|
|
32
|
+
if (!value) {
|
|
33
|
+
return "";
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
const cleanValue = value.split("?")[0];
|
|
37
|
+
return cleanValue.split(".").pop()?.toLowerCase() ?? "";
|
|
33
38
|
};
|
|
34
39
|
|
|
35
|
-
export const getFileTypeIconTone = (fileUrl: string) => {
|
|
36
|
-
const extension = getFileExtension(fileUrl);
|
|
40
|
+
export const getFileTypeIconTone = (fileUrl: string, fileName?: string) => {
|
|
41
|
+
const extension = getFileExtension(fileName, fileUrl);
|
|
37
42
|
return FILE_TYPE_ICON_MAP[extension] ?? DEFAULT_FILE_ICON;
|
|
38
43
|
};
|
|
39
44
|
|
|
40
|
-
export const SolidFileTypeIcon = ({ fileUrl, size = 24, className }: { fileUrl: string; size?: number; className?: string }) => {
|
|
41
|
-
const icon = getFileTypeIconTone(fileUrl);
|
|
45
|
+
export const SolidFileTypeIcon = ({ fileUrl, fileName, size = 24, className }: { fileUrl: string; fileName?: string; size?: number; className?: string }) => {
|
|
46
|
+
const icon = getFileTypeIconTone(fileUrl, fileName);
|
|
42
47
|
|
|
43
48
|
return (
|
|
44
49
|
<svg
|
|
@@ -1,3 +1,10 @@
|
|
|
1
1
|
export type MediaKind = "image" | "video" | "audio";
|
|
2
|
+
export type MediaPreviewKind = MediaKind | "file";
|
|
3
|
+
export declare const getMediaPreviewKind: ({ url, fileName, mimeType }: {
|
|
4
|
+
url?: string | undefined;
|
|
5
|
+
fileName?: string | undefined;
|
|
6
|
+
mimeType?: string | undefined;
|
|
7
|
+
}) => MediaPreviewKind;
|
|
8
|
+
export declare const isLightboxMediaKind: (mediaKind: MediaPreviewKind) => mediaKind is "video" | "image";
|
|
2
9
|
export declare const getMediaTypeFromUrl: (url?: string) => MediaKind;
|
|
3
10
|
//# sourceMappingURL=mediaType.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaType.d.ts","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"mediaType.d.ts","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"AAIA,MAAM,MAAM,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,CAAC;AACpD,MAAM,MAAM,gBAAgB,GAAG,SAAS,GAAG,MAAM,CAAC;AAyClD,eAAO,MAAM,mBAAmB;;;;MAA0F,gBAEzH,CAAC;AAEF,eAAO,MAAM,mBAAmB,cACnB,gBAAgB,mCACsD,CAAC;AAEpF,eAAO,MAAM,mBAAmB,SAAU,MAAM,KAAG,SAOlD,CAAC"}
|
|
@@ -1,19 +1,50 @@
|
|
|
1
|
+
var imageExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "avif"];
|
|
1
2
|
var videoExtensions = ["mp4", "webm", "ogg", "mov", "m4v"];
|
|
2
3
|
var audioExtensions = ["mp3", "wav", "m4a", "aac", "oga"];
|
|
3
|
-
|
|
4
|
-
var _a;
|
|
5
|
-
if (!
|
|
4
|
+
var getMediaExtension = function (value) {
|
|
5
|
+
var _a, _b;
|
|
6
|
+
if (!value)
|
|
7
|
+
return "";
|
|
8
|
+
var cleanValue = value.split("?")[0];
|
|
9
|
+
return (_b = (_a = cleanValue.split(".").pop()) === null || _a === void 0 ? void 0 : _a.toLowerCase()) !== null && _b !== void 0 ? _b : "";
|
|
10
|
+
};
|
|
11
|
+
var getMediaKind = function (_a) {
|
|
12
|
+
var url = _a.url, fileName = _a.fileName, mimeType = _a.mimeType;
|
|
13
|
+
var normalizedMimeType = String(mimeType || "").toLowerCase();
|
|
14
|
+
if (normalizedMimeType.startsWith("image/")) {
|
|
6
15
|
return "image";
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
16
|
+
}
|
|
17
|
+
if (normalizedMimeType.startsWith("video/")) {
|
|
18
|
+
return "video";
|
|
19
|
+
}
|
|
20
|
+
if (normalizedMimeType.startsWith("audio/")) {
|
|
21
|
+
return "audio";
|
|
22
|
+
}
|
|
23
|
+
var extension = getMediaExtension(fileName) || getMediaExtension(url);
|
|
24
|
+
if (!extension)
|
|
25
|
+
return null;
|
|
26
|
+
if (imageExtensions.includes(extension)) {
|
|
10
27
|
return "image";
|
|
11
|
-
|
|
28
|
+
}
|
|
29
|
+
if (videoExtensions.includes(extension)) {
|
|
12
30
|
return "video";
|
|
13
31
|
}
|
|
14
|
-
if (audioExtensions.includes(
|
|
32
|
+
if (audioExtensions.includes(extension)) {
|
|
15
33
|
return "audio";
|
|
16
34
|
}
|
|
35
|
+
return null;
|
|
36
|
+
};
|
|
37
|
+
export var getMediaPreviewKind = function (_a) {
|
|
38
|
+
var _b;
|
|
39
|
+
var url = _a.url, fileName = _a.fileName, mimeType = _a.mimeType;
|
|
40
|
+
return (_b = getMediaKind({ url: url, fileName: fileName, mimeType: mimeType })) !== null && _b !== void 0 ? _b : "file";
|
|
41
|
+
};
|
|
42
|
+
export var isLightboxMediaKind = function (mediaKind) { return mediaKind === "image" || mediaKind === "video"; };
|
|
43
|
+
export var getMediaTypeFromUrl = function (url) {
|
|
44
|
+
var mediaKind = getMediaKind({ url: url });
|
|
45
|
+
if (mediaKind === "video" || mediaKind === "audio") {
|
|
46
|
+
return mediaKind;
|
|
47
|
+
}
|
|
17
48
|
return "image";
|
|
18
49
|
};
|
|
19
50
|
//# sourceMappingURL=mediaType.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mediaType.js","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"AAAA,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;
|
|
1
|
+
{"version":3,"file":"mediaType.js","sourceRoot":"","sources":["../../src/helpers/mediaType.ts"],"names":[],"mappings":"AAAA,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AACpF,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAC7D,IAAM,eAAe,GAAG,CAAC,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;AAK5D,IAAM,iBAAiB,GAAG,UAAC,KAAc;;IACvC,IAAI,CAAC,KAAK;QAAE,OA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3D,OAAO,MAAA,YAAY,CAAC,EAAE,GAAG,KAAA,EAAE,QAAQ,UAAA,EAAE,QAAQ,UAAA,EAAE,CAAC,mCAAI,MAAM,CAAC;AAC7D,CAAC,CAAC;AAEF,MAAM,CAAC,IAAM,mBAAmB,GAAG,UACjC,SAA2B,IACQ,OAAA,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,OAAO,EAA9C,CAA8C,CAAC;AAEpF,MAAM,CAAC,IAAM,mBAAmB,GAAG,UAAC,GAAY;IAC9C,IAAM,SAAS,GAAG,YAAY,CAAC,EAAE,GAAG,KAAA,EAAE,CAAC,CAAC;IACxC,IAAI,SAAS,KAAK,OAAO,IAAI,SAAS,KAAK,OAAO,EAAE;QAClD,OAAO,SAAS,CAAC;KAClB;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAC","sourcesContent":["const imageExtensions = [\"jpg\", \"jpeg\", \"png\", \"gif\", \"bmp\", \"webp\", \"svg\", \"avif\"];\nconst videoExtensions = [\"mp4\", \"webm\", \"ogg\", \"mov\", \"m4v\"];\nconst audioExtensions = [\"mp3\", \"wav\", \"m4a\", \"aac\", \"oga\"];\n\nexport type MediaKind = \"image\" | \"video\" | \"audio\";\nexport type MediaPreviewKind = MediaKind | \"file\";\n\nconst getMediaExtension = (value?: string): string => {\n if (!value) return \"\";\n\n const cleanValue = value.split(\"?\")[0];\n return cleanValue.split(\".\").pop()?.toLowerCase() ?? \"\";\n};\n\nconst getMediaKind = ({ url, fileName, mimeType }: { url?: string; fileName?: string; mimeType?: string; }): MediaKind | null => {\n const normalizedMimeType = String(mimeType || \"\").toLowerCase();\n if (normalizedMimeType.startsWith(\"image/\")) {\n return \"image\";\n }\n\n if (normalizedMimeType.startsWith(\"video/\")) {\n return \"video\";\n }\n\n if (normalizedMimeType.startsWith(\"audio/\")) {\n return \"audio\";\n }\n\n const extension = getMediaExtension(fileName) || getMediaExtension(url);\n if (!extension) return null;\n\n if (imageExtensions.includes(extension)) {\n return \"image\";\n }\n\n if (videoExtensions.includes(extension)) {\n return \"video\";\n }\n\n if (audioExtensions.includes(extension)) {\n return \"audio\";\n }\n\n return null;\n};\n\nexport const getMediaPreviewKind = ({ url, fileName, mimeType}: { url?: string; fileName?: string; mimeType?: string; }): MediaPreviewKind => {\n return getMediaKind({ url, fileName, mimeType }) ?? \"file\";\n};\n\nexport const isLightboxMediaKind = (\n mediaKind: MediaPreviewKind\n): mediaKind is \"image\" | \"video\" => mediaKind === \"image\" || mediaKind === \"video\";\n\nexport const getMediaTypeFromUrl = (url?: string): MediaKind => {\n const mediaKind = getMediaKind({ url });\n if (mediaKind === \"video\" || mediaKind === \"audio\") {\n return mediaKind;\n }\n\n return \"image\";\n};\n"]}
|
|
@@ -1,23 +1,62 @@
|
|
|
1
|
+
const imageExtensions = ["jpg", "jpeg", "png", "gif", "bmp", "webp", "svg", "avif"];
|
|
1
2
|
const videoExtensions = ["mp4", "webm", "ogg", "mov", "m4v"];
|
|
2
3
|
const audioExtensions = ["mp3", "wav", "m4a", "aac", "oga"];
|
|
3
4
|
|
|
4
5
|
export type MediaKind = "image" | "video" | "audio";
|
|
6
|
+
export type MediaPreviewKind = MediaKind | "file";
|
|
5
7
|
|
|
6
|
-
|
|
7
|
-
if (!
|
|
8
|
+
const getMediaExtension = (value?: string): string => {
|
|
9
|
+
if (!value) return "";
|
|
10
|
+
|
|
11
|
+
const cleanValue = value.split("?")[0];
|
|
12
|
+
return cleanValue.split(".").pop()?.toLowerCase() ?? "";
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const getMediaKind = ({ url, fileName, mimeType }: { url?: string; fileName?: string; mimeType?: string; }): MediaKind | null => {
|
|
16
|
+
const normalizedMimeType = String(mimeType || "").toLowerCase();
|
|
17
|
+
if (normalizedMimeType.startsWith("image/")) {
|
|
18
|
+
return "image";
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
if (normalizedMimeType.startsWith("video/")) {
|
|
22
|
+
return "video";
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
if (normalizedMimeType.startsWith("audio/")) {
|
|
26
|
+
return "audio";
|
|
27
|
+
}
|
|
8
28
|
|
|
9
|
-
const
|
|
10
|
-
|
|
29
|
+
const extension = getMediaExtension(fileName) || getMediaExtension(url);
|
|
30
|
+
if (!extension) return null;
|
|
11
31
|
|
|
12
|
-
if (
|
|
32
|
+
if (imageExtensions.includes(extension)) {
|
|
33
|
+
return "image";
|
|
34
|
+
}
|
|
13
35
|
|
|
14
|
-
if (videoExtensions.includes(
|
|
36
|
+
if (videoExtensions.includes(extension)) {
|
|
15
37
|
return "video";
|
|
16
38
|
}
|
|
17
39
|
|
|
18
|
-
if (audioExtensions.includes(
|
|
40
|
+
if (audioExtensions.includes(extension)) {
|
|
19
41
|
return "audio";
|
|
20
42
|
}
|
|
21
43
|
|
|
44
|
+
return null;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
export const getMediaPreviewKind = ({ url, fileName, mimeType}: { url?: string; fileName?: string; mimeType?: string; }): MediaPreviewKind => {
|
|
48
|
+
return getMediaKind({ url, fileName, mimeType }) ?? "file";
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
export const isLightboxMediaKind = (
|
|
52
|
+
mediaKind: MediaPreviewKind
|
|
53
|
+
): mediaKind is "image" | "video" => mediaKind === "image" || mediaKind === "video";
|
|
54
|
+
|
|
55
|
+
export const getMediaTypeFromUrl = (url?: string): MediaKind => {
|
|
56
|
+
const mediaKind = getMediaKind({ url });
|
|
57
|
+
if (mediaKind === "video" || mediaKind === "audio") {
|
|
58
|
+
return mediaKind;
|
|
59
|
+
}
|
|
60
|
+
|
|
22
61
|
return "image";
|
|
23
62
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaUrl.d.ts","sourceRoot":"","sources":["../../src/helpers/mediaUrl.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,WAAY,MAAM,SAU/C,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mediaUrl.js","sourceRoot":"","sources":["../../src/helpers/mediaUrl.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,IAAM,iBAAiB,GAAG,UAAC,KAAc;IAC5C,IAAI,OAAO,MAAM,KAAK,WAAW,EAAE;QAC/B,OAAO;KACV;IAED,IAAI,CAAC,KAAK,EAAE;QACR,OAAO;KACV;IAED,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,QAAQ,EAAE,qBAAqB,CAAC,CAAC;AACxD,CAAC,CAAC","sourcesContent":["export const openMediaInNewTab = (value?: string) => {\n if (typeof window === \"undefined\") {\n return;\n }\n\n if (!value) {\n return;\n }\n\n window.open(value, \"_blank\", \"noopener,noreferrer\");\n};\n"]}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { Toast } from "primereact/toast";
|
|
2
|
+
import { RefObject } from "react";
|
|
3
|
+
declare const showToast: (toast: RefObject<Toast>, severity: "success" | "error" | "info", summary: string, detail: string) => void;
|
|
4
|
+
export default showToast;
|
|
5
|
+
//# sourceMappingURL=showToast.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showToast.d.ts","sourceRoot":"","sources":["../../src/helpers/showToast.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,kBAAkB,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AAElC,QAAA,MAAM,SAAS,UAAW,UAAU,KAAK,CAAC,YAAY,SAAS,GAAG,OAAO,GAAG,MAAM,WAAW,MAAM,UAAU,MAAM,SAQlH,CAAC;AACF,eAAe,SAAS,CAAC"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
var __assign = (this && this.__assign) || function () {
|
|
2
|
+
__assign = Object.assign || function(t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
+
t[p] = s[p];
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
return __assign.apply(this, arguments);
|
|
11
|
+
};
|
|
12
|
+
var showToast = function (toast, severity, summary, detail) {
|
|
13
|
+
var _a;
|
|
14
|
+
(_a = toast.current) === null || _a === void 0 ? void 0 : _a.show(__assign({ severity: severity, summary: summary, detail: detail }, (severity === "error" ? { sticky: true } : { life: 3000 })));
|
|
15
|
+
};
|
|
16
|
+
export default showToast;
|
|
17
|
+
//# sourceMappingURL=showToast.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"showToast.js","sourceRoot":"","sources":["../../src/helpers/showToast.ts"],"names":[],"mappings":";;;;;;;;;;;AAGA,IAAM,SAAS,GAAG,UAAC,KAAuB,EAAE,QAAsC,EAAE,OAAe,EAAE,MAAc;;IAC/G,MAAA,KAAK,CAAC,OAAO,0CAAE,IAAI,YACf,QAAQ,UAAA,EACR,OAAO,SAAA,EACP,MAAM,QAAA,IAEH,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,EAC/D,CAAC;AACP,CAAC,CAAC;AACF,eAAe,SAAS,CAAC","sourcesContent":["import { Toast } from \"primereact/toast\";\nimport { RefObject } from \"react\";\n\nconst showToast = (toast: RefObject<Toast>, severity: \"success\" | \"error\" | \"info\", summary: string, detail: string) => {\n toast.current?.show({\n severity,\n summary,\n detail,\n // stays until user closes\n ...(severity === \"error\" ? { sticky: true } : { life: 3000 }),\n });\n};\nexport default showToast;"]}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Toast } from "primereact/toast";
|
|
2
|
+
import { RefObject } from "react";
|
|
3
|
+
|
|
4
|
+
const showToast = (toast: RefObject<Toast>, severity: "success" | "error" | "info", summary: string, detail: string) => {
|
|
5
|
+
toast.current?.show({
|
|
6
|
+
severity,
|
|
7
|
+
summary,
|
|
8
|
+
detail,
|
|
9
|
+
// stays until user closes
|
|
10
|
+
...(severity === "error" ? { sticky: true } : { life: 3000 }),
|
|
11
|
+
});
|
|
12
|
+
};
|
|
13
|
+
export default showToast;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Studio Sandbox Mode API
|
|
3
|
+
*
|
|
4
|
+
* This module isolates the application layout from the Solid Studio UI.
|
|
5
|
+
* It dynamically creates a container to wrap the application root, converting
|
|
6
|
+
* it into a relative containing block. This prevents \`position: fixed\` elements
|
|
7
|
+
* within the application from inadvertently overlapping with the global Studio UI.
|
|
8
|
+
*/
|
|
9
|
+
/**
|
|
10
|
+
* Wraps the app root into the sandbox container.
|
|
11
|
+
*/
|
|
12
|
+
export declare function enableStudioMode(): void;
|
|
13
|
+
/**
|
|
14
|
+
* Restores the application to its original state.
|
|
15
|
+
*/
|
|
16
|
+
export declare function disableStudioMode(): void;
|
|
17
|
+
/**
|
|
18
|
+
* Returns the active scroll element based on sandbox state.
|
|
19
|
+
* When Studio Mode is enabled, the scroll element becomes the container.
|
|
20
|
+
* Otherwise, it uses the default Window object.
|
|
21
|
+
*/
|
|
22
|
+
export declare function getScrollElement(): HTMLElement | Window;
|
|
23
|
+
/**
|
|
24
|
+
* Returns the current vertical scroll position.
|
|
25
|
+
*/
|
|
26
|
+
export declare function getScrollY(): number;
|
|
27
|
+
/**
|
|
28
|
+
* Returns the effective viewport height.
|
|
29
|
+
*/
|
|
30
|
+
export declare function getViewportHeight(): number;
|
|
31
|
+
//# sourceMappingURL=studioSandbox.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studioSandbox.d.ts","sourceRoot":"","sources":["../../src/helpers/studioSandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAWH;;GAEG;AACH,wBAAgB,gBAAgB,SAgC/B;AAED;;GAEG;AACH,wBAAgB,iBAAiB,SAoBhC;AAED;;;;GAIG;AACH,wBAAgB,gBAAgB,IAAI,WAAW,GAAG,MAAM,CAOvD;AAED;;GAEG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAOnC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAO1C"}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Studio Sandbox Mode API
|
|
3
|
+
*
|
|
4
|
+
* This module isolates the application layout from the Solid Studio UI.
|
|
5
|
+
* It dynamically creates a container to wrap the application root, converting
|
|
6
|
+
* it into a relative containing block. This prevents \`position: fixed\` elements
|
|
7
|
+
* within the application from inadvertently overlapping with the global Studio UI.
|
|
8
|
+
*/
|
|
9
|
+
var originalRootParent = null;
|
|
10
|
+
var originalRootNextSibling = null;
|
|
11
|
+
var isSandboxActive = false;
|
|
12
|
+
function getAppRoot() {
|
|
13
|
+
// Determine the root depending on the framework (Vite uses #root, Next uses #__next)
|
|
14
|
+
return document.getElementById("root") || document.getElementById("__next") || document.body.firstElementChild;
|
|
15
|
+
}
|
|
16
|
+
/**
|
|
17
|
+
* Wraps the app root into the sandbox container.
|
|
18
|
+
*/
|
|
19
|
+
export function enableStudioMode() {
|
|
20
|
+
if (typeof window === "undefined" || isSandboxActive)
|
|
21
|
+
return;
|
|
22
|
+
var appRoot = getAppRoot();
|
|
23
|
+
if (!appRoot || appRoot.id === "solid-studio-root" || appRoot.id === "solid-studio-app-container") {
|
|
24
|
+
return;
|
|
25
|
+
}
|
|
26
|
+
var parent = appRoot.parentNode;
|
|
27
|
+
if (!parent)
|
|
28
|
+
return;
|
|
29
|
+
isSandboxActive = true;
|
|
30
|
+
originalRootParent = parent;
|
|
31
|
+
originalRootNextSibling = appRoot.nextSibling;
|
|
32
|
+
// Create the outer wrapper
|
|
33
|
+
var studioRoot = document.createElement("div");
|
|
34
|
+
studioRoot.id = "solid-studio-root";
|
|
35
|
+
// Create the isolation container
|
|
36
|
+
var appContainer = document.createElement("div");
|
|
37
|
+
appContainer.id = "solid-studio-app-container";
|
|
38
|
+
// Re-parent the app node
|
|
39
|
+
appContainer.appendChild(appRoot);
|
|
40
|
+
studioRoot.appendChild(appContainer);
|
|
41
|
+
// Insert the wrapper into the DOM where the root used to be
|
|
42
|
+
parent.insertBefore(studioRoot, originalRootNextSibling);
|
|
43
|
+
// Set a class on the body to indicate Studio Mode
|
|
44
|
+
document.body.classList.add("solid-studio-active");
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Restores the application to its original state.
|
|
48
|
+
*/
|
|
49
|
+
export function disableStudioMode() {
|
|
50
|
+
if (typeof window === "undefined" || !isSandboxActive)
|
|
51
|
+
return;
|
|
52
|
+
var studioRoot = document.getElementById("solid-studio-root");
|
|
53
|
+
var appContainer = document.getElementById("solid-studio-app-container");
|
|
54
|
+
// Find our wrapped app root
|
|
55
|
+
var appRoot = appContainer === null || appContainer === void 0 ? void 0 : appContainer.firstElementChild;
|
|
56
|
+
if (studioRoot && appRoot && originalRootParent) {
|
|
57
|
+
originalRootParent.insertBefore(appRoot, originalRootNextSibling);
|
|
58
|
+
studioRoot.remove();
|
|
59
|
+
}
|
|
60
|
+
isSandboxActive = false;
|
|
61
|
+
originalRootParent = null;
|
|
62
|
+
originalRootNextSibling = null;
|
|
63
|
+
// Remove body class
|
|
64
|
+
document.body.classList.remove("solid-studio-active");
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns the active scroll element based on sandbox state.
|
|
68
|
+
* When Studio Mode is enabled, the scroll element becomes the container.
|
|
69
|
+
* Otherwise, it uses the default Window object.
|
|
70
|
+
*/
|
|
71
|
+
export function getScrollElement() {
|
|
72
|
+
if (typeof window === "undefined")
|
|
73
|
+
return window;
|
|
74
|
+
if (isSandboxActive) {
|
|
75
|
+
var container = document.getElementById("solid-studio-app-container");
|
|
76
|
+
return container || window;
|
|
77
|
+
}
|
|
78
|
+
return window;
|
|
79
|
+
}
|
|
80
|
+
/**
|
|
81
|
+
* Returns the current vertical scroll position.
|
|
82
|
+
*/
|
|
83
|
+
export function getScrollY() {
|
|
84
|
+
if (typeof window === "undefined")
|
|
85
|
+
return 0;
|
|
86
|
+
if (isSandboxActive) {
|
|
87
|
+
var container = document.getElementById("solid-studio-app-container");
|
|
88
|
+
return container ? container.scrollTop : 0;
|
|
89
|
+
}
|
|
90
|
+
return window.scrollY;
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Returns the effective viewport height.
|
|
94
|
+
*/
|
|
95
|
+
export function getViewportHeight() {
|
|
96
|
+
if (typeof window === "undefined")
|
|
97
|
+
return 0;
|
|
98
|
+
if (isSandboxActive) {
|
|
99
|
+
var container = document.getElementById("solid-studio-app-container");
|
|
100
|
+
return container ? container.clientHeight : window.innerHeight;
|
|
101
|
+
}
|
|
102
|
+
return window.innerHeight;
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=studioSandbox.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"studioSandbox.js","sourceRoot":"","sources":["../../src/helpers/studioSandbox.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,IAAI,kBAAkB,GAAsB,IAAI,CAAC;AACjD,IAAI,uBAAuB,GAAgB,IAAI,CAAC;AAChD,IAAI,eAAe,GAAG,KAAK,CAAC;AAE5B,SAAS,UAAU;IACf,qFAAqF;IACrF,OAAO,QAAQ,CAAC,cAAc,CAAC,MAAM,CAAC,IAAI,QAAQ,CAAC,cAAc,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,IAAI,CAAC,iBAAiB,CAAC;AACnH,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,gBAAgB;IAC5B,IAAI,OAAO,MAAM,KAAK,WAAW,IAAI,eAAe;QAAE,OAAO;IAE7D,IAAM,OAAO,GAAG,UAAU,EAAE,CAAC;IAC7B,IAAI,CAAC,OAAO,IAAI,OAAO,CAAC,EAAE,KAAK,mBAAmB,IAAI,OAAO,CAAC,EAAE,K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This module isolates the application layout from the Solid Studio UI. \n * It dynamically creates a container to wrap the application root, converting\n * it into a relative containing block. This prevents \\`position: fixed\\` elements \n * within the application from inadvertently overlapping with the global Studio UI.\n */\n\nlet originalRootParent: ParentNode | null = null;\nlet originalRootNextSibling: Node | null = null;\nlet isSandboxActive = false;\n\nfunction getAppRoot() {\n // Determine the root depending on the framework (Vite uses #root, Next uses #__next)\n return document.getElementById(\"root\") || document.getElementById(\"__next\") || document.body.firstElementChild;\n}\n\n/**\n * Wraps the app root into the sandbox container.\n */\nexport function enableStudioMode() {\n if (typeof window === \"undefined\" || isSandboxActive) return;\n\n const appRoot = getAppRoot();\n if (!appRoot || appRoot.id === \"solid-studio-root\" || appRoot.id === \"solid-studio-app-container\") {\n return;\n }\n\n const parent = appRoot.parentNode;\n if (!parent) return;\n\n isSandboxActive = true;\n originalRootParent = parent;\n originalRootNextSibling = appRoot.nextSibling;\n\n // Create the outer wrapper\n const studioRoot = document.createElement(\"div\");\n studioRoot.id = \"solid-studio-root\";\n\n // Create the isolation container\n const appContainer = document.createElement(\"div\");\n appContainer.id = \"solid-studio-app-container\";\n\n // Re-parent the app node\n appContainer.appendChild(appRoot);\n studioRoot.appendChild(appContainer);\n\n // Insert the wrapper into the DOM where the root used to be\n parent.insertBefore(studioRoot, originalRootNextSibling);\n\n // Set a class on the body to indicate Studio Mode\n document.body.classList.add(\"solid-studio-active\");\n}\n\n/**\n * Restores the application to its original state.\n */\nexport function disableStudioMode() {\n if (typeof window === \"undefined\" || !isSandboxActive) return;\n\n const studioRoot = document.getElementById(\"solid-studio-root\");\n const appContainer = document.getElementById(\"solid-studio-app-container\");\n\n // Find our wrapped app root\n const appRoot = appContainer?.firstElementChild;\n\n if (studioRoot && appRoot && originalRootParent) {\n originalRootParent.insertBefore(appRoot, originalRootNextSibling);\n studioRoot.remove();\n }\n\n isSandboxActive = false;\n originalRootParent = null;\n originalRootNextSibling = null;\n\n // Remove body class\n document.body.classList.remove(\"solid-studio-active\");\n}\n\n/**\n * Returns the active scroll element based on sandbox state.\n * When Studio Mode is enabled, the scroll element becomes the container.\n * Otherwise, it uses the default Window object.\n */\nexport function getScrollElement(): HTMLElement | Window {\n if (typeof window === \"undefined\") return window;\n if (isSandboxActive) {\n const container = document.getElementById(\"solid-studio-app-container\");\n return container || window;\n }\n return window;\n}\n\n/**\n * Returns the current vertical scroll position.\n */\nexport function getScrollY(): number {\n if (typeof window === \"undefined\") return 0;\n if (isSandboxActive) {\n const container = document.getElementById(\"solid-studio-app-container\");\n return container ? container.scrollTop : 0;\n }\n return window.scrollY;\n}\n\n/**\n * Returns the effective viewport height.\n */\nexport function getViewportHeight(): number {\n if (typeof window === \"undefined\") return 0;\n if (isSandboxActive) {\n const container = document.getElementById(\"solid-studio-app-container\");\n return container ? container.clientHeight : window.innerHeight;\n }\n return window.innerHeight;\n}\n"]}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Studio Sandbox Mode API
|
|
3
|
+
*
|
|
4
|
+
* This module isolates the application layout from the Solid Studio UI.
|
|
5
|
+
* It dynamically creates a container to wrap the application root, converting
|
|
6
|
+
* it into a relative containing block. This prevents \`position: fixed\` elements
|
|
7
|
+
* within the application from inadvertently overlapping with the global Studio UI.
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
let originalRootParent: ParentNode | null = null;
|
|
11
|
+
let originalRootNextSibling: Node | null = null;
|
|
12
|
+
let isSandboxActive = false;
|
|
13
|
+
|
|
14
|
+
function getAppRoot() {
|
|
15
|
+
// Determine the root depending on the framework (Vite uses #root, Next uses #__next)
|
|
16
|
+
return document.getElementById("root") || document.getElementById("__next") || document.body.firstElementChild;
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Wraps the app root into the sandbox container.
|
|
21
|
+
*/
|
|
22
|
+
export function enableStudioMode() {
|
|
23
|
+
if (typeof window === "undefined" || isSandboxActive) return;
|
|
24
|
+
|
|
25
|
+
const appRoot = getAppRoot();
|
|
26
|
+
if (!appRoot || appRoot.id === "solid-studio-root" || appRoot.id === "solid-studio-app-container") {
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
const parent = appRoot.parentNode;
|
|
31
|
+
if (!parent) return;
|
|
32
|
+
|
|
33
|
+
isSandboxActive = true;
|
|
34
|
+
originalRootParent = parent;
|
|
35
|
+
originalRootNextSibling = appRoot.nextSibling;
|
|
36
|
+
|
|
37
|
+
// Create the outer wrapper
|
|
38
|
+
const studioRoot = document.createElement("div");
|
|
39
|
+
studioRoot.id = "solid-studio-root";
|
|
40
|
+
|
|
41
|
+
// Create the isolation container
|
|
42
|
+
const appContainer = document.createElement("div");
|
|
43
|
+
appContainer.id = "solid-studio-app-container";
|
|
44
|
+
|
|
45
|
+
// Re-parent the app node
|
|
46
|
+
appContainer.appendChild(appRoot);
|
|
47
|
+
studioRoot.appendChild(appContainer);
|
|
48
|
+
|
|
49
|
+
// Insert the wrapper into the DOM where the root used to be
|
|
50
|
+
parent.insertBefore(studioRoot, originalRootNextSibling);
|
|
51
|
+
|
|
52
|
+
// Set a class on the body to indicate Studio Mode
|
|
53
|
+
document.body.classList.add("solid-studio-active");
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Restores the application to its original state.
|
|
58
|
+
*/
|
|
59
|
+
export function disableStudioMode() {
|
|
60
|
+
if (typeof window === "undefined" || !isSandboxActive) return;
|
|
61
|
+
|
|
62
|
+
const studioRoot = document.getElementById("solid-studio-root");
|
|
63
|
+
const appContainer = document.getElementById("solid-studio-app-container");
|
|
64
|
+
|
|
65
|
+
// Find our wrapped app root
|
|
66
|
+
const appRoot = appContainer?.firstElementChild;
|
|
67
|
+
|
|
68
|
+
if (studioRoot && appRoot && originalRootParent) {
|
|
69
|
+
originalRootParent.insertBefore(appRoot, originalRootNextSibling);
|
|
70
|
+
studioRoot.remove();
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
isSandboxActive = false;
|
|
74
|
+
originalRootParent = null;
|
|
75
|
+
originalRootNextSibling = null;
|
|
76
|
+
|
|
77
|
+
// Remove body class
|
|
78
|
+
document.body.classList.remove("solid-studio-active");
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
/**
|
|
82
|
+
* Returns the active scroll element based on sandbox state.
|
|
83
|
+
* When Studio Mode is enabled, the scroll element becomes the container.
|
|
84
|
+
* Otherwise, it uses the default Window object.
|
|
85
|
+
*/
|
|
86
|
+
export function getScrollElement(): HTMLElement | Window {
|
|
87
|
+
if (typeof window === "undefined") return window;
|
|
88
|
+
if (isSandboxActive) {
|
|
89
|
+
const container = document.getElementById("solid-studio-app-container");
|
|
90
|
+
return container || window;
|
|
91
|
+
}
|
|
92
|
+
return window;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
/**
|
|
96
|
+
* Returns the current vertical scroll position.
|
|
97
|
+
*/
|
|
98
|
+
export function getScrollY(): number {
|
|
99
|
+
if (typeof window === "undefined") return 0;
|
|
100
|
+
if (isSandboxActive) {
|
|
101
|
+
const container = document.getElementById("solid-studio-app-container");
|
|
102
|
+
return container ? container.scrollTop : 0;
|
|
103
|
+
}
|
|
104
|
+
return window.scrollY;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Returns the effective viewport height.
|
|
109
|
+
*/
|
|
110
|
+
export function getViewportHeight(): number {
|
|
111
|
+
if (typeof window === "undefined") return 0;
|
|
112
|
+
if (isSandboxActive) {
|
|
113
|
+
const container = document.getElementById("solid-studio-app-container");
|
|
114
|
+
return container ? container.clientHeight : window.innerHeight;
|
|
115
|
+
}
|
|
116
|
+
return window.innerHeight;
|
|
117
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"authProviders.d.ts","sourceRoot":"./","sources":["nextAuth/authProviders.tsx"],"names":[],"mappings":"AAQA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAW5C,QAAA,MAAM,aAAa,EAAE,eAqNpB,CAAA;AAED,eAAe,aAAa,CAAA"}
|