@open-resource-discovery/ui-components 0.1.5 → 0.1.6
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/src/components/code-block/CodeBlock.d.ts.map +1 -1
- package/dist/src/components/http-log-entry/HttpLogEntry.d.ts +5 -1
- package/dist/src/components/http-log-entry/HttpLogEntry.d.ts.map +1 -1
- package/dist/ui-components.cjs +12 -10
- package/dist/ui-components.css +1 -1
- package/dist/ui-components.js +5167 -2178
- package/package.json +2 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/code-block/CodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"CodeBlock.d.ts","sourceRoot":"","sources":["../../../../src/components/code-block/CodeBlock.tsx"],"names":[],"mappings":"AAAA,OAAO,EAA8C,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;AAgBlG,KAAK,eAAe,GAAG;IACrB,UAAU,EAAE,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC;CACxE,CAAC;AAiCF,MAAM,MAAM,cAAc,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAC7D,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,WAAW,CAAC,EAAE,eAAe,CAAC;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAChC,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,eAAO,MAAM,SAAS;UAZd,MAAM;eACD,MAAM;eACN,MAAM;kBACH,eAAe;iBAChB,MAAM;gBACP,MAAM;sBACA,OAAO;qBACR,OAAO;aACf,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI;gBACnB,MAAM;kDA8InB,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ComponentPropsWithoutRef, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
|
|
1
|
+
import { ComponentPropsWithoutRef, ReactNode, ForwardRefExoticComponent, DetailedHTMLProps, HTMLAttributes, RefAttributes } from 'react';
|
|
2
2
|
import { CodeBlock } from '../code-block';
|
|
3
3
|
export type HttpLogEntryEditPayload = {
|
|
4
4
|
headers: Record<string, string>;
|
|
@@ -18,6 +18,8 @@ export type HttpLogEntryProps = ComponentPropsWithoutRef<"div"> & {
|
|
|
18
18
|
highlighted?: boolean;
|
|
19
19
|
defaultOpen?: boolean;
|
|
20
20
|
highlighter?: Parameters<typeof CodeBlock>[0]["highlighter"];
|
|
21
|
+
extraBadges?: ReactNode;
|
|
22
|
+
responseBodyContent?: ReactNode;
|
|
21
23
|
onResend?: () => void;
|
|
22
24
|
onCopy?: () => void;
|
|
23
25
|
onEdit?: (payload: HttpLogEntryEditPayload) => void;
|
|
@@ -36,6 +38,8 @@ export declare const HttpLogEntry: ForwardRefExoticComponent<Omit< DetailedHTMLP
|
|
|
36
38
|
highlighted?: boolean;
|
|
37
39
|
defaultOpen?: boolean;
|
|
38
40
|
highlighter?: Parameters<typeof CodeBlock>[0]["highlighter"];
|
|
41
|
+
extraBadges?: ReactNode;
|
|
42
|
+
responseBodyContent?: ReactNode;
|
|
39
43
|
onResend?: () => void;
|
|
40
44
|
onCopy?: () => void;
|
|
41
45
|
onEdit?: (payload: HttpLogEntryEditPayload) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HttpLogEntry.d.ts","sourceRoot":"","sources":["../../../../src/components/http-log-entry/HttpLogEntry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,wBAAwB,EAAE,MAAM,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"HttpLogEntry.d.ts","sourceRoot":"","sources":["../../../../src/components/http-log-entry/HttpLogEntry.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAwB,KAAK,wBAAwB,EAAE,KAAK,SAAS,EAAE,MAAM,OAAO,CAAC;AAK5F,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AAIpD,MAAM,MAAM,uBAAuB,GAAG;IACpC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,MAAM,MAAM,iBAAiB,GAAG,wBAAwB,CAAC,KAAK,CAAC,GAAG;IAChE,MAAM,EAAE,MAAM,CAAC;IACf,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC;IAC1B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,cAAc,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACxC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC;IAC7D,WAAW,CAAC,EAAE,SAAS,CAAC;IACxB,mBAAmB,CAAC,EAAE,SAAS,CAAC;IAChC,QAAQ,CAA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