@dxtmisha/scripts 0.11.7 → 1.0.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/CHANGELOG.md +67 -0
- package/ai-resources/componentMaterials.md +19 -0
- package/ai-resources/componentPrompt.md +381 -0
- package/ai-resources/componentWiki.md +13 -0
- package/bin/arguments.ts +168 -0
- package/bin/build-packages.ts +12 -2
- package/bin/build-publish-packages.ts +12 -2
- package/bin/design-component.ts +7 -1
- package/bin/design-constructor.ts +22 -3
- package/bin/design-figma.ts +26 -4
- package/bin/design-flags.ts +14 -2
- package/bin/design-library.ts +7 -1
- package/bin/design-package.ts +29 -5
- package/bin/design-prompt.ts +22 -3
- package/bin/design-screenshot.ts +12 -2
- package/bin/design-types-save.ts +32 -5
- package/bin/design-types.ts +32 -6
- package/bin/design-ui.ts +21 -3
- package/bin/design-wiki-storm.ts +11 -3
- package/dist/AiZAi-x3CInynJ.js +232 -0
- package/dist/PropertiesConfig-ChizwW5y.js +250 -0
- package/{src/config.ts → dist/config.d.ts} +179 -158
- package/dist/config.js +20 -0
- package/dist/figmaApiTypes-CArSsNW8.js +6 -0
- package/dist/library-ai.d.ts +482 -0
- package/dist/library-ai.js +2 -0
- package/dist/library-figma.d.ts +462 -0
- package/dist/library-figma.js +75 -0
- package/dist/library-ui.d.ts +586 -0
- package/dist/library-ui.js +3760 -0
- package/dist/library.d.ts +4677 -0
- package/dist/library.js +1436 -0
- package/dist/propertyTypes-DflziKuR.js +236 -0
- package/package.json +69 -20
- package/bin/ai-doc.ts +0 -7
- package/bin/build-functional.ts +0 -5
- package/bin/design-component-wiki.ts +0 -11
- package/src/classes/Ai/AiAbstract.ts +0 -242
- package/src/classes/Ai/AiClaude.ts +0 -26
- package/src/classes/Ai/AiClaudeAgent.ts +0 -16
- package/src/classes/Ai/AiClaudeAgentLite.ts +0 -86
- package/src/classes/Ai/AiClaudeCli.ts +0 -24
- package/src/classes/Ai/AiClaudeCliLite.ts +0 -108
- package/src/classes/Ai/AiClaudeLite.ts +0 -112
- package/src/classes/Ai/AiDoc.ts +0 -81
- package/src/classes/Ai/AiDocItem.ts +0 -27
- package/src/classes/Ai/AiDocItemAbstract.ts +0 -209
- package/src/classes/Ai/AiDocItemClasses.ts +0 -27
- package/src/classes/Ai/AiDocItemComposables.ts +0 -20
- package/src/classes/Ai/AiDocType.ts +0 -45
- package/src/classes/Ai/AiGoogle.ts +0 -26
- package/src/classes/Ai/AiGoogleCli.ts +0 -24
- package/src/classes/Ai/AiGoogleCliLite.ts +0 -108
- package/src/classes/Ai/AiGoogleLite.ts +0 -78
- package/src/classes/Ai/AiOpenAi.ts +0 -26
- package/src/classes/Ai/AiOpenAiLite.ts +0 -107
- package/src/classes/Ai/AiZAi.ts +0 -17
- package/src/classes/Ai/AiZAiLite.ts +0 -77
- package/src/classes/Ai/ApiTmp.ts +0 -43
- package/src/classes/BrowserItem.ts +0 -408
- package/src/classes/Build/BuildFunctional.ts +0 -54
- package/src/classes/Build/BuildPackages.ts +0 -137
- package/src/classes/Build/BuildPublishPackages.ts +0 -105
- package/src/classes/BuildItem.ts +0 -187
- package/src/classes/Component/ComponentCreator.ts +0 -45
- package/src/classes/Component/ComponentItem.ts +0 -161
- package/src/classes/Component/ComponentWiki.ts +0 -258
- package/src/classes/Component/ComponentWikiFile.ts +0 -138
- package/src/classes/Design/DesignCommand.ts +0 -243
- package/src/classes/Design/DesignComponent.ts +0 -824
- package/src/classes/Design/DesignConstructor.ts +0 -222
- package/src/classes/Design/DesignConstructors.ts +0 -101
- package/src/classes/Design/DesignFigma.ts +0 -61
- package/src/classes/Design/DesignFlags.ts +0 -215
- package/src/classes/Design/DesignReplace.ts +0 -672
- package/src/classes/Design/DesignScreenshot.ts +0 -133
- package/src/classes/Design/DesignStructure.ts +0 -201
- package/src/classes/Design/DesignStructureClasses.ts +0 -105
- package/src/classes/Design/DesignStructureItemAbstract.ts +0 -52
- package/src/classes/Design/DesignStructureRead.ts +0 -349
- package/src/classes/Design/DesignStructureStyles.ts +0 -45
- package/src/classes/Design/DesignTypes.ts +0 -94
- package/src/classes/Design/DesignTypesAi.ts +0 -135
- package/src/classes/Design/DesignTypesDescription.ts +0 -119
- package/src/classes/Design/DesignTypesMake.ts +0 -460
- package/src/classes/Design/DesignTypesMcp.ts +0 -90
- package/src/classes/Design/DesignTypesPrompts.ts +0 -332
- package/src/classes/Design/DesignTypescript.ts +0 -244
- package/src/classes/Design/DesignUi.ts +0 -143
- package/src/classes/Design/DesignWiki.ts +0 -52
- package/src/classes/Design/DesignWikiStorm.ts +0 -95
- package/src/classes/Design/DesignWikiStormItem.ts +0 -316
- package/src/classes/FigmaApi.ts +0 -190
- package/src/classes/Git/GitRead.ts +0 -261
- package/src/classes/Library/LibraryAiMcpItem.ts +0 -67
- package/src/classes/Library/LibraryAiPrompt.ts +0 -268
- package/src/classes/Library/LibraryAiPromptItem.ts +0 -331
- package/src/classes/Library/LibraryAiWiki.ts +0 -127
- package/src/classes/Library/LibraryAiWikiItem.ts +0 -79
- package/src/classes/Library/LibraryExport.ts +0 -167
- package/src/classes/Library/LibraryFlags.ts +0 -62
- package/src/classes/Library/LibraryItems.ts +0 -138
- package/src/classes/Library/LibraryList.ts +0 -189
- package/src/classes/Library/LibraryMedia.ts +0 -139
- package/src/classes/Library/LibraryPlugin.ts +0 -73
- package/src/classes/Library/LibraryTypes.ts +0 -130
- package/src/classes/Package/PackageFile.ts +0 -154
- package/src/classes/Package/PackageInit.ts +0 -54
- package/src/classes/Package/PackageItem.ts +0 -329
- package/src/classes/Properties/Properties.ts +0 -175
- package/src/classes/Properties/PropertiesCache.ts +0 -248
- package/src/classes/Properties/PropertiesConfig.ts +0 -213
- package/src/classes/Properties/PropertiesConvector.ts +0 -52
- package/src/classes/Properties/PropertiesFile.ts +0 -522
- package/src/classes/Properties/PropertiesImport.ts +0 -182
- package/src/classes/Properties/PropertiesItems.ts +0 -605
- package/src/classes/Properties/PropertiesKeys.ts +0 -121
- package/src/classes/Properties/PropertiesMain.ts +0 -138
- package/src/classes/Properties/PropertiesPalette.ts +0 -149
- package/src/classes/Properties/PropertiesPath.ts +0 -193
- package/src/classes/Properties/PropertiesScss.ts +0 -261
- package/src/classes/Properties/PropertiesSeparator.ts +0 -118
- package/src/classes/Properties/PropertiesSettings.ts +0 -104
- package/src/classes/Properties/PropertiesStandard.ts +0 -180
- package/src/classes/Properties/PropertiesTool.ts +0 -80
- package/src/classes/Properties/PropertiesTypes.ts +0 -147
- package/src/classes/Properties/PropertiesValues.ts +0 -75
- package/src/classes/Properties/PropertiesWrap.ts +0 -187
- package/src/classes/Properties/convector/convectorColor.ts +0 -27
- package/src/classes/Properties/convector/convectorFontFamilies.ts +0 -18
- package/src/classes/Properties/convector/convectorShadow.ts +0 -61
- package/src/classes/Properties/convector/convectorTypography.ts +0 -19
- package/src/classes/Properties/to/PropertiesToAbstract.ts +0 -51
- package/src/classes/Properties/to/PropertiesToAnimate.ts +0 -59
- package/src/classes/Properties/to/PropertiesToClass.ts +0 -49
- package/src/classes/Properties/to/PropertiesToClone.ts +0 -114
- package/src/classes/Properties/to/PropertiesToComponent.ts +0 -52
- package/src/classes/Properties/to/PropertiesToDrag.ts +0 -231
- package/src/classes/Properties/to/PropertiesToDuplicate.ts +0 -165
- package/src/classes/Properties/to/PropertiesToFull.ts +0 -36
- package/src/classes/Properties/to/PropertiesToLink.ts +0 -259
- package/src/classes/Properties/to/PropertiesToMedia.ts +0 -187
- package/src/classes/Properties/to/PropertiesToMulti.ts +0 -101
- package/src/classes/Properties/to/PropertiesToNone.ts +0 -46
- package/src/classes/Properties/to/PropertiesToPalette.ts +0 -241
- package/src/classes/Properties/to/PropertiesToProperty.ts +0 -31
- package/src/classes/Properties/to/PropertiesToRemove.ts +0 -33
- package/src/classes/Properties/to/PropertiesToReplace.ts +0 -77
- package/src/classes/Properties/to/PropertiesToRoot.ts +0 -40
- package/src/classes/Properties/to/PropertiesToSimilar.ts +0 -128
- package/src/classes/Properties/to/PropertiesToSort.ts +0 -146
- package/src/classes/Properties/to/PropertiesToState.ts +0 -65
- package/src/classes/Properties/to/PropertiesToStyle.ts +0 -52
- package/src/classes/Properties/to/PropertiesToSub.ts +0 -95
- package/src/classes/Properties/to/PropertiesToSubclass.ts +0 -76
- package/src/classes/Properties/to/PropertiesToVar.ts +0 -194
- package/src/classes/Properties/to/PropertiesToVariable.ts +0 -176
- package/src/classes/Styles/Styles.ts +0 -247
- package/src/classes/Styles/StylesClasses.ts +0 -86
- package/src/classes/Styles/StylesProperties.ts +0 -197
- package/src/classes/Styles/StylesRoot.ts +0 -103
- package/src/classes/Styles/StylesTool.ts +0 -112
- package/src/classes/Styles/to/StylesToAbstract.ts +0 -93
- package/src/classes/Styles/to/StylesToAnimate.ts +0 -19
- package/src/classes/Styles/to/StylesToClass.ts +0 -25
- package/src/classes/Styles/to/StylesToClassFull.ts +0 -19
- package/src/classes/Styles/to/StylesToContainer.ts +0 -24
- package/src/classes/Styles/to/StylesToMedia.ts +0 -19
- package/src/classes/Styles/to/StylesToProperty.ts +0 -123
- package/src/classes/Styles/to/StylesToRoot.ts +0 -14
- package/src/classes/Styles/to/StylesToSelector.ts +0 -71
- package/src/classes/Styles/to/StylesToVar.ts +0 -105
- package/src/classes/Styles/to/StylesToVirtual.ts +0 -33
- package/src/composables/useAi.ts +0 -38
- package/src/demo/ai.ts +0 -10
- package/src/functions/getComponentPaths.ts +0 -13
- package/src/functions/getConfigAi.ts +0 -14
- package/src/functions/getConstructorProperties.ts +0 -54
- package/src/functions/getDirname.ts +0 -17
- package/src/functions/getNameDirByPaths.ts +0 -16
- package/src/functions/getPackageJson.ts +0 -19
- package/src/functions/hasNativeDirname.ts +0 -8
- package/src/functions/run.ts +0 -47
- package/src/functions/toPathStandardSep.ts +0 -14
- package/src/library-ai.ts +0 -10
- package/src/library.ts +0 -73
- package/src/media/ai/ai-doc-types.ts +0 -21
- package/src/media/properties/css.ts +0 -634
- package/src/media/properties/cssSelector.ts +0 -74
- package/src/media/properties/cssVirtual.ts +0 -12
- package/src/media/properties/listSort.ts +0 -113
- package/src/media/properties/style.ts +0 -81
- package/src/media/templates/component/DesignComponent.mdx +0 -30
- package/src/media/templates/component/DesignComponent.stories.ts +0 -34
- package/src/media/templates/component/DesignComponent.vue +0 -54
- package/src/media/templates/component/DesignComponentAiWiki.vue +0 -25
- package/src/media/templates/component/index.ts +0 -13
- package/src/media/templates/component/props.ts +0 -27
- package/src/media/templates/component/styleToken.scss +0 -17
- package/src/media/templates/component/wiki.ts +0 -13
- package/src/media/templates/component/wikiData.ts +0 -28
- package/src/media/templates/componentDoc/ComponentDoc.vue +0 -26
- package/src/media/templates/componentDoc/index.ts +0 -12
- package/src/media/templates/componentDoc/materials/README.md +0 -8
- package/src/media/templates/componentDoc/materials/prompt.md +0 -38
- package/src/media/templates/componentDoc/subcomponents/_.gitignore.txt +0 -0
- package/src/media/templates/componentDoc/types.ts +0 -15
- package/src/media/templates/componentDoc/wiki/ComponentDoc.mdx +0 -13
- package/src/media/templates/componentDoc/wiki/ComponentDoc.stories.ts +0 -24
- package/src/media/templates/componentDoc/wiki/prompt.md +0 -41
- package/src/media/templates/constructors/Constructors.ts +0 -33
- package/src/media/templates/constructors/ConstructorsDesign.tsx +0 -129
- package/src/media/templates/constructors/basicTypes.ts +0 -0
- package/src/media/templates/constructors/index.ts +0 -5
- package/src/media/templates/constructors/props.ts +0 -28
- package/src/media/templates/constructors/style.scss +0 -5
- package/src/media/templates/constructors/types.ts +0 -47
- package/src/media/templates/packages/figma/README.md +0 -1
- package/src/media/templates/packages/figma/_.gitignore.txt +0 -29
- package/src/media/templates/packages/figma/ai.sample.config.ts +0 -2
- package/src/media/templates/packages/figma/design.config.json +0 -3
- package/src/media/templates/packages/figma/index.html +0 -12
- package/src/media/templates/packages/figma/manifest.json +0 -25
- package/src/media/templates/packages/figma/package.json +0 -37
- package/src/media/templates/packages/figma/src/App.vue +0 -9
- package/src/media/templates/packages/figma/src/classes/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/code.ts +0 -16
- package/src/media/templates/packages/figma/src/components/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/composables/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/config.ts +0 -0
- package/src/media/templates/packages/figma/src/functions/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/library.ts +0 -0
- package/src/media/templates/packages/figma/src/main.ts +0 -4
- package/src/media/templates/packages/figma/src/media/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/storybook/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/types/_.gitignore.txt +0 -1
- package/src/media/templates/packages/figma/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/figma/tsconfig.app.json +0 -12
- package/src/media/templates/packages/figma/tsconfig.json +0 -7
- package/src/media/templates/packages/figma/tsconfig.node.json +0 -8
- package/src/media/templates/packages/figma/vite.config.ts +0 -7
- package/src/media/templates/packages/library/README.md +0 -1
- package/src/media/templates/packages/library/_.gitignore.txt +0 -27
- package/src/media/templates/packages/library/ai-description.md +0 -15
- package/src/media/templates/packages/library/design.config.json +0 -3
- package/src/media/templates/packages/library/index.html +0 -12
- package/src/media/templates/packages/library/materials/README.md +0 -8
- package/src/media/templates/packages/library/materials/prompt.md +0 -45
- package/src/media/templates/packages/library/package.json +0 -46
- package/src/media/templates/packages/library/src/App.vue +0 -8
- package/src/media/templates/packages/library/src/classes/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/components/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/composables/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/functions/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/library.ts +0 -0
- package/src/media/templates/packages/library/src/main.ts +0 -6
- package/src/media/templates/packages/library/src/style.scss +0 -0
- package/src/media/templates/packages/library/src/types/_.gitignore.txt +0 -1
- package/src/media/templates/packages/library/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/library/tsconfig.app.json +0 -11
- package/src/media/templates/packages/library/tsconfig.json +0 -7
- package/src/media/templates/packages/library/tsconfig.node.json +0 -7
- package/src/media/templates/packages/library/vite.config.ts +0 -14
- package/src/media/templates/packages/nitro/README.md +0 -1
- package/src/media/templates/packages/nitro/_.gitignore.txt +0 -28
- package/src/media/templates/packages/nitro/index.html +0 -2
- package/src/media/templates/packages/nitro/package.json +0 -25
- package/src/media/templates/packages/nitro/server/plugins/ui-plugin.ts +0 -7
- package/src/media/templates/packages/nitro/server/routes/api/hello.ts +0 -13
- package/src/media/templates/packages/nitro/src/App.vue +0 -10
- package/src/media/templates/packages/nitro/src/assets/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/components/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/composables/_.gitignore.txt +0 -0
- package/src/media/templates/packages/nitro/src/entry-client.ts +0 -13
- package/src/media/templates/packages/nitro/src/entry-server.ts +0 -29
- package/src/media/templates/packages/nitro/src/main.ts +0 -14
- package/src/media/templates/packages/nitro/src/pages/HomePage.vue +0 -8
- package/src/media/templates/packages/nitro/src/router.ts +0 -11
- package/src/media/templates/packages/nitro/src/style.scss +0 -0
- package/src/media/templates/packages/nitro/src/templates/main.html +0 -21
- package/src/media/templates/packages/nitro/src/vite-env.d.ts +0 -11
- package/src/media/templates/packages/nitro/tsconfig.app.json +0 -14
- package/src/media/templates/packages/nitro/tsconfig.json +0 -7
- package/src/media/templates/packages/nitro/tsconfig.node.json +0 -12
- package/src/media/templates/packages/nitro/vite.config.ts +0 -17
- package/src/media/templates/packages/project/README.md +0 -1
- package/src/media/templates/packages/project/_.gitignore.txt +0 -28
- package/src/media/templates/packages/project/design.config.json +0 -3
- package/src/media/templates/packages/project/index.html +0 -12
- package/src/media/templates/packages/project/materials/README.md +0 -8
- package/src/media/templates/packages/project/materials/prompt.md +0 -41
- package/src/media/templates/packages/project/package.json +0 -13
- package/src/media/templates/packages/project/public/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/App.vue +0 -12
- package/src/media/templates/packages/project/src/assets/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/components/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/composables/_.gitignore.txt +0 -0
- package/src/media/templates/packages/project/src/main.ts +0 -6
- package/src/media/templates/packages/project/src/style.scss +0 -0
- package/src/media/templates/packages/project/src/vite-env.d.ts +0 -1
- package/src/media/templates/packages/project/tsconfig.app.json +0 -11
- package/src/media/templates/packages/project/tsconfig.json +0 -7
- package/src/media/templates/packages/project/tsconfig.node.json +0 -7
- package/src/media/templates/packages/project/vite.config.ts +0 -7
- package/src/media/templates/prompts/aiCodeGlobalPrompt.en.md +0 -22
- package/src/media/templates/prompts/aiCodeGlobalPrompt.ru.md +0 -21
- package/src/media/templates/prompts/aiCodeVuePrompt.en.md +0 -17
- package/src/media/templates/prompts/aiCodeVuePrompt.ru.md +0 -17
- package/src/media/templates/prompts/aiDocClassPrompt.en.txt +0 -63
- package/src/media/templates/prompts/aiDocClassPrompt.ru.txt +0 -63
- package/src/media/templates/prompts/aiDocComposablePrompt.en.txt +0 -67
- package/src/media/templates/prompts/aiDocComposablePrompt.ru.txt +0 -67
- package/src/media/templates/prompts/aiDocFunctionPrompt.en.txt +0 -57
- package/src/media/templates/prompts/aiDocFunctionPrompt.ru.txt +0 -57
- package/src/media/templates/prompts/componentPrompt.en.txt +0 -182
- package/src/media/templates/prompts/componentPrompt.ru.txt +0 -182
- package/src/media/templates/prompts/demoClassEn.mdx +0 -111
- package/src/media/templates/prompts/demoClassRu.mdx +0 -111
- package/src/media/templates/prompts/demoComponentEn.mdx +0 -282
- package/src/media/templates/prompts/demoComponentRu.mdx +0 -282
- package/src/media/templates/prompts/demoComposableEn.mdx +0 -103
- package/src/media/templates/prompts/demoComposableRu.mdx +0 -103
- package/src/media/templates/prompts/demoDocEn.mdx +0 -30
- package/src/media/templates/prompts/demoDocRu.mdx +0 -30
- package/src/media/templates/viteComponentTemplateConfig.ts +0 -14
- package/src/types/aiTypes.ts +0 -19
- package/src/types/configTypes.ts +0 -69
- package/src/types/designTypes.ts +0 -167
- package/src/types/figmaApiTypes.ts +0 -337
- package/src/types/gitTypes.ts +0 -59
- package/src/types/libraryTypes.ts +0 -49
- package/src/types/propertyTypes.ts +0 -586
- package/src/types/screenshotTypes.ts +0 -55
- package/src/types/webTypes.ts +0 -134
- package/src/vite-env.d.ts +0 -1
|
@@ -0,0 +1,250 @@
|
|
|
1
|
+
import { UI_CONFIG_FILE as e, UI_FILE_INDEX as t, UI_MODULES as n, UI_PROJECT_NAME as r } from "./config.js";
|
|
2
|
+
import { Datetime as i, forEach as a, toArray as o, toKebabCase as s, transformation as c } from "@dxtmisha/functional-basic";
|
|
3
|
+
import l from "path";
|
|
4
|
+
import u from "node:fs";
|
|
5
|
+
import d from "node:path";
|
|
6
|
+
import { fileURLToPath as f } from "node:url";
|
|
7
|
+
//#region src/functions/toPathStandardSep.ts
|
|
8
|
+
function p(e) {
|
|
9
|
+
return e.replace(/\//g, l.sep);
|
|
10
|
+
}
|
|
11
|
+
//#endregion
|
|
12
|
+
//#region src/classes/Properties/PropertiesFile.ts
|
|
13
|
+
var m = d.dirname(f(import.meta.url)), h = class {
|
|
14
|
+
static root;
|
|
15
|
+
static module;
|
|
16
|
+
static is(e) {
|
|
17
|
+
return u.existsSync(this.joinPath(e));
|
|
18
|
+
}
|
|
19
|
+
static isDir(e) {
|
|
20
|
+
return this.is(e) ? u.statSync(this.joinPath(e))?.isDirectory() ?? !1 : !this.joinPath(e).match(/\.\w+$/);
|
|
21
|
+
}
|
|
22
|
+
static isModule() {
|
|
23
|
+
return this.module;
|
|
24
|
+
}
|
|
25
|
+
static joinPath(e) {
|
|
26
|
+
let t = a(o(e), (e) => this.toSep(e));
|
|
27
|
+
return d.join(...t);
|
|
28
|
+
}
|
|
29
|
+
static joinPathByName(e, t, n = "json") {
|
|
30
|
+
return this.joinPath([...o(e), this.getFileName(t, n)]);
|
|
31
|
+
}
|
|
32
|
+
static getRoot() {
|
|
33
|
+
return this.root;
|
|
34
|
+
}
|
|
35
|
+
static getRootProject(e = this.root, t = 10) {
|
|
36
|
+
let i = this.joinPath([
|
|
37
|
+
e,
|
|
38
|
+
n,
|
|
39
|
+
r
|
|
40
|
+
]);
|
|
41
|
+
if (this.readDir(i).length > 0) return i;
|
|
42
|
+
if (e.match(d.sep) && t > 0) return this.getRootProject(e.replace(/\/[^/]+$/, ""), t - 1);
|
|
43
|
+
}
|
|
44
|
+
static getFileName(e, t = "json") {
|
|
45
|
+
return t && t !== "" ? `${s(e)}.${t}` : e;
|
|
46
|
+
}
|
|
47
|
+
static getPathDir(e) {
|
|
48
|
+
return this.isDir(e) ? this.joinPath(e) : d.dirname(this.joinPath(e));
|
|
49
|
+
}
|
|
50
|
+
static getPathFile(e, t, n = "json") {
|
|
51
|
+
return [...o(e), this.getFileName(t, n)];
|
|
52
|
+
}
|
|
53
|
+
static splitForDir(e) {
|
|
54
|
+
let t = this.isDir(e) ? e : this.parse(e)?.dir;
|
|
55
|
+
return this.joinPath(t || "").split(d.sep);
|
|
56
|
+
}
|
|
57
|
+
static parse(e) {
|
|
58
|
+
return d.parse(this.joinPath(e));
|
|
59
|
+
}
|
|
60
|
+
static sep() {
|
|
61
|
+
return d.sep;
|
|
62
|
+
}
|
|
63
|
+
static stat(e) {
|
|
64
|
+
if (this.is(e)) return { ...u.statSync(this.joinPath(e)) };
|
|
65
|
+
}
|
|
66
|
+
static getTime(e) {
|
|
67
|
+
return new i(this.stat(e)?.mtimeMs, "full").standard();
|
|
68
|
+
}
|
|
69
|
+
static toSep(e) {
|
|
70
|
+
return this.sep() === "/" ? e : e.replace("/", this.sep());
|
|
71
|
+
}
|
|
72
|
+
static readDir(e) {
|
|
73
|
+
return this.is(e) ? u.readdirSync(this.joinPath(e)) : [];
|
|
74
|
+
}
|
|
75
|
+
static readDirRecursive(e) {
|
|
76
|
+
return this.readDirAndFileRecursive(e).filter((e) => !this.isDir(e));
|
|
77
|
+
}
|
|
78
|
+
static readDirRecursiveWithIndex(e) {
|
|
79
|
+
return this.readDirAndFileRecursive(e, void 0, !0).filter((e) => !this.isDir(e));
|
|
80
|
+
}
|
|
81
|
+
static readDirOnlyRecursive(e) {
|
|
82
|
+
return this.readDirAndFileRecursive(e).filter((e) => this.isDir(e));
|
|
83
|
+
}
|
|
84
|
+
static readDirAndFileRecursive(e, n = [], r = !1) {
|
|
85
|
+
let i = this.readDir(e), a = [];
|
|
86
|
+
return i.forEach((i) => {
|
|
87
|
+
let s = [...o(e), i], c = [...n, i];
|
|
88
|
+
a.push(this.joinPath(c)), this.isDir(s) && (r && this.is([...s, "index.ts"]) ? a.push(this.joinPath([...c, t])) : a.push(...this.readDirAndFileRecursive(s, [...n, i])));
|
|
89
|
+
}), a;
|
|
90
|
+
}
|
|
91
|
+
static readFile(e) {
|
|
92
|
+
if (this.is(e)) return c(u.readFileSync(this.joinPath(e)).toString());
|
|
93
|
+
}
|
|
94
|
+
static readFileOnly(e) {
|
|
95
|
+
if (this.is(e)) return u.readFileSync(this.joinPath(e)).toString();
|
|
96
|
+
}
|
|
97
|
+
static createDir(e) {
|
|
98
|
+
let t = [this.root];
|
|
99
|
+
this.splitForDir(this.removeRootInPath(e)).forEach((e) => {
|
|
100
|
+
t.push(e), this.is(t) || u.mkdirSync(this.joinPath(t));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
static write(e, t, n, r = "json") {
|
|
104
|
+
this.writeByPath(this.joinPathByName(e, t, r), n);
|
|
105
|
+
}
|
|
106
|
+
static writeByPath(e, t, n = !0) {
|
|
107
|
+
this.createDir(e), u.writeFileSync(this.joinPath(e), n && typeof t == "object" ? JSON.stringify(t, void 0, 2) : t);
|
|
108
|
+
}
|
|
109
|
+
static copy(e, t) {
|
|
110
|
+
this.createDir(e), u.copyFileSync(this.joinPath(t), this.joinPath(e));
|
|
111
|
+
}
|
|
112
|
+
static removeDir(e) {
|
|
113
|
+
this.isDir(e) && u.rmSync(this.joinPath(e), {
|
|
114
|
+
recursive: !0,
|
|
115
|
+
force: !0
|
|
116
|
+
});
|
|
117
|
+
}
|
|
118
|
+
static removeFile(e) {
|
|
119
|
+
this.is(e) && u.unlinkSync(this.joinPath(e));
|
|
120
|
+
}
|
|
121
|
+
static rename(e, t) {
|
|
122
|
+
u.renameSync(this.joinPath(e), this.joinPath(t));
|
|
123
|
+
}
|
|
124
|
+
static chmod(e, t = 493) {
|
|
125
|
+
u.chmodSync(this.joinPath(e), t);
|
|
126
|
+
}
|
|
127
|
+
static removeRootInPath(e) {
|
|
128
|
+
return this.joinPath(e).replace(`${this.root}${d.sep}`, "").replace(`${this.root}`, "");
|
|
129
|
+
}
|
|
130
|
+
static {
|
|
131
|
+
this.module = !!m.match("node_modules"), this.root = process.cwd();
|
|
132
|
+
}
|
|
133
|
+
}, g = class {
|
|
134
|
+
static config;
|
|
135
|
+
static getProjectName() {
|
|
136
|
+
return this.config?.project ?? "ui";
|
|
137
|
+
}
|
|
138
|
+
static getDesignName() {
|
|
139
|
+
return this.config?.name ?? "ui";
|
|
140
|
+
}
|
|
141
|
+
static getDesignAlternativeName() {
|
|
142
|
+
return this.config?.alternativeName;
|
|
143
|
+
}
|
|
144
|
+
static getPackagePrefix() {
|
|
145
|
+
return this.config?.packagePrefix ?? void 0;
|
|
146
|
+
}
|
|
147
|
+
static getTypesTemporaryDirectory() {
|
|
148
|
+
return this.config?.typesDir ?? "ai-types-temp";
|
|
149
|
+
}
|
|
150
|
+
static getTypesPaths() {
|
|
151
|
+
return this.config?.typesPaths;
|
|
152
|
+
}
|
|
153
|
+
static getTypesMatch() {
|
|
154
|
+
return this.config?.typesMatch;
|
|
155
|
+
}
|
|
156
|
+
static getTypesExclude() {
|
|
157
|
+
return this.config?.typesExclude;
|
|
158
|
+
}
|
|
159
|
+
static getTypesWithoutVue() {
|
|
160
|
+
return this.config?.typesWithoutVue;
|
|
161
|
+
}
|
|
162
|
+
static isTypesWithoutVue() {
|
|
163
|
+
return !!this.config?.typesWithoutVue;
|
|
164
|
+
}
|
|
165
|
+
static getDistDir() {
|
|
166
|
+
return this.config?.distDir ?? "dist";
|
|
167
|
+
}
|
|
168
|
+
static getSeparator() {
|
|
169
|
+
return this.config?.separator ?? "/";
|
|
170
|
+
}
|
|
171
|
+
static getSeparatorBasicName() {
|
|
172
|
+
return this.config?.separatorBasicName ?? "basic";
|
|
173
|
+
}
|
|
174
|
+
static getSeparatorLimit() {
|
|
175
|
+
return this.config?.separatorLimit ?? 6;
|
|
176
|
+
}
|
|
177
|
+
static getWikiLanguage() {
|
|
178
|
+
return this.config?.wikiLanguage ?? "en";
|
|
179
|
+
}
|
|
180
|
+
static getAiResourcesDir() {
|
|
181
|
+
return this.config?.aiResourcesDir ?? "ai-resources";
|
|
182
|
+
}
|
|
183
|
+
static getPromptScanDepth() {
|
|
184
|
+
return this.config?.promptScanDepth ?? 6;
|
|
185
|
+
}
|
|
186
|
+
static getAiType() {
|
|
187
|
+
return this.config?.aiType ?? "gemini";
|
|
188
|
+
}
|
|
189
|
+
static getAiModel() {
|
|
190
|
+
return this.config?.aiModel ?? "";
|
|
191
|
+
}
|
|
192
|
+
static getAiKey() {
|
|
193
|
+
return this.config?.aiKey ?? "";
|
|
194
|
+
}
|
|
195
|
+
static getAiConfig() {
|
|
196
|
+
return this.config?.aiConfig ?? {};
|
|
197
|
+
}
|
|
198
|
+
static getAiTypesConcurrency() {
|
|
199
|
+
return this.config?.aiTypesConcurrency ?? 8;
|
|
200
|
+
}
|
|
201
|
+
static getFigmaToken() {
|
|
202
|
+
return this.config?.figmaToken ?? "";
|
|
203
|
+
}
|
|
204
|
+
static getExtends(e, t = []) {
|
|
205
|
+
let n = [...t, p(e)], r = this.getLocalPath(n), i = h.readFile(n), a = h.readFile(r), o = a?.extends ?? i?.extends;
|
|
206
|
+
return o ? {
|
|
207
|
+
...this.getExtends(o, [h.getPathDir(n)]),
|
|
208
|
+
...i,
|
|
209
|
+
...a
|
|
210
|
+
} : {
|
|
211
|
+
...i,
|
|
212
|
+
...a
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
static getLocalPath(e) {
|
|
216
|
+
if (Array.isArray(e)) {
|
|
217
|
+
if (e.length === 0) return [];
|
|
218
|
+
let t = e.length - 1, n = [...e];
|
|
219
|
+
return n[t] = this.getLocalPath(n[t]), n;
|
|
220
|
+
}
|
|
221
|
+
return e.match(/(\.[^./\\]+)$/) ? e.replace(/(\.[^./\\]+)$/, ".local$1") : `${e}.local`;
|
|
222
|
+
}
|
|
223
|
+
static loadConfig() {
|
|
224
|
+
let t = [];
|
|
225
|
+
for (let n = 0; n < 32; n++) {
|
|
226
|
+
let n = [...t, e], r = this.getLocalPath(n);
|
|
227
|
+
if (h.is(n) || h.is(r)) {
|
|
228
|
+
let e = h.readFile(n), t = h.readFile(r);
|
|
229
|
+
if (e || t) {
|
|
230
|
+
let r = t?.extends ?? e?.extends;
|
|
231
|
+
return r ? {
|
|
232
|
+
...this.getExtends(r, [h.getPathDir(n)]),
|
|
233
|
+
...e,
|
|
234
|
+
...t
|
|
235
|
+
} : {
|
|
236
|
+
...e,
|
|
237
|
+
...t
|
|
238
|
+
};
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
t.push("..");
|
|
242
|
+
}
|
|
243
|
+
return {};
|
|
244
|
+
}
|
|
245
|
+
static {
|
|
246
|
+
this.config = this.loadConfig();
|
|
247
|
+
}
|
|
248
|
+
};
|
|
249
|
+
//#endregion
|
|
250
|
+
export { h as n, g as t };
|
|
@@ -1,158 +1,179 @@
|
|
|
1
|
-
/** File location of the design system configuration/ Файл расположения конфигурации дизайн-системы */
|
|
2
|
-
export const UI_CONFIG_FILE =
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
export const
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
export const
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
export const
|
|
21
|
-
|
|
22
|
-
/**
|
|
23
|
-
export const
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
/**
|
|
29
|
-
export const
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
export const
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
export const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
export const
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
/** Directory
|
|
56
|
-
export const
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
export const
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
export
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
export const
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
/** AI
|
|
92
|
-
export const
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
/** AI prompt developer file name / Название файла для разработчика AI */
|
|
98
|
-
export const UI_FILE_AI_PROMPT_DEVELOPER =
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
export const
|
|
102
|
-
|
|
103
|
-
/**
|
|
104
|
-
export const
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
export const
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
/**
|
|
132
|
-
export const
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
1
|
+
/** File location of the design system configuration/ Файл расположения конфигурации дизайн-системы */
|
|
2
|
+
export declare const UI_CONFIG_FILE = "design.config.json";
|
|
3
|
+
|
|
4
|
+
/** AI folder name / Название папки AI */
|
|
5
|
+
export declare const UI_DIR_AI = "ai";
|
|
6
|
+
|
|
7
|
+
/** Screenshot folder name for AI / Название папки со снимками экрана для AI */
|
|
8
|
+
export declare const UI_DIR_AI_PROMPT_SCREENSHOT = "ai-screenshot";
|
|
9
|
+
|
|
10
|
+
/** AI types list directory name / Название директории со списком типов AI */
|
|
11
|
+
export declare const UI_DIR_AI_TYPES_LIST = "ai-types-list";
|
|
12
|
+
|
|
13
|
+
/** AI types temporary directory name / Название временной директории типов AI */
|
|
14
|
+
export declare const UI_DIR_AI_TYPES_TEMPORARY = "ai-types-temp";
|
|
15
|
+
|
|
16
|
+
/** Components directory name/ Название директории компонентов */
|
|
17
|
+
export declare const UI_DIR_COMPONENTS = "components";
|
|
18
|
+
|
|
19
|
+
/** Constructors directory name/ Название директории конструкторов */
|
|
20
|
+
export declare const UI_DIR_CONSTRUCTOR = "constructors";
|
|
21
|
+
|
|
22
|
+
/** Distribution directory name / Название директории сборки */
|
|
23
|
+
export declare const UI_DIR_DIST = "dist";
|
|
24
|
+
|
|
25
|
+
/** Temporary distribution directory name / Название временной директории сборки */
|
|
26
|
+
export declare const UI_DIR_DIST_TEMPORARY = "dist-temporary";
|
|
27
|
+
|
|
28
|
+
/** Folder where all the code is stored/ Папка, где хранится весь код */
|
|
29
|
+
export declare const UI_DIR_IN = "src";
|
|
30
|
+
|
|
31
|
+
/** Packages directory name / Название директории пакетов */
|
|
32
|
+
export declare const UI_DIR_PACKAGES = "packages";
|
|
33
|
+
|
|
34
|
+
/** Prompt directory name / Название директории промптов */
|
|
35
|
+
export declare const UI_DIR_PROMPT = "prompt";
|
|
36
|
+
|
|
37
|
+
/** Resources directory name / Название директории ресурсов */
|
|
38
|
+
export declare const UI_DIR_RESOURCES = "resources";
|
|
39
|
+
|
|
40
|
+
/** Structure directory name/ Название директории структуры */
|
|
41
|
+
export declare const UI_DIR_STRUCTURE = "structure";
|
|
42
|
+
|
|
43
|
+
/** Temporary directory name / Название временной директории */
|
|
44
|
+
export declare const UI_DIR_TEMPORARY = "temporary";
|
|
45
|
+
|
|
46
|
+
/** Wiki directory name / Название директории wiki */
|
|
47
|
+
export declare const UI_DIR_WIKI = "wiki";
|
|
48
|
+
|
|
49
|
+
/** List of directories for AI wiki / Список директорий для AI wiki */
|
|
50
|
+
export declare const UI_DIRS_AI_WIKI: string[];
|
|
51
|
+
|
|
52
|
+
/** Directory with the list of components/ Директория со списком компонентов */
|
|
53
|
+
export declare const UI_DIRS_COMPONENTS: string[];
|
|
54
|
+
|
|
55
|
+
/** Directory with the list of constructors/ Директория со списком конструкторов */
|
|
56
|
+
export declare const UI_DIRS_CONSTRUCTOR: string[];
|
|
57
|
+
|
|
58
|
+
/** File with the list of exportable data/ Файл со списком экспортируемых данных */
|
|
59
|
+
export declare const UI_DIRS_FILE_EXPORT: string[];
|
|
60
|
+
|
|
61
|
+
/** Directory containing the list of icons/ Директория со списком иконок */
|
|
62
|
+
export declare const UI_DIRS_ICONS: string[];
|
|
63
|
+
|
|
64
|
+
/** Directory for storing generated files for working with libraries/ Директория для хранения сгенерируемых файлов для работы с библиотеками */
|
|
65
|
+
export declare const UI_DIRS_LIBRARY: string[];
|
|
66
|
+
|
|
67
|
+
/** List of directories available for export/ Список директорий, доступных для экспорта */
|
|
68
|
+
export declare const UI_DIRS_LIST_EXPORT: string[];
|
|
69
|
+
|
|
70
|
+
/** Name of the path to styles/ Название пути к стилям */
|
|
71
|
+
export declare const UI_DIRS_STYLES: string[];
|
|
72
|
+
|
|
73
|
+
/** Name of the path to tokens/ Название пути к токенам */
|
|
74
|
+
export declare const UI_DIRS_TOKENS: string[];
|
|
75
|
+
|
|
76
|
+
/** Directory for storing component structure descriptions/ Директория для хранения описания структуры компонентов */
|
|
77
|
+
export declare const UI_DIRS_WIKI: string[];
|
|
78
|
+
|
|
79
|
+
/** SCSS file extension/ Расширение файлов SCSS */
|
|
80
|
+
export declare const UI_EXTENSION_STYLE = "scss";
|
|
81
|
+
|
|
82
|
+
/** AI description file name / Название файла с описанием AI */
|
|
83
|
+
export declare const UI_FILE_AI_DESCRIPTION = "ai-description.md";
|
|
84
|
+
|
|
85
|
+
/** AI MCP resources file name / Название файла с ресурсами MCP AI */
|
|
86
|
+
export declare const UI_FILE_AI_MCP = "ai-mcp-resources.json";
|
|
87
|
+
|
|
88
|
+
/** AI MCP all resources file name / Название файла со всеми ресурсами MCP AI */
|
|
89
|
+
export declare const UI_FILE_AI_MCP_ALL = "ai-mcp-all-resources.json";
|
|
90
|
+
|
|
91
|
+
/** AI MCP all resources TypeScript file name / Название TypeScript файла со всеми ресурсами MCP AI */
|
|
92
|
+
export declare const UI_FILE_AI_MCP_ALL_TS = "ai-mcp-all-resources.ts";
|
|
93
|
+
|
|
94
|
+
/** AI prompt description file name / Название файла с описанием промпта AI */
|
|
95
|
+
export declare const UI_FILE_AI_PROMPT_DESCRIPTION = "ai-description.md";
|
|
96
|
+
|
|
97
|
+
/** AI prompt developer file name / Название файла для разработчика AI */
|
|
98
|
+
export declare const UI_FILE_AI_PROMPT_DEVELOPER = "ai-developer.md";
|
|
99
|
+
|
|
100
|
+
/** AI prompt info file name / Название файла с информацией промпта AI */
|
|
101
|
+
export declare const UI_FILE_AI_PROMPT_INFO = "ai-doc.md";
|
|
102
|
+
|
|
103
|
+
/** AI prompt instruction file name / Название файла с инструкцией промпта AI */
|
|
104
|
+
export declare const UI_FILE_AI_PROMPT_INSTRUCTION = "ai-instruction.md";
|
|
105
|
+
|
|
106
|
+
/** AI prompt result file name / Название файла с результатом промпта AI */
|
|
107
|
+
export declare const UI_FILE_AI_PROMPT_PROMPT = "ai-prompt.md";
|
|
108
|
+
|
|
109
|
+
/** AI prompt types file name / Название файла с типами промпта AI */
|
|
110
|
+
export declare const UI_FILE_AI_PROMPT_TYPES = "ai-types.md";
|
|
111
|
+
|
|
112
|
+
/** AI types file name / Название файла с типами AI */
|
|
113
|
+
export declare const UI_FILE_AI_TYPES = "ai-types.md";
|
|
114
|
+
|
|
115
|
+
/** Index file name / Название файла index */
|
|
116
|
+
export declare const UI_FILE_INDEX = "index.ts";
|
|
117
|
+
|
|
118
|
+
/** File name for the list of component descriptions/ Название файла для список описаний компонентов */
|
|
119
|
+
export declare const UI_FILE_NAME_DESIGN = "design";
|
|
120
|
+
|
|
121
|
+
/** File name for storing the list of flags/ Название файла для хранения списка флагов */
|
|
122
|
+
export declare const UI_FILE_NAME_FLAGS = "flags";
|
|
123
|
+
|
|
124
|
+
/** File name for storing media data and icons/ Название файла для хранения медиа-данных и иконок */
|
|
125
|
+
export declare const UI_FILE_NAME_MEDIA = "media";
|
|
126
|
+
|
|
127
|
+
export declare const UI_FILE_NAME_PLUGIN = "plugin";
|
|
128
|
+
|
|
129
|
+
export declare const UI_FILE_NAME_STYLE = "style";
|
|
130
|
+
|
|
131
|
+
/** Vite configuration file name / Название файла конфигурации Vite */
|
|
132
|
+
export declare const UI_FILE_NAME_VITE = "vite.config.ts";
|
|
133
|
+
|
|
134
|
+
/** Vite workers configuration file name / Название файла конфигурации Vite workers */
|
|
135
|
+
export declare const UI_FILE_NAME_VITE_WORKERS = "vite-workers.config.ts";
|
|
136
|
+
|
|
137
|
+
/** File name for the list of component descriptions for the wiki/ Название файла для список описаний компонентов для wiki */
|
|
138
|
+
export declare const UI_FILE_NAME_WIKI = "wiki";
|
|
139
|
+
|
|
140
|
+
/** Package.json file name/ Название файла package.json */
|
|
141
|
+
export declare const UI_FILE_PACKAGE = "package.json";
|
|
142
|
+
|
|
143
|
+
/** Name of the main file with tokens/ Название главного файла с токенами */
|
|
144
|
+
export declare const UI_FILE_PROPERTY = "properties.json";
|
|
145
|
+
|
|
146
|
+
/** UI properties SCSS file name / Название файла свойств UI в SCSS */
|
|
147
|
+
export declare const UI_FILE_STYLE_PROPERTIES = "ui-properties.scss";
|
|
148
|
+
|
|
149
|
+
/** Style SCSS file name / Название файла стилей SCSS */
|
|
150
|
+
export declare const UI_FILE_STYLE_SCSS = "style.scss";
|
|
151
|
+
|
|
152
|
+
/** An indicator that this file should not be exported/ Признак того, что не нужно экспортировать этот файл */
|
|
153
|
+
export declare const UI_FLAG_NOT_EXPORT: RegExp;
|
|
154
|
+
|
|
155
|
+
/** Name of the base token/ Название базового токена */
|
|
156
|
+
export declare const UI_KEY_CONSTRUCTOR = "d";
|
|
157
|
+
|
|
158
|
+
/** Special key for properties with variable values/ Особый ключ для свойства с переменными значениями */
|
|
159
|
+
export declare const UI_KEY_CUSTOM = "custom";
|
|
160
|
+
|
|
161
|
+
/** Node modules directory/ Директория node_modules */
|
|
162
|
+
export declare const UI_MODULES = "node_modules";
|
|
163
|
+
|
|
164
|
+
/** Full constructor package name/ Полное название пакета конструктора */
|
|
165
|
+
export declare const UI_PROJECT_CONSTRUCTOR_FULL_NAME = "@dxtmisha/constructor";
|
|
166
|
+
|
|
167
|
+
/** Constructor package name/ Название пакета конструктора */
|
|
168
|
+
export declare const UI_PROJECT_CONSTRUCTOR_NAME = "constructor";
|
|
169
|
+
|
|
170
|
+
/** Project name and constructor configuration/ Название проекта и конфигурация конструктора */
|
|
171
|
+
export declare const UI_PROJECT_NAME = "@dxtmisha";
|
|
172
|
+
|
|
173
|
+
/** List available for addition to props/ Список доступный для добавления в props */
|
|
174
|
+
export declare const UI_PROPERTY_FOR_PROPS: string[];
|
|
175
|
+
|
|
176
|
+
/** File name with class names for the component structure/ Название файла с классами для структуры компонента */
|
|
177
|
+
export declare const UI_STRUCTURE_CLASSES = "classes";
|
|
178
|
+
|
|
179
|
+
export { }
|
package/dist/config.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
//#region src/config.ts
|
|
2
|
+
var e = "design.config.json", t = "@dxtmisha", n = "constructor", r = `${t}/${n}`, i = "node_modules", a = "d", o = "custom", s = /\/\/ *export:none/, c = "src", l = "ai", u = "ai-screenshot", d = "ai-types-list", f = "ai-types-temp", p = "resources", m = "components", h = "constructors", g = "structure", _ = "wiki", v = "temporary", y = "dist", b = "dist-temporary", x = "prompt", S = "packages", C = [
|
|
3
|
+
"src",
|
|
4
|
+
_,
|
|
5
|
+
"ai"
|
|
6
|
+
], w = ["src", "media"], T = [...w, "icons"], E = ["src", m], D = ["src", h], O = ["src", "styles"], k = ["src", "library"], A = ["src", _], ee = ["src", "library.ts"], j = [
|
|
7
|
+
"classes",
|
|
8
|
+
"components",
|
|
9
|
+
"composables",
|
|
10
|
+
"functions",
|
|
11
|
+
"global",
|
|
12
|
+
"types"
|
|
13
|
+
], M = "package.json", N = "properties.json", P = "ai-description.md", F = "ai-doc.md", I = "ai-instruction.md", L = "ai-prompt.md", R = "ai-types.md", z = "ai-developer.md", B = "flags", V = "media", H = "design", U = "plugin", W = "style", G = "wiki", K = "vite.config.ts", q = "vite-workers.config.ts", J = "index.ts", Y = "ai-types.md", X = "ai-description.md", Z = "ai-mcp-resources.json", Q = "ai-mcp-all-resources.json", $ = "ai-mcp-all-resources.ts", te = "style.scss", ne = "ui-properties.scss", re = "scss", ie = "classes", ae = [
|
|
14
|
+
"disabled",
|
|
15
|
+
"focus",
|
|
16
|
+
"readonly",
|
|
17
|
+
"read-only"
|
|
18
|
+
];
|
|
19
|
+
//#endregion
|
|
20
|
+
export { e as UI_CONFIG_FILE, C as UI_DIRS_AI_WIKI, E as UI_DIRS_COMPONENTS, D as UI_DIRS_CONSTRUCTOR, ee as UI_DIRS_FILE_EXPORT, T as UI_DIRS_ICONS, k as UI_DIRS_LIBRARY, j as UI_DIRS_LIST_EXPORT, O as UI_DIRS_STYLES, w as UI_DIRS_TOKENS, A as UI_DIRS_WIKI, l as UI_DIR_AI, u as UI_DIR_AI_PROMPT_SCREENSHOT, d as UI_DIR_AI_TYPES_LIST, f as UI_DIR_AI_TYPES_TEMPORARY, m as UI_DIR_COMPONENTS, h as UI_DIR_CONSTRUCTOR, y as UI_DIR_DIST, b as UI_DIR_DIST_TEMPORARY, c as UI_DIR_IN, S as UI_DIR_PACKAGES, x as UI_DIR_PROMPT, p as UI_DIR_RESOURCES, g as UI_DIR_STRUCTURE, v as UI_DIR_TEMPORARY, _ as UI_DIR_WIKI, re as UI_EXTENSION_STYLE, X as UI_FILE_AI_DESCRIPTION, Z as UI_FILE_AI_MCP, Q as UI_FILE_AI_MCP_ALL, $ as UI_FILE_AI_MCP_ALL_TS, P as UI_FILE_AI_PROMPT_DESCRIPTION, z as UI_FILE_AI_PROMPT_DEVELOPER, F as UI_FILE_AI_PROMPT_INFO, I as UI_FILE_AI_PROMPT_INSTRUCTION, L as UI_FILE_AI_PROMPT_PROMPT, R as UI_FILE_AI_PROMPT_TYPES, Y as UI_FILE_AI_TYPES, J as UI_FILE_INDEX, H as UI_FILE_NAME_DESIGN, B as UI_FILE_NAME_FLAGS, V as UI_FILE_NAME_MEDIA, U as UI_FILE_NAME_PLUGIN, W as UI_FILE_NAME_STYLE, K as UI_FILE_NAME_VITE, q as UI_FILE_NAME_VITE_WORKERS, G as UI_FILE_NAME_WIKI, M as UI_FILE_PACKAGE, N as UI_FILE_PROPERTY, ne as UI_FILE_STYLE_PROPERTIES, te as UI_FILE_STYLE_SCSS, s as UI_FLAG_NOT_EXPORT, a as UI_KEY_CONSTRUCTOR, o as UI_KEY_CUSTOM, i as UI_MODULES, r as UI_PROJECT_CONSTRUCTOR_FULL_NAME, n as UI_PROJECT_CONSTRUCTOR_NAME, t as UI_PROJECT_NAME, ae as UI_PROPERTY_FOR_PROPS, ie as UI_STRUCTURE_CLASSES };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region src/types/figmaApiTypes.ts
|
|
2
|
+
var e = /* @__PURE__ */ function(e) {
|
|
3
|
+
return e.files = "files/:file_key", e.fileNodes = "files/:file_key/nodes", e.fileImages = "images/:file_key", e.fileImageFills = "files/:file_key/images", e.fileVersions = "files/:file_key/versions", e.fileComments = "files/:file_key/comments", e.me = "me", e.teamProjects = "teams/:team_id/projects", e.projectFiles = "projects/:project_id/files", e.components = "components/:key", e.fileComponents = "files/:file_key/components", e.teamComponents = "teams/:team_id/components", e.componentSets = "component_sets/:key", e.fileComponentSets = "files/:file_key/component_sets", e.teamComponentSets = "teams/:team_id/component_sets", e.styles = "styles/:key", e.fileStyles = "files/:file_key/styles", e.teamStyles = "teams/:team_id/styles", e;
|
|
4
|
+
}({}), t = "https://api.figma.com/v1/";
|
|
5
|
+
//#endregion
|
|
6
|
+
export { e as n, t };
|