@dxtmisha/scripts 0.5.8 → 0.5.10

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dxtmisha/scripts",
3
3
  "private": false,
4
- "version": "0.5.8",
4
+ "version": "0.5.10",
5
5
  "type": "module",
6
6
  "description": "Development scripts and CLI tools for DXT UI projects - automated component generation, library building and project management tools",
7
7
  "keywords": [
@@ -12,7 +12,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
12
12
  ### Documentation Structure:
13
13
 
14
14
  1. **Header**:
15
- ```javascript
15
+ ```javascript (or typescript if generics are present)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -42,8 +42,8 @@ Use the following template and style. Your response must contain ONLY MDX code.
42
42
  - List: `- `name: type` — description`.
43
43
  - **Returns:** (if it returns a value)
44
44
  - `Type` — description.
45
- - **Code Example**:
46
- ```javascript
45
+ - **Code Example** (use typescript only if generics are present):
46
+ ```javascript (or typescript if generics are present)
47
47
  // Example usage
48
48
  Class.method(arg);
49
49
  ```
@@ -56,11 +56,8 @@ Use the following template and style. Your response must contain ONLY MDX code.
56
56
  3.2. Try to preserve original descriptions unchanged.
57
57
  4. Use the correct terminology.
58
58
  4.1. All headings must be in [wikiLanguage].
59
+ 4.2. Avoid using Generics and TypeScript types in code examples if possible (e.g., avoid `export type EventHandler<T = any> = (data: T) => void`).
59
60
  5. Do not add unnecessary introductions or conclusions, only MDX.
60
61
  6. Return only the full MDX documentation code without any additional text, comments, or markdown formatting (```).
61
62
  7. The result must be exclusively text (response); do not attach any files.
62
63
  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
-
@@ -12,7 +12,7 @@
12
12
  ### Структура документации:
13
13
 
14
14
  1. **Шапка**:
15
- ```javascript
15
+ ```javascript (или typescript, если есть generics)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -42,8 +42,8 @@
42
42
  - Список: `- `имя: тип` — описание`.
43
43
  - **Возвращает:** (если возвращает значение)
44
44
  - `Тип` — описание.
45
- - **Пример кода**:
46
- ```javascript
45
+ - **Пример кода** (используй typescript, только если есть generics):
46
+ ```javascript (или typescript, если есть generics)
47
47
  // Пример вызова
48
48
  Class.method(arg);
49
49
  ```
@@ -56,9 +56,8 @@
56
56
  3.2. Старайся сохранять оригинальные описания без изменений.
57
57
  4. Используй правильную терминологию.
58
58
  4.1. Все заголовки должны быть на языке [wikiLanguage].
59
+ 4.2. Избегай использования Generics и типов TypeScript в примерах кода, если это возможно (например, избегай `export type EventHandler<T = any> = (data: T) => void`).
59
60
  5. Не добавляй лишних введений или заключений, только MDX.
60
61
  6. Верни только полный MDX-код документации без какого-либо дополнительного текста, комментариев или форматирования markdown (```).
61
62
  7. Результат должен быть исключительно в виде текста (ответа), не прикрепляй никаких файлов.
62
63
  8. Верни ответ в формате: [короткое описание в несколько слов (3-5) о назначении класса]#########[оригинальный код класса с комментариями к методам, переменным, свойствам и самому классу (добавь их, если они отсутствуют). Если все комментарии уже присутствуют, верни --FULL--]#########[сама документация в MDX формате по шаблону выше].
63
-
64
-
@@ -12,7 +12,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
12
12
  ### Documentation Structure:
13
13
 
14
14
  1. **Header**:
15
- ```javascript
15
+ ```javascript (or typescript if generics are present)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -38,8 +38,8 @@ Use the following template and style. Your response must contain ONLY MDX code.
38
38
  - **Returned Object Description** (if it returns a complex object, describe its properties here):
39
39
  - **TypeName:**
40
40
  - List of properties: `- `name: type` — description`.
41
- - **Code Example**:
42
- ```javascript
41
+ - **Code Example** (use typescript only if generics are present):
42
+ ```javascript (or typescript if generics are present)
43
43
  import { useName } from '@package'
44
44
  // Initialization example
45
45
  ```
@@ -47,7 +47,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
47
47
  5. **Basic Usage**:
48
48
  - Header `## Basic Usage`
49
49
  - Subheaders with examples of various usage scenarios `### Scenario Name`.
50
- - Code and brief description if needed.
50
+ - Code (use typescript only if generics are present) and brief description if needed.
51
51
 
52
52
  6. **Data Types** (Optional, if there are additional important types not described in the Function section):
53
53
  - Header `## Data Types`
@@ -60,8 +60,8 @@ Use the following template and style. Your response must contain ONLY MDX code.
60
60
  3.2. Try to preserve original descriptions unchanged.
61
61
  4. Use the correct terminology (Composable, Ref, Reactive).
62
62
  4.1. All headings must be in [wikiLanguage].
63
+ 4.2. Avoid using Generics and TypeScript types in code examples if possible (e.g., avoid `export type EventHandler<T = any> = (data: T) => void`).
63
64
  5. Do not add unnecessary introductions or conclusions, only MDX.
64
65
  6. Return only the full MDX documentation code without any additional text, comments, or markdown formatting (```).
65
66
  7. The result must be exclusively text (response); do not attach any files.
66
67
  8. Return the response in the format: [short description of 3-5 words about the purpose]#########[original code with comments for parameters and types (add them if missing). If everything is already present, return --FULL--]#########[the MDX documentation following the template above].
67
-
@@ -12,7 +12,7 @@
12
12
  ### Структура документации:
13
13
 
14
14
  1. **Шапка**:
15
- ```javascript
15
+ ```javascript (или typescript, если есть generics)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -38,8 +38,8 @@
38
38
  - **Описание возвращаемого объекта** (если возвращает сложный объект, опиши его свойства тут же):
39
39
  - **ИмяТипа:**
40
40
  - Список свойств: `- `имя: тип` — описание`.
41
- - **Пример кода**:
42
- ```javascript
41
+ - **Пример кода** (используй typescript, только если есть generics):
42
+ ```javascript (или typescript, если есть generics)
43
43
  import { useName } from '@package'
44
44
  // Пример инициализации
45
45
  ```
@@ -47,7 +47,7 @@
47
47
  5. **Основное использование (Basic Usage)**:
48
48
  - Заголовок `## Основное использование`
49
49
  - Подзаголовки с примерами различных сценариев использования `### Название сценария`.
50
- - Код и краткое описание если нужно.
50
+ - Код (используй typescript, только если есть generics) и краткое описание если нужно.
51
51
 
52
52
  6. **Типы данных** (Опционально, если есть дополнительные важные типы, которые не описаны в разделе Функция):
53
53
  - Заголовок `## Типы данных`
@@ -60,8 +60,8 @@
60
60
  3.2. Старайся сохранять оригинальные описания без изменений.
61
61
  4. Используй правильную терминологию (Composable, Ref, Reactive).
62
62
  4.1. Все заголовки должны быть на языке [wikiLanguage].
63
+ 4.2. Избегай использования Generics и типов TypeScript в примерах кода, если это возможно (например, избегай `export type EventHandler<T = any> = (data: T) => void`).
63
64
  5. Не добавляй лишних введений или заключений, только MDX.
64
65
  6. Верни только полный MDX-код документации без какого-либо дополнительного текста, комментариев или форматирования markdown (```).
65
66
  7. Результат должен быть исключительно в виде текста (ответа), не прикрепляй никаких файлов.
66
67
  8. Верни ответ в формате: [короткое описание в несколько слов (3-5) о назначении]#########[оригинальный код с комментариями к параметрам и типам (добавь их, если они отсутствуют). Если все комментарии уже присутствуют, верни --FULL--]#########[сама документация в MDX формате по шаблону выше].
67
-
@@ -12,7 +12,7 @@ Use the following template and style. Your response must contain ONLY MDX code.
12
12
  ### Documentation Structure:
13
13
 
14
14
  1. **Header**:
15
- ```javascript
15
+ ```javascript (or typescript if generics are present)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -31,8 +31,8 @@ Use the following template and style. Your response must contain ONLY MDX code.
31
31
  - Description of the return value or type.
32
32
 
33
33
  5. **Example**:
34
- - Usage code example.
35
- ```javascript
34
+ - Usage code example (use typescript only if generics are present).
35
+ ```javascript (or typescript if generics are present)
36
36
  import { name } from '@package'
37
37
  // Call example
38
38
  ```
@@ -50,8 +50,8 @@ Use the following template and style. Your response must contain ONLY MDX code.
50
50
  3.2. Try to preserve original descriptions unchanged.
51
51
  4. Use the correct terminology.
52
52
  4.1. All headings must be in [wikiLanguage].
53
+ 4.2. Avoid using Generics and TypeScript types in code examples if possible (e.g., avoid `export type EventHandler<T = any> = (data: T) => void`).
53
54
  5. Do not add unnecessary introductions or conclusions, only MDX.
54
55
  6. Return only the full MDX documentation code without any additional text, comments, or markdown formatting (```).
55
56
  7. The result must be exclusively text (response); do not attach any files.
56
57
  8. Return the response in the format: [short description of 3-5 words about the purpose]#########[original code with comments for parameters and types (add them if missing). If everything is already present, return --FULL--]#########[the MDX documentation following the template above].
57
-
@@ -12,7 +12,7 @@
12
12
  ### Структура документации:
13
13
 
14
14
  1. **Шапка**:
15
- ```javascript
15
+ ```javascript (или typescript, если есть generics)
16
16
  import {Meta} from '@storybook/addon-docs/blocks'
17
17
 
18
18
  <Meta title='[title]'/>
@@ -31,8 +31,8 @@
31
31
  - Описание возвращаемого значения или типа.
32
32
 
33
33
  5. **Пример**:
34
- - Пример кода использования.
35
- ```javascript
34
+ - Пример кода использования (используй typescript, только если есть generics).
35
+ ```javascript (или typescript, если есть generics)
36
36
  import { name } from '@package'
37
37
  // Пример вызова
38
38
  ```
@@ -50,8 +50,8 @@
50
50
  3.2. Старайся сохранять оригинальные описания без изменений.
51
51
  4. Используй правильную терминологию.
52
52
  4.1. Все заголовки должны быть на языке [wikiLanguage].
53
+ 4.2. Избегай использования Generics и типов TypeScript в примерах кода, если это возможно (например, избегай `export type EventHandler<T = any> = (data: T) => void`).
53
54
  5. Не добавляй лишних введений или заключений, только MDX.
54
55
  6. Верни только полный MDX-код документации без какого-либо дополнительного текста, комментариев или форматирования markdown (```).
55
56
  7. Результат должен быть исключительно в виде текста (ответа), не прикрепляй никаких файлов.
56
57
  8. Верни ответ в формате: [короткое описание в несколько слов (3-5) о назначении]#########[оригинальный код с комментариями к параметрам и типам (добавь их, если они отсутствуют). Если все комментарии уже присутствуют, верни --FULL--]#########[сама документация в MDX формате по шаблону выше].
57
-