@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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @bubblydoo/uxp-toolkit@0.0.10 build /home/runner/work/uxp-toolkit/uxp-toolkit/packages/uxp-toolkit
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
  CLI Building entry: src/index.ts, src/commands-library/index.ts
@@ -8,12 +8,12 @@
8
8
  CLI Using tsup config: /home/runner/work/uxp-toolkit/uxp-toolkit/packages/uxp-toolkit/tsup.config.ts
9
9
  CLI Target: es2022
10
10
  ESM Build start
11
- ESM dist/index.js 15.95 KB
11
+ ESM dist/index.js 15.93 KB
12
12
  ESM dist/chunk-JBXCIUBZ.js 5.14 KB
13
13
  ESM dist/commands-library/index.js 8.76 KB
14
14
  ESM ⚡️ Build success in 34ms
15
15
  DTS Build start
16
- DTS ⚡️ Build success in 3797ms
17
- DTS dist/index.d.ts 6.57 KB
16
+ DTS ⚡️ Build success in 3925ms
17
+ DTS dist/index.d.ts 6.52 KB
18
18
  DTS dist/commands-library/index.d.ts 4.43 KB
19
- DTS dist/psLayerRef-CGbTO4a5.d.ts 2.86 KB
19
+ DTS dist/psLayerRef-BJKcxKbm.d.ts 2.74 KB
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @bubblydoo/uxp-toolkit
2
2
 
3
+ ## 0.0.11
4
+
5
+ ### Patch Changes
6
+
7
+ - 8e43414: Add Photoshop mcp server
8
+
3
9
  ## 0.0.10
4
10
 
5
11
  ### Patch Changes
@@ -1,5 +1,5 @@
1
- import { P as PsLayerRef, a as UTCommandModifying, b as UTCommandNonModifying } from '../psLayerRef-CGbTO4a5.js';
2
- export { i as createMultiGetDocumentCommand } from '../psLayerRef-CGbTO4a5.js';
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-CGbTO4a5.js';
2
- export { C as CorrectBatchPlayOptions, 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-CGbTO4a5.js';
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, utLayersToTree, utLayersToText as utTreeToText, uxpEntrypointsSchema };
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
@@ -583,7 +583,7 @@ export {
583
583
  suspendHistory,
584
584
  utLayerToDomLayer,
585
585
  utLayersToDomLayers,
586
+ utLayersToText,
586
587
  utLayersToTree,
587
- utLayersToText as utTreeToText,
588
588
  uxpEntrypointsSchema
589
589
  };
@@ -28,10 +28,7 @@ declare function createMultiGetDocumentCommand(docId: number): UTCommandNonModif
28
28
  }>;
29
29
 
30
30
  type P = Parameters<typeof action.batchPlay>;
31
- type CorrectBatchPlayOptions = P[1] & {
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 CorrectBatchPlayOptions as C, 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 };
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.10",
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.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.10"
47
+ "@bubblydoo/uxp-test-framework": "0.0.11"
48
48
  },
49
49
  "scripts": {
50
50
  "build": "tsup",
@@ -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, type CorrectBatchPlayOptions } from './core/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 as utTreeToText } from './ut-tree/utLayersToText';
64
+ export { utLayersToText } from './ut-tree/utLayersToText';
65
65
 
66
66
  export {
67
67
  utLayersToTree,