@reshotdev/screenshot 0.0.1-beta.12 → 0.0.1-beta.14
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/README.md +67 -22
- package/package.json +18 -14
- package/src/commands/auth.js +37 -7
- package/src/commands/capture-dom.js +50 -0
- package/src/commands/compose.js +220 -0
- package/src/commands/doctor-release.js +7 -0
- package/src/commands/doctor-target.js +36 -4
- package/src/commands/drifts.js +13 -1
- package/src/commands/publish.js +183 -21
- package/src/commands/pull.js +9 -4
- package/src/commands/refresh.js +166 -0
- package/src/commands/setup-wizard.js +57 -3
- package/src/commands/status.js +22 -2
- package/src/commands/variation.js +194 -0
- package/src/index.js +190 -10
- package/src/lib/api-client.js +61 -35
- package/src/lib/auto-update/refresh.js +598 -0
- package/src/lib/auto-update/scene-runtime.compose.tsx +73 -0
- package/src/lib/auto-update/spec.js +89 -0
- package/src/lib/capture-engine.js +76 -2
- package/src/lib/capture-script-runner.js +289 -138
- package/src/lib/certification.js +23 -1
- package/src/lib/compose-context.js +156 -0
- package/src/lib/compose-pack.js +42 -0
- package/src/lib/compose-runtime.js +34 -0
- package/src/lib/compose-upload.js +142 -0
- package/src/lib/config.js +2 -2
- package/src/lib/dom-capture.js +64 -0
- package/src/lib/ensure-browser.js +147 -0
- package/src/lib/record-clip.js +83 -3
- package/src/lib/record-config.js +0 -4
- package/src/lib/release-doctor.js +11 -3
- package/src/lib/resolve-targets.js +60 -0
- package/src/lib/run-manifest.js +45 -0
- package/src/lib/ui-api-helpers.js +118 -0
- package/src/lib/ui-api.js +28 -820
- package/src/lib/ui-asset-cleanup.js +62 -0
- package/src/lib/ui-output-versions.js +165 -0
- package/src/lib/ui-recorder-routes.js +341 -0
- package/src/lib/ui-scenario-metadata.js +161 -0
- package/vendor/compose/dist/auto-update.cjs +5544 -0
- package/vendor/compose/dist/auto-update.mjs +5518 -0
- package/vendor/compose/dist/capture.cjs +1450 -0
- package/vendor/compose/dist/capture.mjs +1416 -0
- package/vendor/compose/dist/eligibility.cjs +5331 -0
- package/vendor/compose/dist/eligibility.mjs +5313 -0
- package/vendor/compose/dist/index.cjs +2046 -0
- package/vendor/compose/dist/index.mjs +1997 -0
- package/vendor/compose/dist/jsx-dev-runtime.cjs +55 -0
- package/vendor/compose/dist/jsx-dev-runtime.mjs +27 -0
- package/vendor/compose/dist/jsx-runtime.cjs +58 -0
- package/vendor/compose/dist/jsx-runtime.mjs +31 -0
- package/vendor/compose/dist/render.cjs +558 -0
- package/vendor/compose/dist/render.mjs +515 -0
- package/vendor/compose/dist/verify-cli.cjs +3806 -0
- package/vendor/compose/dist/verify-cli.mjs +3812 -0
- package/vendor/compose/dist/verify.cjs +3880 -0
- package/vendor/compose/dist/verify.mjs +3858 -0
- package/web/manager/dist/assets/{index-CvleJUur.js → index-D0S2otug.js} +56 -56
- package/web/manager/dist/index.html +1 -1
- package/src/commands/ingest.js +0 -458
- package/src/commands/setup.js +0 -165
- package/src/lib/playwright-runner.js +0 -252
|
@@ -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
|
+
};
|