@dxtmisha/figma-code 0.1.0 → 0.1.1

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 (26) hide show
  1. package/README.md +1 -1
  2. package/dist/library.js +9 -9
  3. package/package.json +8 -6
  4. /package/dist/{classes → src/classes}/FigmaAiText.d.ts +0 -0
  5. /package/dist/{classes → src/classes}/FigmaClientStorage.d.ts +0 -0
  6. /package/dist/{classes → src/classes}/FigmaFrame.d.ts +0 -0
  7. /package/dist/{classes → src/classes}/FigmaFramesSelected.d.ts +0 -0
  8. /package/dist/{classes → src/classes}/FigmaItem.d.ts +0 -0
  9. /package/dist/{classes → src/classes}/FigmaPluginMessenger.d.ts +0 -0
  10. /package/dist/{classes → src/classes}/FigmaStorage.d.ts +0 -0
  11. /package/dist/{classes → src/classes}/FigmaStorageData.d.ts +0 -0
  12. /package/dist/{classes → src/classes}/FigmaTopLevelFrames.d.ts +0 -0
  13. /package/dist/{config.d.ts → src/config.d.ts} +0 -0
  14. /package/dist/{functions → src/functions}/getFigmaFrameById.d.ts +0 -0
  15. /package/dist/{functions → src/functions}/getFigmaItemById.d.ts +0 -0
  16. /package/dist/{functions → src/functions}/getFigmaItemByIdOrRoot.d.ts +0 -0
  17. /package/dist/{functions → src/functions}/makeFigmaFrameSelection.d.ts +0 -0
  18. /package/dist/{functions → src/functions}/makeFigmaTexts.d.ts +0 -0
  19. /package/dist/{functions → src/functions}/setupClientStorage.d.ts +0 -0
  20. /package/dist/{functions → src/functions}/setupFrameSelection.d.ts +0 -0
  21. /package/dist/{functions → src/functions}/setupFrameStyles.d.ts +0 -0
  22. /package/dist/{functions → src/functions}/setupStorage.d.ts +0 -0
  23. /package/dist/{functions → src/functions}/toFrameSelection.d.ts +0 -0
  24. /package/dist/{library.d.ts → src/library.d.ts} +0 -0
  25. /package/dist/{media → src/media}/prompt/text.ru.d.ts +0 -0
  26. /package/dist/{types → src/types}/figmaTypes.d.ts +0 -0
package/README.md CHANGED
@@ -65,7 +65,7 @@ messenger.post('UPDATE_STATUS', { status: 'ready' })
65
65
 
66
66
  Full API reference and guides:
67
67
 
68
- **[📖 https://dxtmisha.github.io/dxt-ui/?path=/docs/dxtmisha-en-figma-code-about-library--docs](https://dxtmisha.github.io/dxt-ui/?path=/docs/dxtmisha-en-figma-code-about-library--docs)**
68
+ **[📖 https://dxtmisha.github.io/dxt-ui/?path=/docs/dxtmisha-en-ui-figma-about-the-library--docs](https://dxtmisha.github.io/dxt-ui/?path=/docs/dxtmisha-en-ui-figma-about-the-library--docs)**
69
69
 
70
70
  ## License
71
71
 
package/dist/library.js CHANGED
@@ -1,6 +1,6 @@
1
1
  import { executeFunction as e, forEach as t, getCurrentTime as n, isNull as r, toArray as i } from "@dxtmisha/functional-basic";
2
2
  import { FIGMA_FRAME_STYLES_MESSENGER_NAME as a, FigmaPostAbstract as o, FigmaPostCode as s, UI_FIGMA_CLIENT_STORAGE_GET as c, UI_FIGMA_CLIENT_STORAGE_SET as l, UI_FIGMA_FRAMES_POST_NAME as u, UI_FIGMA_FRAMES_SELECTED_ADD_NAME as d, UI_FIGMA_FRAMES_SELECTED_POST_NAME as f, UI_FIGMA_FRAME_GET_SELECTION as p, UI_FIGMA_FRAME_SET_SELECTION as m, UI_FIGMA_STORAGE_GET as h, UI_FIGMA_STORAGE_SET as g } from "@dxtmisha/figma";
3
- //#region \0@oxc-project+runtime@0.128.0/helpers/typeof.js
3
+ //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
4
4
  function _(e) {
5
5
  "@babel/helpers - typeof";
6
6
  return _ = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -10,7 +10,7 @@ function _(e) {
10
10
  }, _(e);
11
11
  }
12
12
  //#endregion
13
- //#region \0@oxc-project+runtime@0.128.0/helpers/toPrimitive.js
13
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
14
14
  function v(e, t) {
15
15
  if (_(e) != "object" || !e) return e;
16
16
  var n = e[Symbol.toPrimitive];
@@ -22,13 +22,13 @@ function v(e, t) {
22
22
  return (t === "string" ? String : Number)(e);
23
23
  }
24
24
  //#endregion
25
- //#region \0@oxc-project+runtime@0.128.0/helpers/toPropertyKey.js
25
+ //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
26
26
  function y(e) {
27
27
  var t = v(e, "string");
28
28
  return _(t) == "symbol" ? t : t + "";
29
29
  }
30
30
  //#endregion
31
- //#region \0@oxc-project+runtime@0.128.0/helpers/defineProperty.js
31
+ //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
32
32
  function b(e, t, n) {
33
33
  return (t = y(t)) in e ? Object.defineProperty(e, t, {
34
34
  value: n,
@@ -41,7 +41,7 @@ function b(e, t, n) {
41
41
  //#region src/classes/FigmaStorageData.ts
42
42
  var x = class {
43
43
  constructor(e, t) {
44
- b(this, "value", void 0), b(this, "age", void 0), this.name = e, this.cache = t;
44
+ b(this, "name", void 0), b(this, "cache", void 0), b(this, "value", void 0), b(this, "age", void 0), this.name = e, this.cache = t;
45
45
  }
46
46
  isNull() {
47
47
  return r(this.value);
@@ -95,7 +95,7 @@ var x = class {
95
95
  return C[e] = n, n;
96
96
  }
97
97
  constructor(e, t) {
98
- b(this, "data", void 0), this.name = e, this.cache = t, this.data = new x(e, t);
98
+ b(this, "name", void 0), b(this, "cache", void 0), b(this, "data", void 0), this.name = e, this.cache = t, this.data = new x(e, t);
99
99
  }
100
100
  async get(e) {
101
101
  if (await this.make(), this.data.isValue()) return this.data.get();
@@ -115,7 +115,7 @@ var x = class {
115
115
  }
116
116
  }, C = {}, w = class e {
117
117
  constructor(e) {
118
- this.item = e;
118
+ b(this, "item", void 0), this.item = e;
119
119
  }
120
120
  isDocument() {
121
121
  return this.getType() === "DOCUMENT";
@@ -244,7 +244,7 @@ var x = class {
244
244
  }
245
245
  }, T = class e {
246
246
  constructor(e, t = !1) {
247
- b(this, "mainItem", []), b(this, "items", []), this.page = e, this.selection = t, this.mainItem = this.initMain(), this.items = this.initBySelection();
247
+ b(this, "page", void 0), b(this, "selection", void 0), b(this, "mainItem", []), b(this, "items", []), this.page = e, this.selection = t, this.mainItem = this.initMain(), this.items = this.initBySelection();
248
248
  }
249
249
  isSelection() {
250
250
  return this.selection && "selection" in this.page;
@@ -371,7 +371,7 @@ var A = class t {
371
371
  return t.getInstance(e, r);
372
372
  }
373
373
  constructor(e, t = figma.root, n) {
374
- b(this, "data", void 0), this.name = e, this.item = t, this.cache = n, this.data = new x(e, n);
374
+ b(this, "name", void 0), b(this, "item", void 0), b(this, "cache", void 0), b(this, "data", void 0), this.name = e, this.item = t, this.cache = n, this.data = new x(e, n);
375
375
  }
376
376
  get(e) {
377
377
  if (this.make(), this.data.isValue()) return this.data.get();
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/figma-code",
3
3
  "private": false,
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "type": "module",
6
6
  "description": "Structured TypeScript abstraction layer for Figma Plugin development, focused on node manipulation, state management, and messaging.",
7
7
  "keywords": [
@@ -46,15 +46,17 @@
46
46
  ],
47
47
  "main": "dist/library.js",
48
48
  "module": "dist/library.js",
49
- "types": "dist/library.d.ts",
49
+ "types": "dist/src/library.d.ts",
50
50
  "exports": {
51
51
  ".": {
52
52
  "import": "./dist/library.js",
53
- "types": "./dist/library.d.ts"
53
+ "types": "./dist/src/library.d.ts"
54
54
  },
55
- "./style.css": "./dist/style.css",
56
- "./types/*": "./dist/*",
57
- "./types/**/*.d.ts": "./dist/**/*.d.ts"
55
+ "./style.css": "./dist/style.css"
56
+ },
57
+ "peerDependencies": {
58
+ "@dxtmisha/functional-basic": "*",
59
+ "@figma/plugin-typings": "*"
58
60
  },
59
61
  "dependencies": {},
60
62
  "devDependencies": {},
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes