@hiver/connector-agent 1.3.4-beta.2 → 1.3.4-beta.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.
Files changed (89) hide show
  1. package/app/__tests__/card-list.test.d.ts.map +1 -0
  2. package/app/connector-cards.d.ts +7 -0
  3. package/app/connector-cards.d.ts.map +1 -0
  4. package/app/provider.d.ts.map +1 -1
  5. package/components/ui/layover/index.d.ts +2 -1
  6. package/components/ui/layover/index.d.ts.map +1 -1
  7. package/components/ui/layover/styles.d.ts +2 -2
  8. package/components/ui/layover/styles.d.ts.map +1 -1
  9. package/components/ui/text-field/index.d.ts +3 -0
  10. package/components/ui/text-field/index.d.ts.map +1 -0
  11. package/constants/card.d.ts +8 -0
  12. package/constants/card.d.ts.map +1 -1
  13. package/constants/global-constants.d.ts +2 -0
  14. package/constants/global-constants.d.ts.map +1 -1
  15. package/constants/tracking-events.d.ts +8 -0
  16. package/constants/tracking-events.d.ts.map +1 -1
  17. package/context/index.d.ts +2 -0
  18. package/context/index.d.ts.map +1 -1
  19. package/context/main-app-provider/index.d.ts +2 -1
  20. package/context/main-app-provider/index.d.ts.map +1 -1
  21. package/features/connector-cards/api/index.d.ts +3 -2
  22. package/features/connector-cards/api/index.d.ts.map +1 -1
  23. package/features/connector-cards/components/card-list/Card.d.ts +1 -0
  24. package/features/connector-cards/components/card-list/Card.d.ts.map +1 -1
  25. package/features/connector-cards/components/card-list/style.d.ts +3 -1
  26. package/features/connector-cards/components/card-list/style.d.ts.map +1 -1
  27. package/features/connector-cards/constants/api.d.ts.map +1 -1
  28. package/features/connector-cards/constants/card-content.d.ts +2 -2
  29. package/features/connector-cards/constants/card-content.d.ts.map +1 -1
  30. package/features/connector-cards/store/initial-state.d.ts +1 -0
  31. package/features/connector-cards/store/initial-state.d.ts.map +1 -1
  32. package/features/connector-cards/store/selectors.d.ts +1 -0
  33. package/features/connector-cards/store/selectors.d.ts.map +1 -1
  34. package/features/connector-cards/store/slice.d.ts +4 -0
  35. package/features/connector-cards/store/slice.d.ts.map +1 -1
  36. package/features/toast-message/constants/toast.d.ts +2 -0
  37. package/features/toast-message/constants/toast.d.ts.map +1 -1
  38. package/features/write-form/api/index.d.ts +5 -1
  39. package/features/write-form/api/index.d.ts.map +1 -1
  40. package/features/write-form/components/card-linking/card-linking.d.ts +7 -0
  41. package/features/write-form/components/card-linking/card-linking.d.ts.map +1 -0
  42. package/features/write-form/components/card-linking/card-preview.d.ts +12 -0
  43. package/features/write-form/components/card-linking/card-preview.d.ts.map +1 -0
  44. package/features/write-form/components/card-linking/style.d.ts +6 -0
  45. package/features/write-form/components/card-linking/style.d.ts.map +1 -0
  46. package/features/write-form/components/card-linking/unlink-card-modal.d.ts +12 -0
  47. package/features/write-form/components/card-linking/unlink-card-modal.d.ts.map +1 -0
  48. package/features/write-form/components/confirmation-modal/index.d.ts +12 -0
  49. package/features/write-form/components/confirmation-modal/index.d.ts.map +1 -0
  50. package/features/write-form/components/create-task-banner/index.d.ts +7 -0
  51. package/features/write-form/components/create-task-banner/index.d.ts.map +1 -0
  52. package/features/write-form/components/create-task-banner/styles.d.ts +5 -0
  53. package/features/write-form/components/create-task-banner/styles.d.ts.map +1 -0
  54. package/features/write-form/components/write-form/index.d.ts +4 -1
  55. package/features/write-form/components/write-form/index.d.ts.map +1 -1
  56. package/features/write-form/components/write-form/styles.d.ts +2 -1
  57. package/features/write-form/components/write-form/styles.d.ts.map +1 -1
  58. package/features/write-form/constants/api.d.ts +3 -0
  59. package/features/write-form/constants/api.d.ts.map +1 -1
  60. package/features/write-form/constants/index.d.ts +11 -0
  61. package/features/write-form/constants/index.d.ts.map +1 -1
  62. package/features/write-form/constants/regex-pattern.d.ts +3 -0
  63. package/features/write-form/constants/regex-pattern.d.ts.map +1 -0
  64. package/features/write-form/store/initial-state.d.ts +7 -1
  65. package/features/write-form/store/initial-state.d.ts.map +1 -1
  66. package/features/write-form/store/selectors.d.ts +6 -1
  67. package/features/write-form/store/selectors.d.ts.map +1 -1
  68. package/features/write-form/store/slice.d.ts +64 -8
  69. package/features/write-form/store/slice.d.ts.map +1 -1
  70. package/features/write-form/types/form.d.ts +9 -2
  71. package/features/write-form/types/form.d.ts.map +1 -1
  72. package/features/write-form/types/modal.d.ts +6 -0
  73. package/features/write-form/types/modal.d.ts.map +1 -0
  74. package/features/write-form/utils/index.d.ts +1 -0
  75. package/features/write-form/utils/index.d.ts.map +1 -1
  76. package/index.es.js +11678 -11104
  77. package/index.umd.js +332 -238
  78. package/package.json +1 -1
  79. package/testing/mocks/handlers/fetch-cards.d.ts +2 -1
  80. package/testing/mocks/handlers/fetch-cards.d.ts.map +1 -1
  81. package/testing/mocks/handlers/write-capability.d.ts.map +1 -1
  82. package/types/cards.d.ts +7 -0
  83. package/types/cards.d.ts.map +1 -1
  84. package/utils.d.ts +11 -11
  85. package/utils.d.ts.map +1 -1
  86. package/features/connector-cards/components/card-list/__tests__/card-list.test.d.ts.map +0 -1
  87. package/features/connector-cards/components/card-list/index.d.ts +0 -7
  88. package/features/connector-cards/components/card-list/index.d.ts.map +0 -1
  89. /package/{features/connector-cards/components/card-list → app}/__tests__/card-list.test.d.ts +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hiver/connector-agent",
3
- "version": "1.3.4-beta.2",
3
+ "version": "1.3.4-beta.21",
4
4
  "main": "index.es.js",
5
5
  "module": "index.es.js",
6
6
  "types": "index.d.ts",
@@ -1,5 +1,6 @@
1
1
  import { ICardTypes, IFlatDisplay } from '../../../types/cards';
2
- export declare const getSpecificConnector: (id: string, count?: number) => {
2
+ export declare const getSpecificConnector: (id: string, count?: number, isPreview?: boolean) => {
3
+ cardTitle?: string | undefined;
3
4
  id: string;
4
5
  cardType: ICardTypes;
5
6
  data: IFlatDisplay;
@@ -1 +1 @@
1
- {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AAyBnF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM;;cA4CT,UAAU;;CAG9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
1
+ {"version":3,"file":"fetch-cards.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/fetch-cards.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,UAAU,EAAE,YAAY,EAA4B,MAAM,eAAe,CAAC;AA2BnF,eAAO,MAAM,oBAAoB,OAAQ,MAAM,UAAS,MAAM,cAAiB,OAAO;;;cA4CjC,UAAU;;CAI9D,CAAC;AAaF,eAAO,MAAM,QAAQ,6BAAkD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AA8bA,eAAO,MAAM,QAAQ,6BAAkC,CAAC"}
1
+ {"version":3,"file":"write-capability.d.ts","sourceRoot":"","sources":["../../../../src/testing/mocks/handlers/write-capability.ts"],"names":[],"mappings":"AAsgBA,eAAO,MAAM,QAAQ,6BAAiF,CAAC"}
package/types/cards.d.ts CHANGED
@@ -4,6 +4,8 @@ export type ICard = {
4
4
  title: string;
5
5
  priority: number;
6
6
  type: ICardTypes;
7
+ externalResourceId?: string;
8
+ connectorName?: string;
7
9
  };
8
10
  export type IFlatDisArr = {
9
11
  label: string;
@@ -31,6 +33,11 @@ export type IFlatDisplay = {
31
33
  export type ISpecificCard = {
32
34
  id: string;
33
35
  cardType: ICardTypes;
36
+ cardTitle?: string;
34
37
  data: IFlatDisplay;
35
38
  };
39
+ export type CreateObjectMetaData = undefined | {
40
+ object_type?: string;
41
+ fields_filled?: number;
42
+ };
36
43
  //# sourceMappingURL=cards.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"cards.d.ts","sourceRoot":"","sources":["../../src/types/cards.ts"],"names":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CAAC,EAAE,MAAM,CAAC;CACxB,CAAC"}
package/utils.d.ts CHANGED
@@ -1,15 +1,6 @@
1
1
  import { IAvailableFtr } from './context';
2
2
  export declare const generateUniqueKey: (text: number | string) => string;
3
- export declare const getVersionData: (version: string) => string | number | ((index: number) => string | undefined) | (() => string) | ((pos: number) => string) | ((index: number) => number) | ((...strings: string[]) => string) | ((searchString: string, position?: number) => number) | ((searchString: string, position?: number) => number) | {
4
- (that: string): number;
5
- (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
6
- (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
7
- } | {
8
- (regexp: string | RegExp): RegExpMatchArray | null;
9
- (matcher: {
10
- [Symbol.match](string: string): RegExpMatchArray | null;
11
- }): RegExpMatchArray | null;
12
- } | {
3
+ export declare const getVersionData: (version: string) => string | number | {
13
4
  (searchValue: string | RegExp, replaceValue: string): string;
14
5
  (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
15
6
  (searchValue: {
@@ -18,6 +9,15 @@ export declare const getVersionData: (version: string) => string | number | ((in
18
9
  (searchValue: {
19
10
  [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
20
11
  }, replacer: (substring: string, ...args: any[]) => string): string;
12
+ } | (() => string) | ((pos: number) => string) | ((index: number) => number) | ((...strings: string[]) => string) | ((searchString: string, position?: number) => number) | ((searchString: string, position?: number) => number) | {
13
+ (that: string): number;
14
+ (that: string, locales?: string | string[], options?: Intl.CollatorOptions): number;
15
+ (that: string, locales?: Intl.LocalesArgument, options?: Intl.CollatorOptions): number;
16
+ } | {
17
+ (regexp: string | RegExp): RegExpMatchArray | null;
18
+ (matcher: {
19
+ [Symbol.match](string: string): RegExpMatchArray | null;
20
+ }): RegExpMatchArray | null;
21
21
  } | {
22
22
  (regexp: string | RegExp): number;
23
23
  (searcher: {
@@ -40,7 +40,7 @@ export declare const getVersionData: (version: string) => string | number | ((in
40
40
  } | ((count: number) => string) | ((searchString: string, position?: number) => boolean) | ((name: string) => string) | (() => string) | (() => string) | (() => string) | (() => string) | ((color: string) => string) | {
41
41
  (size: number): string;
42
42
  (size: string): string;
43
- } | (() => string) | ((url: string) => string) | (() => string) | (() => string) | (() => string) | (() => string) | ((maxLength: number, fillString?: string) => string) | ((maxLength: number, fillString?: string) => string) | (() => string) | (() => string) | (() => string) | (() => string) | ((regexp: RegExp) => RegExpStringIterator<RegExpExecArray>) | (() => StringIterator<string>) | undefined;
43
+ } | (() => string) | ((url: string) => string) | (() => string) | (() => string) | (() => string) | (() => string) | ((maxLength: number, fillString?: string) => string) | ((maxLength: number, fillString?: string) => string) | (() => string) | (() => string) | (() => string) | (() => string) | ((regexp: RegExp) => RegExpStringIterator<RegExpExecArray>) | (() => StringIterator<string>) | ((index: number) => string | undefined) | undefined;
44
44
  export declare const isLocalStorageVersionSame: (version: string) => boolean;
45
45
  export declare const isUserAlreadySeenWhatsNew: (version: string, userId?: string) => boolean;
46
46
  export declare const setLocalStorageData: (version: string, shouldReset?: boolean) => void;
package/utils.d.ts.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK1C,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,MAAM,WAGtD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM;;+DA0D0/5M,eAAe;kCAH185M,eAChG,iBAAiB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA9BnB,eACjB;;;oBAOC,eAAc;;;;;;;+YA9BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAAa,MAAM,YAIxD,CAAC;AAIF,eAAO,MAAM,yBAAyB,YAAa,MAAM,WAAU,MAAM,YAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,gBAAe,OAAO,SAwBxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAE5F,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAElG,CAAC"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAK1C,eAAO,MAAM,iBAAiB,SAAU,MAAM,GAAG,MAAM,WAGtD,CAAC;AAEF,eAAO,MAAM,cAAc,YAAa,MAAM;;;;;;;;;;;+DA0D0/5M,eAAe;kCAH185M,eAChG,iBAAiB,eAAe;;;;;;;;;;;;;;;;;;oBA9BnB,eACjB;;;oBAOC,eAAc;;;;;;;ybA9BvB,CAAC;AAEF,eAAO,MAAM,yBAAyB,YAAa,MAAM,YAIxD,CAAC;AAIF,eAAO,MAAM,yBAAyB,YAAa,MAAM,WAAU,MAAM,YAIxE,CAAC;AAEF,eAAO,MAAM,mBAAmB,YAAa,MAAM,gBAAe,OAAO,SAwBxE,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,kBAAkB,sBAAuB,aAAa,2BAAoB,MAAM,YAE5F,CAAC;AAEF,eAAO,MAAM,mBAAmB,aAAc,MAAM,UAAU;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAA;CAAE,KAAG,MAElG,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"card-list.test.d.ts","sourceRoot":"","sources":["../../../../../../src/features/connector-cards/components/card-list/__tests__/card-list.test.tsx"],"names":[],"mappings":""}
@@ -1,7 +0,0 @@
1
- import { FC } from 'react';
2
- interface IcardList {
3
- isAdmin?: boolean;
4
- }
5
- export declare const CardList: FC<IcardList>;
6
- export {};
7
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/features/connector-cards/components/card-list/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAA2C,MAAM,OAAO,CAAC;AAuCpE,UAAU,SAAS;IACjB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED,eAAO,MAAM,QAAQ,EAAE,EAAE,CAAC,SAAS,CAkFlC,CAAC"}