@opencraw/studio 0.0.7 → 0.0.9

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 (62) hide show
  1. package/README.md +31 -5
  2. package/dist/index.esm.js +3114 -694
  3. package/dist/src/browser-provisioning/ensure-browser-launch.use-case.d.ts +12 -0
  4. package/dist/src/browser-provisioning/index.d.ts +2 -0
  5. package/dist/src/browser-provisioning/install-chromium.use-case.d.ts +2 -0
  6. package/dist/src/browser-provisioning/missing-browser.policy.d.ts +3 -0
  7. package/dist/src/document-view/deck-view.mapper.d.ts +70 -0
  8. package/dist/src/document-view/index.d.ts +11 -0
  9. package/dist/src/document-view/pdf-view.mapper.d.ts +47 -0
  10. package/dist/src/document-view/table-preview.use-case.d.ts +152 -0
  11. package/dist/src/document-view/tree-view.mapper.d.ts +47 -0
  12. package/dist/src/document-view/workbook-view.mapper.d.ts +51 -0
  13. package/dist/src/flow-recording/action-to-step.mapper.d.ts +16 -0
  14. package/dist/src/flow-recording/index.d.ts +13 -0
  15. package/dist/src/flow-recording/next-link.policy.d.ts +27 -0
  16. package/dist/src/flow-recording/recorded-action.contract.d.ts +114 -0
  17. package/dist/src/flow-recording/recorder-script.client.d.ts +48 -0
  18. package/dist/src/flow-recording/recorder-session.use-case.d.ts +67 -0
  19. package/dist/src/flow-recording/secret-field.policy.d.ts +33 -0
  20. package/dist/src/flow-recording/wait-insertion.policy.d.ts +26 -0
  21. package/dist/src/index.d.ts +2 -2
  22. package/dist/src/page-inspector/dom-tree.mapper.d.ts +32 -0
  23. package/dist/src/page-inspector/index.d.ts +7 -0
  24. package/dist/src/page-inspector/page-data.algorithm.d.ts +39 -0
  25. package/dist/src/page-inspector/responses-seen.use-case.d.ts +36 -0
  26. package/dist/src/page-snapshot/index.d.ts +3 -0
  27. package/dist/src/page-snapshot/pdf-bytes.use-case.d.ts +16 -0
  28. package/dist/src/page-snapshot/reread-csv.use-case.d.ts +22 -0
  29. package/dist/src/page-snapshot/take-snapshot.use-case.d.ts +26 -1
  30. package/dist/src/studio-api/command.contract.d.ts +300 -0
  31. package/dist/src/studio-api/deck-preview-view.contract.d.ts +28 -0
  32. package/dist/src/studio-api/deck-view.contract.d.ts +127 -0
  33. package/dist/src/studio-api/document-tree-view.contract.d.ts +26 -0
  34. package/dist/src/studio-api/event.contract.d.ts +45 -0
  35. package/dist/src/studio-api/grid-preview-view.contract.d.ts +26 -0
  36. package/dist/src/studio-api/grid-view.contract.d.ts +75 -0
  37. package/dist/src/studio-api/index.d.ts +22 -4
  38. package/dist/src/studio-api/inspect-view.contract.d.ts +62 -0
  39. package/dist/src/studio-api/pdf-view.contract.d.ts +66 -0
  40. package/dist/src/studio-api/responses-seen-view.contract.d.ts +20 -0
  41. package/dist/src/studio-api/snapshot-view.contract.d.ts +22 -1
  42. package/dist/src/studio-api/table-preview-view.contract.d.ts +65 -0
  43. package/dist/src/studio-server/deck-preview.handler.d.ts +17 -0
  44. package/dist/src/studio-server/deck-view.handler.d.ts +15 -0
  45. package/dist/src/studio-server/document-tree.handler.d.ts +14 -0
  46. package/dist/src/studio-server/grid-preview.handler.d.ts +17 -0
  47. package/dist/src/studio-server/grid-view.handler.d.ts +20 -0
  48. package/dist/src/studio-server/inspect-page.handler.d.ts +18 -0
  49. package/dist/src/studio-server/pdf-bytes.handler.d.ts +17 -0
  50. package/dist/src/studio-server/pdf-view.handler.d.ts +14 -0
  51. package/dist/src/studio-server/recording.handler.d.ts +33 -0
  52. package/dist/src/studio-server/responses-seen.handler.d.ts +16 -0
  53. package/dist/src/studio-server/studio-http.use-case.d.ts +3 -1
  54. package/dist/src/studio-server/table-preview.handler.d.ts +16 -0
  55. package/dist/src/studio-server/workspace.store.d.ts +6 -2
  56. package/dist/ui/assets/index-CiZ4i-q5.js +34 -0
  57. package/dist/ui/assets/pdf-De9LBx2x.js +56 -0
  58. package/dist/ui/assets/pdf.worker.min-BmVo14Nb.mjs +28 -0
  59. package/dist/ui/assets/pdf.worker.min-D7i8o3wR.js +1 -0
  60. package/dist/ui/index.html +1 -1
  61. package/package.json +3 -2
  62. package/dist/ui/assets/index-DV8i4Zza.js +0 -13
package/README.md CHANGED
@@ -1,11 +1,37 @@
1
+ <p align="center">
2
+ <img src="https://raw.githubusercontent.com/russoedu/open.craw/main/docs/assets/opencraw-logo.svg" alt="OpenCraw" width="360">
3
+ </p>
4
+
1
5
  # @opencraw/studio
2
6
 
3
- Generated by [MoNecromanCI](https://github.com/russoedu/MoNecromanCi).
7
+ A visual editor for [OpenCraw](https://github.com/russoedu/open.craw) recipes: open a site or a document,
8
+ click the data you want, and get a recipe that runs — the same engine, the same JSON files, no hidden state.
9
+
10
+ ## Install
11
+
12
+ ```sh
13
+ npm install -g @opencraw/cli @opencraw/studio
14
+ ```
15
+
16
+ ## Start
17
+
18
+ ```sh
19
+ opencraw studio recipes/ # the cli delegates to this package when it's installed
20
+ npx @opencraw/studio recipes/ # or run it directly, without the cli
21
+ ```
22
+
23
+ Either opens a local server (`127.0.0.1` only, behind a random access token) and prints the URL to open:
4
24
 
5
- ## Building
25
+ ```text
26
+ OpenCraw Studio: http://127.0.0.1:52341/?token=8f2a1c9e4b7d3f6a0e5c8b1d2a4f7e9c
27
+ Workspace: /home/you/project/recipes
28
+ ```
6
29
 
7
- Run `nx build @opencraw/studio` to build this project.
30
+ `recipes/` can already have `.input.json`/`.output.json` files in it, or be empty — the studio's own
31
+ **+ New recipe** writes a minimal, valid pair to start from.
8
32
 
9
- ## Running unit tests
33
+ ## Learn more
10
34
 
11
- Run `nx test @opencraw/studio` to execute the unit tests via [Jest](https://jestjs.io).
35
+ [**The OpenCraw Studio manual**](https://github.com/russoedu/open.craw/blob/main/docs/studio/manual.md)
36
+ builds one real recipe end to end, tab by tab: picking on a live page, the Record tab's mapping, the
37
+ document canvases (JSON, PDF, Excel/CSV, PowerPoint), recording a login, and the JSON editor.