@uipath/apollo-react 6.78.0 → 6.78.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.
@@ -264,27 +264,57 @@ function JsonTreeViewProvider({ strings, tooltipContentClassName, children }) {
264
264
  children: overrides
265
265
  });
266
266
  }
267
- function withCanvasStrings(Component, name) {
268
- const Wrapped = (props)=>{
269
- const insideCanvasProvider = (0, external_react_namespaceObject.useContext)(InsideCanvasProviderContext);
270
- if (insideCanvasProvider) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
267
+ function CanvasStrings({ children }) {
268
+ const insideCanvasProvider = (0, external_react_namespaceObject.useContext)(InsideCanvasProviderContext);
269
+ if (insideCanvasProvider) return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(jsx_runtime_namespaceObject.Fragment, {
270
+ children: children
271
+ });
272
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(JsonTreeViewProvider, {
273
+ children: children
274
+ });
275
+ }
276
+ function JsonTreeView(props) {
277
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasStrings, {
278
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.JsonTreeView, {
271
279
  ...props
272
- });
273
- return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(JsonTreeViewProvider, {
274
- children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(Component, {
275
- ...props
276
- })
277
- });
278
- };
279
- Wrapped.displayName = name;
280
- return Wrapped;
280
+ })
281
+ });
282
+ }
283
+ function JsonTreeToolbar(props) {
284
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasStrings, {
285
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.JsonTreeToolbar, {
286
+ ...props
287
+ })
288
+ });
289
+ }
290
+ function JsonContainerEditor(props) {
291
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasStrings, {
292
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.JsonContainerEditor, {
293
+ ...props
294
+ })
295
+ });
296
+ }
297
+ function JsonLeafValueEditor(props) {
298
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasStrings, {
299
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.JsonLeafValueEditor, {
300
+ ...props
301
+ })
302
+ });
303
+ }
304
+ function JsonMultilineLeafEditor(props) {
305
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasStrings, {
306
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.JsonMultilineLeafEditor, {
307
+ ...props
308
+ })
309
+ });
310
+ }
311
+ function JsonTypeBadge(props) {
312
+ return /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(CanvasStrings, {
313
+ children: /*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(apollo_wind_namespaceObject.JsonTypeBadge, {
314
+ ...props
315
+ })
316
+ });
281
317
  }
282
- const JsonTreeView = withCanvasStrings(apollo_wind_namespaceObject.JsonTreeView, 'JsonTreeView');
283
- const JsonTreeToolbar = withCanvasStrings(apollo_wind_namespaceObject.JsonTreeToolbar, 'JsonTreeToolbar');
284
- const JsonContainerEditor = withCanvasStrings(apollo_wind_namespaceObject.JsonContainerEditor, 'JsonContainerEditor');
285
- const JsonLeafValueEditor = withCanvasStrings(apollo_wind_namespaceObject.JsonLeafValueEditor, 'JsonLeafValueEditor');
286
- const JsonMultilineLeafEditor = withCanvasStrings(apollo_wind_namespaceObject.JsonMultilineLeafEditor, 'JsonMultilineLeafEditor');
287
- const JsonTypeBadge = withCanvasStrings(apollo_wind_namespaceObject.JsonTypeBadge, 'JsonTypeBadge');
288
318
  const JsonTree = JsonTreeView;
289
319
  exports.JsonContainerEditor = __webpack_exports__.JsonContainerEditor;
290
320
  exports.JsonLeafValueEditor = __webpack_exports__.JsonLeafValueEditor;
@@ -1,33 +1,12 @@
1
- import { type JsonTreeViewProps, type JsonTreeViewProviderProps, type JsonTreeViewStrings } from '@uipath/apollo-wind';
1
+ import { type JsonContainerEditorProps, type JsonLeafValueEditorProps, type JsonMultilineLeafEditorProps, type JsonTreeToolbarProps, type JsonTreeViewProps, type JsonTreeViewProviderProps, type JsonTreeViewStrings, type JsonTypeBadgeProps } from '@uipath/apollo-wind';
2
2
  export declare function useCanvasJsonTreeViewStrings(): JsonTreeViewStrings;
3
3
  export declare function JsonTreeViewProvider({ strings, tooltipContentClassName, children, }: JsonTreeViewProviderProps): import("react/jsx-runtime").JSX.Element;
4
- export declare const JsonTreeView: {
5
- (props: JsonTreeViewProps): import("react/jsx-runtime").JSX.Element;
6
- displayName: string;
7
- };
8
- export declare const JsonTreeToolbar: {
9
- (props: import("@uipath/apollo-wind").JsonTreeToolbarProps): import("react/jsx-runtime").JSX.Element;
10
- displayName: string;
11
- };
12
- export declare const JsonContainerEditor: {
13
- (props: import("@uipath/apollo-wind").JsonContainerEditorProps): import("react/jsx-runtime").JSX.Element;
14
- displayName: string;
15
- };
16
- export declare const JsonLeafValueEditor: {
17
- (props: import("@uipath/apollo-wind").JsonLeafValueEditorProps): import("react/jsx-runtime").JSX.Element;
18
- displayName: string;
19
- };
20
- export declare const JsonMultilineLeafEditor: {
21
- (props: import("@uipath/apollo-wind").JsonMultilineLeafEditorProps): import("react/jsx-runtime").JSX.Element;
22
- displayName: string;
23
- };
24
- export declare const JsonTypeBadge: {
25
- (props: import("@uipath/apollo-wind").JsonTypeBadgeProps): import("react/jsx-runtime").JSX.Element;
26
- displayName: string;
27
- };
4
+ export declare function JsonTreeView(props: JsonTreeViewProps): import("react/jsx-runtime").JSX.Element;
5
+ export declare function JsonTreeToolbar(props: JsonTreeToolbarProps): import("react/jsx-runtime").JSX.Element;
6
+ export declare function JsonContainerEditor(props: JsonContainerEditorProps): import("react/jsx-runtime").JSX.Element;
7
+ export declare function JsonLeafValueEditor(props: JsonLeafValueEditorProps): import("react/jsx-runtime").JSX.Element;
8
+ export declare function JsonMultilineLeafEditor(props: JsonMultilineLeafEditorProps): import("react/jsx-runtime").JSX.Element;
9
+ export declare function JsonTypeBadge(props: JsonTypeBadgeProps): import("react/jsx-runtime").JSX.Element;
28
10
  export type JsonTreeProps = JsonTreeViewProps;
29
- export declare const JsonTree: {
30
- (props: JsonTreeViewProps): import("react/jsx-runtime").JSX.Element;
31
- displayName: string;
32
- };
11
+ export declare const JsonTree: typeof JsonTreeView;
33
12
  //# sourceMappingURL=JsonTree.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"JsonTree.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/JsonTree/JsonTree.tsx"],"names":[],"mappings":"AAAA,OAAO,EAML,KAAK,iBAAiB,EAEtB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EAEzB,MAAM,qBAAqB,CAAC;AAgB7B,wBAAgB,4BAA4B,IAAI,mBAAmB,CA8HlE;AAWD,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,uBAAuB,EACvB,QAAQ,GACT,EAAE,yBAAyB,2CAqB3B;AAuBD,eAAO,MAAM,YAAY;;;CAAsD,CAAC;AAChF,eAAO,MAAM,eAAe;;;CAA4D,CAAC;AACzF,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AACF,eAAO,MAAM,mBAAmB;;;CAG/B,CAAC;AACF,eAAO,MAAM,uBAAuB;;;CAGnC,CAAC;AAEF,eAAO,MAAM,aAAa;;;CAAwD,CAAC;AAGnF,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE9C,eAAO,MAAM,QAAQ;;;CAAe,CAAC"}
1
+ {"version":3,"file":"JsonTree.d.ts","sourceRoot":"","sources":["../../../../src/canvas/components/JsonTree/JsonTree.tsx"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,4BAA4B,EACjC,KAAK,oBAAoB,EACzB,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,kBAAkB,EAQxB,MAAM,qBAAqB,CAAC;AAgB7B,wBAAgB,4BAA4B,IAAI,mBAAmB,CA8HlE;AAWD,wBAAgB,oBAAoB,CAAC,EACnC,OAAO,EACP,uBAAuB,EACvB,QAAQ,GACT,EAAE,yBAAyB,2CAqB3B;AAoBD,wBAAgB,YAAY,CAAC,KAAK,EAAE,iBAAiB,2CAMpD;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,oBAAoB,2CAM1D;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAMlE;AAED,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,wBAAwB,2CAMlE;AAED,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,4BAA4B,2CAM1E;AAGD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,2CAMtD;AAGD,MAAM,MAAM,aAAa,GAAG,iBAAiB,CAAC;AAE9C,eAAO,MAAM,QAAQ,qBAAe,CAAC"}
@@ -1,4 +1,4 @@
1
- import { jsx } from "react/jsx-runtime";
1
+ import { Fragment, jsx } from "react/jsx-runtime";
2
2
  import { JsonContainerEditor, JsonLeafValueEditor, JsonMultilineLeafEditor, JsonTreeToolbar, JsonTreeView, JsonTreeViewProvider, JsonTypeBadge } from "@uipath/apollo-wind";
3
3
  import { createContext, useContext, useMemo } from "react";
4
4
  import { useSafeLingui } from "../../../i18n/index.js";
@@ -228,26 +228,56 @@ function JsonTree_JsonTreeViewProvider({ strings, tooltipContentClassName, child
228
228
  children: overrides
229
229
  });
230
230
  }
231
- function withCanvasStrings(Component, name) {
232
- const Wrapped = (props)=>{
233
- const insideCanvasProvider = useContext(InsideCanvasProviderContext);
234
- if (insideCanvasProvider) return /*#__PURE__*/ jsx(Component, {
231
+ function CanvasStrings({ children }) {
232
+ const insideCanvasProvider = useContext(InsideCanvasProviderContext);
233
+ if (insideCanvasProvider) return /*#__PURE__*/ jsx(Fragment, {
234
+ children: children
235
+ });
236
+ return /*#__PURE__*/ jsx(JsonTree_JsonTreeViewProvider, {
237
+ children: children
238
+ });
239
+ }
240
+ function JsonTree_JsonTreeView(props) {
241
+ return /*#__PURE__*/ jsx(CanvasStrings, {
242
+ children: /*#__PURE__*/ jsx(JsonTreeView, {
235
243
  ...props
236
- });
237
- return /*#__PURE__*/ jsx(JsonTree_JsonTreeViewProvider, {
238
- children: /*#__PURE__*/ jsx(Component, {
239
- ...props
240
- })
241
- });
242
- };
243
- Wrapped.displayName = name;
244
- return Wrapped;
244
+ })
245
+ });
246
+ }
247
+ function JsonTree_JsonTreeToolbar(props) {
248
+ return /*#__PURE__*/ jsx(CanvasStrings, {
249
+ children: /*#__PURE__*/ jsx(JsonTreeToolbar, {
250
+ ...props
251
+ })
252
+ });
253
+ }
254
+ function JsonTree_JsonContainerEditor(props) {
255
+ return /*#__PURE__*/ jsx(CanvasStrings, {
256
+ children: /*#__PURE__*/ jsx(JsonContainerEditor, {
257
+ ...props
258
+ })
259
+ });
260
+ }
261
+ function JsonTree_JsonLeafValueEditor(props) {
262
+ return /*#__PURE__*/ jsx(CanvasStrings, {
263
+ children: /*#__PURE__*/ jsx(JsonLeafValueEditor, {
264
+ ...props
265
+ })
266
+ });
267
+ }
268
+ function JsonTree_JsonMultilineLeafEditor(props) {
269
+ return /*#__PURE__*/ jsx(CanvasStrings, {
270
+ children: /*#__PURE__*/ jsx(JsonMultilineLeafEditor, {
271
+ ...props
272
+ })
273
+ });
274
+ }
275
+ function JsonTree_JsonTypeBadge(props) {
276
+ return /*#__PURE__*/ jsx(CanvasStrings, {
277
+ children: /*#__PURE__*/ jsx(JsonTypeBadge, {
278
+ ...props
279
+ })
280
+ });
245
281
  }
246
- const JsonTree_JsonTreeView = withCanvasStrings(JsonTreeView, 'JsonTreeView');
247
- const JsonTree_JsonTreeToolbar = withCanvasStrings(JsonTreeToolbar, 'JsonTreeToolbar');
248
- const JsonTree_JsonContainerEditor = withCanvasStrings(JsonContainerEditor, 'JsonContainerEditor');
249
- const JsonTree_JsonLeafValueEditor = withCanvasStrings(JsonLeafValueEditor, 'JsonLeafValueEditor');
250
- const JsonTree_JsonMultilineLeafEditor = withCanvasStrings(JsonMultilineLeafEditor, 'JsonMultilineLeafEditor');
251
- const JsonTree_JsonTypeBadge = withCanvasStrings(JsonTypeBadge, 'JsonTypeBadge');
252
282
  const JsonTree = JsonTree_JsonTreeView;
253
283
  export { JsonTree_JsonContainerEditor as JsonContainerEditor, JsonTree_JsonLeafValueEditor as JsonLeafValueEditor, JsonTree_JsonMultilineLeafEditor as JsonMultilineLeafEditor, JsonTree, JsonTree_JsonTreeToolbar as JsonTreeToolbar, JsonTree_JsonTreeView as JsonTreeView, JsonTree_JsonTreeViewProvider as JsonTreeViewProvider, JsonTree_JsonTypeBadge as JsonTypeBadge, useCanvasJsonTreeViewStrings };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uipath/apollo-react",
3
- "version": "6.78.0",
3
+ "version": "6.78.1",
4
4
  "description": "Apollo Design System - React component library with Material UI theming",
5
5
  "repository": {
6
6
  "type": "git",