@veltdev/react 4.5.0-beta.32 → 4.5.0-beta.33

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,48 +1,5 @@
1
+ import { CommentSidebarFilterConfig, CommentSidebarFilters, CommentSidebarGroupConfig } from '@veltdev/types';
1
2
  import React from 'react';
2
- declare class FilterTypeConfig {
3
- name?: string;
4
- enable?: boolean;
5
- multiSelection?: boolean;
6
- enableGrouping?: boolean;
7
- order?: string[];
8
- }
9
- declare class CommentSidebarFilterConfig {
10
- location?: FilterTypeConfig;
11
- document?: FilterTypeConfig;
12
- people?: FilterTypeConfig;
13
- tagged?: FilterTypeConfig;
14
- assigned?: FilterTypeConfig;
15
- priority?: FilterTypeConfig;
16
- category?: FilterTypeConfig;
17
- commentType?: FilterTypeConfig;
18
- status?: FilterTypeConfig;
19
- }
20
- declare class CommentSidebarGroupConfig {
21
- enable?: boolean;
22
- name?: string;
23
- }
24
- declare class CommentSidebarFilters {
25
- location?: Location[];
26
- document?: {
27
- id?: string;
28
- documentName?: string;
29
- }[];
30
- people?: {
31
- userId?: string;
32
- email?: string;
33
- }[];
34
- tagged?: {
35
- userId?: string;
36
- email?: string;
37
- }[];
38
- assigned?: {
39
- userId?: string;
40
- email?: string;
41
- }[];
42
- priority?: string[];
43
- status?: string[];
44
- category?: string[];
45
- }
46
3
  export interface IVeltCommentsSidebarProps {
47
4
  embedMode?: boolean;
48
5
  floatingMode?: boolean;
@@ -5,6 +5,7 @@ import { IVeltCommentsSidebarFilterSearchHiddenCount } from './VeltCommentsSideb
5
5
  import { IVeltCommentsSidebarFilterSearchInput } from './VeltCommentsSidebarFilterSearchInput/VeltCommentsSidebarFilterSearchInput';
6
6
  import { IVeltCommentsSidebarFilterSearchTags } from './VeltCommentsSidebarFilterSearchTags/VeltCommentsSidebarFilterSearchTags';
7
7
  export interface IVeltCommentsSidebarFilterSearchProps extends IVeltWireframeCommonProps {
8
+ placeholder?: string;
8
9
  }
9
10
  export interface IVeltCommentsSidebarFilterSearch extends React.FC<IVeltCommentsSidebarFilterSearchProps> {
10
11
  DropdownIcon: IVeltCommentsSidebarFilterSearchDropdownIcon;
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IVeltWireframeCommonProps } from '../../../../../constants';
3
3
  export interface IVeltCommentsSidebarFilterSearchInputProps extends IVeltWireframeCommonProps {
4
+ placeholder?: string;
4
5
  }
5
6
  export interface IVeltCommentsSidebarFilterSearchInput extends React.FC<IVeltCommentsSidebarFilterSearchInputProps> {
6
7
  }
@@ -1,6 +1,7 @@
1
1
  import React from 'react';
2
2
  import { IVeltWireframeCommonProps } from '../../../constants';
3
3
  export interface IVeltCommentsSidebarSearchProps extends IVeltWireframeCommonProps {
4
+ placeholder?: string;
4
5
  }
5
6
  declare const VeltCommentsSidebarSearch: React.FC<IVeltCommentsSidebarSearchProps>;
6
7
  export default VeltCommentsSidebarSearch;
@@ -1,5 +1,5 @@
1
1
  /// <reference types="react" />
2
- export declare const VELT_SDK_VERSION = "4.5.0-beta.32";
2
+ export declare const VELT_SDK_VERSION = "4.5.0-beta.33";
3
3
  export declare const VELT_SDK_INIT_EVENT = "onVeltInit";
4
4
  export declare const VELT_TAB_ID = "veltTabId";
5
5
  export declare const INTEGRITY_MAP: Record<string, string>;
package/esm/index.js CHANGED
@@ -136,13 +136,13 @@ var loadVelt = function (callback, version, staging, develop, proxyDomain, integ
136
136
  }
137
137
  };
138
138
 
139
- var VELT_SDK_VERSION = '4.5.0-beta.32';
139
+ var VELT_SDK_VERSION = '4.5.0-beta.33';
140
140
  var VELT_SDK_INIT_EVENT = 'onVeltInit';
141
141
  var VELT_TAB_ID = 'veltTabId';
142
142
  // integrity map for the Velt SDK
143
143
  // Note: generate integrity hashes with: https://www.srihash.org/
144
144
  var INTEGRITY_MAP = {
145
- '4.5.0-beta.32': 'sha384-N2TOWIuu/DHUbfwaCMNU06+1ZsnKx+bMCHikpNxHNmES9y+tLm6FjXnKeVAbBz55',
145
+ '4.5.0-beta.33': 'sha384-ZP1/rBivB52YB3A6xq5FOrG55O++ldQEhyf1TiM60VW34/PmM1egiR6XMAXiWgXc',
146
146
  };
147
147
 
148
148
  var SnippylyProvider = function (props) {
@@ -2543,9 +2543,9 @@ var VeltCommentsSidebarFilterSearchHiddenCount = function (props) {
2543
2543
  };
2544
2544
 
2545
2545
  var VeltCommentsSidebarFilterSearchInput = function (props) {
2546
- var children = props.children, remainingProps = __rest(props, ["children"]);
2546
+ var children = props.children, placeholder = props.placeholder, remainingProps = __rest(props, ["children", "placeholder"]);
2547
2547
  var transformedProps = transformWireframeProps(remainingProps);
2548
- return (React.createElement("velt-comments-sidebar-filter-search-input-wireframe", __assign({}, transformedProps), children));
2548
+ return (React.createElement("velt-comments-sidebar-filter-search-input-wireframe", __assign({}, transformedProps, { placeholder: placeholder }), children));
2549
2549
  };
2550
2550
 
2551
2551
  var VeltCommentsSidebarFilterSearchTagsItemName = function (props) {
@@ -2576,9 +2576,9 @@ var VeltCommentsSidebarFilterSearchTags = function (props) {
2576
2576
  VeltCommentsSidebarFilterSearchTags.Item = VeltCommentsSidebarFilterSearchTagsItem;
2577
2577
 
2578
2578
  var VeltCommentsSidebarFilterSearch = function (props) {
2579
- var children = props.children, remainingProps = __rest(props, ["children"]);
2579
+ var children = props.children, placeholder = props.placeholder, remainingProps = __rest(props, ["children", "placeholder"]);
2580
2580
  var transformedProps = transformWireframeProps(remainingProps);
2581
- return (React.createElement("velt-comments-sidebar-filter-search-wireframe", __assign({}, transformedProps), children));
2581
+ return (React.createElement("velt-comments-sidebar-filter-search-wireframe", __assign({}, transformedProps, { placeholder: placeholder }), children));
2582
2582
  };
2583
2583
  VeltCommentsSidebarFilterSearch.DropdownIcon = VeltCommentsSidebarFilterSearchDropdownIcon;
2584
2584
  VeltCommentsSidebarFilterSearch.Tags = VeltCommentsSidebarFilterSearchTags;
@@ -2977,9 +2977,9 @@ var VeltCommentsSidebarPanel = function (props) {
2977
2977
  };
2978
2978
 
2979
2979
  var VeltCommentsSidebarSearch = function (props) {
2980
- var children = props.children, remainingProps = __rest(props, ["children"]);
2980
+ var children = props.children, placeholder = props.placeholder, remainingProps = __rest(props, ["children", "placeholder"]);
2981
2981
  var transformedProps = transformWireframeProps(remainingProps);
2982
- return (React.createElement("velt-comments-sidebar-search-wireframe", __assign({}, transformedProps), children));
2982
+ return (React.createElement("velt-comments-sidebar-search-wireframe", __assign({}, transformedProps, { placeholder: placeholder }), children));
2983
2983
  };
2984
2984
 
2985
2985
  var VeltCommentsSidebarSkeleton = function (props) {