Releases: SINC-GmbH/textcontrol-promises
Release list
v34.1.4
Fixed
CallbackHelper.jsis now generated fromlib/types/callbacks/*.d.tsinstead of hand-maintained. The previous hand-written switch statement was missing ~65 of the ~140 callback types (e.g.RequestCellFormatCallback, used byTableCell.getCellFormat()), causing those methods to pass a raw string to the native SDK as if it were a callback function and throw at runtime.- Multi-argument response callbacks (e.g.
SaveUserDictionaryCallback(name, words)) now resolve with an object keyed by their declared parameter names instead of silently dropping all but the first argument.
v34.1.3
v34.1.2
Bug Fix
TextControlContext: script URL now correctly derived from webSocketURL
initialize() previously required a separate jsResourceFilePath parameter with a hardcoded URL. It now derives the resource URL automatically from componentSettings.webSocketURL:
- Protocol is converted
ws→http/wss→https - Base path gets a trailing slash so relative resource paths resolve correctly
window.locationis used as fallback base, so relativewebSocketURLvalues (e.g./txwebsocket) are supported- Passing an absolute URL as
jsResourceFilePathstill overrides everything
v34.1.1
Bug Fix
Generator: optional non-callback parameters now correctly typed as optional
The code generator emitted @param {T} name even when the source d.ts declared the parameter as optional (name?: T). TypeScript inferred these as required.
Most visible case: FormFieldCollection.getItem(id) was typed id: number instead of id?: number, preventing callers from invoking getItem() without an argument to retrieve the form field at the current cursor position.
Fix: generator now emits @param {T} [name] for optional params. 42 generated files updated.
v34.1.0
release-1.4.0
release-1.3.0
release-1.3.0
Full Changelog: release-1.2.0...release-1.3.0
patch-1.3.2
patch-1.3.2
Full Changelog: patch-1.3.1...patch-1.3.2
patch-1.3.1
patch-1.3.1
Full Changelog: release-1.3.0...patch-1.3.1