@dxtmisha/figma 0.1.2 → 0.1.3

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/dist/library.js +4 -4
  2. package/package.json +8 -11
  3. package/ai-doc.ru.txt +0 -11
  4. /package/{ai-description.txt → ai-description.md} +0 -0
  5. /package/{ai-doc.txt → ai-doc.md} +0 -0
  6. /package/{ai-types.txt → ai-types.md} +0 -0
  7. /package/dist/{src/classes → classes}/FigmaPostAbstract.d.ts +0 -0
  8. /package/dist/{src/classes → classes}/FigmaPostCode.d.ts +0 -0
  9. /package/dist/{src/classes → classes}/FigmaUiMessenger.d.ts +0 -0
  10. /package/dist/{src/config.d.ts → config.d.ts} +0 -0
  11. /package/dist/{src/functions → functions}/fetchClientStorage.d.ts +0 -0
  12. /package/dist/{src/functions → functions}/fetchFrameSelection.d.ts +0 -0
  13. /package/dist/{src/functions → functions}/fetchFrameStyles.d.ts +0 -0
  14. /package/dist/{src/functions → functions}/fetchFramesSelected.d.ts +0 -0
  15. /package/dist/{src/functions → functions}/fetchStorage.d.ts +0 -0
  16. /package/dist/{src/functions → functions}/fetchTopLevelFrames.d.ts +0 -0
  17. /package/dist/{src/functions → functions}/sendClientStorage.d.ts +0 -0
  18. /package/dist/{src/functions → functions}/sendFrameSelection.d.ts +0 -0
  19. /package/dist/{src/functions → functions}/sendFrameStyles.d.ts +0 -0
  20. /package/dist/{src/functions → functions}/sendFramesSelected.d.ts +0 -0
  21. /package/dist/{src/functions → functions}/sendStorage.d.ts +0 -0
  22. /package/dist/{src/library.d.ts → library.d.ts} +0 -0
  23. /package/dist/{src/types → types}/figmaMessengerTypes.d.ts +0 -0
  24. /package/dist/{src/types → types}/figmaStylesTypes.d.ts +0 -0
  25. /package/dist/{src/types → types}/framesTypes.d.ts +0 -0
  26. /package/dist/{src/types → types}/storageTypes.d.ts +0 -0
package/dist/library.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { StorageCallback as e, random as t } from "@dxtmisha/functional-basic";
2
- //#region \0@oxc-project+runtime@0.129.0/helpers/typeof.js
2
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/typeof.js
3
3
  function n(e) {
4
4
  "@babel/helpers - typeof";
5
5
  return n = typeof Symbol == "function" && typeof Symbol.iterator == "symbol" ? function(e) {
@@ -9,7 +9,7 @@ function n(e) {
9
9
  }, n(e);
10
10
  }
11
11
  //#endregion
12
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPrimitive.js
12
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPrimitive.js
13
13
  function r(e, t) {
14
14
  if (n(e) != "object" || !e) return e;
15
15
  var r = e[Symbol.toPrimitive];
@@ -21,13 +21,13 @@ function r(e, t) {
21
21
  return (t === "string" ? String : Number)(e);
22
22
  }
23
23
  //#endregion
24
- //#region \0@oxc-project+runtime@0.129.0/helpers/toPropertyKey.js
24
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/toPropertyKey.js
25
25
  function i(e) {
26
26
  var t = r(e, "string");
27
27
  return n(t) == "symbol" ? t : t + "";
28
28
  }
29
29
  //#endregion
30
- //#region \0@oxc-project+runtime@0.129.0/helpers/defineProperty.js
30
+ //#region \0@oxc-project+runtime@0.138.0/helpers/esm/defineProperty.js
31
31
  function a(e, t, n) {
32
32
  return (t = i(t)) in e ? Object.defineProperty(e, t, {
33
33
  value: n,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/figma",
3
3
  "private": false,
4
- "version": "0.1.2",
4
+ "version": "0.1.3",
5
5
  "type": "module",
6
6
  "description": "Core communication middleware for Figma plugins, providing a structured bidirectional messaging bridge between the plugin logic and UI layer.",
7
7
  "keywords": [
@@ -36,10 +36,9 @@
36
36
  },
37
37
  "files": [
38
38
  "dist",
39
- "ai-description.txt",
40
- "ai-doc.ru.txt",
41
- "ai-doc.txt",
42
- "ai-types.txt",
39
+ "ai-description.md",
40
+ "ai-doc.md",
41
+ "ai-types.md",
43
42
  "CHANGELOG.md",
44
43
  "LICENSE",
45
44
  "package.json",
@@ -47,19 +46,17 @@
47
46
  ],
48
47
  "main": "dist/library.js",
49
48
  "module": "dist/library.js",
50
- "types": "dist/src/library.d.ts",
49
+ "types": "dist/library.d.ts",
51
50
  "exports": {
52
51
  ".": {
53
52
  "import": "./dist/library.js",
54
- "types": "./dist/src/library.d.ts"
55
- },
56
- "./style.css": "./dist/style.css"
53
+ "types": "./dist/library.d.ts"
54
+ }
57
55
  },
58
- "peerDependencies": {
56
+ "dependencies": {
59
57
  "@dxtmisha/functional-basic": "*",
60
58
  "@figma/plugin-typings": "*"
61
59
  },
62
- "dependencies": {},
63
60
  "devDependencies": {},
64
61
  "sideEffects": false
65
62
  }
package/ai-doc.ru.txt DELETED
@@ -1,11 +0,0 @@
1
- ПАКЕТ СРЕДСТВ СВЯЗИ ДЛЯ UI FIGMA:
2
- Данная библиотека предназначена для упрощения взаимодействия между UI-частью плагина Figma (Frontend) и его фоновым процессом (Backend). Она предоставляет абстракции для обмена сообщениями и получения данных из Figma.
3
-
4
- 1. ПРЕДНАЗНАЧЕНИЕ: Библиотека используется исключительно в UI-коде плагина Figma. Она реализует `FigmaUiMessenger` для отправки (`post`) и приема сообщений от плагина, а также функции для запроса данных о фреймах, стилях и хранилище.
5
- 2. ТИПОВАЯ СТРУКТУРА: Весь обмен сообщениями завязан на защищенном коде (`FigmaPostCode`), который должен совпадать на обеих сторонах (UI и Code).
6
- 3. ОСНОВНЫЕ ИНСТРУМЕНТЫ:
7
- - `FigmaUiMessenger`: Синглтон для управления сообщениями на стороне UI.
8
- - Функции `fetch...`: Обертки над сообщениями для асинхронного получения данных из Figma (например, `fetchFramesSelected`).
9
-
10
- Используй этот пакет при разработке визуальной части плагина для связи с API Figma через прослойку `figma-code`.
11
-
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes