@cloudparse/up-miniapps-sdk 0.6.3 → 0.6.4

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/dist/index.d.cts CHANGED
@@ -214,7 +214,16 @@ interface IFidelityTransaction {
214
214
  /**
215
215
  * The initialization options required to set up the Mini-App SDK.
216
216
  */
217
- type IInitializationOptions = {};
217
+ type IInitializationOptions = {
218
+ /**
219
+ * The Mini-App's own dark/light theme preference, applied by the host
220
+ * immediately from the INITIALIZE payload — pass it here instead of a
221
+ * separate `sdk.updateContext({isDark})` call right after `initialize()`
222
+ * resolves, which left the host rendering its own theme for the whole
223
+ * round-trip before flipping to the Mini-App's real one.
224
+ */
225
+ isDark?: boolean;
226
+ };
218
227
  /**
219
228
  * The post initialization response
220
229
  */
package/dist/index.d.ts CHANGED
@@ -214,7 +214,16 @@ interface IFidelityTransaction {
214
214
  /**
215
215
  * The initialization options required to set up the Mini-App SDK.
216
216
  */
217
- type IInitializationOptions = {};
217
+ type IInitializationOptions = {
218
+ /**
219
+ * The Mini-App's own dark/light theme preference, applied by the host
220
+ * immediately from the INITIALIZE payload — pass it here instead of a
221
+ * separate `sdk.updateContext({isDark})` call right after `initialize()`
222
+ * resolves, which left the host rendering its own theme for the whole
223
+ * round-trip before flipping to the Mini-App's real one.
224
+ */
225
+ isDark?: boolean;
226
+ };
218
227
  /**
219
228
  * The post initialization response
220
229
  */
package/dist/index.js CHANGED
@@ -3490,7 +3490,7 @@ var loadImage2 = (src) => new Promise((resolve, reject) => {
3490
3490
  });
3491
3491
 
3492
3492
  // package.json
3493
- var version = "0.6.3";
3493
+ var version = "0.6.4";
3494
3494
 
3495
3495
  // src/sdk.ts
3496
3496
  function deepFreeze(obj) {