@dxtmisha/scripts 0.4.7 → 0.5.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 (140) hide show
  1. package/bin/ai-doc.ts +9 -0
  2. package/package.json +9 -7
  3. package/src/classes/Ai/AiAbstract.ts +94 -13
  4. package/src/classes/Ai/AiDoc.ts +62 -0
  5. package/src/classes/Ai/AiDocItem.ts +20 -0
  6. package/src/classes/Ai/AiDocItemAbstract.ts +198 -0
  7. package/src/classes/Ai/AiDocItemClasses.ts +20 -0
  8. package/src/classes/Ai/AiDocItemComposables.ts +13 -0
  9. package/src/classes/Ai/AiDocType.ts +45 -0
  10. package/src/classes/Ai/AiGoogle.ts +7 -29
  11. package/src/classes/Ai/AiGoogleCli.ts +24 -0
  12. package/src/classes/Ai/AiGoogleCliLite.ts +144 -0
  13. package/src/classes/Ai/AiGoogleLite.ts +77 -0
  14. package/src/classes/BuildItem.ts +176 -0
  15. package/src/classes/Component/ComponentCreator.ts +2 -0
  16. package/src/classes/Component/ComponentItem.ts +3 -1
  17. package/src/classes/Component/ComponentWiki.ts +107 -190
  18. package/src/classes/Component/ComponentWikiFile.ts +102 -15
  19. package/src/classes/Design/DesignCommand.ts +3 -1
  20. package/src/classes/Design/DesignComponent.ts +3 -1
  21. package/src/classes/Design/DesignConstructor.ts +3 -1
  22. package/src/classes/Design/DesignConstructors.ts +3 -1
  23. package/src/classes/Design/DesignReplace.ts +3 -1
  24. package/src/classes/Design/DesignStructure.ts +3 -1
  25. package/src/classes/Design/DesignStructureClasses.ts +3 -1
  26. package/src/classes/Design/DesignStructureItemAbstract.ts +2 -0
  27. package/src/classes/Design/DesignStructureRead.ts +3 -1
  28. package/src/classes/Design/DesignStructureStyles.ts +2 -0
  29. package/src/classes/Design/DesignTypescript.ts +1 -1
  30. package/src/classes/Design/DesignUi.ts +3 -1
  31. package/src/classes/Design/DesignWiki.ts +3 -1
  32. package/src/classes/Git/GitRead.ts +258 -0
  33. package/src/classes/Library/LibraryExport.ts +2 -0
  34. package/src/classes/Library/LibraryFlags.ts +3 -1
  35. package/src/classes/Library/LibraryItems.ts +3 -1
  36. package/src/classes/Library/LibraryMedia.ts +3 -1
  37. package/src/classes/Package/PackageInit.ts +2 -0
  38. package/src/classes/Package/PackageItem.ts +2 -0
  39. package/src/classes/Properties/Properties.ts +3 -1
  40. package/src/classes/Properties/PropertiesCache.ts +3 -1
  41. package/src/classes/Properties/PropertiesConfig.ts +21 -0
  42. package/src/classes/Properties/PropertiesConvector.ts +3 -1
  43. package/src/classes/Properties/PropertiesFile.ts +11 -1
  44. package/src/classes/Properties/PropertiesImport.ts +3 -1
  45. package/src/classes/Properties/PropertiesItems.ts +3 -1
  46. package/src/classes/Properties/PropertiesKeys.ts +3 -1
  47. package/src/classes/Properties/PropertiesMain.ts +3 -1
  48. package/src/classes/Properties/PropertiesPalette.ts +3 -1
  49. package/src/classes/Properties/PropertiesPath.ts +3 -1
  50. package/src/classes/Properties/PropertiesScss.ts +3 -1
  51. package/src/classes/Properties/PropertiesSeparator.ts +3 -1
  52. package/src/classes/Properties/PropertiesSettings.ts +3 -1
  53. package/src/classes/Properties/PropertiesStandard.ts +3 -1
  54. package/src/classes/Properties/PropertiesTool.ts +3 -1
  55. package/src/classes/Properties/PropertiesTypes.ts +3 -1
  56. package/src/classes/Properties/PropertiesValues.ts +2 -0
  57. package/src/classes/Properties/PropertiesWrap.ts +3 -1
  58. package/src/classes/Properties/convector/convectorColor.ts +2 -0
  59. package/src/classes/Properties/convector/convectorFontFamilies.ts +2 -0
  60. package/src/classes/Properties/convector/convectorShadow.ts +3 -1
  61. package/src/classes/Properties/convector/convectorTypography.ts +3 -1
  62. package/src/classes/Properties/to/PropertiesToAbstract.ts +2 -0
  63. package/src/classes/Properties/to/PropertiesToAnimate.ts +3 -1
  64. package/src/classes/Properties/to/PropertiesToClass.ts +2 -0
  65. package/src/classes/Properties/to/PropertiesToClone.ts +3 -1
  66. package/src/classes/Properties/to/PropertiesToComponent.ts +2 -0
  67. package/src/classes/Properties/to/PropertiesToDrag.ts +3 -1
  68. package/src/classes/Properties/to/PropertiesToDuplicate.ts +3 -1
  69. package/src/classes/Properties/to/PropertiesToFull.ts +2 -0
  70. package/src/classes/Properties/to/PropertiesToLink.ts +3 -1
  71. package/src/classes/Properties/to/PropertiesToMedia.ts +3 -1
  72. package/src/classes/Properties/to/PropertiesToMulti.ts +3 -1
  73. package/src/classes/Properties/to/PropertiesToNone.ts +3 -1
  74. package/src/classes/Properties/to/PropertiesToPalette.ts +3 -1
  75. package/src/classes/Properties/to/PropertiesToProperty.ts +3 -1
  76. package/src/classes/Properties/to/PropertiesToRemove.ts +3 -1
  77. package/src/classes/Properties/to/PropertiesToReplace.ts +2 -0
  78. package/src/classes/Properties/to/PropertiesToRoot.ts +2 -0
  79. package/src/classes/Properties/to/PropertiesToSimilar.ts +3 -1
  80. package/src/classes/Properties/to/PropertiesToSort.ts +3 -1
  81. package/src/classes/Properties/to/PropertiesToState.ts +3 -1
  82. package/src/classes/Properties/to/PropertiesToStyle.ts +3 -1
  83. package/src/classes/Properties/to/PropertiesToSub.ts +2 -0
  84. package/src/classes/Properties/to/PropertiesToSubclass.ts +2 -0
  85. package/src/classes/Properties/to/PropertiesToVar.ts +3 -1
  86. package/src/classes/Properties/to/PropertiesToVariable.ts +3 -1
  87. package/src/classes/Styles/Styles.ts +3 -1
  88. package/src/classes/Styles/StylesClasses.ts +3 -1
  89. package/src/classes/Styles/StylesProperties.ts +2 -0
  90. package/src/classes/Styles/StylesRoot.ts +2 -0
  91. package/src/classes/Styles/StylesTool.ts +3 -1
  92. package/src/classes/Styles/to/StylesToAbstract.ts +3 -1
  93. package/src/classes/Styles/to/StylesToAnimate.ts +2 -0
  94. package/src/classes/Styles/to/StylesToClass.ts +2 -0
  95. package/src/classes/Styles/to/StylesToClassFull.ts +2 -0
  96. package/src/classes/Styles/to/StylesToContainer.ts +2 -0
  97. package/src/classes/Styles/to/StylesToMedia.ts +2 -0
  98. package/src/classes/Styles/to/StylesToProperty.ts +3 -1
  99. package/src/classes/Styles/to/StylesToRoot.ts +2 -0
  100. package/src/classes/Styles/to/StylesToSelector.ts +3 -1
  101. package/src/classes/Styles/to/StylesToVar.ts +3 -1
  102. package/src/classes/Styles/to/StylesToVirtual.ts +2 -0
  103. package/src/composables/useAi.ts +3 -0
  104. package/src/config.ts +11 -0
  105. package/src/functions/getComponentPaths.ts +2 -0
  106. package/src/functions/getConfigAi.ts +13 -0
  107. package/src/functions/getConstructorProperties.ts +3 -1
  108. package/src/functions/getNameDirByPaths.ts +2 -0
  109. package/src/functions/toPathStandardSep.ts +2 -0
  110. package/src/library-ai.ts +3 -0
  111. package/src/library.ts +2 -89
  112. package/src/media/ai/ai-doc-types.ts +21 -0
  113. package/src/media/properties/css.ts +4 -1
  114. package/src/media/properties/listSort.ts +1 -1
  115. package/src/media/properties/style.ts +2 -0
  116. package/src/media/templates/component/DesignComponent.vue +1 -1
  117. package/src/media/templates/constructors/ConstructorsDesign.tsx +4 -2
  118. package/src/media/templates/packages/library/package.json +2 -1
  119. package/src/media/templates/prompts/aiDocClassPrompt.en.txt +66 -0
  120. package/src/media/templates/prompts/aiDocClassPrompt.ru.txt +64 -0
  121. package/src/media/templates/prompts/aiDocComposablePrompt.en.txt +67 -0
  122. package/src/media/templates/prompts/aiDocComposablePrompt.ru.txt +67 -0
  123. package/src/media/templates/prompts/aiDocFunctionPrompt.en.txt +57 -0
  124. package/src/media/templates/prompts/aiDocFunctionPrompt.ru.txt +57 -0
  125. package/src/media/templates/prompts/componentPrompt.en.txt +105 -0
  126. package/src/media/templates/prompts/componentPrompt.ru.txt +105 -0
  127. package/src/media/templates/prompts/demoClassEn.mdx +111 -0
  128. package/src/media/templates/prompts/demoClassRu.mdx +111 -0
  129. package/src/media/templates/prompts/demoComponentEn.mdx +282 -0
  130. package/src/media/templates/prompts/demoComponentRu.mdx +282 -0
  131. package/src/media/templates/prompts/demoComposableEn.mdx +103 -0
  132. package/src/media/templates/prompts/demoComposableRu.mdx +103 -0
  133. package/src/media/templates/prompts/demoDocEn.mdx +30 -0
  134. package/src/media/templates/prompts/demoDocRu.mdx +30 -0
  135. package/src/media/templates/viteComponentTemplateConfig.ts +1 -1
  136. package/src/types/aiTypes.ts +19 -0
  137. package/src/types/configTypes.ts +8 -2
  138. package/src/types/gitTypes.ts +59 -0
  139. package/src/media/templates/componentPrompt.en.txt +0 -541
  140. package/src/media/templates/componentPrompt.ru.txt +0 -539
@@ -1,4 +1,6 @@
1
- import { forEach, isFilled, isObject, isObjectNotArray } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { forEach, isFilled, isObject, isObjectNotArray } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
  import { PropertiesItems } from '../PropertiesItems'
@@ -1,4 +1,6 @@
1
- import { toKebabCase } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { toKebabCase } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToVar } from './PropertiesToVar'
4
6
 
@@ -1,4 +1,6 @@
1
- import { getColumn, isObjectNotArray } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { getColumn, isObjectNotArray } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
 
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { PropertiesToAbstract } from './PropertiesToAbstract'
2
4
 
3
5
  import {
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { PropertiesToAbstract } from './PropertiesToAbstract'
2
4
 
3
5
  import { PropertyKey, PropertyType } from '../../../types/propertyTypes'
@@ -1,4 +1,6 @@
1
- import { isObjectNotArray } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isObjectNotArray } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
 
@@ -1,4 +1,6 @@
1
- import { forEach, isObjectNotArray, type Item } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { forEach, isObjectNotArray, type Item } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
 
@@ -1,4 +1,6 @@
1
- import { isObjectNotArray } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isObjectNotArray } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
 
@@ -1,4 +1,6 @@
1
- import { isObjectNotArray } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isObjectNotArray } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
 
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { PropertiesToAbstract } from './PropertiesToAbstract'
2
4
 
3
5
  import {
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { PropertiesToAbstract } from './PropertiesToAbstract'
2
4
 
3
5
  import {
@@ -1,4 +1,6 @@
1
- import { isString, toCamelCase } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isString, toCamelCase } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
  import { PropertiesValues } from '../PropertiesValues'
@@ -1,4 +1,6 @@
1
- import { isFilled, isObjectNotArray, toKebabCase } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isFilled, isObjectNotArray, toKebabCase } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesToAbstract } from './PropertiesToAbstract'
4
6
  import { PropertiesTypes } from '../PropertiesTypes'
@@ -1,4 +1,6 @@
1
- import { forEach, isFilled, isObjectNotArray } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { forEach, isFilled, isObjectNotArray } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { Properties } from '../Properties/Properties'
4
6
  import { PropertiesFile } from '../Properties/PropertiesFile'
@@ -1,4 +1,6 @@
1
- import { isFilled, isObjectNotArray, toKebabCase } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isFilled, isObjectNotArray, toKebabCase } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesItems } from '../Properties/PropertiesItems'
4
6
 
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { PropertiesItems } from '../Properties/PropertiesItems'
2
4
 
3
5
  import { StylesTool } from './StylesTool'
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import * as sass from 'sass'
2
4
 
3
5
  import { PropertiesItems } from '../Properties/PropertiesItems'
@@ -1,4 +1,6 @@
1
- import { strFill } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { strFill } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesConfig } from '../Properties/PropertiesConfig'
4
6
 
@@ -1,4 +1,6 @@
1
- import { forEach } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { forEach } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import {
4
6
  type PropertyItem,
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { StylesToAbstract } from './StylesToAbstract'
2
4
 
3
5
  /**
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { StylesToAbstract } from './StylesToAbstract'
2
4
 
3
5
  /**
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { StylesToAbstract } from './StylesToAbstract'
2
4
 
3
5
  /**
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { StylesToAbstract } from './StylesToAbstract'
2
4
 
3
5
  /**
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { StylesToAbstract } from './StylesToAbstract'
2
4
 
3
5
  /**
@@ -1,4 +1,6 @@
1
- import { isObjectNotArray, toCamelCase } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isObjectNotArray, toCamelCase } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesTool } from '../../Properties/PropertiesTool'
4
6
 
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { StylesToAbstract } from './StylesToAbstract'
2
4
 
3
5
  export class StylesToRoot extends StylesToAbstract {
@@ -1,4 +1,6 @@
1
- import { toKebabCase } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { toKebabCase } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesTool } from '../../Properties/PropertiesTool'
4
6
  import { StylesToAbstract } from './StylesToAbstract'
@@ -1,4 +1,6 @@
1
- import { isObjectNotArray } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { isObjectNotArray } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesItems } from '../../Properties/PropertiesItems'
4
6
  import { PropertiesValues } from '../../Properties/PropertiesValues'
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { StylesTool } from '../StylesTool'
2
4
  import { StylesToAbstract } from './StylesToAbstract'
3
5
 
@@ -2,6 +2,7 @@ import { PropertiesConfig } from '../classes/Properties/PropertiesConfig'
2
2
 
3
3
  import { AiAbstract } from '../classes/Ai/AiAbstract'
4
4
  import { AiGoogle } from '../classes/Ai/AiGoogle'
5
+ import { AiGoogleCli } from '../classes/Ai/AiGoogleCli'
5
6
 
6
7
  /**
7
8
  * Composable to obtain an AI instance based on configuration.
@@ -14,6 +15,8 @@ export function useAi(): AiAbstract | undefined {
14
15
  switch (type) {
15
16
  case 'gemini':
16
17
  return new AiGoogle()
18
+ case 'gemini-cli':
19
+ return new AiGoogleCli()
17
20
  }
18
21
 
19
22
  return undefined
package/src/config.ts CHANGED
@@ -30,6 +30,7 @@ export const UI_DIR_STRUCTURE = 'structure'
30
30
  export const UI_DIR_WIKI = 'wiki'
31
31
  export const UI_DIR_TEMPORARY = 'temporary'
32
32
  export const UI_DIR_DIST = 'dist'
33
+ export const UI_DIR_DIST_TEMPORARY = 'dist-temporary'
33
34
  export const UI_DIR_PROMPT = 'prompt'
34
35
  export const UI_DIR_PACKAGES = 'packages'
35
36
 
@@ -95,3 +96,13 @@ export const UI_PROPERTY_FOR_PROPS: string[] = [
95
96
  'readonly',
96
97
  'read-only'
97
98
  ]
99
+
100
+ /** Directories for AI documentation generation/ Каталоги для генерации AI документации */
101
+ export const UI_AI_DOC_DIRECTORY = [
102
+ '/classes/',
103
+ '/composables/',
104
+ '/functions/'
105
+ ]
106
+
107
+ /** Path to Storybook for AI documentation generation/ Путь к Storybook для генерации AI документации */
108
+ export const UI_AI_DOC_STORYBOOK = 'src/storybook'
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { UI_DIRS_COMPONENTS } from '../config'
2
4
 
3
5
  /**
@@ -0,0 +1,13 @@
1
+ import { PropertiesConfig } from '../classes/Properties/PropertiesConfig'
2
+
3
+ /**
4
+ * Returns AI configuration: API key and model.
5
+ *
6
+ * Возвращает конфигурацию ИИ: API ключ и модель.
7
+ */
8
+ export function getConfigAi(): [string, string] {
9
+ return [
10
+ PropertiesConfig.getAiKey(),
11
+ PropertiesConfig.getAiModel()
12
+ ]
13
+ }
@@ -1,4 +1,6 @@
1
- import { forEach } from '@dxtmisha/functional'
1
+ // export:none
2
+
3
+ import { forEach } from '@dxtmisha/functional-basic'
2
4
 
3
5
  import { PropertiesFile } from '../classes/Properties/PropertiesFile'
4
6
  import type { PropertyItem, PropertyList } from '../types/propertyTypes'
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import { PropertiesFile, type PropertiesFilePath } from '../classes/Properties/PropertiesFile'
2
4
 
3
5
  /**
@@ -1,3 +1,5 @@
1
+ // export:none
2
+
1
3
  import requirePath from 'path'
2
4
 
3
5
  /**
@@ -0,0 +1,3 @@
1
+ // Classes
2
+ export * from './classes/Ai/AiAbstract'
3
+ export * from './classes/Ai/AiGoogleLite'
package/src/library.ts CHANGED
@@ -1,102 +1,15 @@
1
1
  // Classes
2
2
  export * from './classes/Ai/AiAbstract'
3
3
  export * from './classes/Ai/AiGoogle'
4
- export * from './classes/Component/ComponentCreator'
5
- export * from './classes/Component/ComponentItem'
6
- export * from './classes/Component/ComponentWiki'
7
- export * from './classes/Component/ComponentWikiFile'
8
- export * from './classes/Design/DesignCommand'
9
- export * from './classes/Design/DesignComponent'
10
- export * from './classes/Design/DesignConstructor'
11
- export * from './classes/Design/DesignConstructors'
12
- export * from './classes/Design/DesignReplace'
13
- export * from './classes/Design/DesignStructure'
14
- export * from './classes/Design/DesignStructureClasses'
15
- export * from './classes/Design/DesignStructureItemAbstract'
16
- export * from './classes/Design/DesignStructureRead'
17
- export * from './classes/Design/DesignStructureStyles'
4
+ export * from './classes/Ai/AiGoogleLite'
18
5
  export * from './classes/Design/DesignTypescript'
19
- export * from './classes/Design/DesignUi'
20
- export * from './classes/Design/DesignWiki'
21
- export * from './classes/Library/LibraryExport'
22
- export * from './classes/Library/LibraryFlags'
23
- export * from './classes/Library/LibraryItems'
24
- export * from './classes/Library/LibraryMedia'
25
- export * from './classes/Package/PackageInit'
26
- export * from './classes/Package/PackageItem'
27
- export * from './classes/Properties/Properties'
28
- export * from './classes/Properties/PropertiesCache'
29
- export * from './classes/Properties/PropertiesConfig'
30
- export * from './classes/Properties/PropertiesConvector'
31
6
  export * from './classes/Properties/PropertiesFile'
32
- export * from './classes/Properties/PropertiesImport'
33
- export * from './classes/Properties/PropertiesItems'
34
- export * from './classes/Properties/PropertiesKeys'
35
- export * from './classes/Properties/PropertiesMain'
36
- export * from './classes/Properties/PropertiesPalette'
37
- export * from './classes/Properties/PropertiesPath'
38
- export * from './classes/Properties/PropertiesScss'
39
- export * from './classes/Properties/PropertiesSeparator'
40
- export * from './classes/Properties/PropertiesSettings'
41
- export * from './classes/Properties/PropertiesStandard'
42
- export * from './classes/Properties/PropertiesTool'
43
- export * from './classes/Properties/PropertiesTypes'
44
- export * from './classes/Properties/PropertiesValues'
45
- export * from './classes/Properties/PropertiesWrap'
46
- export * from './classes/Properties/convector/convectorColor'
47
- export * from './classes/Properties/convector/convectorFontFamilies'
48
- export * from './classes/Properties/convector/convectorShadow'
49
- export * from './classes/Properties/convector/convectorTypography'
50
- export * from './classes/Properties/to/PropertiesToAbstract'
51
- export * from './classes/Properties/to/PropertiesToAnimate'
52
- export * from './classes/Properties/to/PropertiesToClass'
53
- export * from './classes/Properties/to/PropertiesToClone'
54
- export * from './classes/Properties/to/PropertiesToComponent'
55
- export * from './classes/Properties/to/PropertiesToDrag'
56
- export * from './classes/Properties/to/PropertiesToDuplicate'
57
- export * from './classes/Properties/to/PropertiesToFull'
58
- export * from './classes/Properties/to/PropertiesToLink'
59
- export * from './classes/Properties/to/PropertiesToMedia'
60
- export * from './classes/Properties/to/PropertiesToMulti'
61
- export * from './classes/Properties/to/PropertiesToNone'
62
- export * from './classes/Properties/to/PropertiesToPalette'
63
- export * from './classes/Properties/to/PropertiesToProperty'
64
- export * from './classes/Properties/to/PropertiesToRemove'
65
- export * from './classes/Properties/to/PropertiesToReplace'
66
- export * from './classes/Properties/to/PropertiesToRoot'
67
- export * from './classes/Properties/to/PropertiesToSimilar'
68
- export * from './classes/Properties/to/PropertiesToSort'
69
- export * from './classes/Properties/to/PropertiesToState'
70
- export * from './classes/Properties/to/PropertiesToStyle'
71
- export * from './classes/Properties/to/PropertiesToSub'
72
- export * from './classes/Properties/to/PropertiesToSubclass'
73
- export * from './classes/Properties/to/PropertiesToVar'
74
- export * from './classes/Properties/to/PropertiesToVariable'
75
- export * from './classes/Styles/Styles'
76
- export * from './classes/Styles/StylesClasses'
77
- export * from './classes/Styles/StylesProperties'
78
- export * from './classes/Styles/StylesRoot'
79
- export * from './classes/Styles/StylesTool'
80
- export * from './classes/Styles/to/StylesToAbstract'
81
- export * from './classes/Styles/to/StylesToAnimate'
82
- export * from './classes/Styles/to/StylesToClass'
83
- export * from './classes/Styles/to/StylesToClassFull'
84
- export * from './classes/Styles/to/StylesToContainer'
85
- export * from './classes/Styles/to/StylesToMedia'
86
- export * from './classes/Styles/to/StylesToProperty'
87
- export * from './classes/Styles/to/StylesToRoot'
88
- export * from './classes/Styles/to/StylesToSelector'
89
- export * from './classes/Styles/to/StylesToVar'
90
- export * from './classes/Styles/to/StylesToVirtual'
91
7
 
92
8
  // Composables
93
9
  export * from './composables/useAi'
94
10
 
95
11
  // Functions
96
- export * from './functions/getComponentPaths'
97
- export * from './functions/getConstructorProperties'
98
- export * from './functions/getNameDirByPaths'
99
- export * from './functions/toPathStandardSep'
12
+ export * from './functions/getConfigAi'
100
13
 
101
14
  // Types
102
15
  export * from './types/configTypes'
@@ -0,0 +1,21 @@
1
+ import { AiDocItem } from '../../classes/Ai/AiDocItem'
2
+ import { AiDocItemClasses } from '../../classes/Ai/AiDocItemClasses'
3
+ import { AiDocItemComposables } from '../../classes/Ai/AiDocItemComposables'
4
+
5
+ import type { AiDocTypes } from '../../types/aiTypes'
6
+
7
+ /** AI Documentation Types/ AI Документация Типы */
8
+ export const aiDocTypes: AiDocTypes = [
9
+ {
10
+ check: item => Boolean(item.path.match('/classes/')),
11
+ item: AiDocItemClasses
12
+ },
13
+ {
14
+ check: item => Boolean(item.path.match('/composables/')),
15
+ item: AiDocItemComposables
16
+ },
17
+ {
18
+ check: () => true,
19
+ item: AiDocItem
20
+ }
21
+ ]
@@ -284,6 +284,8 @@ export const cssBackgrounds: string[] = [
284
284
  'gradient', // mixin
285
285
  'gradient-opacity', // mixin
286
286
  'palette-gradient', // mixin
287
+ 'outline', // mixin
288
+ 'outline-opacity', // mixin
287
289
  'background-repeat',
288
290
  'background-attachment',
289
291
  'background-position',
@@ -390,7 +392,8 @@ export const cssBorder: string[] = [
390
392
  'outline',
391
393
  'outline-width',
392
394
  'outline-style',
393
- 'outline-color',
395
+ 'outline-color', // mixin
396
+ 'outline-opacity', // mixin
394
397
  'outline-offset'
395
398
  ]
396
399
 
@@ -1,4 +1,4 @@
1
- import type { Item } from '@dxtmisha/functional'
1
+ import type { Item } from '@dxtmisha/functional-basic'
2
2
 
3
3
  import {
4
4
  PropertyCategory,
@@ -70,6 +70,8 @@ export const styleTypes: string[] = [
70
70
  'gradient-opacity',
71
71
  'border-color',
72
72
  'border-opacity',
73
+ 'outline-color',
74
+ 'outline-opacity',
73
75
 
74
76
  /* Transform */
75
77
  'translate-x',
@@ -50,5 +50,5 @@
50
50
  </script>
51
51
 
52
52
  <!-- :component.once <template> -->
53
- <!-- :component.once <component :is="render"/> -->
53
+ <!-- :component.once <render/> -->
54
54
  <!-- :component.once </template> -->
@@ -42,11 +42,13 @@ export class ConstructorsDesign<
42
42
  * @param name class name/ название класса
43
43
  * @param props properties/ свойства
44
44
  * @param options list of additional parameters/ список дополнительных параметров
45
+ * @param ItemConstructor constructors item class/ класс элемента конструкторов
45
46
  */
46
47
  constructor(
47
48
  name: string,
48
49
  props: Readonly<P>,
49
- options?: ConstrOptions<COMP, ConstructorsEmits, P>
50
+ options?: ConstrOptions<COMP, ConstructorsEmits, P>,
51
+ ItemConstructor: typeof Constructors = Constructors
50
52
  ) {
51
53
  super(
52
54
  name,
@@ -54,7 +56,7 @@ export class ConstructorsDesign<
54
56
  options
55
57
  )
56
58
 
57
- this.item = new Constructors(
59
+ this.item = new ItemConstructor(
58
60
  this.props,
59
61
  this.refs,
60
62
  this.element,
@@ -10,7 +10,8 @@
10
10
  "preview": "vite preview",
11
11
  "test": "vitest",
12
12
  "component": "dxt-component",
13
- "library": "dxt-library"
13
+ "library": "dxt-library",
14
+ "wiki": "dxt-ai-doc"
14
15
  },
15
16
  "files": [
16
17
  "dist",
@@ -0,0 +1,66 @@
1
+ You are a professional technical writer and developer. Your task is to create comprehensive documentation for a TypeScript class in [wikiLanguage] in MDX format for Storybook.
2
+
3
+ Use the following template and style. Your response must contain ONLY MDX code.
4
+
5
+ ### Input Data:
6
+ - Class code (will be provided).
7
+ - Section title: [title] (insert it into <Meta title='...'/>).
8
+ - [title] should be inserted as is; it is a label for the script.
9
+ - Documentation must be in [wikiLanguage].
10
+ - All headers and descriptions must be in [wikiLanguage] (everything described in the "Documentation Structure" section must be in [wikiLanguage], example "Parameters", "Returns").
11
+
12
+ ### Documentation Structure:
13
+
14
+ 1. **Header**:
15
+ ```javascript
16
+ import {Meta} from '@storybook/addon-docs/blocks'
17
+
18
+ <Meta title='[title]'/>
19
+ ```
20
+
21
+ 2. **Title and Description**:
22
+ - `# ClassName`
23
+ - A paragraph with a description: the class's purpose, main use cases, and benefits.
24
+
25
+ 3. **Key Features**:
26
+ - Header `## Key Features`
27
+ - Bulleted list.
28
+ - Format: `- **Feature Name** — description.`
29
+
30
+ 4. **Data Types** (Optional, if there are important interfaces):
31
+ - Header `## Data Types`
32
+ - Subheaders `### TypeName`
33
+ - Property descriptions as a list: `- `prop: type` — description`.
34
+ - Object example (code).
35
+
36
+ 5. **Methods**:
37
+ - Header `## Methods` (or `## Class Methods`, `## Static Methods`).
38
+ - For each public method:
39
+ - `### `methodName``
40
+ - Description of what the method does.
41
+ - **Parameters:** (if any)
42
+ - List: `- `name: type` — description`.
43
+ - **Returns:** (if it returns a value)
44
+ - `Type` — description.
45
+ - **Code Example**:
46
+ ```javascript
47
+ // Example usage
48
+ Class.method(arg);
49
+ ```
50
+
51
+ ### Instructions:
52
+ 1. Study the provided class code.
53
+ 2. Identify public methods and properties.
54
+ 3. Generate documentation strictly following the template above.
55
+ 3.1. If a method, type, or the class itself is already described and there have been no changes, do not modify the description.
56
+ 3.2. Try to preserve original descriptions unchanged.
57
+ 4. Use the correct terminology.
58
+ 4.1. All headings must be in [wikiLanguage].
59
+ 5. Do not add unnecessary introductions or conclusions, only MDX.
60
+ 6. Return only the full MDX documentation code without any additional text, comments, or markdown formatting (```).
61
+ 7. The result must be exclusively text (response); do not attach any files.
62
+ 8. Return the response in the format: [short description of 3-5 words about the class purpose]#########[original class code with comments for methods, variables, properties, and the class itself (add them if missing). If everything is already present, return --FULL--]#########[the MDX documentation following the template above].
63
+
64
+
65
+
66
+