@beterdichtbij/component-library 0.57.2 → 0.58.1

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.
@@ -0,0 +1,14 @@
1
+ declare const _sfc_main: {
2
+ __name: string;
3
+ props: {
4
+ items: ArrayConstructor;
5
+ command: FunctionConstructor;
6
+ };
7
+ setup(__props: any, { expose: __expose }: {
8
+ expose: any;
9
+ }): (_ctx: any, _cache: any) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
10
+ [key: string]: any;
11
+ }>;
12
+ };
13
+ export default _sfc_main;
14
+ //# sourceMappingURL=BDPlaceholderList.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"BDPlaceholderList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/atoms/BDPlaceholderList/BDPlaceholderList.vue"],"names":[],"mappings":"AAQA,QAAA,MAAM,SAAS;;;;;;;;SA+CP,SAAI,EAAE,WAAM;;;CAanB,CAAA;AAID,eAAe,SAAS,CAAA"}
@@ -1,6 +1,10 @@
1
1
  import { ModelValueString } from '../types/ModelValue';
2
2
  import { TiptapVariants } from '../types/tiptapVariants';
3
3
  import { ApiAttachment } from '../types/ApiAttachment';
4
+ export interface Token {
5
+ id: string;
6
+ label: string;
7
+ }
4
8
  export interface BDMarkdownEditorProps extends ModelValueString {
5
9
  placeholder?: string;
6
10
  errorText?: string;
@@ -9,4 +13,5 @@ export interface BDMarkdownEditorProps extends ModelValueString {
9
13
  files?: ApiAttachment[];
10
14
  pills?: Object[];
11
15
  apiUrl?: string;
16
+ tokens?: Token[];
12
17
  }
@@ -100,4 +100,15 @@
100
100
 
101
101
  .bd-dropdown-item {
102
102
  list-style-type: none;
103
+ }
104
+
105
+ .placeholder-tokens-menu {
106
+ .dropdown-item {
107
+ color: $color-darkblue;
108
+ border-left: 1px solid $color-lightblue;
109
+ border-right: 1px solid $color-lightblue;
110
+ &.active {
111
+ color:$white;
112
+ }
113
+ }
103
114
  }
@@ -1,4 +1,5 @@
1
1
  .bd-markdown-editor {
2
+ position: relative;
2
3
  padding: 0.5rem;
3
4
  border: 1px solid $gray-500;
4
5
  background-color: $white;
@@ -75,7 +76,6 @@
75
76
  .bd-link-input-popover.bd-link-input-bottom {
76
77
  position: absolute;
77
78
  left: 100px;
78
- bottom: 50px;
79
79
  margin: auto;
80
80
  z-index: 1050;
81
81
  min-width: 300px;
@@ -2,5 +2,6 @@ import { GenericEnum } from '../utils/type';
2
2
  export declare const TIPTAP_VARIANTS: {
3
3
  readonly BASIC: "basic";
4
4
  readonly FULL: "full";
5
+ readonly FORMAT: "format";
5
6
  };
6
7
  export type TiptapVariants = GenericEnum<typeof TIPTAP_VARIANTS>;
@@ -0,0 +1,32 @@
1
+ import { Editor } from '@tiptap/core';
2
+ import { Token } from '../../interfaces/BDMarkdownEditorProps';
3
+ import { Ref } from 'vue';
4
+ interface QueryParams {
5
+ query: string;
6
+ }
7
+ interface CommandParams {
8
+ editor: Editor;
9
+ range: {
10
+ from: number;
11
+ to: number;
12
+ };
13
+ props: Token;
14
+ }
15
+ interface SuggestionProps {
16
+ editor: Editor;
17
+ clientRect?: () => DOMRect | null;
18
+ items?: Token[];
19
+ event?: KeyboardEvent;
20
+ [key: string]: any;
21
+ }
22
+ export declare const createSuggestion: (tokens?: Token[], wrapperRef?: Ref<HTMLElement | null>) => {
23
+ items: ({ query }: QueryParams) => Token[];
24
+ command: ({ editor, range, props }: CommandParams) => void;
25
+ render: () => {
26
+ onStart: (props: SuggestionProps) => void;
27
+ onUpdate(props: SuggestionProps): void;
28
+ onKeyDown(props: SuggestionProps): any;
29
+ onExit(): void;
30
+ };
31
+ };
32
+ export {};
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@beterdichtbij/component-library",
3
3
  "description": "Component library voor BeterDichtbij design system",
4
4
  "private": false,
5
- "version": "0.57.2",
5
+ "version": "0.58.1",
6
6
  "engines": {
7
7
  "node": "24.x",
8
8
  "npm": "11.x"
@@ -58,20 +58,22 @@
58
58
  },
59
59
  "dependencies": {
60
60
  "@primeuix/themes": "^2.0.3",
61
- "@tiptap/extension-bold": "3.20.0",
62
- "@tiptap/extension-bullet-list": "3.20.0",
63
- "@tiptap/extension-document": "3.20.0",
64
- "@tiptap/extension-hard-break": "3.20.0",
65
- "@tiptap/extension-italic": "3.20.0",
66
- "@tiptap/extension-link": "3.20.0",
67
- "@tiptap/extension-list-item": "3.20.0",
68
- "@tiptap/extension-ordered-list": "3.20.0",
69
- "@tiptap/extension-paragraph": "3.20.0",
70
- "@tiptap/extension-placeholder": "3.20.0",
71
- "@tiptap/extension-text": "3.20.0",
72
- "@tiptap/extension-underline": "3.20.0",
73
- "@tiptap/pm": "3.20.0",
74
- "@tiptap/vue-3": "3.20.0",
61
+ "@tiptap/extension-bold": "3.20.1",
62
+ "@tiptap/extension-bullet-list": "3.20.1",
63
+ "@tiptap/extension-document": "3.20.1",
64
+ "@tiptap/extension-hard-break": "3.20.1",
65
+ "@tiptap/extension-italic": "3.20.1",
66
+ "@tiptap/extension-link": "3.20.1",
67
+ "@tiptap/extension-list-item": "3.20.1",
68
+ "@tiptap/extension-mention": "3.20.1",
69
+ "@tiptap/extension-ordered-list": "3.20.1",
70
+ "@tiptap/extension-paragraph": "3.20.1",
71
+ "@tiptap/extension-placeholder": "3.20.1",
72
+ "@tiptap/extension-text": "3.20.1",
73
+ "@tiptap/extension-underline": "3.20.1",
74
+ "@tiptap/pm": "3.20.1",
75
+ "@tiptap/suggestion": "3.20.1",
76
+ "@tiptap/vue-3": "3.20.1",
75
77
  "@vueuse/core": "14.2.1",
76
78
  "dayjs": "^1.11.19",
77
79
  "dropzone": "5.9.3",