@bubblydoo/uxp-toolkit 0.0.10 → 0.0.11
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/.turbo/turbo-build.log +5 -5
- package/CHANGELOG.md +6 -0
- package/dist/commands-library/index.d.ts +2 -2
- package/dist/index.d.ts +3 -3
- package/dist/index.js +1 -1
- package/dist/{psLayerRef-CGbTO4a5.d.ts → psLayerRef-BJKcxKbm.d.ts} +2 -5
- package/package.json +3 -3
- package/src/core/batchPlay.ts +1 -6
- package/src/index.ts +2 -2
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @bubblydoo/uxp-toolkit@0.0.
|
|
2
|
+
> @bubblydoo/uxp-toolkit@0.0.11 build /home/runner/work/uxp-toolkit/uxp-toolkit/packages/uxp-toolkit
|
|
3
3
|
> tsup
|
|
4
4
|
|
|
5
5
|
[34mCLI[39m Building entry: src/index.ts, src/commands-library/index.ts
|
|
@@ -8,12 +8,12 @@
|
|
|
8
8
|
[34mCLI[39m Using tsup config: /home/runner/work/uxp-toolkit/uxp-toolkit/packages/uxp-toolkit/tsup.config.ts
|
|
9
9
|
[34mCLI[39m Target: es2022
|
|
10
10
|
[34mESM[39m Build start
|
|
11
|
-
[32mESM[39m [1mdist/index.js [22m[32m15.
|
|
11
|
+
[32mESM[39m [1mdist/index.js [22m[32m15.93 KB[39m
|
|
12
12
|
[32mESM[39m [1mdist/chunk-JBXCIUBZ.js [22m[32m5.14 KB[39m
|
|
13
13
|
[32mESM[39m [1mdist/commands-library/index.js [22m[32m8.76 KB[39m
|
|
14
14
|
[32mESM[39m ⚡️ Build success in 34ms
|
|
15
15
|
[34mDTS[39m Build start
|
|
16
|
-
[32mDTS[39m ⚡️ Build success in
|
|
17
|
-
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.
|
|
16
|
+
[32mDTS[39m ⚡️ Build success in 3925ms
|
|
17
|
+
[32mDTS[39m [1mdist/index.d.ts [22m[32m6.52 KB[39m
|
|
18
18
|
[32mDTS[39m [1mdist/commands-library/index.d.ts [22m[32m4.43 KB[39m
|
|
19
|
-
[32mDTS[39m [1mdist/psLayerRef-
|
|
19
|
+
[32mDTS[39m [1mdist/psLayerRef-BJKcxKbm.d.ts [22m[32m2.74 KB[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { P as PsLayerRef, a as UTCommandModifying, b as UTCommandNonModifying } from '../psLayerRef-
|
|
2
|
-
export { i as createMultiGetDocumentCommand } from '../psLayerRef-
|
|
1
|
+
import { P as PsLayerRef, a as UTCommandModifying, b as UTCommandNonModifying } from '../psLayerRef-BJKcxKbm.js';
|
|
2
|
+
export { i as createMultiGetDocumentCommand } from '../psLayerRef-BJKcxKbm.js';
|
|
3
3
|
import 'photoshop';
|
|
4
4
|
import 'zod';
|
|
5
5
|
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { c as createModifyingBatchPlayContext, P as PsLayerRef } from './psLayerRef-
|
|
2
|
-
export {
|
|
1
|
+
import { c as createModifyingBatchPlayContext, P as PsLayerRef } from './psLayerRef-BJKcxKbm.js';
|
|
2
|
+
export { U as UTCommandBase, a as UTCommandModifying, b as UTCommandNonModifying, d as UTCommandResult, e as batchPlay, f as batchPlayCommand, g as batchPlayCommands, h as createCommand, i as createMultiGetDocumentCommand } from './psLayerRef-BJKcxKbm.js';
|
|
3
3
|
import * as photoshop from 'photoshop';
|
|
4
4
|
import { ExecutionContext, ExecuteAsModalOptions, Document, Layer } from 'photoshop';
|
|
5
5
|
import ErrorStackParser from 'error-stack-parser';
|
|
@@ -150,4 +150,4 @@ declare function utLayersToTree(layer: UTLayer[]): Tree<UTLayerWithoutChildren>;
|
|
|
150
150
|
declare function utLayerToDomLayer(layer: UTLayer): Layer;
|
|
151
151
|
declare function utLayersToDomLayers(layers: UTLayer[]): Layer[];
|
|
152
152
|
|
|
153
|
-
export { type BasicStackFrame, type ExtendedExecutionContext, type LayerDescriptor, type LayerRef, PsLayerRef, type SuspendHistoryContext, type Tree, type UTLayer, type UTLayerPickKeys, type UTLayerWithoutChildren, copyToClipboard, createModifyingBatchPlayContext, executeAsModal, executeAsModalAndSuspendHistory, flattenTree, getBasicStackFrameAbsoluteFilePath, getDocumentLayerDescriptors, getFlattenedDomLayersList, getLayerEffects, isFile, isFolder, mapTree, mapTreeRef, openFileByPath, parseUxpErrorSourcemaps, photoshopDomLayersToTree, photoshopGetApplicationInfo, photoshopLayerDescriptorsToUTLayers, readFromClipboard, suspendHistory, utLayerToDomLayer, utLayersToDomLayers,
|
|
153
|
+
export { type BasicStackFrame, type ExtendedExecutionContext, type LayerDescriptor, type LayerRef, PsLayerRef, type SuspendHistoryContext, type Tree, type UTLayer, type UTLayerPickKeys, type UTLayerWithoutChildren, copyToClipboard, createModifyingBatchPlayContext, executeAsModal, executeAsModalAndSuspendHistory, flattenTree, getBasicStackFrameAbsoluteFilePath, getDocumentLayerDescriptors, getFlattenedDomLayersList, getLayerEffects, isFile, isFolder, mapTree, mapTreeRef, openFileByPath, parseUxpErrorSourcemaps, photoshopDomLayersToTree, photoshopGetApplicationInfo, photoshopLayerDescriptorsToUTLayers, readFromClipboard, suspendHistory, utLayerToDomLayer, utLayersToDomLayers, utLayersToText, utLayersToTree, uxpEntrypointsSchema };
|
package/dist/index.js
CHANGED
|
@@ -28,10 +28,7 @@ declare function createMultiGetDocumentCommand(docId: number): UTCommandNonModif
|
|
|
28
28
|
}>;
|
|
29
29
|
|
|
30
30
|
type P = Parameters<typeof action.batchPlay>;
|
|
31
|
-
|
|
32
|
-
immediateRedraw?: boolean;
|
|
33
|
-
};
|
|
34
|
-
declare function batchPlay(actions: P[0], options?: CorrectBatchPlayOptions): Promise<photoshop.ActionDescriptor[]>;
|
|
31
|
+
declare function batchPlay(actions: P[0], options?: P[1]): Promise<photoshop.ActionDescriptor[]>;
|
|
35
32
|
|
|
36
33
|
interface UTCommandBase<T> {
|
|
37
34
|
descriptor: ActionDescriptor;
|
|
@@ -66,4 +63,4 @@ interface PsLayerRef {
|
|
|
66
63
|
docId: number;
|
|
67
64
|
}
|
|
68
65
|
|
|
69
|
-
export { type
|
|
66
|
+
export { type PsLayerRef as P, type UTCommandBase as U, type UTCommandModifying as a, type UTCommandNonModifying as b, createModifyingBatchPlayContext as c, type UTCommandResult as d, batchPlay as e, batchPlayCommand as f, batchPlayCommands as g, createCommand as h, createMultiGetDocumentCommand as i };
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bubblydoo/uxp-toolkit",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.11",
|
|
5
5
|
"author": "Hans Otto Wirtz <hansottowirtz@gmail.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"homepage": "https://github.com/bubblydoo/uxp-toolkit/tree/main/packages/uxp-toolkit",
|
|
@@ -41,10 +41,10 @@
|
|
|
41
41
|
"typescript": "^5.8.3",
|
|
42
42
|
"vitest": "^4.0.18",
|
|
43
43
|
"zod": "^4.3.6",
|
|
44
|
-
"@adobe-uxp-types/photoshop": "0.1.
|
|
44
|
+
"@adobe-uxp-types/photoshop": "0.1.3",
|
|
45
45
|
"@adobe-uxp-types/uxp": "0.1.1",
|
|
46
46
|
"@bubblydoo/tsconfig": "0.0.3",
|
|
47
|
-
"@bubblydoo/uxp-test-framework": "0.0.
|
|
47
|
+
"@bubblydoo/uxp-test-framework": "0.0.11"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"build": "tsup",
|
package/src/core/batchPlay.ts
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
import { action } from 'photoshop';
|
|
2
2
|
|
|
3
3
|
type P = Parameters<typeof action.batchPlay>;
|
|
4
|
-
|
|
5
|
-
export type CorrectBatchPlayOptions = P[1] & {
|
|
6
|
-
immediateRedraw?: boolean;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export async function batchPlay(actions: P[0], options?: CorrectBatchPlayOptions) {
|
|
4
|
+
export async function batchPlay(actions: P[0], options?: P[1]) {
|
|
10
5
|
return action.batchPlay(actions, {
|
|
11
6
|
...options,
|
|
12
7
|
modalBehavior: 'execute',
|
package/src/index.ts
CHANGED
|
@@ -4,7 +4,7 @@ export { createMultiGetDocumentCommand } from './commands-library/multiGetDocume
|
|
|
4
4
|
export { executeAsModalAndSuspendHistory } from './core-wrappers/executeAsModalAndSuspendHistory';
|
|
5
5
|
|
|
6
6
|
// Core – batchPlay & command building
|
|
7
|
-
export { batchPlay
|
|
7
|
+
export { batchPlay } from './core/batchPlay';
|
|
8
8
|
export {
|
|
9
9
|
batchPlayCommand,
|
|
10
10
|
batchPlayCommands,
|
|
@@ -61,7 +61,7 @@ export {
|
|
|
61
61
|
export { type PsLayerRef } from './ut-tree/psLayerRef';
|
|
62
62
|
|
|
63
63
|
// UT tree – text
|
|
64
|
-
export { utLayersToText
|
|
64
|
+
export { utLayersToText } from './ut-tree/utLayersToText';
|
|
65
65
|
|
|
66
66
|
export {
|
|
67
67
|
utLayersToTree,
|