@reshotdev/screenshot 0.0.1-beta.2 → 0.0.1-beta.20

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 (81) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +138 -47
  3. package/package.json +27 -16
  4. package/src/commands/auth.js +159 -30
  5. package/src/commands/capture-dom.js +50 -0
  6. package/src/commands/certify.js +62 -0
  7. package/src/commands/compose.js +220 -0
  8. package/src/commands/doctor-release.js +74 -0
  9. package/src/commands/doctor-target.js +108 -0
  10. package/src/commands/drifts.js +16 -69
  11. package/src/commands/import-tests.js +13 -13
  12. package/src/commands/init.js +16 -277
  13. package/src/commands/publish.js +484 -257
  14. package/src/commands/pull.js +302 -35
  15. package/src/commands/refresh.js +166 -0
  16. package/src/commands/run.js +292 -12
  17. package/src/commands/setup-wizard.js +348 -496
  18. package/src/commands/status.js +334 -126
  19. package/src/commands/sync.js +28 -236
  20. package/src/commands/ui.js +1 -1
  21. package/src/commands/variation.js +194 -0
  22. package/src/commands/verify-publish.js +46 -0
  23. package/src/index.js +383 -118
  24. package/src/lib/api-client.js +172 -60
  25. package/src/lib/auto-update/refresh.js +598 -0
  26. package/src/lib/auto-update/scene-runtime.compose.tsx +73 -0
  27. package/src/lib/auto-update/spec.js +89 -0
  28. package/src/lib/capture-engine.js +179 -9
  29. package/src/lib/capture-script-runner.js +639 -214
  30. package/src/lib/certification.js +887 -0
  31. package/src/lib/compose-context.js +156 -0
  32. package/src/lib/compose-pack.js +42 -0
  33. package/src/lib/compose-runtime.js +34 -0
  34. package/src/lib/compose-upload.js +142 -0
  35. package/src/lib/config.js +186 -81
  36. package/src/lib/dom-capture.js +64 -0
  37. package/src/lib/ensure-browser.js +147 -0
  38. package/src/lib/output-path-template.js +3 -3
  39. package/src/lib/record-cdp.js +288 -16
  40. package/src/lib/record-clip.js +83 -3
  41. package/src/lib/record-config.js +1 -5
  42. package/src/lib/release-doctor.js +321 -0
  43. package/src/lib/resolve-targets.js +60 -0
  44. package/src/lib/run-manifest.js +148 -0
  45. package/src/lib/standalone-mode.js +1 -1
  46. package/src/lib/storage-providers.js +5 -5
  47. package/src/lib/style-engine.js +5 -5
  48. package/src/lib/target-contract.js +292 -0
  49. package/src/lib/ui-api-helpers.js +118 -0
  50. package/src/lib/ui-api.js +31 -824
  51. package/src/lib/ui-asset-cleanup.js +62 -0
  52. package/src/lib/ui-output-versions.js +165 -0
  53. package/src/lib/ui-recorder-routes.js +341 -0
  54. package/src/lib/ui-scenario-metadata.js +161 -0
  55. package/vendor/compose/dist/auto-update.cjs +5544 -0
  56. package/vendor/compose/dist/auto-update.mjs +5518 -0
  57. package/vendor/compose/dist/capture.cjs +1450 -0
  58. package/vendor/compose/dist/capture.mjs +1416 -0
  59. package/vendor/compose/dist/eligibility.cjs +5331 -0
  60. package/vendor/compose/dist/eligibility.mjs +5313 -0
  61. package/vendor/compose/dist/index.cjs +2046 -0
  62. package/vendor/compose/dist/index.mjs +1997 -0
  63. package/vendor/compose/dist/jsx-dev-runtime.cjs +55 -0
  64. package/vendor/compose/dist/jsx-dev-runtime.mjs +27 -0
  65. package/vendor/compose/dist/jsx-runtime.cjs +58 -0
  66. package/vendor/compose/dist/jsx-runtime.mjs +31 -0
  67. package/vendor/compose/dist/render.cjs +558 -0
  68. package/vendor/compose/dist/render.mjs +515 -0
  69. package/vendor/compose/dist/verify-cli.cjs +3806 -0
  70. package/vendor/compose/dist/verify-cli.mjs +3812 -0
  71. package/vendor/compose/dist/verify.cjs +3880 -0
  72. package/vendor/compose/dist/verify.mjs +3858 -0
  73. package/web/manager/dist/assets/index-D0S2otug.js +507 -0
  74. package/web/manager/dist/index.html +1 -1
  75. package/src/commands/ci-run.js +0 -123
  76. package/src/commands/ci-setup.js +0 -288
  77. package/src/commands/ingest.js +0 -458
  78. package/src/commands/setup.js +0 -137
  79. package/src/commands/validate-docs.js +0 -529
  80. package/src/lib/playwright-runner.js +0 -252
  81. package/web/manager/dist/assets/index--ZgioErz.js +0 -507
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/jsx-dev-runtime.ts
21
+ var jsx_dev_runtime_exports = {};
22
+ __export(jsx_dev_runtime_exports, {
23
+ Fragment: () => Fragment,
24
+ jsx: () => jsxDEV,
25
+ jsxDEV: () => jsxDEV,
26
+ jsxs: () => jsxDEV
27
+ });
28
+ module.exports = __toCommonJS(jsx_dev_runtime_exports);
29
+
30
+ // src/jsx-runtime.ts
31
+ var Fragment = /* @__PURE__ */ Symbol("Fragment");
32
+ function normalizeChildren(value) {
33
+ if (value == null || value === false || value === true) return [];
34
+ if (Array.isArray(value)) return value.flatMap(normalizeChildren);
35
+ return [value];
36
+ }
37
+ function jsx(type, props, key) {
38
+ const nextProps = props ?? {};
39
+ const { children, ...rest } = nextProps;
40
+ return {
41
+ $$compose: true,
42
+ type,
43
+ props: rest,
44
+ children: normalizeChildren(children),
45
+ key
46
+ };
47
+ }
48
+ var jsxDEV = jsx;
49
+ // Annotate the CommonJS export names for ESM import in node:
50
+ 0 && (module.exports = {
51
+ Fragment,
52
+ jsx,
53
+ jsxDEV,
54
+ jsxs
55
+ });
@@ -0,0 +1,27 @@
1
+ import { createRequire as __reshotCreateRequire } from 'module'; const require = __reshotCreateRequire(import.meta.url);
2
+
3
+ // src/jsx-runtime.ts
4
+ var Fragment = /* @__PURE__ */ Symbol("Fragment");
5
+ function normalizeChildren(value) {
6
+ if (value == null || value === false || value === true) return [];
7
+ if (Array.isArray(value)) return value.flatMap(normalizeChildren);
8
+ return [value];
9
+ }
10
+ function jsx(type, props, key) {
11
+ const nextProps = props ?? {};
12
+ const { children, ...rest } = nextProps;
13
+ return {
14
+ $$compose: true,
15
+ type,
16
+ props: rest,
17
+ children: normalizeChildren(children),
18
+ key
19
+ };
20
+ }
21
+ var jsxDEV = jsx;
22
+ export {
23
+ Fragment,
24
+ jsxDEV as jsx,
25
+ jsxDEV,
26
+ jsxDEV as jsxs
27
+ };
@@ -0,0 +1,58 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/jsx-runtime.ts
21
+ var jsx_runtime_exports = {};
22
+ __export(jsx_runtime_exports, {
23
+ Fragment: () => Fragment,
24
+ jsx: () => jsx,
25
+ jsxDEV: () => jsxDEV,
26
+ jsxs: () => jsxs,
27
+ normalizeChildren: () => normalizeChildren
28
+ });
29
+ module.exports = __toCommonJS(jsx_runtime_exports);
30
+ var Fragment = /* @__PURE__ */ Symbol("Fragment");
31
+ function normalizeChildren(value) {
32
+ if (value == null || value === false || value === true) return [];
33
+ if (Array.isArray(value)) return value.flatMap(normalizeChildren);
34
+ return [value];
35
+ }
36
+ function jsx(type, props, key) {
37
+ const nextProps = props ?? {};
38
+ const { children, ...rest } = nextProps;
39
+ return {
40
+ $$compose: true,
41
+ type,
42
+ props: rest,
43
+ children: normalizeChildren(children),
44
+ key
45
+ };
46
+ }
47
+ function jsxs(type, props, key) {
48
+ return jsx(type, props, key);
49
+ }
50
+ var jsxDEV = jsx;
51
+ // Annotate the CommonJS export names for ESM import in node:
52
+ 0 && (module.exports = {
53
+ Fragment,
54
+ jsx,
55
+ jsxDEV,
56
+ jsxs,
57
+ normalizeChildren
58
+ });
@@ -0,0 +1,31 @@
1
+ import { createRequire as __reshotCreateRequire } from 'module'; const require = __reshotCreateRequire(import.meta.url);
2
+
3
+ // src/jsx-runtime.ts
4
+ var Fragment = /* @__PURE__ */ Symbol("Fragment");
5
+ function normalizeChildren(value) {
6
+ if (value == null || value === false || value === true) return [];
7
+ if (Array.isArray(value)) return value.flatMap(normalizeChildren);
8
+ return [value];
9
+ }
10
+ function jsx(type, props, key) {
11
+ const nextProps = props ?? {};
12
+ const { children, ...rest } = nextProps;
13
+ return {
14
+ $$compose: true,
15
+ type,
16
+ props: rest,
17
+ children: normalizeChildren(children),
18
+ key
19
+ };
20
+ }
21
+ function jsxs(type, props, key) {
22
+ return jsx(type, props, key);
23
+ }
24
+ var jsxDEV = jsx;
25
+ export {
26
+ Fragment,
27
+ jsx,
28
+ jsxDEV,
29
+ jsxs,
30
+ normalizeChildren
31
+ };