complexqa_frontend_core 1.22.0 → 1.22.1

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,6 +1,6 @@
1
1
  {
2
2
  "name": "complexqa_frontend_core",
3
- "version": "1.22.0",
3
+ "version": "1.22.1",
4
4
  "description": "core of web ",
5
5
  "type": "module",
6
6
  "exports": {
@@ -199,7 +199,7 @@ export class ApiAbstractClass
199
199
  url : url
200
200
  };
201
201
 
202
- if (this.method === 'get')
202
+ if (method === 'get' || method === 'GET')
203
203
  {
204
204
  request_options.paramsSerializer = this.object_to_string;
205
205
  request_options.params = request_params;
@@ -2,7 +2,7 @@ import { ApiAbstractElementClass } from "./api_abstract_element_class.js";
2
2
  import { typeTextDocument } from "../types/family_files/typeTextDocument.js";
3
3
 
4
4
  /**
5
- * @version v.1.0 (04/07/2026)
5
+ * @version v.1.1 (05/07/2026)
6
6
  */
7
7
  export class TextDocumentApi extends ApiAbstractElementClass
8
8
  {
@@ -23,17 +23,12 @@ export class TextDocumentApi extends ApiAbstractElementClass
23
23
  */
24
24
  async list_project_images(payload)
25
25
  {
26
- const url = `/${ this.api_prefix }/${ this.module_prefix }/list_project_images`;
27
- const prev_method = this.method;
28
-
29
- this.method = 'get';
26
+ const url = `/${ this.api_prefix }/${ this.module_prefix }/list_project_images`;
30
27
 
31
28
  payload = this.handle_request_payload(payload);
32
- let response = this.api_request(url, payload);
29
+ let response = this.api_request(url, payload, 'GET');
33
30
  response = await this.handle_response(response, false);
34
31
 
35
- this.method = prev_method;
36
-
37
32
  return {
38
33
  response: response,
39
34
  payload : payload,
@@ -49,17 +44,12 @@ export class TextDocumentApi extends ApiAbstractElementClass
49
44
  */
50
45
  async load_body(payload)
51
46
  {
52
- const url = `/${ this.api_prefix }/${ this.module_prefix }/load_body`;
53
- const prev_method = this.method;
54
-
55
- this.method = 'get';
47
+ const url = `/${ this.api_prefix }/${ this.module_prefix }/load_body`;
56
48
 
57
49
  payload = this.handle_request_payload(payload);
58
- let response = this.api_request(url, payload);
50
+ let response = this.api_request(url, payload, 'GET');
59
51
  response = await this.handle_response(response, false);
60
52
 
61
- this.method = prev_method;
62
-
63
53
  return {
64
54
  response: response,
65
55
  payload : payload,
@@ -75,17 +65,12 @@ export class TextDocumentApi extends ApiAbstractElementClass
75
65
  */
76
66
  async list_versions(payload)
77
67
  {
78
- const url = `/${ this.api_prefix }/${ this.module_prefix }/list_versions`;
79
- const prev_method = this.method;
80
-
81
- this.method = 'get';
68
+ const url = `/${ this.api_prefix }/${ this.module_prefix }/list_versions`;
82
69
 
83
70
  payload = this.handle_request_payload(payload);
84
- let response = this.api_request(url, payload);
71
+ let response = this.api_request(url, payload, 'GET');
85
72
  response = await this.handle_response(response, false);
86
73
 
87
- this.method = prev_method;
88
-
89
74
  return {
90
75
  response: response,
91
76
  payload : payload,
@@ -143,17 +128,12 @@ export class TextDocumentApi extends ApiAbstractElementClass
143
128
  */
144
129
  async public_share_status(payload)
145
130
  {
146
- const url = `/${ this.api_prefix }/${ this.module_prefix }/public_share_status`;
147
- const prev_method = this.method;
148
-
149
- this.method = 'get';
131
+ const url = `/${ this.api_prefix }/${ this.module_prefix }/public_share_status`;
150
132
 
151
133
  payload = this.handle_request_payload(payload);
152
- let response = this.api_request(url, payload);
134
+ let response = this.api_request(url, payload, 'GET');
153
135
  response = await this.handle_response(response, false);
154
136
 
155
- this.method = prev_method;
156
-
157
137
  return {
158
138
  response: response,
159
139
  payload : payload,
@@ -211,17 +191,12 @@ export class TextDocumentApi extends ApiAbstractElementClass
211
191
  */
212
192
  async public_share_analytics(payload)
213
193
  {
214
- const url = `/${ this.api_prefix }/${ this.module_prefix }/public_share_analytics`;
215
- const prev_method = this.method;
216
-
217
- this.method = 'get';
194
+ const url = `/${ this.api_prefix }/${ this.module_prefix }/public_share_analytics`;
218
195
 
219
196
  payload = this.handle_request_payload(payload);
220
- let response = this.api_request(url, payload);
197
+ let response = this.api_request(url, payload, 'GET');
221
198
  response = await this.handle_response(response, false);
222
199
 
223
- this.method = prev_method;
224
-
225
200
  return {
226
201
  response: response,
227
202
  payload : payload,
@@ -1,7 +1,11 @@
1
1
  /**
2
- * TipTap toolbar / extension flags for text document editor (web_app consumes).
2
+ * LEGACY — TipTap toolbar stub from early text document plan (not shipped).
3
3
  *
4
- * @version v.1.0 (04/07/2026)
4
+ * Text documents use CKEditor 4 in web_app (`textDocumentEditorConfig.ts`).
5
+ * TipTap was evaluated and rejected — see complex_processes/text_editor/01-decisions.md.
6
+ *
7
+ * @deprecated Not consumed by web_app. Kept for export compatibility only.
8
+ * @version v.1.1 (04/07/2026)
5
9
  */
6
10
  export const text_document_editor_config = {
7
11
  starterKit: {
@@ -10,3 +10,9 @@ export const TEXT_DOCUMENT_MAX_BODY_BYTES = 5242880;
10
10
  export const TEXT_DOCUMENT_MAX_VERSIONS = 15;
11
11
 
12
12
  export const TEXT_DOCUMENT_AUTOSAVE_STORAGE_PREFIX = 'text_document_autosave_';
13
+
14
+ /**
15
+ * img[src] required by file-app HTMLPurifier on html body upload.
16
+ * Real URL is resolved on load via data-file-uuid + file_access_url.
17
+ */
18
+ export const TEXT_DOCUMENT_IMAGE_STORAGE_PLACEHOLDER_SRC = 'https://landing.complexqa.com/icons/favicon_192.png';
package/publish/index.js CHANGED
@@ -48,7 +48,7 @@ export { create_type_file_from_wire } from './types/family_files/typeFileFactory
48
48
  export { typeTextDocument } from './types/family_files/typeTextDocument.js';
49
49
  export { typeTextDocumentFolder } from './types/family_files/typeTextDocumentFolder.js';
50
50
 
51
- export { TEXT_DOCUMENT_MAX_IMAGES, TEXT_DOCUMENT_MAX_BODY_BYTES, TEXT_DOCUMENT_MAX_VERSIONS, TEXT_DOCUMENT_AUTOSAVE_STORAGE_PREFIX } from './constants/text_document_limits.js';
51
+ export { TEXT_DOCUMENT_MAX_IMAGES, TEXT_DOCUMENT_MAX_BODY_BYTES, TEXT_DOCUMENT_MAX_VERSIONS, TEXT_DOCUMENT_AUTOSAVE_STORAGE_PREFIX, TEXT_DOCUMENT_IMAGE_STORAGE_PLACEHOLDER_SRC } from './constants/text_document_limits.js';
52
52
  export {
53
53
  count_text_document_images,
54
54
  collect_text_document_image_uuids,