@xpert-ai/plugin-motion 0.2.0 → 0.3.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.
Files changed (157) hide show
  1. package/.xpertai-plugin/plugin.json +16 -6
  2. package/README.md +19 -5
  3. package/assets/upstream/UPSTREAM-BASELINE.md +27 -0
  4. package/assets/upstream/app/data/reicon-LICENSE.txt +21 -0
  5. package/dist/assets/upstream/UPSTREAM-BASELINE.md +27 -0
  6. package/dist/assets/upstream/app/data/reicon-LICENSE.txt +21 -0
  7. package/dist/index.d.ts +2 -0
  8. package/dist/index.d.ts.map +1 -1
  9. package/dist/index.js +18 -9
  10. package/dist/index.js.map +1 -1
  11. package/dist/lib/constants.d.ts +7 -1
  12. package/dist/lib/constants.d.ts.map +1 -1
  13. package/dist/lib/constants.js +7 -0
  14. package/dist/lib/constants.js.map +1 -1
  15. package/dist/lib/entities/motion-export.entity.d.ts +13 -1
  16. package/dist/lib/entities/motion-export.entity.d.ts.map +1 -1
  17. package/dist/lib/entities/motion-export.entity.js +49 -1
  18. package/dist/lib/entities/motion-export.entity.js.map +1 -1
  19. package/dist/lib/entities/motion-project-version.entity.d.ts +3 -1
  20. package/dist/lib/entities/motion-project-version.entity.d.ts.map +1 -1
  21. package/dist/lib/entities/motion-project-version.entity.js +8 -0
  22. package/dist/lib/entities/motion-project-version.entity.js.map +1 -1
  23. package/dist/lib/entities/motion-project.entity.d.ts +4 -1
  24. package/dist/lib/entities/motion-project.entity.d.ts.map +1 -1
  25. package/dist/lib/entities/motion-project.entity.js +8 -0
  26. package/dist/lib/entities/motion-project.entity.js.map +1 -1
  27. package/dist/lib/hyperframes-composition.d.ts +16 -0
  28. package/dist/lib/hyperframes-composition.d.ts.map +1 -0
  29. package/dist/lib/hyperframes-composition.js +106 -0
  30. package/dist/lib/hyperframes-composition.js.map +1 -0
  31. package/dist/lib/motion-agent-response.d.ts +8 -0
  32. package/dist/lib/motion-agent-response.d.ts.map +1 -1
  33. package/dist/lib/motion-agent-response.js +13 -0
  34. package/dist/lib/motion-agent-response.js.map +1 -1
  35. package/dist/lib/motion-render.processor.d.ts +9 -0
  36. package/dist/lib/motion-render.processor.d.ts.map +1 -0
  37. package/dist/lib/motion-render.processor.js +25 -0
  38. package/dist/lib/motion-render.processor.js.map +1 -0
  39. package/dist/lib/motion-view.provider.d.ts.map +1 -1
  40. package/dist/lib/motion-view.provider.js +31 -2
  41. package/dist/lib/motion-view.provider.js.map +1 -1
  42. package/dist/lib/motion.middleware.d.ts.map +1 -1
  43. package/dist/lib/motion.middleware.js +20 -6
  44. package/dist/lib/motion.middleware.js.map +1 -1
  45. package/dist/lib/motion.plugin.d.ts.map +1 -1
  46. package/dist/lib/motion.plugin.js +2 -1
  47. package/dist/lib/motion.plugin.js.map +1 -1
  48. package/dist/lib/motion.service.d.ts +174 -3
  49. package/dist/lib/motion.service.d.ts.map +1 -1
  50. package/dist/lib/motion.service.js +376 -19
  51. package/dist/lib/motion.service.js.map +1 -1
  52. package/dist/lib/remote-components/motion-workbench/app.css +1 -1
  53. package/dist/lib/remote-components/motion-workbench/app.js +553 -38
  54. package/dist/lib/types.d.ts +26 -1
  55. package/dist/lib/types.d.ts.map +1 -1
  56. package/dist/lib/types.js.map +1 -1
  57. package/dist/sandbox-actions/hyperframes-render/action.json +10 -0
  58. package/dist/sandbox-actions/hyperframes-render/bundle/runner.mjs +188 -0
  59. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/README.md +3 -0
  60. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/bin/esbuild +0 -0
  61. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/darwin-arm64/package.json +20 -0
  62. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/README.md +3 -0
  63. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/bin/esbuild +0 -0
  64. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@esbuild/linux-x64/package.json +20 -0
  65. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/LICENSE +190 -0
  66. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/README.md +156 -0
  67. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/distributed.js +156122 -0
  68. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/hyperframe.manifest.json +22 -0
  69. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/hyperframe.runtime.iife.js +356 -0
  70. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/index.js +169375 -0
  71. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/public-server.js +167618 -0
  72. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/services/healthWorkerThread.js +53 -0
  73. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/dist/services/shaderTransitionWorker.js +606 -0
  74. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/@hyperframes/producer/package.json +109 -0
  75. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/LICENSE.md +21 -0
  76. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/README.md +3 -0
  77. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/bin/esbuild +0 -0
  78. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/install.js +289 -0
  79. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/lib/main.js +2532 -0
  80. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/esbuild/package.json +49 -0
  81. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/LICENSE +20 -0
  82. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/README.md +36 -0
  83. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.browser.cjs +42 -0
  84. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.browser.js +42 -0
  85. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.cjs +44 -0
  86. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.js +44 -0
  87. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/index.native.js +35 -0
  88. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/async/package.json +12 -0
  89. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/bin/nanoid.cjs +55 -0
  90. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.browser.cjs +44 -0
  91. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.browser.js +44 -0
  92. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.cjs +57 -0
  93. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.d.cts +91 -0
  94. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/index.js +62 -0
  95. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/nanoid.js +1 -0
  96. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/index.cjs +24 -0
  97. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/index.js +24 -0
  98. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/non-secure/package.json +6 -0
  99. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/package.json +89 -0
  100. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/index.cjs +4 -0
  101. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/index.js +4 -0
  102. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/nanoid/url-alphabet/package.json +6 -0
  103. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/LICENSE +15 -0
  104. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/README.md +21 -0
  105. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/package.json +25 -0
  106. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/picocolors.browser.js +4 -0
  107. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/picocolors/picocolors.js +75 -0
  108. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/LICENSE +20 -0
  109. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/README.md +25 -0
  110. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/at-rule.js +25 -0
  111. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/comment.js +13 -0
  112. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/container.js +447 -0
  113. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/css-syntax-error.js +133 -0
  114. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/declaration.js +24 -0
  115. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/document.js +33 -0
  116. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/fromJSON.js +68 -0
  117. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/input.js +276 -0
  118. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/lazy-result.js +563 -0
  119. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/list.js +58 -0
  120. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/map-generator.js +376 -0
  121. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/no-work-result.js +137 -0
  122. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/node.js +456 -0
  123. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/parse.js +42 -0
  124. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/parser.js +618 -0
  125. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.d.mts +66 -0
  126. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.js +101 -0
  127. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/postcss.mjs +30 -0
  128. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/previous-map.js +161 -0
  129. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/processor.js +67 -0
  130. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/result.js +42 -0
  131. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/root.js +61 -0
  132. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/rule.js +27 -0
  133. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/stringifier.js +374 -0
  134. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/stringify.js +11 -0
  135. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/symbols.js +5 -0
  136. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/terminal-highlight.js +70 -0
  137. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/tokenize.js +270 -0
  138. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/warn-once.js +13 -0
  139. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/lib/warning.js +37 -0
  140. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/postcss/package.json +88 -0
  141. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/LICENSE +28 -0
  142. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/README.md +765 -0
  143. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/array-set.js +121 -0
  144. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/base64-vlq.js +140 -0
  145. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/base64.js +67 -0
  146. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/binary-search.js +111 -0
  147. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/mapping-list.js +79 -0
  148. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/quick-sort.js +132 -0
  149. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-map-consumer.js +1188 -0
  150. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-map-generator.js +444 -0
  151. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/source-node.js +413 -0
  152. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/lib/util.js +594 -0
  153. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/package.json +71 -0
  154. package/dist/sandbox-actions/hyperframes-render/bundle/runtime-modules/source-map-js/source-map.js +8 -0
  155. package/dist/xpert-motion-assistant.yaml +240 -37
  156. package/package.json +17 -9
  157. package/skills/motion-agent-skill/SKILL.md +19 -7
@@ -0,0 +1,24 @@
1
+ let urlAlphabet =
2
+ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
3
+
4
+ let customAlphabet = (alphabet, defaultSize = 21) => {
5
+ return (size = defaultSize) => {
6
+ let id = ''
7
+ let i = size | 0
8
+ while (i--) {
9
+ id += alphabet[(Math.random() * alphabet.length) | 0]
10
+ }
11
+ return id
12
+ }
13
+ }
14
+
15
+ let nanoid = (size = 21) => {
16
+ let id = ''
17
+ let i = size | 0
18
+ while (i--) {
19
+ id += urlAlphabet[(Math.random() * 64) | 0]
20
+ }
21
+ return id
22
+ }
23
+
24
+ module.exports = { nanoid, customAlphabet }
@@ -0,0 +1,24 @@
1
+ let urlAlphabet =
2
+ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
3
+
4
+ let customAlphabet = (alphabet, defaultSize = 21) => {
5
+ return (size = defaultSize) => {
6
+ let id = ''
7
+ let i = size | 0
8
+ while (i--) {
9
+ id += alphabet[(Math.random() * alphabet.length) | 0]
10
+ }
11
+ return id
12
+ }
13
+ }
14
+
15
+ let nanoid = (size = 21) => {
16
+ let id = ''
17
+ let i = size | 0
18
+ while (i--) {
19
+ id += urlAlphabet[(Math.random() * 64) | 0]
20
+ }
21
+ return id
22
+ }
23
+
24
+ export { nanoid, customAlphabet }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "main": "index.cjs",
4
+ "module": "index.js",
5
+ "react-native": "index.js"
6
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "name": "nanoid",
3
+ "version": "3.3.15",
4
+ "description": "A tiny (116 bytes), secure URL-friendly unique string ID generator",
5
+ "keywords": [
6
+ "uuid",
7
+ "random",
8
+ "id",
9
+ "url"
10
+ ],
11
+ "engines": {
12
+ "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1"
13
+ },
14
+ "funding": [
15
+ {
16
+ "type": "github",
17
+ "url": "https://github.com/sponsors/ai"
18
+ }
19
+ ],
20
+ "author": "Andrey Sitnik <andrey@sitnik.ru>",
21
+ "license": "MIT",
22
+ "repository": "ai/nanoid",
23
+ "browser": {
24
+ "./index.js": "./index.browser.js",
25
+ "./async/index.js": "./async/index.browser.js",
26
+ "./async/index.cjs": "./async/index.browser.cjs",
27
+ "./index.cjs": "./index.browser.cjs"
28
+ },
29
+ "react-native": "index.js",
30
+ "bin": "./bin/nanoid.cjs",
31
+ "sideEffects": false,
32
+ "types": "./index.d.ts",
33
+ "type": "module",
34
+ "main": "index.cjs",
35
+ "module": "index.js",
36
+ "exports": {
37
+ ".": {
38
+ "react-native": "./index.browser.js",
39
+ "browser": "./index.browser.js",
40
+ "require": {
41
+ "types": "./index.d.cts",
42
+ "default": "./index.cjs"
43
+ },
44
+ "import": {
45
+ "types": "./index.d.ts",
46
+ "default": "./index.js"
47
+ },
48
+ "default": "./index.js"
49
+ },
50
+ "./package.json": "./package.json",
51
+ "./async/package.json": "./async/package.json",
52
+ "./async": {
53
+ "browser": "./async/index.browser.js",
54
+ "require": {
55
+ "types": "./index.d.cts",
56
+ "default": "./async/index.cjs"
57
+ },
58
+ "import": {
59
+ "types": "./index.d.ts",
60
+ "default": "./async/index.js"
61
+ },
62
+ "default": "./async/index.js"
63
+ },
64
+ "./non-secure/package.json": "./non-secure/package.json",
65
+ "./non-secure": {
66
+ "require": {
67
+ "types": "./index.d.cts",
68
+ "default": "./non-secure/index.cjs"
69
+ },
70
+ "import": {
71
+ "types": "./index.d.ts",
72
+ "default": "./non-secure/index.js"
73
+ },
74
+ "default": "./non-secure/index.js"
75
+ },
76
+ "./url-alphabet/package.json": "./url-alphabet/package.json",
77
+ "./url-alphabet": {
78
+ "require": {
79
+ "types": "./index.d.cts",
80
+ "default": "./url-alphabet/index.cjs"
81
+ },
82
+ "import": {
83
+ "types": "./index.d.ts",
84
+ "default": "./url-alphabet/index.js"
85
+ },
86
+ "default": "./url-alphabet/index.js"
87
+ }
88
+ }
89
+ }
@@ -0,0 +1,4 @@
1
+ let urlAlphabet =
2
+ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
3
+
4
+ module.exports = { urlAlphabet }
@@ -0,0 +1,4 @@
1
+ let urlAlphabet =
2
+ 'useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict'
3
+
4
+ export { urlAlphabet }
@@ -0,0 +1,6 @@
1
+ {
2
+ "type": "module",
3
+ "main": "index.cjs",
4
+ "module": "index.js",
5
+ "react-native": "index.js"
6
+ }
@@ -0,0 +1,15 @@
1
+ ISC License
2
+
3
+ Copyright (c) 2021-2024 Oleksii Raspopov, Kostiantyn Denysov, Anton Verinov
4
+
5
+ Permission to use, copy, modify, and/or distribute this software for any
6
+ purpose with or without fee is hereby granted, provided that the above
7
+ copyright notice and this permission notice appear in all copies.
8
+
9
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
10
+ WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
11
+ MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
12
+ ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
13
+ WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
14
+ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
15
+ OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
@@ -0,0 +1,21 @@
1
+ # picocolors
2
+
3
+ The tiniest and the fastest library for terminal output formatting with ANSI colors.
4
+
5
+ ```javascript
6
+ import pc from "picocolors"
7
+
8
+ console.log(
9
+ pc.green(`How are ${pc.italic(`you`)} doing?`)
10
+ )
11
+ ```
12
+
13
+ - **No dependencies.**
14
+ - **14 times** smaller and **2 times** faster than chalk.
15
+ - Used by popular tools like PostCSS, SVGO, Stylelint, and Browserslist.
16
+ - Node.js v6+ & browsers support. Support for both CJS and ESM projects.
17
+ - TypeScript type declarations included.
18
+ - [`NO_COLOR`](https://no-color.org/) friendly.
19
+
20
+ ## Docs
21
+ Read **[full docs](https://github.com/alexeyraspopov/picocolors#readme)** on GitHub.
@@ -0,0 +1,25 @@
1
+ {
2
+ "name": "picocolors",
3
+ "version": "1.1.1",
4
+ "main": "./picocolors.js",
5
+ "types": "./picocolors.d.ts",
6
+ "browser": {
7
+ "./picocolors.js": "./picocolors.browser.js"
8
+ },
9
+ "sideEffects": false,
10
+ "description": "The tiniest and the fastest library for terminal output formatting with ANSI colors",
11
+ "files": [
12
+ "picocolors.*",
13
+ "types.d.ts"
14
+ ],
15
+ "keywords": [
16
+ "terminal",
17
+ "colors",
18
+ "formatting",
19
+ "cli",
20
+ "console"
21
+ ],
22
+ "author": "Alexey Raspopov",
23
+ "repository": "alexeyraspopov/picocolors",
24
+ "license": "ISC"
25
+ }
@@ -0,0 +1,4 @@
1
+ var x=String;
2
+ var create=function() {return {isColorSupported:false,reset:x,bold:x,dim:x,italic:x,underline:x,inverse:x,hidden:x,strikethrough:x,black:x,red:x,green:x,yellow:x,blue:x,magenta:x,cyan:x,white:x,gray:x,bgBlack:x,bgRed:x,bgGreen:x,bgYellow:x,bgBlue:x,bgMagenta:x,bgCyan:x,bgWhite:x,blackBright:x,redBright:x,greenBright:x,yellowBright:x,blueBright:x,magentaBright:x,cyanBright:x,whiteBright:x,bgBlackBright:x,bgRedBright:x,bgGreenBright:x,bgYellowBright:x,bgBlueBright:x,bgMagentaBright:x,bgCyanBright:x,bgWhiteBright:x}};
3
+ module.exports=create();
4
+ module.exports.createColors = create;
@@ -0,0 +1,75 @@
1
+ let p = process || {}, argv = p.argv || [], env = p.env || {}
2
+ let isColorSupported =
3
+ !(!!env.NO_COLOR || argv.includes("--no-color")) &&
4
+ (!!env.FORCE_COLOR || argv.includes("--color") || p.platform === "win32" || ((p.stdout || {}).isTTY && env.TERM !== "dumb") || !!env.CI)
5
+
6
+ let formatter = (open, close, replace = open) =>
7
+ input => {
8
+ let string = "" + input, index = string.indexOf(close, open.length)
9
+ return ~index ? open + replaceClose(string, close, replace, index) + close : open + string + close
10
+ }
11
+
12
+ let replaceClose = (string, close, replace, index) => {
13
+ let result = "", cursor = 0
14
+ do {
15
+ result += string.substring(cursor, index) + replace
16
+ cursor = index + close.length
17
+ index = string.indexOf(close, cursor)
18
+ } while (~index)
19
+ return result + string.substring(cursor)
20
+ }
21
+
22
+ let createColors = (enabled = isColorSupported) => {
23
+ let f = enabled ? formatter : () => String
24
+ return {
25
+ isColorSupported: enabled,
26
+ reset: f("\x1b[0m", "\x1b[0m"),
27
+ bold: f("\x1b[1m", "\x1b[22m", "\x1b[22m\x1b[1m"),
28
+ dim: f("\x1b[2m", "\x1b[22m", "\x1b[22m\x1b[2m"),
29
+ italic: f("\x1b[3m", "\x1b[23m"),
30
+ underline: f("\x1b[4m", "\x1b[24m"),
31
+ inverse: f("\x1b[7m", "\x1b[27m"),
32
+ hidden: f("\x1b[8m", "\x1b[28m"),
33
+ strikethrough: f("\x1b[9m", "\x1b[29m"),
34
+
35
+ black: f("\x1b[30m", "\x1b[39m"),
36
+ red: f("\x1b[31m", "\x1b[39m"),
37
+ green: f("\x1b[32m", "\x1b[39m"),
38
+ yellow: f("\x1b[33m", "\x1b[39m"),
39
+ blue: f("\x1b[34m", "\x1b[39m"),
40
+ magenta: f("\x1b[35m", "\x1b[39m"),
41
+ cyan: f("\x1b[36m", "\x1b[39m"),
42
+ white: f("\x1b[37m", "\x1b[39m"),
43
+ gray: f("\x1b[90m", "\x1b[39m"),
44
+
45
+ bgBlack: f("\x1b[40m", "\x1b[49m"),
46
+ bgRed: f("\x1b[41m", "\x1b[49m"),
47
+ bgGreen: f("\x1b[42m", "\x1b[49m"),
48
+ bgYellow: f("\x1b[43m", "\x1b[49m"),
49
+ bgBlue: f("\x1b[44m", "\x1b[49m"),
50
+ bgMagenta: f("\x1b[45m", "\x1b[49m"),
51
+ bgCyan: f("\x1b[46m", "\x1b[49m"),
52
+ bgWhite: f("\x1b[47m", "\x1b[49m"),
53
+
54
+ blackBright: f("\x1b[90m", "\x1b[39m"),
55
+ redBright: f("\x1b[91m", "\x1b[39m"),
56
+ greenBright: f("\x1b[92m", "\x1b[39m"),
57
+ yellowBright: f("\x1b[93m", "\x1b[39m"),
58
+ blueBright: f("\x1b[94m", "\x1b[39m"),
59
+ magentaBright: f("\x1b[95m", "\x1b[39m"),
60
+ cyanBright: f("\x1b[96m", "\x1b[39m"),
61
+ whiteBright: f("\x1b[97m", "\x1b[39m"),
62
+
63
+ bgBlackBright: f("\x1b[100m", "\x1b[49m"),
64
+ bgRedBright: f("\x1b[101m", "\x1b[49m"),
65
+ bgGreenBright: f("\x1b[102m", "\x1b[49m"),
66
+ bgYellowBright: f("\x1b[103m", "\x1b[49m"),
67
+ bgBlueBright: f("\x1b[104m", "\x1b[49m"),
68
+ bgMagentaBright: f("\x1b[105m", "\x1b[49m"),
69
+ bgCyanBright: f("\x1b[106m", "\x1b[49m"),
70
+ bgWhiteBright: f("\x1b[107m", "\x1b[49m"),
71
+ }
72
+ }
73
+
74
+ module.exports = createColors()
75
+ module.exports.createColors = createColors
@@ -0,0 +1,20 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright 2013 Andrey Sitnik <andrey@sitnik.es>
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy of
6
+ this software and associated documentation files (the "Software"), to deal in
7
+ the Software without restriction, including without limitation the rights to
8
+ use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
9
+ the Software, and to permit persons to whom the Software is furnished to do so,
10
+ subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
17
+ FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
18
+ COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
19
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
20
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,25 @@
1
+ # PostCSS
2
+
3
+ <img align="right" width="95" height="95"
4
+ alt="Philosopher’s stone, logo of PostCSS"
5
+ src="https://postcss.org/logo.svg">
6
+
7
+ PostCSS is a tool for transforming styles with JS plugins.
8
+ These plugins can lint your CSS, support variables and mixins,
9
+ transpile future CSS syntax, inline images, and more.
10
+
11
+ PostCSS is used by industry leaders including Wikipedia, Twitter, Alibaba,
12
+ and JetBrains. The [Autoprefixer] and [Stylelint] PostCSS plugins are some of the most popular CSS tools.
13
+
14
+ ---
15
+
16
+ <img src="https://cdn.evilmartians.com/badges/logo-no-label.svg" alt="" width="22" height="16" />  Built by
17
+ <b><a href="https://evilmartians.com/devtools?utm_source=postcss&utm_campaign=devtools-button&utm_medium=github">Evil Martians</a></b>, go-to agency for <b>developer tools</b>.
18
+
19
+ ---
20
+
21
+ [Abstract Syntax Tree]: https://en.wikipedia.org/wiki/Abstract_syntax_tree
22
+ [Evil Martians]: https://evilmartians.com/?utm_source=postcss
23
+ [Autoprefixer]: https://github.com/postcss/autoprefixer
24
+ [Stylelint]: https://stylelint.io/
25
+ [plugins]: https://github.com/postcss/postcss#plugins
@@ -0,0 +1,25 @@
1
+ 'use strict'
2
+
3
+ let Container = require('./container')
4
+
5
+ class AtRule extends Container {
6
+ constructor(defaults) {
7
+ super(defaults)
8
+ this.type = 'atrule'
9
+ }
10
+
11
+ append(...children) {
12
+ if (!this.proxyOf.nodes) this.nodes = []
13
+ return super.append(...children)
14
+ }
15
+
16
+ prepend(...children) {
17
+ if (!this.proxyOf.nodes) this.nodes = []
18
+ return super.prepend(...children)
19
+ }
20
+ }
21
+
22
+ module.exports = AtRule
23
+ AtRule.default = AtRule
24
+
25
+ Container.registerAtRule(AtRule)
@@ -0,0 +1,13 @@
1
+ 'use strict'
2
+
3
+ let Node = require('./node')
4
+
5
+ class Comment extends Node {
6
+ constructor(defaults) {
7
+ super(defaults)
8
+ this.type = 'comment'
9
+ }
10
+ }
11
+
12
+ module.exports = Comment
13
+ Comment.default = Comment