@beterdichtbij/component-library 0.12.0 → 0.13.0

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.
@@ -1,10 +1,10 @@
1
1
  import type { PropType as __PropType } from 'vue';
2
- import Dropzone from "dropzone";
2
+ import { attachedFile } from '../../../interfaces/BDDropzoneProps';
3
3
  declare const _sfc_main: import("vue").DefineComponent<{
4
4
  modelValue: {
5
- type: __PropType<Dropzone.DropzoneFile[]>;
5
+ type: __PropType<attachedFile[]>;
6
6
  required: true;
7
- default: Dropzone.DropzoneFile[];
7
+ default: attachedFile[];
8
8
  };
9
9
  buttonText: {
10
10
  type: __PropType<string | undefined>;
@@ -41,11 +41,16 @@ declare const _sfc_main: import("vue").DefineComponent<{
41
41
  required: false;
42
42
  default: string;
43
43
  };
44
+ token: {
45
+ type: __PropType<string>;
46
+ required: true;
47
+ default: string;
48
+ };
44
49
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
45
50
  modelValue: {
46
- type: __PropType<Dropzone.DropzoneFile[]>;
51
+ type: __PropType<attachedFile[]>;
47
52
  required: true;
48
- default: Dropzone.DropzoneFile[];
53
+ default: attachedFile[];
49
54
  };
50
55
  buttonText: {
51
56
  type: __PropType<string | undefined>;
@@ -82,10 +87,15 @@ declare const _sfc_main: import("vue").DefineComponent<{
82
87
  required: false;
83
88
  default: string;
84
89
  };
90
+ token: {
91
+ type: __PropType<string>;
92
+ required: true;
93
+ default: string;
94
+ };
85
95
  }>> & {
86
96
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
87
97
  }, {
88
- modelValue: Dropzone.DropzoneFile[];
98
+ modelValue: attachedFile[];
89
99
  buttonText: string | undefined;
90
100
  multiple: boolean;
91
101
  errorMessage: string | undefined;
@@ -93,5 +103,6 @@ declare const _sfc_main: import("vue").DefineComponent<{
93
103
  acceptedFiles: string;
94
104
  url: string;
95
105
  tag: "form" | "div" | undefined;
106
+ token: string;
96
107
  }, {}>;
97
108
  export default _sfc_main;
@@ -24,7 +24,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
24
24
  type: __PropType<string>;
25
25
  required: true;
26
26
  };
27
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
27
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "upload")[], "update:modelValue" | "upload", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
28
28
  placeholder: {
29
29
  type: __PropType<string | undefined>;
30
30
  required: false;
@@ -51,6 +51,7 @@ declare const _sfc_main: import("vue").DefineComponent<{
51
51
  };
52
52
  }>> & {
53
53
  "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
54
+ onUpload?: ((...args: any[]) => any) | undefined;
54
55
  }, {
55
56
  variant: import('../../../types/tiptapVariants').TiptapVariants;
56
57
  placeholder: string | undefined;
@@ -1,6 +1,10 @@
1
- import { DropzoneFile } from "dropzone";
1
+ export interface attachedFile {
2
+ UUID: string;
3
+ CorrelationId: string;
4
+ Naam: string;
5
+ }
2
6
  export interface BDDropzoneProps {
3
- modelValue: DropzoneFile[];
7
+ modelValue: attachedFile[];
4
8
  buttonText?: string;
5
9
  multiple: boolean;
6
10
  errorMessage?: string;
@@ -8,4 +12,5 @@ export interface BDDropzoneProps {
8
12
  acceptedFiles: string;
9
13
  url: string;
10
14
  tag?: "form" | "div";
15
+ token: string;
11
16
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "private": false,
4
- "version": "0.12.0",
4
+ "version": "0.13.0",
5
5
  "author": "Ralph van der Neut <rvanderneut@beterdichtbij.nl>",
6
6
  "type": "module",
7
7
  "files": [