@powerhousedao/vetra 5.0.0-staging.2 → 5.0.0-staging.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/document-models/app-module/gen/actions.d.ts +3 -1
- package/dist/document-models/app-module/gen/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/actions.js +1 -0
- package/dist/document-models/app-module/gen/actions.js.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/actions.d.ts +10 -2
- package/dist/document-models/app-module/gen/base-operations/actions.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/creators.d.ts +4 -2
- package/dist/document-models/app-module/gen/base-operations/creators.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/creators.js +3 -1
- package/dist/document-models/app-module/gen/base-operations/creators.js.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/object.d.ts +3 -1
- package/dist/document-models/app-module/gen/base-operations/object.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/object.js +7 -1
- package/dist/document-models/app-module/gen/base-operations/object.js.map +1 -1
- package/dist/document-models/app-module/gen/base-operations/operations.d.ts +3 -1
- package/dist/document-models/app-module/gen/base-operations/operations.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/creators.d.ts +1 -0
- package/dist/document-models/app-module/gen/creators.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/creators.js +1 -0
- package/dist/document-models/app-module/gen/creators.js.map +1 -1
- package/dist/document-models/app-module/gen/dnd-operations/actions.d.ts +8 -0
- package/dist/document-models/app-module/gen/dnd-operations/actions.d.ts.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/actions.js +2 -0
- package/dist/document-models/app-module/gen/dnd-operations/actions.js.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/creators.d.ts +4 -0
- package/dist/document-models/app-module/gen/dnd-operations/creators.d.ts.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/creators.js +4 -0
- package/dist/document-models/app-module/gen/dnd-operations/creators.js.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/error.d.ts +2 -0
- package/dist/document-models/app-module/gen/dnd-operations/error.d.ts.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/error.js +2 -0
- package/dist/document-models/app-module/gen/dnd-operations/error.js.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/object.d.ts +7 -0
- package/dist/document-models/app-module/gen/dnd-operations/object.d.ts.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/object.js +8 -0
- package/dist/document-models/app-module/gen/dnd-operations/object.js.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/operations.d.ts +7 -0
- package/dist/document-models/app-module/gen/dnd-operations/operations.d.ts.map +1 -0
- package/dist/document-models/app-module/gen/dnd-operations/operations.js +2 -0
- package/dist/document-models/app-module/gen/dnd-operations/operations.js.map +1 -0
- package/dist/document-models/app-module/gen/document-model.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/document-model.js +45 -5
- package/dist/document-models/app-module/gen/document-model.js.map +1 -1
- package/dist/document-models/app-module/gen/object.d.ts +3 -1
- package/dist/document-models/app-module/gen/object.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/object.js +3 -1
- package/dist/document-models/app-module/gen/object.js.map +1 -1
- package/dist/document-models/app-module/gen/ph-factories.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/ph-factories.js +4 -0
- package/dist/document-models/app-module/gen/ph-factories.js.map +1 -1
- package/dist/document-models/app-module/gen/reducer.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/reducer.js +13 -0
- package/dist/document-models/app-module/gen/reducer.js.map +1 -1
- package/dist/document-models/app-module/gen/schema/types.d.ts +19 -0
- package/dist/document-models/app-module/gen/schema/types.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/schema/zod.d.ts +6 -1
- package/dist/document-models/app-module/gen/schema/zod.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/schema/zod.js +31 -0
- package/dist/document-models/app-module/gen/schema/zod.js.map +1 -1
- package/dist/document-models/app-module/gen/utils.d.ts.map +1 -1
- package/dist/document-models/app-module/gen/utils.js +4 -0
- package/dist/document-models/app-module/gen/utils.js.map +1 -1
- package/dist/document-models/app-module/index.d.ts +3 -0
- package/dist/document-models/app-module/index.d.ts.map +1 -1
- package/dist/document-models/app-module/src/reducers/base-operations.d.ts.map +1 -1
- package/dist/document-models/app-module/src/reducers/base-operations.js +14 -1
- package/dist/document-models/app-module/src/reducers/base-operations.js.map +1 -1
- package/dist/document-models/app-module/src/reducers/dnd-operations.d.ts +3 -0
- package/dist/document-models/app-module/src/reducers/dnd-operations.d.ts.map +1 -0
- package/dist/document-models/app-module/src/reducers/dnd-operations.js +9 -0
- package/dist/document-models/app-module/src/reducers/dnd-operations.js.map +1 -0
- package/dist/document-models/app-module/src/tests/base-operations.test.js +20 -4
- package/dist/document-models/app-module/src/tests/base-operations.test.js.map +1 -1
- package/dist/document-models/app-module/src/tests/dnd-operations.test.d.ts +6 -0
- package/dist/document-models/app-module/src/tests/dnd-operations.test.d.ts.map +1 -0
- package/dist/document-models/app-module/src/tests/dnd-operations.test.js +25 -0
- package/dist/document-models/app-module/src/tests/dnd-operations.test.js.map +1 -0
- package/dist/document-models/document-editor/src/reducers/base-operations.d.ts.map +1 -1
- package/dist/document-models/document-editor/src/reducers/base-operations.js +5 -2
- package/dist/document-models/document-editor/src/reducers/base-operations.js.map +1 -1
- package/dist/document-models/document-editor/src/tests/base-operations.test.js.map +1 -1
- package/dist/document-models/processor-module/src/reducers/base-operations.d.ts.map +1 -1
- package/dist/document-models/processor-module/src/reducers/base-operations.js +5 -2
- package/dist/document-models/processor-module/src/reducers/base-operations.js.map +1 -1
- package/dist/document-models/processor-module/src/tests/base-operations.test.js +1 -1
- package/dist/document-models/processor-module/src/tests/base-operations.test.js.map +1 -1
- package/dist/document-models/subgraph-module/src/reducers/base-operations.js +1 -1
- package/dist/document-models/subgraph-module/src/reducers/base-operations.js.map +1 -1
- package/dist/document-models/subgraph-module/src/tests/base-operations.test.js.map +1 -1
- package/dist/document-models/vetra-package/src/reducers/base-operations.js +1 -1
- package/dist/document-models/vetra-package/src/reducers/base-operations.js.map +1 -1
- package/dist/document-models/vetra-package/src/tests/base-operations.test.js +1 -1
- package/dist/document-models/vetra-package/src/tests/base-operations.test.js.map +1 -1
- package/dist/editors/app-editor/components/AppEditorForm.d.ts +6 -0
- package/dist/editors/app-editor/components/AppEditorForm.d.ts.map +1 -1
- package/dist/editors/app-editor/components/AppEditorForm.js +50 -5
- package/dist/editors/app-editor/components/AppEditorForm.js.map +1 -1
- package/dist/editors/app-editor/editor.d.ts +1 -3
- package/dist/editors/app-editor/editor.d.ts.map +1 -1
- package/dist/editors/app-editor/editor.js +18 -9
- package/dist/editors/app-editor/editor.js.map +1 -1
- package/dist/editors/app-editor/index.js +1 -1
- package/dist/editors/app-editor/index.js.map +1 -1
- package/dist/editors/components/StatusPill.d.ts +1 -1
- package/dist/editors/components/StatusPill.d.ts.map +1 -1
- package/dist/editors/components/StatusPill.js +1 -1
- package/dist/editors/components/StatusPill.js.map +1 -1
- package/dist/editors/components/index.d.ts +1 -1
- package/dist/editors/components/index.js +1 -1
- package/dist/editors/document-editor/components/DocumentEditorForm.d.ts.map +1 -1
- package/dist/editors/document-editor/components/DocumentEditorForm.js +3 -23
- package/dist/editors/document-editor/components/DocumentEditorForm.js.map +1 -1
- package/dist/editors/document-editor/editor.d.ts +1 -3
- package/dist/editors/document-editor/editor.d.ts.map +1 -1
- package/dist/editors/document-editor/editor.js +7 -9
- package/dist/editors/document-editor/editor.js.map +1 -1
- package/dist/editors/document-editor/index.js +1 -1
- package/dist/editors/document-editor/index.js.map +1 -1
- package/dist/editors/hooks/index.d.ts +1 -0
- package/dist/editors/hooks/index.d.ts.map +1 -1
- package/dist/editors/hooks/index.js +1 -0
- package/dist/editors/hooks/index.js.map +1 -1
- package/dist/editors/hooks/useAvailableDocumentTypes.d.ts +2 -0
- package/dist/editors/hooks/useAvailableDocumentTypes.d.ts.map +1 -0
- package/dist/editors/hooks/useAvailableDocumentTypes.js +38 -0
- package/dist/editors/hooks/useAvailableDocumentTypes.js.map +1 -0
- package/dist/editors/hooks/useDebounce.d.ts.map +1 -1
- package/dist/editors/hooks/useDebounce.js.map +1 -1
- package/dist/editors/hooks/useVetraDocument.d.ts +16 -0
- package/dist/editors/hooks/useVetraDocument.d.ts.map +1 -0
- package/dist/editors/hooks/useVetraDocument.js +43 -0
- package/dist/editors/hooks/useVetraDocument.js.map +1 -0
- package/dist/editors/index.d.ts +3 -3
- package/dist/editors/index.d.ts.map +1 -1
- package/dist/editors/index.js +3 -3
- package/dist/editors/index.js.map +1 -1
- package/dist/editors/processor-editor/components/ProcessorEditorForm.d.ts.map +1 -1
- package/dist/editors/processor-editor/components/ProcessorEditorForm.js +9 -11
- package/dist/editors/processor-editor/components/ProcessorEditorForm.js.map +1 -1
- package/dist/editors/processor-editor/editor.d.ts +1 -3
- package/dist/editors/processor-editor/editor.d.ts.map +1 -1
- package/dist/editors/processor-editor/editor.js +9 -13
- package/dist/editors/processor-editor/editor.js.map +1 -1
- package/dist/editors/processor-editor/index.js +1 -1
- package/dist/editors/processor-editor/index.js.map +1 -1
- package/dist/editors/subgraph-editor/components/SubgraphEditorForm.d.ts.map +1 -1
- package/dist/editors/subgraph-editor/components/SubgraphEditorForm.js +2 -2
- package/dist/editors/subgraph-editor/components/SubgraphEditorForm.js.map +1 -1
- package/dist/editors/subgraph-editor/editor.d.ts +1 -3
- package/dist/editors/subgraph-editor/editor.d.ts.map +1 -1
- package/dist/editors/subgraph-editor/editor.js +6 -8
- package/dist/editors/subgraph-editor/editor.js.map +1 -1
- package/dist/editors/subgraph-editor/index.js +1 -1
- package/dist/editors/subgraph-editor/index.js.map +1 -1
- package/dist/editors/vetra-drive-app/DriveExplorer.d.ts +4 -4
- package/dist/editors/vetra-drive-app/DriveExplorer.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/DriveExplorer.js +6 -6
- package/dist/editors/vetra-drive-app/DriveExplorer.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/Accordion.d.ts +1 -1
- package/dist/editors/vetra-drive-app/components/Accordion.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/Accordion.js +11 -7
- package/dist/editors/vetra-drive-app/components/Accordion.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/DataIntegrationsColumn.d.ts +2 -2
- package/dist/editors/vetra-drive-app/components/DataIntegrationsColumn.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/DataIntegrationsColumn.js +5 -4
- package/dist/editors/vetra-drive-app/components/DataIntegrationsColumn.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/DocumentModelsColumn.d.ts +2 -2
- package/dist/editors/vetra-drive-app/components/DocumentModelsColumn.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/DocumentModelsColumn.js +5 -4
- package/dist/editors/vetra-drive-app/components/DocumentModelsColumn.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/DriveHeader.d.ts +1 -1
- package/dist/editors/vetra-drive-app/components/DriveHeader.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/DriveHeader.js +4 -4
- package/dist/editors/vetra-drive-app/components/DriveHeader.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/EditorContainer.d.ts +1 -2
- package/dist/editors/vetra-drive-app/components/EditorContainer.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/EditorContainer.js +5 -5
- package/dist/editors/vetra-drive-app/components/EditorContainer.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/ModuleAccordion.d.ts +1 -1
- package/dist/editors/vetra-drive-app/components/ModuleAccordion.js +7 -7
- package/dist/editors/vetra-drive-app/components/ModuleAccordion.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/ModuleItem.d.ts +2 -2
- package/dist/editors/vetra-drive-app/components/ModuleItem.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/ModuleItem.js +10 -10
- package/dist/editors/vetra-drive-app/components/ModuleItem.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/ModuleList.d.ts +2 -2
- package/dist/editors/vetra-drive-app/components/ModuleList.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/ModuleList.js +2 -2
- package/dist/editors/vetra-drive-app/components/ModuleSpecificationsSection.d.ts +2 -2
- package/dist/editors/vetra-drive-app/components/ModuleSpecificationsSection.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/ModuleSpecificationsSection.js +5 -5
- package/dist/editors/vetra-drive-app/components/ModuleSpecificationsSection.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/NewModuleItem.d.ts +1 -1
- package/dist/editors/vetra-drive-app/components/NewModuleItem.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/NewModuleItem.js +3 -3
- package/dist/editors/vetra-drive-app/components/NewModuleItem.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/PackageInformationSection.d.ts +2 -3
- package/dist/editors/vetra-drive-app/components/PackageInformationSection.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/PackageInformationSection.js +5 -5
- package/dist/editors/vetra-drive-app/components/PackageInformationSection.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/SectionAccordion.d.ts +1 -1
- package/dist/editors/vetra-drive-app/components/SectionAccordion.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/SectionAccordion.js +5 -5
- package/dist/editors/vetra-drive-app/components/SectionAccordion.js.map +1 -1
- package/dist/editors/vetra-drive-app/components/UserExperiencesColumn.d.ts +2 -2
- package/dist/editors/vetra-drive-app/components/UserExperiencesColumn.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/components/UserExperiencesColumn.js +4 -4
- package/dist/editors/vetra-drive-app/components/UserExperiencesColumn.js.map +1 -1
- package/dist/editors/vetra-drive-app/document-types.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/document-types.js.map +1 -1
- package/dist/editors/vetra-drive-app/editor.d.ts +3 -3
- package/dist/editors/vetra-drive-app/editor.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/editor.js +13 -11
- package/dist/editors/vetra-drive-app/editor.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/AddNewIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/AddNewIcon.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/icons/AddNewIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/AddNewIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/AppIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/AppIcon.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/icons/AppIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/AppIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/ChevronIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/ChevronIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/ChevronIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/DocModelIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/DocModelIcon.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/icons/DocModelIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/DocModelIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/EditorIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/EditorIcon.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/icons/EditorIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/EditorIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/InfoIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/InfoIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/InfoIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/PlusIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/PlusIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/PlusIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/ProcessorIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/ProcessorIcon.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/icons/ProcessorIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/ProcessorIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/ShareIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/ShareIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/ShareIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/SubgraphIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/SubgraphIcon.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/icons/SubgraphIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/SubgraphIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/icons/VetraIcon.d.ts +1 -1
- package/dist/editors/vetra-drive-app/icons/VetraIcon.js +1 -1
- package/dist/editors/vetra-drive-app/icons/VetraIcon.js.map +1 -1
- package/dist/editors/vetra-drive-app/index.d.ts +1 -1
- package/dist/editors/vetra-drive-app/index.d.ts.map +1 -1
- package/dist/editors/vetra-drive-app/index.js +13 -1
- package/dist/editors/vetra-drive-app/index.js.map +1 -1
- package/dist/editors/vetra-drive-app/utils/withDropZone.d.ts +4 -0
- package/dist/editors/vetra-drive-app/utils/withDropZone.d.ts.map +1 -0
- package/dist/editors/vetra-drive-app/utils/withDropZone.js +19 -0
- package/dist/editors/vetra-drive-app/utils/withDropZone.js.map +1 -0
- package/dist/editors/vetra-package/components/MetaForm.d.ts.map +1 -1
- package/dist/editors/vetra-package/components/MetaForm.js +8 -8
- package/dist/editors/vetra-package/components/MetaForm.js.map +1 -1
- package/dist/editors/vetra-package/editor.d.ts +1 -3
- package/dist/editors/vetra-package/editor.d.ts.map +1 -1
- package/dist/editors/vetra-package/editor.js +25 -27
- package/dist/editors/vetra-package/editor.js.map +1 -1
- package/dist/editors/vetra-package/index.js +1 -1
- package/dist/editors/vetra-package/index.js.map +1 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/processors/codegen/document-handlers/base-document-gen.d.ts +2 -2
- package/dist/processors/codegen/document-handlers/base-document-gen.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/document-codegen-factory.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/document-codegen-factory.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/document-codegen-factory.js.map +1 -1
- package/dist/processors/codegen/document-handlers/document-codegen-manager.d.ts +3 -3
- package/dist/processors/codegen/document-handlers/document-codegen-manager.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/document-codegen-manager.js +1 -1
- package/dist/processors/codegen/document-handlers/document-codegen-manager.js.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.js +9 -1
- package/dist/processors/codegen/document-handlers/generators/app-generator.js.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-editor-generator.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-editor-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-model-generator.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/generators/document-model-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/package-generator.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/generators/package-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/processor-generator.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/generators/processor-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/generators/subgraph-generator.d.ts +1 -1
- package/dist/processors/codegen/document-handlers/generators/subgraph-generator.d.ts.map +1 -1
- package/dist/processors/codegen/document-handlers/types.d.ts +2 -2
- package/dist/processors/codegen/document-handlers/types.d.ts.map +1 -1
- package/dist/processors/codegen/factory.d.ts +2 -2
- package/dist/processors/codegen/factory.d.ts.map +1 -1
- package/dist/processors/codegen/factory.js +6 -2
- package/dist/processors/codegen/factory.js.map +1 -1
- package/dist/processors/codegen/index.d.ts +3 -3
- package/dist/processors/codegen/index.d.ts.map +1 -1
- package/dist/processors/codegen/index.js +4 -6
- package/dist/processors/codegen/index.js.map +1 -1
- package/dist/processors/codegen/interactive-manager.d.ts +1 -1
- package/dist/processors/codegen/interactive-manager.d.ts.map +1 -1
- package/dist/processors/codegen/interactive-manager.js.map +1 -1
- package/dist/processors/codegen/logger.d.ts.map +1 -1
- package/dist/processors/codegen/logger.js +4 -4
- package/dist/processors/codegen/logger.js.map +1 -1
- package/dist/processors/factory.d.ts +2 -2
- package/dist/processors/factory.d.ts.map +1 -1
- package/dist/processors/factory.js.map +1 -1
- package/dist/style.css +319 -36
- package/dist/subgraphs/app-module/index.d.ts +3 -2
- package/dist/subgraphs/app-module/index.d.ts.map +1 -1
- package/dist/subgraphs/app-module/index.js.map +1 -1
- package/dist/subgraphs/app-module/resolvers.d.ts +1 -1
- package/dist/subgraphs/app-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/app-module/resolvers.js +44 -12
- package/dist/subgraphs/app-module/resolvers.js.map +1 -1
- package/dist/subgraphs/app-module/schema.d.ts.map +1 -1
- package/dist/subgraphs/app-module/schema.js +40 -0
- package/dist/subgraphs/app-module/schema.js.map +1 -1
- package/dist/subgraphs/document-editor/resolvers.d.ts +1 -1
- package/dist/subgraphs/document-editor/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/document-editor/resolvers.js +1 -1
- package/dist/subgraphs/document-editor/resolvers.js.map +1 -1
- package/dist/subgraphs/processor-module/resolvers.d.ts +1 -1
- package/dist/subgraphs/processor-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/processor-module/resolvers.js +1 -1
- package/dist/subgraphs/processor-module/resolvers.js.map +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.d.ts +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.js +1 -1
- package/dist/subgraphs/subgraph-module/resolvers.js.map +1 -1
- package/dist/subgraphs/vetra-package/resolvers.d.ts +1 -1
- package/dist/subgraphs/vetra-package/resolvers.d.ts.map +1 -1
- package/dist/subgraphs/vetra-package/resolvers.js +12 -12
- package/dist/subgraphs/vetra-package/resolvers.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +13 -13
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorIcon.d.ts","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/EditorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,
|
|
1
|
+
{"version":3,"file":"EditorIcon.d.ts","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/EditorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,eAAe;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,UAAU,EAAE,KAAK,CAAC,EAAE,CAAC,eAAe,CA0HhD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const EditorIcon = ({ width = 40, height = 48, className =
|
|
2
|
+
export const EditorIcon = ({ width = 40, height = 48, className = "", }) => {
|
|
3
3
|
return (_jsxs("svg", { width: width, height: height, viewBox: "0 0 40 42", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { filter: "url(#filter0_di_2102_4406)", children: [_jsx("path", { d: "M4 6C4 2.68629 6.68629 0 10 0L28 0L36 8V34C36 37.3137 33.3137 40 30 40H10C6.68629 40 4 37.3137 4 34V6Z", fill: "#F3F5F7" }), _jsx("path", { d: "M10 0.75H27.6895L35.25 8.31055V34C35.25 36.8995 32.8995 39.25 30 39.25H10C7.10051 39.25 4.75 36.8995 4.75 34V6C4.75 3.10051 7.10051 0.75 10 0.75Z", stroke: "#FF891D", strokeWidth: "1.5" })] }), _jsx("path", { d: "M27 0L36 9H31C28.7909 9 27 7.20914 27 5V0Z", fill: "#FF891D" }), _jsxs("g", { clipPath: "url(#clip0_2102_4406)", children: [_jsx("path", { d: "M12.5822 16.667C12.5822 16.0439 12.8292 15.4455 13.2687 15.0039L15.004 13.2686C15.4457 12.8291 16.0441 12.582 16.6671 12.582C17.2121 12.5821 17.7377 12.7708 18.1564 13.1123L18.3292 13.2686L21.1974 16.1357C21.4903 16.4286 21.4903 16.9044 21.1974 17.1973C20.9045 17.4902 20.4288 17.4902 20.1359 17.1973L17.2706 14.3311C17.1102 14.1716 16.8933 14.0822 16.6671 14.082C16.4408 14.082 16.2231 14.1715 16.0626 14.3311L14.3302 16.0635C14.1713 16.2239 14.0822 16.4411 14.0822 16.667C14.0823 16.8927 14.1714 17.1092 14.3302 17.2695L17.1974 20.1357C17.4903 20.4286 17.4903 20.9044 17.1974 21.1973C16.9045 21.4902 16.4288 21.4902 16.1359 21.1973L13.2687 18.3291C12.8293 17.8876 12.5823 17.2899 12.5822 16.667Z", fill: "#FF891D" }), _jsx("path", { d: "M18.1361 14.1356C18.4289 13.8428 18.9037 13.8429 19.1966 14.1356C19.4895 14.4285 19.4895 14.9033 19.1966 15.1962L17.8636 16.5292C17.5707 16.8221 17.096 16.8221 16.8031 16.5292C16.5104 16.2363 16.5102 15.7615 16.8031 15.4686L18.1361 14.1356Z", fill: "#FF891D" }), _jsx("path", { d: "M24.8027 20.8036C25.0956 20.5107 25.5704 20.5108 25.8633 20.8036C26.1562 21.0965 26.1562 21.5712 25.8633 21.8641L24.5303 23.1971C24.2374 23.49 23.7626 23.49 23.4697 23.1971C23.177 22.9042 23.1769 22.4294 23.4697 22.1366L24.8027 20.8036Z", fill: "#FF891D" }), _jsx("path", { d: "M22.803 18.8037C23.0959 18.5108 23.5707 18.5108 23.8636 18.8037L26.7308 21.6699C27.6503 22.5894 27.6503 24.0784 26.7308 24.998L24.9974 26.7314C24.0778 27.6509 22.5888 27.6509 21.6693 26.7314L18.803 23.8642C18.5102 23.5713 18.5102 23.0965 18.803 22.8037C19.0959 22.5108 19.5707 22.5108 19.8636 22.8037L22.7308 25.6699C23.0645 26.0036 23.6021 26.0036 23.9359 25.6699L25.6693 23.9365C26.003 23.6027 26.003 23.0652 25.6693 22.7314L22.803 19.8642C22.5102 19.5713 22.5102 19.0965 22.803 18.8037Z", fill: "#FF891D" }), _jsx("path", { d: "M25.9164 15.2139C25.9164 14.9145 25.7979 14.6268 25.5863 14.415C25.3746 14.2032 25.087 14.084 24.7875 14.084C24.488 14.0839 24.2005 14.2033 23.9887 14.415L23.9877 14.4141L15.0912 23.3145C15.0241 23.3813 14.9729 23.4633 14.9447 23.5537L14.9457 23.5547L14.2914 25.709L16.4467 25.0557L16.5131 25.0303C16.5782 25.0014 16.6381 24.9607 16.6889 24.9102L25.5853 16.0117C25.797 15.8001 25.9162 15.5132 25.9164 15.2139ZM27.4164 15.2139C27.4162 15.9109 27.1396 16.5794 26.6469 17.0723L17.7475 25.9727C17.506 26.2133 17.2093 26.391 16.8832 26.4902L13.9799 27.3711C13.7927 27.4274 13.5923 27.4324 13.4027 27.3848C13.2132 27.3371 13.0401 27.2386 12.9017 27.1006C12.7634 26.9624 12.6646 26.7891 12.6166 26.5996C12.5686 26.41 12.5723 26.2108 12.6283 26.0234L12.6293 26.0205L13.5101 23.1191L13.5111 23.1172C13.6111 22.791 13.7892 22.4939 14.0307 22.2529L22.9281 13.3535C23.4212 12.8605 24.0902 12.5839 24.7875 12.584C25.4848 12.5841 26.1538 12.8613 26.6469 13.3545C27.1398 13.8476 27.4165 14.5166 27.4164 15.2139Z", fill: "#FF891D" }), _jsx("path", { d: "M21.4697 14.8037C21.7626 14.5108 22.2373 14.5108 22.5302 14.8037L25.1972 17.4706C25.4898 17.7636 25.49 18.2384 25.1972 18.5312C24.9044 18.824 24.4296 18.8238 24.1367 18.5312L21.4697 15.8642C21.1768 15.5713 21.1768 15.0965 21.4697 14.8037Z", fill: "#FF891D" })] }), _jsxs("defs", { children: [_jsxs("filter", { id: "filter0_di_2102_4406", x: "0", y: "-1", width: "40", height: "49", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [_jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feMorphology", { radius: "4", operator: "erode", in: "SourceAlpha", result: "effect1_dropShadow_2102_4406" }), _jsx("feOffset", { dy: "4" }), _jsx("feGaussianBlur", { stdDeviation: "4" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0" }), _jsx("feBlend", { mode: "multiply", in2: "BackgroundImageFix", result: "effect1_dropShadow_2102_4406" }), _jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_2102_4406", result: "shape" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feOffset", { dy: "-1" }), _jsx("feGaussianBlur", { stdDeviation: "0.5" }), _jsx("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0" }), _jsx("feBlend", { mode: "multiply", in2: "shape", result: "effect2_innerShadow_2102_4406" })] }), _jsx("clipPath", { id: "clip0_2102_4406", children: _jsx("rect", { width: "16", height: "16", fill: "white", transform: "translate(12 12)" }) })] })] }));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=EditorIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"EditorIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/EditorIcon.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"EditorIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/EditorIcon.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,MAAM,UAAU,GAA8B,CAAC,EACpD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,OAAO,CACL,eACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,aAAG,MAAM,EAAC,4BAA4B,aACpC,eACE,CAAC,EAAC,wGAAwG,EAC1G,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,mJAAmJ,EACrJ,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,KAAK,GACjB,IACA,EACJ,eAAM,CAAC,EAAC,4CAA4C,EAAC,IAAI,EAAC,SAAS,GAAG,EACtE,aAAG,QAAQ,EAAC,uBAAuB,aACjC,eACE,CAAC,EAAC,2rBAA2rB,EA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WAAW,GAClB,EACF,mBAAU,EAAE,EAAC,IAAI,GAAG,EACpB,yBAAgB,YAAY,EAAC,KAAK,GAAG,EACrC,sBAAa,GAAG,EAAC,WAAW,EAAC,QAAQ,EAAC,YAAY,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,GAAG,EACpE,wBACE,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,4CAA4C,GACnD,EACF,kBACE,IAAI,EAAC,UAAU,EACf,GAAG,EAAC,OAAO,EACX,MAAM,EAAC,+BAA+B,GACtC,IACK,EACT,mBAAU,EAAE,EAAC,iBAAiB,YAC5B,eACE,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,IAAI,EAAC,OAAO,EACZ,SAAS,EAAC,kBAAkB,GAC5B,GACO,IACN,IACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const InfoIcon = ({ width = 16, height = 16, className =
|
|
2
|
+
export const InfoIcon = ({ width = 16, height = 16, className = "", fill = "none", stroke = "#343839", }) => {
|
|
3
3
|
return (_jsxs("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: fill, className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { clipPath: "url(#clip0_2020_6333)", children: [_jsx("path", { d: "M7.99999 14.6673C11.6819 14.6673 14.6667 11.6825 14.6667 8.00065C14.6667 4.31875 11.6819 1.33398 7.99999 1.33398C4.3181 1.33398 1.33333 4.31875 1.33333 8.00065C1.33333 11.6825 4.3181 14.6673 7.99999 14.6673Z", stroke: stroke, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M8 10.6667V8", stroke: stroke, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" }), _jsx("path", { d: "M8 5.33398H8.00833", stroke: stroke, strokeWidth: "2", strokeLinecap: "round", strokeLinejoin: "round" })] }), _jsx("defs", { children: _jsx("clipPath", { id: "clip0_2020_6333", children: _jsx("rect", { width: "16", height: "16", fill: "white" }) }) })] }));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=InfoIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InfoIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/InfoIcon.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,MAAM,EACb,MAAM,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"InfoIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/InfoIcon.tsx"],"names":[],"mappings":";AAUA,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,MAAM,EACb,MAAM,GAAG,SAAS,GACnB,EAAE,EAAE;IACH,OAAO,CACL,eACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,WAAW,EACnB,IAAI,EAAE,IAAI,EACV,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,aAAG,QAAQ,EAAC,uBAAuB,aACjC,eACE,CAAC,EAAC,iNAAiN,EACnN,MAAM,EAAE,MAAM,EACd,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,EACF,eACE,CAAC,EAAC,cAAc,EAChB,MAAM,EAAE,MAAM,EACd,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,EACF,eACE,CAAC,EAAC,oBAAoB,EACtB,MAAM,EAAE,MAAM,EACd,WAAW,EAAC,GAAG,EACf,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,GACtB,IACA,EACJ,yBACE,mBAAU,EAAE,EAAC,iBAAiB,YAC5B,eAAM,KAAK,EAAC,IAAI,EAAC,MAAM,EAAC,IAAI,EAAC,IAAI,EAAC,OAAO,GAAG,GACnC,GACN,IACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const PlusIcon = ({ width = 24, height = 24, className =
|
|
2
|
+
export const PlusIcon = ({ width = 24, height = 24, className = "", stroke = "currentColor", }) => {
|
|
3
3
|
return (_jsx("svg", { width: width, height: height, viewBox: "0 0 24 24", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { strokeLinecap: "round", strokeLinejoin: "round", strokeWidth: 2, d: "M12 4v16m8-8H4", stroke: stroke }) }));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=PlusIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PlusIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/PlusIcon.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,cAAc,
|
|
1
|
+
{"version":3,"file":"PlusIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/PlusIcon.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,EAChD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,MAAM,GAAG,cAAc,GACxB,EAAE,EAAE;IACH,OAAO,CACL,cACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,YAElC,eACE,aAAa,EAAC,OAAO,EACrB,cAAc,EAAC,OAAO,EACtB,WAAW,EAAE,CAAC,EACd,CAAC,EAAC,gBAAgB,EAClB,MAAM,EAAE,MAAM,GACd,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessorIcon.d.ts","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/ProcessorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,
|
|
1
|
+
{"version":3,"file":"ProcessorIcon.d.ts","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/ProcessorIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,kBAAkB;IAC1B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,aAAa,EAAE,KAAK,CAAC,EAAE,CAAC,kBAAkB,CAoGtD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const ProcessorIcon = ({ width = 40, height = 48, className =
|
|
2
|
+
export const ProcessorIcon = ({ width = 40, height = 48, className = "", }) => {
|
|
3
3
|
return (_jsxs("svg", { width: width, height: height, viewBox: "0 0 40 42", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { filter: "url(#filter0_di_2184_4836)", children: [_jsx("path", { d: "M0 6C0 2.68629 2.68629 0 6 0L24 0L32 8V34C32 37.3137 29.3137 40 26 40H6C2.68629 40 0 37.3137 0 34V6Z", fill: "#F3F5F7" }), _jsx("path", { d: "M6 0.75H23.6895L31.25 8.31055V34C31.25 36.8995 28.8995 39.25 26 39.25H6C3.10051 39.25 0.75 36.8995 0.75 34V6C0.75 3.10051 3.10051 0.75 6 0.75Z", stroke: "#3292ED", strokeWidth: "1.5" })] }), _jsx("path", { d: "M23 0L32 9H27C24.7909 9 23 7.20914 23 5V0Z", fill: "#3292ED" }), _jsx("path", { d: "M16 12.584C17.7149 12.584 19.2986 12.8144 20.4795 13.208C21.0661 13.4035 21.5956 13.6535 21.9932 13.9668C22.3821 14.2734 22.75 14.7298 22.75 15.334C22.75 15.9382 22.3821 16.3945 21.9932 16.7012C21.5956 17.0145 21.0661 17.2644 20.4795 17.46C19.2986 17.8535 17.7149 18.084 16 18.084C14.2851 18.084 12.7014 17.8535 11.5205 17.46C10.9339 17.2644 10.4044 17.0145 10.0068 16.7012C9.61791 16.3945 9.25 15.9382 9.25 15.334C9.25 14.7298 9.61791 14.2734 10.0068 13.9668C10.4044 13.6535 10.9339 13.4035 11.5205 13.208C12.7014 12.8144 14.2851 12.584 16 12.584ZM16 14.084C14.4013 14.084 12.9847 14.3007 11.9941 14.6309C11.495 14.7972 11.1452 14.9793 10.9355 15.1445C10.813 15.2412 10.7694 15.3055 10.7549 15.334C10.7694 15.3625 10.813 15.4268 10.9355 15.5234C11.1452 15.6887 11.495 15.8707 11.9941 16.0371C12.9847 16.3673 14.4013 16.584 16 16.584C17.5987 16.584 19.0153 16.3673 20.0059 16.0371C20.505 15.8707 20.8548 15.6887 21.0645 15.5234C21.1865 15.4273 21.2294 15.3627 21.2441 15.334C21.2294 15.3053 21.1865 15.2407 21.0645 15.1445C20.8548 14.9793 20.505 14.7972 20.0059 14.6309C19.0153 14.3007 17.5987 14.084 16 14.084Z", fill: "#3292ED" }), _jsx("path", { d: "M9.25 15.334C9.25 14.9198 9.58579 14.584 10 14.584C10.4142 14.584 10.75 14.9198 10.75 15.334V24.6523C10.7562 24.6693 10.7881 24.737 10.9268 24.8486C11.1302 25.0123 11.478 25.1981 11.9941 25.3701C13.0218 25.7127 14.4636 25.917 16 25.917C17.5364 25.917 18.9782 25.7127 20.0059 25.3701C20.522 25.1981 20.8698 25.0123 21.0732 24.8486C21.2119 24.737 21.2438 24.6693 21.25 24.6523V15.334C21.25 14.9198 21.5858 14.584 22 14.584C22.4142 14.584 22.75 14.9198 22.75 15.334V24.667C22.75 25.2526 22.4005 25.7052 22.0137 26.0166C21.6198 26.3336 21.0884 26.59 20.4795 26.793C19.2567 27.2005 17.6461 27.417 16 27.417C14.3539 27.417 12.7433 27.2005 11.5205 26.793C10.9116 26.59 10.3802 26.3336 9.98633 26.0166C9.59947 25.7052 9.25 25.2526 9.25 24.667V15.334Z", fill: "#3292ED" }), _jsx("path", { d: "M22 19.25C22.4142 19.25 22.75 19.5858 22.75 20C22.75 20.5857 22.4006 21.0382 22.0137 21.3496C21.6198 21.6666 21.0884 21.923 20.4795 22.126C19.2568 22.5335 17.646 22.75 16 22.75C14.354 22.75 12.7432 22.5335 11.5205 22.126C10.9116 21.923 10.3802 21.6666 9.98633 21.3496C9.59941 21.0382 9.25 20.5857 9.25 20C9.25 19.5858 9.58579 19.25 10 19.25C10.409 19.25 10.7407 19.5774 10.749 19.9844C10.7544 19.9998 10.7858 20.0671 10.9268 20.1807C11.1302 20.3444 11.478 20.531 11.9941 20.7031C13.0218 21.0457 14.4636 21.25 16 21.25C17.5364 21.25 18.9782 21.0457 20.0059 20.7031C20.522 20.531 20.8698 20.3444 21.0732 20.1807C21.2133 20.0679 21.2444 20.0003 21.25 19.9844C21.2583 19.5774 21.591 19.25 22 19.25Z", fill: "#3292ED" }), _jsx("defs", { children: _jsxs("filter", { id: "filter0_di_2184_4836", x: "-4", y: "-1", width: "40", height: "49", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [_jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feMorphology", { radius: "4", operator: "erode", in: "SourceAlpha", result: "effect1_dropShadow_2184_4836" }), _jsx("feOffset", { dy: "4" }), _jsx("feGaussianBlur", { stdDeviation: "4" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0" }), _jsx("feBlend", { mode: "multiply", in2: "BackgroundImageFix", result: "effect1_dropShadow_2184_4836" }), _jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_2184_4836", result: "shape" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feOffset", { dy: "-1" }), _jsx("feGaussianBlur", { stdDeviation: "0.5" }), _jsx("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0" }), _jsx("feBlend", { mode: "multiply", in2: "shape", result: "effect2_innerShadow_2184_4836" })] }) })] }));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=ProcessorIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ProcessorIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/ProcessorIcon.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"ProcessorIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/ProcessorIcon.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,MAAM,aAAa,GAAiC,CAAC,EAC1D,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,OAAO,CACL,eACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,aAAG,MAAM,EAAC,4BAA4B,aACpC,eACE,CAAC,EAAC,sGAAsG,EACxG,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,gJAAgJ,EAClJ,MAAM,EAAC,SAAS,EAChB,WAAW,EAAC,KAAK,GACjB,IACA,EACJ,eAAM,CAAC,EAAC,4CAA4C,EAAC,IAAI,EAAC,SAAS,GAAG,EACtE,eACE,CAAC,EAAC,ylCAAylC,EAC3lC,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,wuBAAwuB,EAC1uB,IAAI,EAAC,SAAS,GACd,EACF,eACE,CAAC,EAAC,wrBAAwrB,EAC1rB,IAAI,EAAC,SAAS,GACd,EACF,yBACE,kBACE,EAAE,EAAC,sBAAsB,EACzB,CAAC,EAAC,IAAI,EACN,CAAC,EAAC,IAAI,EACN,KAAK,EAAC,IAAI,EACV,MAAM,EAAC,IAAI,EACX,WAAW,EAAC,gBAAgB,EAC5B,yBAAyB,EAAC,MAAM,aAEhC,kBAAS,YAAY,EAAC,GAAG,EAAC,MAAM,EAAC,oBAAoB,GAAG,EACxD,wBACE,EAAE,EAAC,aAAa,EAChB,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,2CAA2C,EAClD,MAAM,EAAC,WAAW,GAClB,EACF,uBACE,MAAM,EAAC,GAAG,EACV,QAAQ,EAAC,OAAO,EAChB,EAAE,EAAC,aAAa,EAChB,MAAM,EAAC,8BAA8B,GACrC,EACF,mBAAU,EAAE,EAAC,GAAG,GAAG,EACnB,yBAAgB,YAAY,EAAC,GAAG,GAAG,EACnC,wBACE,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,4CAA4C,GACnD,EACF,kBACE,IAAI,EAAC,UAAU,EACf,GAAG,EAAC,oBAAoB,EACxB,MAAM,EAAC,8BAA8B,GACrC,EACF,kBACE,IAAI,EAAC,QAAQ,EACb,EAAE,EAAC,eAAe,EAClB,GAAG,EAAC,8BAA8B,EAClC,MAAM,EAAC,OAAO,GACd,EACF,wBACE,EAAE,EAAC,aAAa,EAChB,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,2CAA2C,EAClD,MAAM,EAAC,WAAW,GAClB,EACF,mBAAU,EAAE,EAAC,IAAI,GAAG,EACpB,yBAAgB,YAAY,EAAC,KAAK,GAAG,EACrC,sBAAa,GAAG,EAAC,WAAW,EAAC,QAAQ,EAAC,YAAY,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,GAAG,EACpE,wBACE,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,4CAA4C,GACnD,EACF,kBACE,IAAI,EAAC,UAAU,EACf,GAAG,EAAC,OAAO,EACX,MAAM,EAAC,+BAA+B,GACtC,IACK,GACJ,IACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
export const ShareIcon = ({ width = 16, height = 16, className =
|
|
2
|
+
export const ShareIcon = ({ width = 16, height = 16, className = "", fill = "#8391A7", }) => {
|
|
3
3
|
return (_jsx("svg", { width: width, height: height, viewBox: "0 0 16 16", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: _jsx("path", { d: "M8.73535 4L7.28711 5.53809H4.05469C3.6549 5.53813 3.33109 5.88285 3.33105 6.30762V11.6924C3.33109 12.1172 3.6549 12.4619 4.05469 12.4619H9.12305C9.52269 12.4617 9.84664 12.117 9.84668 11.6924V8.25781L11.2949 6.71973V11.6924C11.2949 12.9667 10.3224 13.9998 9.12305 14H4.05469C2.85521 14 1.88285 12.9669 1.88281 11.6924V6.30762C1.88285 5.03318 2.85521 4.00004 4.05469 4H8.73535ZM13.7266 2C13.9431 2 14.1191 2.16789 14.1191 2.375V5.59473C14.1191 5.92879 13.6963 6.0956 13.4492 5.85938L12.3203 4.78027L6.0459 10.7803C5.7396 11.0731 5.24282 11.0731 4.93652 10.7803C4.63043 10.4874 4.63042 10.0126 4.93652 9.71973L11.2109 3.71973L10.082 2.64062C9.83504 2.40445 10.0102 2.00022 10.3594 2H13.7266Z", fill: fill }) }));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=ShareIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ShareIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/ShareIcon.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"ShareIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/ShareIcon.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,SAAS,GACjB,EAAE,EAAE;IACH,OAAO,CACL,cACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,YAElC,eACE,CAAC,EAAC,mrBAAmrB,EACrrB,IAAI,EAAE,IAAI,GACV,GACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubgraphIcon.d.ts","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/SubgraphIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"SubgraphIcon.d.ts","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/SubgraphIcon.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAE/B,UAAU,iBAAiB;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,eAAO,MAAM,YAAY,EAAE,KAAK,CAAC,EAAE,CAAC,iBAAiB,CAmJpD,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const SubgraphIcon = ({ width = 40, height = 48, className =
|
|
2
|
+
export const SubgraphIcon = ({ width = 40, height = 48, className = "", }) => {
|
|
3
3
|
return (_jsxs("svg", { width: width, height: height, viewBox: "0 0 40 42", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsxs("g", { filter: "url(#filter0_di_2184_4816)", children: [_jsx("path", { d: "M0 6C0 2.68629 2.68629 0 6 0L24 0L32 8V34C32 37.3137 29.3137 40 26 40H6C2.68629 40 0 37.3137 0 34V6Z", fill: "#F3F5F7" }), _jsx("path", { d: "M6 0.75H23.6895L31.25 8.31055V34C31.25 36.8995 28.8995 39.25 26 39.25H6C3.10051 39.25 0.75 36.8995 0.75 34V6C0.75 3.10051 3.10051 0.75 6 0.75Z", stroke: "#3292ED", strokeWidth: "1.5" })] }), _jsx("path", { d: "M23 0L32 9H27C24.7909 9 23 7.20914 23 5V0Z", fill: "#3292ED" }), _jsx("path", { d: "M20.5882 22.603V17.1091L15.9729 14.3438L11.3575 17.1091V22.603L15.9729 25.3684L20.5882 22.603Z", stroke: "#3292ED", strokeWidth: "1.5" }), _jsx("ellipse", { cx: "16.0001", cy: "14.3714", rx: "1.38462", ry: "1.37137", fill: "white", stroke: "#3292ED", strokeWidth: "1.5" }), _jsx("ellipse", { cx: "16.0001", cy: "25.344", rx: "1.38462", ry: "1.37137", fill: "white", stroke: "#3292ED", strokeWidth: "1.5" }), _jsx("ellipse", { cx: "11.3846", cy: "17.1136", rx: "1.38462", ry: "1.37137", fill: "white", stroke: "#3292ED", strokeWidth: "1.5" }), _jsx("ellipse", { cx: "20.6153", cy: "17.1136", rx: "1.38462", ry: "1.37137", fill: "white", stroke: "#3292ED", strokeWidth: "1.5" }), _jsx("ellipse", { cx: "20.6153", cy: "22.5999", rx: "1.38462", ry: "1.37137", fill: "white", stroke: "#3292ED", strokeWidth: "1.5" }), _jsx("ellipse", { cx: "11.3846", cy: "22.5999", rx: "1.38462", ry: "1.37137", fill: "white", stroke: "#3292ED", strokeWidth: "1.5" }), _jsx("defs", { children: _jsxs("filter", { id: "filter0_di_2184_4816", x: "-4", y: "-1", width: "40", height: "49", filterUnits: "userSpaceOnUse", colorInterpolationFilters: "sRGB", children: [_jsx("feFlood", { floodOpacity: "0", result: "BackgroundImageFix" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feMorphology", { radius: "4", operator: "erode", in: "SourceAlpha", result: "effect1_dropShadow_2184_4816" }), _jsx("feOffset", { dy: "4" }), _jsx("feGaussianBlur", { stdDeviation: "4" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.02 0" }), _jsx("feBlend", { mode: "multiply", in2: "BackgroundImageFix", result: "effect1_dropShadow_2184_4816" }), _jsx("feBlend", { mode: "normal", in: "SourceGraphic", in2: "effect1_dropShadow_2184_4816", result: "shape" }), _jsx("feColorMatrix", { in: "SourceAlpha", type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0", result: "hardAlpha" }), _jsx("feOffset", { dy: "-1" }), _jsx("feGaussianBlur", { stdDeviation: "0.5" }), _jsx("feComposite", { in2: "hardAlpha", operator: "arithmetic", k2: "-1", k3: "1" }), _jsx("feColorMatrix", { type: "matrix", values: "0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.04 0" }), _jsx("feBlend", { mode: "multiply", in2: "shape", result: "effect2_innerShadow_2184_4816" })] }) })] }));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=SubgraphIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubgraphIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/SubgraphIcon.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,
|
|
1
|
+
{"version":3,"file":"SubgraphIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/SubgraphIcon.tsx"],"names":[],"mappings":";AAQA,MAAM,CAAC,MAAM,YAAY,GAAgC,CAAC,EACxD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,GACf,EAAE,EAAE;IACH,OAAO,CACL,eACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,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YAAY,EAAC,KAAK,GAAG,EACrC,sBAAa,GAAG,EAAC,WAAW,EAAC,QAAQ,EAAC,YAAY,EAAC,EAAE,EAAC,IAAI,EAAC,EAAE,EAAC,GAAG,GAAG,EACpE,wBACE,IAAI,EAAC,QAAQ,EACb,MAAM,EAAC,4CAA4C,GACnD,EACF,kBACE,IAAI,EAAC,UAAU,EACf,GAAG,EAAC,OAAO,EACX,MAAM,EAAC,+BAA+B,GACtC,IACK,GACJ,IACH,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
-
export const VetraIcon = ({ width = 23, height = 22, className =
|
|
2
|
+
export const VetraIcon = ({ width = 23, height = 22, className = "", fill = "#343839", }) => {
|
|
3
3
|
return (_jsxs("svg", { width: width, height: height, viewBox: "0 0 23 22", fill: "none", className: className, xmlns: "http://www.w3.org/2000/svg", children: [_jsx("path", { d: "M23 8.75169C23 9.6137 22.2916 10.3125 21.4177 10.3125L20.457 10.3125C16.0876 10.3125 12.5455 6.8185 12.5455 2.50844L12.5455 1.56081C12.5455 0.698798 13.2539 1.13218e-07 14.1278 1.88577e-07L21.4177 8.17224e-07C22.2916 8.92583e-07 23 0.6988 23 1.56081L23 8.75169Z", fill: fill }), _jsx("path", { d: "M14.1278 22C13.2539 22 12.5455 21.3012 12.5455 20.4392L12.5455 19.4916C12.5455 15.1815 16.0876 11.6875 20.457 11.6875L21.4177 11.6875C22.2916 11.6875 23 12.3863 23 13.2483L23 20.4392C23 21.3012 22.2916 22 21.4177 22L14.1278 22Z", fill: fill }), _jsx("path", { d: "M0 13.2483C0 12.3863 0.708424 11.6875 1.58231 11.6875H2.543C6.91243 11.6875 10.4545 15.1815 10.4545 19.4916V20.4392C10.4545 21.3012 9.74612 22 8.87224 22H1.58231C0.708423 22 0 21.3012 0 20.4392L0 13.2483Z", fill: fill }), _jsx("path", { d: "M8.87224 -6.82252e-08C9.74612 -3.05454e-08 10.4545 0.698799 10.4545 1.56081L10.4545 2.50845C10.4545 6.81851 6.91242 10.3125 2.543 10.3125L1.58231 10.3125C0.708423 10.3125 5.27658e-07 9.6137 5.65857e-07 8.75169L8.84509e-07 1.56081C9.22708e-07 0.698798 0.708425 -4.20228e-07 1.58231 -3.82548e-07L8.87224 -6.82252e-08Z", fill: fill })] }));
|
|
4
4
|
};
|
|
5
5
|
//# sourceMappingURL=VetraIcon.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"VetraIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/VetraIcon.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,SAAS,
|
|
1
|
+
{"version":3,"file":"VetraIcon.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/icons/VetraIcon.tsx"],"names":[],"mappings":";AASA,MAAM,CAAC,MAAM,SAAS,GAA6B,CAAC,EAClD,KAAK,GAAG,EAAE,EACV,MAAM,GAAG,EAAE,EACX,SAAS,GAAG,EAAE,EACd,IAAI,GAAG,SAAS,GACjB,EAAE,EAAE;IACH,OAAO,CACL,eACE,KAAK,EAAE,KAAK,EACZ,MAAM,EAAE,MAAM,EACd,OAAO,EAAC,WAAW,EACnB,IAAI,EAAC,MAAM,EACX,SAAS,EAAE,SAAS,EACpB,KAAK,EAAC,4BAA4B,aAElC,eACE,CAAC,EAAC,uQAAuQ,EACzQ,IAAI,EAAE,IAAI,GACV,EACF,eACE,CAAC,EAAC,qOAAqO,EACvO,IAAI,EAAE,IAAI,GACV,EACF,eACE,CAAC,EAAC,8MAA8M,EAChN,IAAI,EAAE,IAAI,GACV,EACF,eACE,CAAC,EAAC,6TAA6T,EAC/T,IAAI,EAAE,IAAI,GACV,IACE,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../editors/vetra-drive-app/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../editors/vetra-drive-app/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gCAAgC,CAAC;AAGxE,eAAO,MAAM,MAAM,EAAE,iBAqBpB,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -1,12 +1,24 @@
|
|
|
1
|
-
import Editor from "./editor.js";
|
|
1
|
+
import { Editor } from "./editor.js";
|
|
2
2
|
export const module = {
|
|
3
3
|
Component: Editor,
|
|
4
4
|
documentTypes: ["powerhouse/document-drive"],
|
|
5
5
|
config: {
|
|
6
6
|
id: "vetra-drive-app",
|
|
7
|
+
name: "Vetra Drive App",
|
|
7
8
|
disableExternalControls: true,
|
|
8
9
|
documentToolbarEnabled: true,
|
|
9
10
|
showSwitchboardLink: true,
|
|
11
|
+
documentTypes: [
|
|
12
|
+
"powerhouse/document-model",
|
|
13
|
+
"powerhouse/app",
|
|
14
|
+
"powerhouse/document-editor",
|
|
15
|
+
"powerhouse/processor",
|
|
16
|
+
"powerhouse/subgraph",
|
|
17
|
+
"powerhouse/package",
|
|
18
|
+
],
|
|
19
|
+
dragAndDrop: {
|
|
20
|
+
enabled: true,
|
|
21
|
+
},
|
|
10
22
|
},
|
|
11
23
|
};
|
|
12
24
|
export default module;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../editors/vetra-drive-app/index.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../editors/vetra-drive-app/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAsB;IACvC,SAAS,EAAE,MAAM;IACjB,aAAa,EAAE,CAAC,2BAA2B,CAAC;IAC5C,MAAM,EAAE;QACN,EAAE,EAAE,iBAAiB;QACrB,IAAI,EAAE,iBAAiB;QACvB,uBAAuB,EAAE,IAAI;QAC7B,sBAAsB,EAAE,IAAI;QAC5B,mBAAmB,EAAE,IAAI;QACzB,aAAa,EAAE;YACb,2BAA2B;YAC3B,gBAAgB;YAChB,4BAA4B;YAC5B,sBAAsB;YACtB,qBAAqB;YACrB,oBAAoB;SACrB;QACD,WAAW,EAAE;YACX,OAAO,EAAE,IAAI;SACd;KACF;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { DriveEditorProps } from "@powerhousedao/reactor-browser";
|
|
2
|
+
import type { ComponentType } from "react";
|
|
3
|
+
export declare function withDropZone<T extends DriveEditorProps>(WrappedComponent: ComponentType<T>): ComponentType<T>;
|
|
4
|
+
//# sourceMappingURL=withDropZone.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDropZone.d.ts","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/utils/withDropZone.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,gBAAgB,EAEjB,MAAM,gCAAgC,CAAC;AAMxC,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,OAAO,CAAC;AAE3C,wBAAgB,YAAY,CAAC,CAAC,SAAS,gBAAgB,EACrD,gBAAgB,EAAE,aAAa,CAAC,CAAC,CAAC,GACjC,aAAa,CAAC,CAAC,CAAC,CAoClB"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import { DropZone } from "@powerhousedao/design-system";
|
|
3
|
+
import { setSelectedNode, useOnDropFile, useSelectedDriveId, } from "@powerhousedao/reactor-browser";
|
|
4
|
+
export function withDropZone(WrappedComponent) {
|
|
5
|
+
const WithDropZoneComponent = (props) => {
|
|
6
|
+
const driveId = useSelectedDriveId();
|
|
7
|
+
const onDropFile = useOnDropFile(props.editorConfig?.documentTypes);
|
|
8
|
+
const onAddFile = async (file, parent, onProgress, resolveConflict) => {
|
|
9
|
+
return await onDropFile(file, onProgress, resolveConflict);
|
|
10
|
+
};
|
|
11
|
+
if (props.editorConfig?.dragAndDrop?.enabled) {
|
|
12
|
+
return (_jsx(DropZone, { onAddFile: onAddFile, setSelectedNode: setSelectedNode, driveId: driveId, useLocalStorage: true, style: { height: "100%" }, children: _jsx(WrappedComponent, { ...props }) }));
|
|
13
|
+
}
|
|
14
|
+
return _jsx(WrappedComponent, { ...props });
|
|
15
|
+
};
|
|
16
|
+
WithDropZoneComponent.displayName = `withDropZone(${WrappedComponent.displayName || WrappedComponent.name || "Component"})`;
|
|
17
|
+
return WithDropZoneComponent;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=withDropZone.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"withDropZone.js","sourceRoot":"","sources":["../../../../editors/vetra-drive-app/utils/withDropZone.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAMxD,OAAO,EACL,eAAe,EACf,aAAa,EACb,kBAAkB,GACnB,MAAM,gCAAgC,CAAC;AAGxC,MAAM,UAAU,YAAY,CAC1B,gBAAkC;IAElC,MAAM,qBAAqB,GAAG,CAAC,KAAQ,EAAE,EAAE;QACzC,MAAM,OAAO,GAAG,kBAAkB,EAAE,CAAC;QACrC,MAAM,UAAU,GAAG,aAAa,CAAC,KAAK,CAAC,YAAY,EAAE,aAAa,CAAC,CAAC;QAEpE,MAAM,SAAS,GAAG,KAAK,EACrB,IAAU,EACV,MAAW,EACX,UAAuC,EACvC,eAAoC,EACpC,EAAE;YACF,OAAO,MAAM,UAAU,CAAC,IAAI,EAAE,UA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AAK,IAAI,CAAC;IAChD,oBAAoB,CAAC,EAAE,CAAC,YAAY,EAAE,MAAM,KAAK,IAAI,CAAC;IACtD,wBAAwB,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,KAAK,IAAI,CAAC;IAC9D,kBAAkB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAC;IAClD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAA;KAAE,KAAK,IAAI,CAAC;IAChE,eAAe,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;CACxC;AAED,eAAO,MAAM,QAAQ,EAAE,KAAK,CAAC,EAAE,CAAC,aAAa,CAoP5C,CAAC"}
|
|
@@ -2,7 +2,7 @@ import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
|
2
2
|
import { useState } from "react";
|
|
3
3
|
import { useDebounce } from "../../hooks/index.js";
|
|
4
4
|
export const MetaForm = (props) => {
|
|
5
|
-
const { name: initialName, description: initialDescription, category: initialCategory, publisher: initialPublisher, publisherUrl: initialPublisherUrl, githubRepository: initialGithubRepository, npmPackage: initialNpmPackage, keywords: initialKeywords, onNameChange, onDescriptionChange, onCategoryChange, onPublisherChange, onPublisherUrlChange, onGithubRepositoryChange, onNpmPackageChange, onAddKeyword, onRemoveKeyword } = props;
|
|
5
|
+
const { name: initialName, description: initialDescription, category: initialCategory, publisher: initialPublisher, publisherUrl: initialPublisherUrl, githubRepository: initialGithubRepository, npmPackage: initialNpmPackage, keywords: initialKeywords, onNameChange, onDescriptionChange, onCategoryChange, onPublisherChange, onPublisherUrlChange, onGithubRepositoryChange, onNpmPackageChange, onAddKeyword, onRemoveKeyword, } = props;
|
|
6
6
|
const [name, setName] = useState(initialName);
|
|
7
7
|
const [description, setDescription] = useState(initialDescription);
|
|
8
8
|
const [category, setCategory] = useState(initialCategory);
|
|
@@ -20,24 +20,24 @@ export const MetaForm = (props) => {
|
|
|
20
20
|
useDebounce(publisherUrl, onPublisherUrlChange, 300);
|
|
21
21
|
useDebounce(githubRepository, onGithubRepositoryChange, 300);
|
|
22
22
|
useDebounce(npmPackage, onNpmPackageChange, 300);
|
|
23
|
-
return (_jsxs("div", { className: "grid grid-cols-1
|
|
23
|
+
return (_jsxs("div", { className: "grid grid-cols-1 gap-6 bg-white p-6 lg:grid-cols-3", children: [_jsxs("div", { className: "space-y-6", children: [_jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Name" }), _jsx("input", { type: "text", value: name, onChange: (e) => setName(e.target.value), className: "w-full rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Description" }), _jsx("textarea", { rows: 6, value: description, onChange: (e) => setDescription(e.target.value), className: "w-full resize-none rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Category" }), _jsxs("select", { value: category, onChange: (e) => {
|
|
24
24
|
const newValue = e.target.value;
|
|
25
25
|
setCategory(newValue);
|
|
26
26
|
onCategoryChange?.(newValue);
|
|
27
|
-
}, className: "w-full
|
|
28
|
-
if (e.key ===
|
|
27
|
+
}, className: "w-full rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500", children: [_jsx("option", { value: "", children: "Not selected" }), _jsx("option", { value: "Productivity", children: "Productivity" }), _jsx("option", { value: "Governance", children: "Governance" }), _jsx("option", { value: "Project Management", children: "Project Management" }), _jsx("option", { value: "Finance", children: "Finance" }), _jsx("option", { value: "Legal", children: "Legal" }), _jsx("option", { value: "People & Culture", children: "People & Culture" }), _jsx("option", { value: "Engineering", children: "Engineering" })] })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Publisher" }), _jsx("input", { type: "text", value: publisher, onChange: (e) => setPublisher(e.target.value), className: "w-full rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Publisher URL" }), _jsx("input", { type: "text", value: publisherUrl, onChange: (e) => setPublisherUrl(e.target.value), className: "w-full rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Keywords" }), _jsxs("div", { className: "space-y-2", children: [_jsx("input", { type: "text", value: keywordInput, onChange: (e) => setKeywordInput(e.target.value), onKeyDown: (e) => {
|
|
28
|
+
if (e.key === "Enter" && keywordInput.trim()) {
|
|
29
29
|
e.preventDefault();
|
|
30
30
|
const newKeyword = {
|
|
31
31
|
id: Date.now().toString(), // Generate a unique ID
|
|
32
|
-
label: keywordInput.trim()
|
|
32
|
+
label: keywordInput.trim(),
|
|
33
33
|
};
|
|
34
34
|
setKeywords([...keywords, newKeyword]);
|
|
35
35
|
onAddKeyword?.(newKeyword);
|
|
36
|
-
setKeywordInput(
|
|
36
|
+
setKeywordInput("");
|
|
37
37
|
}
|
|
38
|
-
}, placeholder: "Type a keyword and press Enter", className: "w-full
|
|
38
|
+
}, placeholder: "Type a keyword and press Enter", className: "w-full rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" }), _jsx("div", { className: "flex min-h-[80px] flex-wrap gap-2 rounded-md border border-gray-300 p-3", children: keywords.map((keyword) => (_jsxs("span", { className: "inline-flex items-center rounded border border-blue-300 bg-blue-100 px-2 py-0.5 text-xs text-blue-800", children: [keyword.label, _jsx("button", { onClick: () => {
|
|
39
39
|
setKeywords(keywords.filter((k) => k.id !== keyword.id));
|
|
40
40
|
onRemoveKeyword?.(keyword.id);
|
|
41
|
-
}, className: "ml-1 text-blue-600 hover:text-blue-800 focus:outline-none", children: "\u00D7" })] }, keyword.id))) })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsxs("div", { children: [_jsx("label", { className: "block text-sm font-medium text-gray-700
|
|
41
|
+
}, className: "ml-1 text-blue-600 hover:text-blue-800 focus:outline-none", children: "\u00D7" })] }, keyword.id))) })] })] })] }), _jsxs("div", { className: "space-y-6", children: [_jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Github Repository" }), _jsx("input", { type: "text", value: githubRepository, onChange: (e) => setGithubRepository(e.target.value), className: "w-full rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "NPM-package" }), _jsx("input", { type: "text", value: npmPackage, onChange: (e) => setNpmPackage(e.target.value), className: "w-full rounded-md border border-gray-300 px-3 py-2 focus:border-transparent focus:outline-none focus:ring-2 focus:ring-blue-500" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Version" }), _jsx("input", { type: "text", placeholder: "1.0.0-dev", readOnly: true, className: "w-full cursor-not-allowed rounded-md border border-gray-300 bg-gray-50 px-3 py-2 text-gray-500" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "License" }), _jsx("input", { type: "text", placeholder: "AGPL-3.0-only", readOnly: true, className: "w-full cursor-not-allowed rounded-md border border-gray-300 bg-gray-50 px-3 py-2 text-gray-500" })] }), _jsxs("div", { children: [_jsx("label", { className: "mb-2 block text-sm font-medium text-gray-700", children: "Install with:" }), _jsx("input", { type: "text", placeholder: "@powerhousedao/todo-demo-package", readOnly: true, className: "w-full cursor-not-allowed rounded-md border border-gray-300 bg-gray-50 px-3 py-2 text-gray-500" })] })] })] }));
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=MetaForm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"MetaForm.js","sourceRoot":"","sources":["../../../../editors/vetra-package/components/MetaForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAuBnD,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EACJ,IAAI,EAAE,WAAW,EACjB,WAAW,EAAE,kBAAkB,EAC/B,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EAAE,mBAAmB,EACjC,gBAAgB,EAAE,uBAAuB,EACzC,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,EACzB,YAAY,EACZ,mBAAmB,EACnB,gBAAgB,EAChB,iBAAiB,EACjB,oBAAoB,EACpB,wBAAwB,EACxB,kBAAkB,EAClB,YAAY,EACZ,eAAe,
|
|
1
|
+
{"version":3,"file":"MetaForm.js","sourceRoot":"","sources":["../../../../editors/vetra-package/components/MetaForm.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAuBnD,MAAM,CAAC,MAAM,QAAQ,GAA4B,CAAC,KAAK,EAAE,EAAE;IACzD,MAAM,EACJ,IAAI,EAAE,WAAW,EACjB,WAAW,EAAE,kBAAkB,EAC/B,QAAQ,EAAE,eAAe,EACzB,SAAS,EAAE,gBAAgB,EAC3B,YAAY,EAAE,mBAAmB,EACjC,gBAAgB,EAAE,uBAAuB,EACzC,UAAU,EAAE,iBAAiB,EAC7B,QAAQ,EAAE,eAAe,EACzB,YAAY,EACZ,mBAAm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S,EAAC,8CAA8C,wBAEvD,EACR,gBACE,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,eAAe,EAC3B,QAAQ,QACR,SAAS,EAAC,gGAAgG,GAC1G,IACE,EAGN,0BACE,gBAAO,SAAS,EAAC,8CAA8C,8BAEvD,EACR,gBACE,IAAI,EAAC,MAAM,EACX,WAAW,EAAC,kCAAkC,EAC9C,QAAQ,QACR,SAAS,EAAC,gGAAgG,GAC1G,IACE,IACF,IACF,CACP,CAAC;AACJ,CAAC,CAAC"}
|
|
@@ -1,4 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
export type IProps = EditorProps;
|
|
3
|
-
export default function Editor(props: IProps): import("react/jsx-runtime").JSX.Element;
|
|
1
|
+
export declare function Editor(): import("react/jsx-runtime").JSX.Element;
|
|
4
2
|
//# sourceMappingURL=editor.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/vetra-package/editor.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"editor.d.ts","sourceRoot":"","sources":["../../../editors/vetra-package/editor.tsx"],"names":[],"mappings":"AAKA,wBAAgB,MAAM,4CAwGrB"}
|
|
@@ -1,67 +1,65 @@
|
|
|
1
1
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
-
import { useDocumentById } from "@powerhousedao/reactor-browser";
|
|
3
2
|
import { useCallback } from "react";
|
|
4
3
|
import { actions } from "../../document-models/vetra-package/index.js";
|
|
4
|
+
import { useSelectedVetraPackageDocument } from "../hooks/useVetraDocument.js";
|
|
5
5
|
import { MetaForm } from "./components/MetaForm.js";
|
|
6
|
-
export
|
|
7
|
-
const
|
|
8
|
-
const [document, dispatch] = useDocumentById(initialDocument.header.id);
|
|
9
|
-
const unsafeCastOfDocument = document;
|
|
6
|
+
export function Editor() {
|
|
7
|
+
const [document, dispatch] = useSelectedVetraPackageDocument();
|
|
10
8
|
const onNameChange = useCallback((name) => {
|
|
11
|
-
if (!
|
|
9
|
+
if (!document.state.global.name && !name)
|
|
12
10
|
return;
|
|
13
|
-
if (name ===
|
|
11
|
+
if (name === document.state.global.name)
|
|
14
12
|
return;
|
|
15
13
|
dispatch(actions.setPackageName({ name }));
|
|
16
|
-
}, [
|
|
14
|
+
}, [document.state.global.name]);
|
|
17
15
|
const onDescriptionChange = useCallback((description) => {
|
|
18
|
-
if (!
|
|
16
|
+
if (!document.state.global.description && !description)
|
|
19
17
|
return;
|
|
20
|
-
if (description ===
|
|
18
|
+
if (description === document.state.global.description)
|
|
21
19
|
return;
|
|
22
20
|
dispatch(actions.setPackageDescription({ description }));
|
|
23
|
-
}, [
|
|
21
|
+
}, [document.state.global.description]);
|
|
24
22
|
const onCategoryChange = useCallback((category) => {
|
|
25
|
-
if (!
|
|
23
|
+
if (!document.state.global.category && !category)
|
|
26
24
|
return;
|
|
27
|
-
if (category ===
|
|
25
|
+
if (category === document.state.global.category)
|
|
28
26
|
return;
|
|
29
27
|
dispatch(actions.setPackageCategory({ category }));
|
|
30
|
-
}, [
|
|
28
|
+
}, [document.state.global.category]);
|
|
31
29
|
const onPublisherChange = useCallback((name) => {
|
|
32
|
-
if (!
|
|
30
|
+
if (!document.state.global.author.name && !name)
|
|
33
31
|
return;
|
|
34
|
-
if (name ===
|
|
32
|
+
if (name === document.state.global.author.name)
|
|
35
33
|
return;
|
|
36
34
|
dispatch(actions.setPackageAuthorName({ name }));
|
|
37
|
-
}, [
|
|
35
|
+
}, [document.state.global.author.name]);
|
|
38
36
|
const onPublisherUrlChange = useCallback((website) => {
|
|
39
|
-
if (!
|
|
37
|
+
if (!document.state.global.author.website && !website)
|
|
40
38
|
return;
|
|
41
|
-
if (website ===
|
|
39
|
+
if (website === document.state.global.author.website)
|
|
42
40
|
return;
|
|
43
41
|
dispatch(actions.setPackageAuthorWebsite({ website }));
|
|
44
|
-
}, [
|
|
42
|
+
}, [document.state.global.author.website]);
|
|
45
43
|
const onGithubRepositoryChange = useCallback((url) => {
|
|
46
|
-
if (!
|
|
44
|
+
if (!document.state.global.githubUrl && !url)
|
|
47
45
|
return;
|
|
48
|
-
if (url ===
|
|
46
|
+
if (url === document.state.global.githubUrl)
|
|
49
47
|
return;
|
|
50
48
|
dispatch(actions.setPackageGithubUrl({ url }));
|
|
51
|
-
}, [
|
|
49
|
+
}, [document.state.global.githubUrl]);
|
|
52
50
|
const onNpmPackageChange = useCallback((url) => {
|
|
53
|
-
if (!
|
|
51
|
+
if (!document.state.global.npmUrl && !url)
|
|
54
52
|
return;
|
|
55
|
-
if (url ===
|
|
53
|
+
if (url === document.state.global.npmUrl)
|
|
56
54
|
return;
|
|
57
55
|
dispatch(actions.setPackageNpmUrl({ url }));
|
|
58
|
-
}, [
|
|
56
|
+
}, [document.state.global.npmUrl]);
|
|
59
57
|
const onAddKeyword = useCallback((keyword) => {
|
|
60
58
|
dispatch(actions.addPackageKeyword(keyword));
|
|
61
59
|
}, []);
|
|
62
60
|
const onRemoveKeyword = useCallback((id) => {
|
|
63
61
|
dispatch(actions.removePackageKeyword({ id }));
|
|
64
62
|
}, []);
|
|
65
|
-
return (_jsx("div", { children: _jsx(MetaForm, { name:
|
|
63
|
+
return (_jsx("div", { children: _jsx(MetaForm, { name: document.state.global.name ?? "", description: document.state.global.description ?? "", category: document.state.global.category ?? "", publisher: document.state.global.author.name ?? "", publisherUrl: document.state.global.author.website ?? "", githubRepository: document.state.global.githubUrl ?? "", npmPackage: document.state.global.npmUrl ?? "", keywords: document.state.global.keywords, onNameChange: onNameChange, onDescriptionChange: onDescriptionChange, onCategoryChange: onCategoryChange, onPublisherChange: onPublisherChange, onPublisherUrlChange: onPublisherUrlChange, onGithubRepositoryChange: onGithubRepositoryChange, onNpmPackageChange: onNpmPackageChange, onAddKeyword: onAddKeyword, onRemoveKeyword: onRemoveKeyword }) }));
|
|
66
64
|
}
|
|
67
65
|
//# sourceMappingURL=editor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../editors/vetra-package/editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"editor.js","sourceRoot":"","sources":["../../../editors/vetra-package/editor.tsx"],"names":[],"mappings":";AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,OAAO,CAAC;AACpC,OAAO,EAAE,OAAO,EAAE,MAAM,8CAA8C,CAAC;AACvE,OAAO,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AAC/E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AAEpD,MAAM,UAAU,MAAM;IACpB,MAAM,CAAC,QAAQ,EAAE,QAAQ,CAAC,GAAG,+BAA+B,EAAE,CAAC;IAE/D,MAAM,YAAY,GAAG,WAAW,CAC9B,CAAC,IAAY,EAAE,EAAE;QACf,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,CAAC,IAAI;YAAE,OAAO;QACjD,IAAI,IAAI,KAAK,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI;YAAE,OAAO;QAEhD,QAAQ,CAAC,OAAO,CAAC,cAAc,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IAC7C,CAAC,EACD,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,CAAC,CAC7B,CAAC;IAEF,MAAM,mBAAmB,GAAG,WAAW,CACrC,CAAC,WAAmB,EAAE,EAAE;QACtB,IAAI,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,IAAI,CAAC,WAAW;YAAE,OAAO;QAC/D,IAAI,WAAW,KAAK,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW;YAAE,OAAO;QAE9D,QAAQ,CAAC,OAAO,CAAC,qBAAqB,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,CAAC;IAC3D,CAAC,EACD,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,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EP,OAAO,CACL,wBACE,KAAC,QAAQ,IACP,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,EACtC,WAAW,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,IAAI,EAAE,EACpD,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,IAAI,EAAE,EAC9C,SAAS,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,IAAI,EAAE,EAClD,YAAY,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,IAAI,EAAE,EACxD,gBAAgB,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,SAAS,IAAI,EAAE,EACvD,UAAU,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,IAAI,EAAE,EAC9C,QAAQ,EAAE,QAAQ,CAAC,KAAK,CAAC,MAAM,CAAC,QAAQ,EACxC,YAAY,EAAE,YAAY,EAC1B,mBAAmB,EAAE,mBAAmB,EACxC,gBAAgB,EAAE,gBAAgB,EAClC,iBAAiB,EAAE,iBAAiB,EACpC,oBAAoB,EAAE,oBAAoB,EAC1C,wBAAwB,EAAE,wBAAwB,EAClD,kBAAkB,EAAE,kBAAkB,EACtC,YAAY,EAAE,YAAY,EAC1B,eAAe,EAAE,eAAe,GAChC,GACE,CACP,CAAC;AACJ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../editors/vetra-package/index.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../editors/vetra-package/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAErC,MAAM,CAAC,MAAM,MAAM,GAAiB;IAClC,SAAS,EAAE,MAAM;IACjB,aAAa,EAAE,CAAC,oBAAoB,CAAC;IACrC,MAAM,EAAE;QACN,EAAE,EAAE,sBAAsB;QAC1B,uBAAuB,EAAE,IAAI;QAC7B,sBAAsB,EAAE,IAAI;QAC5B,mBAAmB,EAAE,IAAI;KAC1B;CACF,CAAC;AAEF,eAAe,MAAM,CAAC"}
|
package/dist/index.d.ts
CHANGED
|
@@ -3,4 +3,5 @@ import type { DocumentModelModule, EditorModule, Manifest } from "document-model
|
|
|
3
3
|
export declare const manifest: Manifest;
|
|
4
4
|
export declare const documentModels: DocumentModelModule<any>[];
|
|
5
5
|
export declare const editors: (EditorModule | DriveEditorModule)[];
|
|
6
|
+
export * from "./editors/hooks/useVetraDocument.js";
|
|
6
7
|
//# sourceMappingURL=index.d.ts.map
|