@vertesia/ui 1.1.1-dev.20260505.163000Z → 1.3.0

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 (48) hide show
  1. package/lib/esm/features/store/collections/BrowseCollectionView.js +1 -1
  2. package/lib/esm/features/store/collections/BrowseCollectionView.js.map +1 -1
  3. package/lib/esm/features/store/collections/EditCollectionView.js +23 -3
  4. package/lib/esm/features/store/collections/EditCollectionView.js.map +1 -1
  5. package/lib/esm/features/store/objects/components/ContentOverview.js +13 -6
  6. package/lib/esm/features/store/objects/components/ContentOverview.js.map +1 -1
  7. package/lib/esm/features/store/objects/components/TextEditorPanel.js +3 -1
  8. package/lib/esm/features/store/objects/components/TextEditorPanel.js.map +1 -1
  9. package/lib/esm/features/store/objects/components/useDownloadFile.js +2 -0
  10. package/lib/esm/features/store/objects/components/useDownloadFile.js.map +1 -1
  11. package/lib/esm/i18n/locales/en.json +3 -0
  12. package/lib/esm/widgets/json-view/JSONEditor.js +53 -0
  13. package/lib/esm/widgets/json-view/JSONEditor.js.map +1 -0
  14. package/lib/esm/widgets/json-view/index.js +1 -0
  15. package/lib/esm/widgets/json-view/index.js.map +1 -1
  16. package/lib/tsconfig.tsbuildinfo +1 -1
  17. package/lib/types/features/store/collections/BrowseCollectionView.d.ts.map +1 -1
  18. package/lib/types/features/store/collections/EditCollectionView.d.ts.map +1 -1
  19. package/lib/types/features/store/objects/components/TextEditorPanel.d.ts.map +1 -1
  20. package/lib/types/features/store/objects/components/useDownloadFile.d.ts +4 -0
  21. package/lib/types/features/store/objects/components/useDownloadFile.d.ts.map +1 -1
  22. package/lib/types/widgets/json-view/JSONEditor.d.ts +28 -0
  23. package/lib/types/widgets/json-view/JSONEditor.d.ts.map +1 -0
  24. package/lib/types/widgets/json-view/index.d.ts +1 -0
  25. package/lib/types/widgets/json-view/index.d.ts.map +1 -1
  26. package/lib/vertesia-ui-core.js +1 -1
  27. package/lib/vertesia-ui-core.js.map +1 -1
  28. package/lib/vertesia-ui-features.js +1 -1
  29. package/lib/vertesia-ui-features.js.map +1 -1
  30. package/lib/vertesia-ui-i18n.js +1 -1
  31. package/lib/vertesia-ui-i18n.js.map +1 -1
  32. package/lib/vertesia-ui-layout.js +1 -1
  33. package/lib/vertesia-ui-layout.js.map +1 -1
  34. package/lib/vertesia-ui-session.js +1 -1
  35. package/lib/vertesia-ui-session.js.map +1 -1
  36. package/lib/vertesia-ui-shell.js +1 -1
  37. package/lib/vertesia-ui-shell.js.map +1 -1
  38. package/lib/vertesia-ui-widgets.js +1 -1
  39. package/lib/vertesia-ui-widgets.js.map +1 -1
  40. package/package.json +5 -5
  41. package/src/features/store/collections/BrowseCollectionView.tsx +8 -4
  42. package/src/features/store/collections/EditCollectionView.tsx +53 -2
  43. package/src/features/store/objects/components/ContentOverview.tsx +58 -40
  44. package/src/features/store/objects/components/TextEditorPanel.tsx +3 -1
  45. package/src/features/store/objects/components/useDownloadFile.ts +6 -0
  46. package/src/i18n/locales/en.json +3 -0
  47. package/src/widgets/json-view/JSONEditor.tsx +89 -0
  48. package/src/widgets/json-view/index.ts +1 -0
@@ -1 +1 @@
1
- {"version":3,"file":"BrowseCollectionView.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/BrowseCollectionView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqC,MAAM,kBAAkB,CAAC;AAkBjF,UAAU,yBAAyB;IAC/B,UAAU,EAAE,UAAU,CAAC;CAC1B;AACD,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,EAAE,yBAAyB,2CAsB7E"}
1
+ {"version":3,"file":"BrowseCollectionView.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/BrowseCollectionView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAqC,MAAM,kBAAkB,CAAC;AAkBjF,UAAU,yBAAyB;IAC/B,UAAU,EAAE,UAAU,CAAC;CAC1B;AACD,wBAAgB,oBAAoB,CAAC,EAAE,UAAU,EAAE,EAAE,yBAAyB,2CA0B7E"}
@@ -1 +1 @@
1
- {"version":3,"file":"EditCollectionView.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/EditCollectionView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAkE,MAAM,kBAAkB,CAAC;AAoB9G,UAAU,uBAAuB;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,uBAAuB,2CAqNlF"}
1
+ {"version":3,"file":"EditCollectionView.d.ts","sourceRoot":"","sources":["../../../../../src/features/store/collections/EditCollectionView.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAuF,MAAM,kBAAkB,CAAC;AAsBnI,UAAU,uBAAuB;IAC7B,UAAU,EAAE,UAAU,CAAC;IACvB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AACD,wBAAgB,kBAAkB,CAAC,EAAE,OAAO,EAAE,UAAU,EAAE,EAAE,uBAAuB,2CAsQlF"}
@@ -1 +1 @@
1
- {"version":3,"file":"TextEditorPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/TextEditorPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQjD,UAAU,oBAAoB;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAgBD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,oBAAoB,2CAgHvF"}
1
+ {"version":3,"file":"TextEditorPanel.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/TextEditorPanel.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AAQjD,UAAU,oBAAoB;IAC1B,MAAM,EAAE,aAAa,CAAC;IACtB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,IAAI,CAAC;IACpB,OAAO,EAAE,MAAM,IAAI,CAAC;CACvB;AAgBD,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,oBAAoB,2CAkHvF"}
@@ -14,6 +14,10 @@ export interface RenderAndDownloadOptions {
14
14
  artifactRunId?: string;
15
15
  /** Additional Pandoc options */
16
16
  pandocOptions?: string[];
17
+ /** Use Vertesia default branded template (default: true for PDF) */
18
+ useDefaultTemplate?: boolean;
19
+ /** Object ID of a content object containing a custom LaTeX template to use instead of the default */
20
+ templateObjectId?: string;
17
21
  }
18
22
  export interface UseDownloadFileResult {
19
23
  /** Download a file from a content source URI (gs:// or file path) via the files API */
@@ -1 +1 @@
1
- {"version":3,"file":"useDownloadFile.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useDownloadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAyB,MAAM,kBAAkB,CAAC;AAElF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,cAAc,GAAG,UAAU,CAAC;IACpC,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACrC,0BAA0B;IAC1B,MAAM,EAAE,uBAAuB,CAAC;IAChC,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,qBAAqB;IAClC,uFAAuF;IACvF,yBAAyB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E,mEAAmE;IACnE,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,wEAAwE;IACxE,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,kEAAkE;IAClE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrF,kDAAkD;IAClD,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,sBAAsB,GAAG,qBAAqB,CAiJhG"}
1
+ {"version":3,"file":"useDownloadFile.d.ts","sourceRoot":"","sources":["../../../../../../src/features/store/objects/components/useDownloadFile.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9D,OAAO,EAAE,uBAAuB,EAAyB,MAAM,kBAAkB,CAAC;AAElF,OAAO,EAAE,OAAO,EAAE,MAAM,mBAAmB,CAAC;AAG5C,MAAM,WAAW,sBAAsB;IACnC,MAAM,EAAE,cAAc,GAAG,UAAU,CAAC;IACpC,KAAK,EAAE,OAAO,CAAC;CAClB;AAED,MAAM,WAAW,wBAAwB;IACrC,0BAA0B;IAC1B,MAAM,EAAE,uBAAuB,CAAC;IAChC,6BAA6B;IAC7B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6DAA6D;IAC7D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,gCAAgC;IAChC,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,oEAAoE;IACpE,kBAAkB,CAAC,EAAE,OAAO,CAAC;IAC7B,qGAAqG;IACrG,gBAAgB,CAAC,EAAE,MAAM,CAAC;CAC7B;AAED,MAAM,WAAW,qBAAqB;IAClC,uFAAuF;IACvF,yBAAyB,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IAC7E,mEAAmE;IACnE,eAAe,EAAE,CAAC,GAAG,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,KAAK,IAAI,CAAC;IAC1D,wEAAwE;IACxE,cAAc,EAAE,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACvF,kEAAkE;IAClE,aAAa,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,wBAAwB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrF,kDAAkD;IAClD,aAAa,EAAE,OAAO,CAAC;CAC1B;AAED;;;GAGG;AACH,wBAAgB,eAAe,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,sBAAsB,GAAG,qBAAqB,CAmJhG"}
@@ -0,0 +1,28 @@
1
+ import { IEditorApi } from '../monacoEditor/MonacoEditor';
2
+ export interface JSONEditorProps {
3
+ /** The JSON value to edit */
4
+ value: Record<string, any> | undefined | null;
5
+ /** Called when the user saves (value is the parsed JSON) */
6
+ onChange?: (value: Record<string, any>) => void;
7
+ /** Called on every valid edit (for controlled mode) */
8
+ onValidChange?: (value: Record<string, any>) => void;
9
+ /** If true, the editor is read-only */
10
+ readonly?: boolean;
11
+ /** Editor height (default: '200px') */
12
+ height?: string;
13
+ /** Placeholder text when value is empty */
14
+ placeholder?: string;
15
+ /** Additional CSS class */
16
+ className?: string;
17
+ }
18
+ /**
19
+ * Reusable JSON editor based on Monaco.
20
+ * Parses and validates JSON, reports errors.
21
+ */
22
+ export declare function JSONEditor({ value, onChange: _onChange, onValidChange, readonly, height, placeholder, className, }: JSONEditorProps): import("react/jsx-runtime").JSX.Element;
23
+ /**
24
+ * Get the current parsed value from a JSONEditor ref.
25
+ * Returns the parsed object or null if invalid.
26
+ */
27
+ export declare function getJSONEditorValue(editorRef: React.RefObject<IEditorApi | undefined>): Record<string, any> | null;
28
+ //# sourceMappingURL=JSONEditor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"JSONEditor.d.ts","sourceRoot":"","sources":["../../../../src/widgets/json-view/JSONEditor.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAgB,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAExE,MAAM,WAAW,eAAe;IAC5B,6BAA6B;IAC7B,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,SAAS,GAAG,IAAI,CAAC;IAC9C,4DAA4D;IAC5D,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IAChD,uDAAuD;IACvD,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,CAAC;IACrD,uCAAuC;IACvC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,uCAAuC;IACvC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,2CAA2C;IAC3C,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;CACtB;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,EACvB,KAAK,EACL,QAAQ,EAAE,SAAS,EACnB,aAAa,EACb,QAAgB,EAChB,MAAgB,EAChB,WAAW,EACX,SAAS,GACZ,EAAE,eAAe,2CA0CjB;AAED;;;GAGG;AACH,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,KAAK,CAAC,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAG,IAAI,CAOjH"}
@@ -1,6 +1,7 @@
1
1
  export type * from "./types.js";
2
2
  export * from "./JSONCode.js";
3
3
  export * from "./JSONDisplay.js";
4
+ export * from "./JSONEditor.js";
4
5
  export * from "./JSONView.js";
5
6
  export * from "./JSONSwitcher.js";
6
7
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widgets/json-view/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/widgets/json-view/index.ts"],"names":[],"mappings":"AAAA,mBAAmB,YAAY,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC"}