@kanda-libs/ks-component-ts 0.2.379 → 0.2.381
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/index.d.ts +12839 -12838
- package/dist/index.esm.js +4 -4
- package/dist/index.esm.js.map +3 -3
- package/package.json +2 -2
- package/src/components/HeaderSearch/index.tsx +8 -1
- package/src/field/components/CompanyLookupInput/SearchResults/Desktop/index.tsx +3 -2
- package/src/generated/operations/actionAdhoc.ts +29 -0
- package/src/generated/operations/index.ts +14 -0
- package/src/generated/widget/index.tsx +61268 -61268
- package/yarn.lock +4 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kanda-libs/ks-component-ts",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.381",
|
|
4
4
|
"description": "Kanda form component library",
|
|
5
5
|
"main": "dist/index.esm.js",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"devDependencies": {
|
|
41
41
|
"@kanda-libs/ks-amplitude-provider": "0.0.18",
|
|
42
|
-
"@kanda-libs/ks-design-library": "0.
|
|
42
|
+
"@kanda-libs/ks-design-library": "0.3.11",
|
|
43
43
|
"@kanda-libs/ks-frontend-services": "0.2.140",
|
|
44
44
|
"@types/browser-image-compression": "^1.0.9",
|
|
45
45
|
"@types/draft-js": "^0.11.10",
|
|
@@ -11,16 +11,23 @@ export interface HeaderSearchProps
|
|
|
11
11
|
options?: JSX.Element[];
|
|
12
12
|
className?: string;
|
|
13
13
|
help?: boolean;
|
|
14
|
+
hideNumber?: boolean;
|
|
14
15
|
}
|
|
15
16
|
|
|
16
17
|
const HeaderSearch: FunctionComponent<HeaderSearchProps> = function ({
|
|
17
18
|
options = [],
|
|
18
19
|
help = false,
|
|
20
|
+
hideNumber = true,
|
|
19
21
|
className,
|
|
20
22
|
...inputProps
|
|
21
23
|
}) {
|
|
22
24
|
return (
|
|
23
|
-
<Header.Base
|
|
25
|
+
<Header.Base
|
|
26
|
+
className={className}
|
|
27
|
+
help={help}
|
|
28
|
+
hideNumber={hideNumber}
|
|
29
|
+
options={options}
|
|
30
|
+
>
|
|
24
31
|
<div className="w-full -ml-4">
|
|
25
32
|
<FormTheme variant="clean">
|
|
26
33
|
<InputUncontrolled
|
|
@@ -29,15 +29,16 @@ const Desktop: FunctionComponent<DesktopProps> = function ({
|
|
|
29
29
|
id="company-lookup-input"
|
|
30
30
|
visible={visible}
|
|
31
31
|
className="w-full -mt-5"
|
|
32
|
+
wrapperClassName="w-full"
|
|
32
33
|
>
|
|
33
34
|
{({ handleClose }) => (
|
|
34
|
-
<Card padding="p-2" className={CLASS_NAMES.card}>
|
|
35
|
+
<Card padding="p-2 pt-0" className={CLASS_NAMES.card}>
|
|
35
36
|
<>
|
|
36
37
|
{showButton && (
|
|
37
38
|
<Button.Link
|
|
38
39
|
id="company-lookup-not-listed"
|
|
39
40
|
label="I can't find my company"
|
|
40
|
-
className="sticky top-0 w-full
|
|
41
|
+
className="sticky top-0 w-full p-3 bg-neutral-000"
|
|
41
42
|
onClick={() => {
|
|
42
43
|
handleClose();
|
|
43
44
|
onClick();
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { RequestFunction } from "@openapi-io-ts/runtime";
|
|
2
|
+
import * as schemas from "../components/schemas";
|
|
3
|
+
|
|
4
|
+
export type ActionAdhocRequestParameters = {
|
|
5
|
+
action: string;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export const actionAdhocOperation = {
|
|
9
|
+
path: "/api/adhoc/{action}",
|
|
10
|
+
method: "post",
|
|
11
|
+
responses: {
|
|
12
|
+
"200": { _tag: "EmptyResponse" },
|
|
13
|
+
default: { _tag: "JsonResponse", decoder: schemas.Error },
|
|
14
|
+
},
|
|
15
|
+
parameters: [
|
|
16
|
+
{
|
|
17
|
+
_tag: "FormParameter",
|
|
18
|
+
explode: false,
|
|
19
|
+
in: "path",
|
|
20
|
+
name: "action",
|
|
21
|
+
},
|
|
22
|
+
],
|
|
23
|
+
requestDefaultHeaders: {},
|
|
24
|
+
} as const;
|
|
25
|
+
|
|
26
|
+
export type ActionAdhocRequestFunction = RequestFunction<
|
|
27
|
+
{ params: ActionAdhocRequestParameters },
|
|
28
|
+
void
|
|
29
|
+
>;
|
|
@@ -6,6 +6,10 @@ import {
|
|
|
6
6
|
acceptedJobSummaryLeadOperation,
|
|
7
7
|
AcceptedJobSummaryLeadRequestFunction,
|
|
8
8
|
} from "./acceptedJobSummaryLead";
|
|
9
|
+
import {
|
|
10
|
+
actionAdhocOperation,
|
|
11
|
+
ActionAdhocRequestFunction,
|
|
12
|
+
} from "./actionAdhoc";
|
|
9
13
|
import {
|
|
10
14
|
applyCreditOperation,
|
|
11
15
|
ApplyCreditRequestFunction,
|
|
@@ -591,6 +595,7 @@ export const operations: Operations = {
|
|
|
591
595
|
postMonitorFlag: postMonitorFlagOperation,
|
|
592
596
|
providerCheckWebhook: providerCheckWebhookOperation,
|
|
593
597
|
providerWebhook: providerWebhookOperation,
|
|
598
|
+
actionAdhoc: actionAdhocOperation,
|
|
594
599
|
postEvent: postEventOperation,
|
|
595
600
|
runner: runnerOperation,
|
|
596
601
|
} as const;
|
|
@@ -746,6 +751,7 @@ export interface OperationRequestFunctionMap {
|
|
|
746
751
|
postMonitorFlag: PostMonitorFlagRequestFunction;
|
|
747
752
|
providerCheckWebhook: ProviderCheckWebhookRequestFunction;
|
|
748
753
|
providerWebhook: ProviderWebhookRequestFunction;
|
|
754
|
+
actionAdhoc: ActionAdhocRequestFunction;
|
|
749
755
|
postEvent: PostEventRequestFunction;
|
|
750
756
|
runner: RunnerRequestFunction;
|
|
751
757
|
}
|
|
@@ -1092,6 +1098,7 @@ export const requestFunctionsBuilder = (
|
|
|
1092
1098
|
operations.providerWebhook,
|
|
1093
1099
|
requestAdapter
|
|
1094
1100
|
),
|
|
1101
|
+
actionAdhoc: requestFunctionBuilder(operations.actionAdhoc, requestAdapter),
|
|
1095
1102
|
postEvent: requestFunctionBuilder(operations.postEvent, requestAdapter),
|
|
1096
1103
|
runner: requestFunctionBuilder(operations.runner, requestAdapter),
|
|
1097
1104
|
});
|
|
@@ -1418,6 +1425,12 @@ export const webhookServiceBuilder = (
|
|
|
1418
1425
|
providerWebhook: requestFunctions.providerWebhook,
|
|
1419
1426
|
});
|
|
1420
1427
|
|
|
1428
|
+
export const adhocServiceBuilder = (
|
|
1429
|
+
requestFunctions: OperationRequestFunctionMap
|
|
1430
|
+
) => ({
|
|
1431
|
+
actionAdhoc: requestFunctions.actionAdhoc,
|
|
1432
|
+
});
|
|
1433
|
+
|
|
1421
1434
|
export const eventServiceBuilder = (
|
|
1422
1435
|
requestFunctions: OperationRequestFunctionMap
|
|
1423
1436
|
) => ({
|
|
@@ -1581,6 +1594,7 @@ export interface Operations {
|
|
|
1581
1594
|
postMonitorFlag: typeof postMonitorFlagOperation;
|
|
1582
1595
|
providerCheckWebhook: typeof providerCheckWebhookOperation;
|
|
1583
1596
|
providerWebhook: typeof providerWebhookOperation;
|
|
1597
|
+
actionAdhoc: typeof actionAdhocOperation;
|
|
1584
1598
|
postEvent: typeof postEventOperation;
|
|
1585
1599
|
runner: typeof runnerOperation;
|
|
1586
1600
|
}
|