@ps-generator-bridge/generator 0.1.0
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/LICENSE +21 -0
- package/dist/contract-C4vydf6-.d.ts +1270 -0
- package/dist/contract.d.ts +3 -0
- package/dist/contract.js +19 -0
- package/dist/contract.js.map +1 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +2482 -0
- package/dist/index.js.map +1 -0
- package/jsx/Action/autoCutout.jsx +12 -0
- package/jsx/Action/redo.jsx +5 -0
- package/jsx/Action/removeBackground.jsx +10 -0
- package/jsx/Common/alert.jsx +4 -0
- package/jsx/Common/debug.jsx +43 -0
- package/jsx/Common/event-dispatch.jsx +4 -0
- package/jsx/Document/exportDocument.jsx +128 -0
- package/jsx/Document/getDocumentInfo.jsx +222 -0
- package/jsx/Document/openPsd.jsx +6 -0
- package/jsx/Document/openPsdFile.jsx +7 -0
- package/jsx/Document/saveDocument.jsx +37 -0
- package/jsx/Layer/addImageLayer.jsx +182 -0
- package/jsx/Layer/createSelectionStroke.jsx +44 -0
- package/jsx/Layer/getActiveLayerID.jsx +1 -0
- package/jsx/Layer/getLayerBounds.jsx +114 -0
- package/jsx/Layer/getLayerInfo.jsx +323 -0
- package/jsx/Layer/getLayerPixmap.jsx +337 -0
- package/jsx/Layer/getSelection.jsx +6 -0
- package/jsx/Layer/layer.jsx +284 -0
- package/jsx/Layer/saveEngineDataToLayer.jsx +26 -0
- package/jsx/Layer/setLayerWorkpathMask.jsx +126 -0
- package/jsx/Layer/transformLayer.jsx +121 -0
- package/jsx/Selection/getSelectionPath.jsx +389 -0
- package/jsx/Selection/pathtosvg.jsx +257 -0
- package/jsx/Selection/registerEvent.jsx +10 -0
- package/jsx/Selection/selectiontopath.jsx +9 -0
- package/jsx/polyfills/Array.js +159 -0
- package/jsx/polyfills/Function.js +29 -0
- package/jsx/polyfills/JSON.js +182 -0
- package/jsx/polyfills/Number.js +24 -0
- package/jsx/polyfills/Object.js +80 -0
- package/jsx/polyfills/String.js +87 -0
- package/jsx/types/extendscript/README.md +34 -0
- package/jsx/types/extendscript/actions.d.ts +148 -0
- package/jsx/types/extendscript/application.d.ts +74 -0
- package/jsx/types/extendscript/channel.d.ts +70 -0
- package/jsx/types/extendscript/color.d.ts +92 -0
- package/jsx/types/extendscript/document.d.ts +110 -0
- package/jsx/types/extendscript/enums.d.ts +796 -0
- package/jsx/types/extendscript/index.d.ts +504 -0
- package/jsx/types/extendscript/layer.d.ts +530 -0
- package/jsx/types/extendscript/misc.d.ts +274 -0
- package/jsx/types/extendscript/open-options.d.ts +86 -0
- package/jsx/types/extendscript/path.d.ts +196 -0
- package/jsx/types/extendscript/save-options.d.ts +144 -0
- package/jsx/types/extendscript/selection.d.ts +191 -0
- package/jsx/types/extendscript/text.d.ts +169 -0
- package/main.js +16 -0
- package/package.json +75 -0
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { A as ActionModuleApi, B as Bounds, C as CosServiceApi, D as DocumentModuleApi, I as ImageChangedEvent, c as ImageChangedLayer, d as ImageModuleApi, e as ImageResult, f as JsxRunnerApi, L as LayerModuleApi, g as LayerSpec, h as PhotoshopEventListener, i as PhotoshopEventMap, j as PhotoshopEvents, k as PsBounds, l as PsDocument, m as PsLayer, n as PsRect } from './contract-C4vydf6-.js';
|
|
2
|
+
import 'node:stream';
|
|
3
|
+
import 'node:events';
|
package/dist/contract.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
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 __copyProps = (to, from, except, desc) => {
|
|
7
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
+
for (let key of __getOwnPropNames(from))
|
|
9
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
+
}
|
|
12
|
+
return to;
|
|
13
|
+
};
|
|
14
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
15
|
+
|
|
16
|
+
// src/contract.ts
|
|
17
|
+
var contract_exports = {};
|
|
18
|
+
module.exports = __toCommonJS(contract_exports);
|
|
19
|
+
//# sourceMappingURL=contract.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/contract.ts"],"sourcesContent":["// Plugin-facing contract barrel. This is the ONLY generator surface the SDK\n// reaches into: the SDK's `/plugin` subpath re-exports these types (resolved\n// through a path alias and inlined into the SDK's published `.d.ts`), so plugins\n// get the real generator shapes without depending on the server package at\n// runtime. Keep this file free of server/host internals (PsBridgeHost, the\n// server, fastify) so the SDK's type graph stays small and Node-free.\n//\n// Re-export `type`-only: nothing here carries a runtime value across the\n// boundary (the SDK imports it all with `import type`).\n\nexport type { LayerModuleApi, PsLayer } from \"./modules/layer\";\nexport type { DocumentModuleApi, PsDocument } from \"./modules/document\";\nexport type { ActionModuleApi } from \"./modules/action\";\nexport type { ImageModuleApi, ImageResult, LayerSpec } from \"./modules/image\";\nexport type { CosServiceApi } from \"./services/cos\";\nexport type { JsxRunnerApi } from \"./utilis/jsxRunner\";\nexport type {\n PhotoshopEvents,\n PhotoshopEventMap,\n PhotoshopEventListener,\n ImageChangedEvent,\n ImageChangedLayer,\n Bounds,\n} from \"./utilis/eventManager\";\nexport type { PsBounds, PsRect } from \"./types/ps\";\n"],"mappings":";;;;;;;;;;;;;;;;AAAA;AAAA;","names":[]}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { P as PsGenerator, a as PluginConfig } from './contract-C4vydf6-.js';
|
|
2
|
+
export { J as JsxRunner, b as PsBridgeHost } from './contract-C4vydf6-.js';
|
|
3
|
+
import 'node:stream';
|
|
4
|
+
import 'node:events';
|
|
5
|
+
|
|
6
|
+
declare function init(generator: PsGenerator, config?: PluginConfig): void;
|
|
7
|
+
|
|
8
|
+
export { PluginConfig, PsGenerator, init };
|