@colixsystems/widget-sdk 0.349.0 → 0.350.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/README.md CHANGED
@@ -91,7 +91,11 @@ See the design reference for the full architecture: [`docs/architecture/widget-m
91
91
 
92
92
  ## Status
93
93
 
94
- `v0.349.0` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
94
+ `v0.350.0` — pre-publish. The package surface (types, function names, export paths) is the v1 contract; runtime behaviour for some hooks is stubbed (each hook documents what's wired and what isn't). It is **not yet published to npm**.
95
+
96
+ ### What's new in 0.350.0 (contract 1.287.0)
97
+
98
+ **A scheduled action script can tell whose account it runs for — `connection` joins `CONTRACT.actionScriptGlobals` (sc-15765).** An Action whose schedule runs once per account app users connected gets that account as `connection`; it is `null` on every other run. The action-sdk README has the details. Nothing changes for widget authors.
95
99
 
96
100
  ### What's new in 0.349.0 (contract 1.286.0)
97
101
 
package/dist/contract.cjs CHANGED
@@ -4173,6 +4173,8 @@ const ACTION_SCRIPT_GLOBALS = [
4173
4173
  "triggerTableId",
4174
4174
  // sc-7885 — who initiated the run; null on `schedule` / `record_*`.
4175
4175
  "triggeredBy",
4176
+ // sc-15765 — the account a per-connection scheduled run is for; null otherwise.
4177
+ "connection",
4176
4178
  // sc-9031 — a Run action event's parameters; null on every other trigger.
4177
4179
  "input",
4178
4180
  // sc-13843 — hands the app run its one JSON result.
@@ -7170,7 +7172,9 @@ const CONTRACT = deepFreeze({
7170
7172
  // 1.286.0: guidance (sc-16714) — when an Overlay goes `full`, and that a
7171
7173
  // full one draws its own close control; the `full-overlay-no-close`
7172
7174
  // lint warning flags one that does not.
7173
- version: "1.286.0",
7175
+ // 1.287.0: additive (sc-15765) — `connection` joins `actionScriptGlobals`:
7176
+ // the account a per-connection scheduled run is for, null otherwise.
7177
+ version: "1.287.0",
7174
7178
  sharedTranslationKeys: SHARED_TRANSLATION_KEYS,
7175
7179
  hooks: HOOKS,
7176
7180
  primitives: PRIMITIVES,
package/dist/contract.js CHANGED
@@ -4168,6 +4168,8 @@ const ACTION_SCRIPT_GLOBALS = [
4168
4168
  "triggerTableId",
4169
4169
  // sc-7885 — who initiated the run; null on `schedule` / `record_*`.
4170
4170
  "triggeredBy",
4171
+ // sc-15765 — the account a per-connection scheduled run is for; null otherwise.
4172
+ "connection",
4171
4173
  // sc-9031 — a Run action event's parameters; null on every other trigger.
4172
4174
  "input",
4173
4175
  // sc-13843 — hands the app run its one JSON result.
@@ -7165,7 +7167,9 @@ const CONTRACT = deepFreeze({
7165
7167
  // 1.286.0: guidance (sc-16714) — when an Overlay goes `full`, and that a
7166
7168
  // full one draws its own close control; the `full-overlay-no-close`
7167
7169
  // lint warning flags one that does not.
7168
- version: "1.286.0",
7170
+ // 1.287.0: additive (sc-15765) — `connection` joins `actionScriptGlobals`:
7171
+ // the account a per-connection scheduled run is for, null otherwise.
7172
+ version: "1.287.0",
7169
7173
  sharedTranslationKeys: SHARED_TRANSLATION_KEYS,
7170
7174
  hooks: HOOKS,
7171
7175
  primitives: PRIMITIVES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@colixsystems/widget-sdk",
3
- "version": "0.349.0",
3
+ "version": "0.350.0",
4
4
  "description": "Common widget interface for AppStudio. Implements WidgetManifest, WidgetContext, property schema, and helper hooks.",
5
5
  "repository": {
6
6
  "type": "git",
package/src/contract.js CHANGED
@@ -4168,6 +4168,8 @@ const ACTION_SCRIPT_GLOBALS = [
4168
4168
  "triggerTableId",
4169
4169
  // sc-7885 — who initiated the run; null on `schedule` / `record_*`.
4170
4170
  "triggeredBy",
4171
+ // sc-15765 — the account a per-connection scheduled run is for; null otherwise.
4172
+ "connection",
4171
4173
  // sc-9031 — a Run action event's parameters; null on every other trigger.
4172
4174
  "input",
4173
4175
  // sc-13843 — hands the app run its one JSON result.
@@ -7165,7 +7167,9 @@ const CONTRACT = deepFreeze({
7165
7167
  // 1.286.0: guidance (sc-16714) — when an Overlay goes `full`, and that a
7166
7168
  // full one draws its own close control; the `full-overlay-no-close`
7167
7169
  // lint warning flags one that does not.
7168
- version: "1.286.0",
7170
+ // 1.287.0: additive (sc-15765) — `connection` joins `actionScriptGlobals`:
7171
+ // the account a per-connection scheduled run is for, null otherwise.
7172
+ version: "1.287.0",
7169
7173
  sharedTranslationKeys: SHARED_TRANSLATION_KEYS,
7170
7174
  hooks: HOOKS,
7171
7175
  primitives: PRIMITIVES,