@use-voltra/ios 2.3.1 → 2.3.2

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.
@@ -82,6 +82,12 @@ Object.defineProperty(exports, "renderWidgetToString", {
82
82
  return _renderer2.renderWidgetToString;
83
83
  }
84
84
  });
85
+ Object.defineProperty(exports, "useUpdateOnHMR", {
86
+ enumerable: true,
87
+ get: function () {
88
+ return _core.useUpdateOnHMR;
89
+ }
90
+ });
85
91
  var Voltra = _interopRequireWildcard(require("./jsx/primitives.js"));
86
92
  exports.Voltra = Voltra;
87
93
  var _componentIds = require("./payload/component-ids.js");
@@ -1 +1 @@
1
- {"version":3,"names":["Voltra","_interopRequireWildcard","require","exports","_componentIds","_renderer","_dynamic","_index","_renderer2","_core","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA6CC,OAAA,CAAAH,MAAA,GAAAA,MAAA;AAG7C,IAAAI,aAAA,GAAAF,OAAA;AAMA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAaA,IAAAK,MAAA,GAAAL,OAAA;AAoBA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,KAAA,GAAAP,OAAA;AAA4E,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA","ignoreList":[]}
1
+ {"version":3,"names":["Voltra","_interopRequireWildcard","require","exports","_componentIds","_renderer","_dynamic","_index","_renderer2","_core","e","t","WeakMap","r","n","__esModule","o","i","f","__proto__","default","has","get","set","hasOwnProperty","call","Object","defineProperty","getOwnPropertyDescriptor"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,uBAAA,CAAAC,OAAA;AAA6CC,OAAA,CAAAH,MAAA,GAAAA,MAAA;AAG7C,IAAAI,aAAA,GAAAF,OAAA;AAMA,IAAAG,SAAA,GAAAH,OAAA;AACA,IAAAI,QAAA,GAAAJ,OAAA;AAaA,IAAAK,MAAA,GAAAL,OAAA;AAoBA,IAAAM,UAAA,GAAAN,OAAA;AAEA,IAAAO,KAAA,GAAAP,OAAA;AAA4F,SAAAD,wBAAAS,CAAA,EAAAC,CAAA,6BAAAC,OAAA,MAAAC,CAAA,OAAAD,OAAA,IAAAE,CAAA,OAAAF,OAAA,YAAAX,uBAAA,YAAAA,CAAAS,CAAA,EAAAC,CAAA,SAAAA,CAAA,IAAAD,CAAA,IAAAA,CAAA,CAAAK,UAAA,SAAAL,CAAA,MAAAM,CAAA,EAAAC,CAAA,EAAAC,CAAA,KAAAC,SAAA,QAAAC,OAAA,EAAAV,CAAA,iBAAAA,CAAA,uBAAAA,CAAA,yBAAAA,CAAA,SAAAQ,CAAA,MAAAF,CAAA,GAAAL,CAAA,GAAAG,CAAA,GAAAD,CAAA,QAAAG,CAAA,CAAAK,GAAA,CAAAX,CAAA,UAAAM,CAAA,CAAAM,GAAA,CAAAZ,CAAA,GAAAM,CAAA,CAAAO,GAAA,CAAAb,CAAA,EAAAQ,CAAA,gBAAAP,CAAA,IAAAD,CAAA,gBAAAC,CAAA,OAAAa,cAAA,CAAAC,IAAA,CAAAf,CAAA,EAAAC,CAAA,OAAAM,CAAA,IAAAD,CAAA,GAAAU,MAAA,CAAAC,cAAA,KAAAD,MAAA,CAAAE,wBAAA,CAAAlB,CAAA,EAAAC,CAAA,OAAAM,CAAA,CAAAK,GAAA,IAAAL,CAAA,CAAAM,GAAA,IAAAP,CAAA,CAAAE,CAAA,EAAAP,CAAA,EAAAM,CAAA,IAAAC,CAAA,CAAAP,CAAA,IAAAD,CAAA,CAAAC,CAAA,WAAAO,CAAA,KAAAR,CAAA,EAAAC,CAAA","ignoreList":[]}
@@ -7,5 +7,5 @@ export { renderLiveActivityToJson, renderLiveActivityToString } from './live-act
7
7
  export { getDynamicLiveActivityAttributesType } from './live-activity/dynamic.js';
8
8
  export { renderVoltraVariantToJson } from './renderer/index.js';
9
9
  export { renderWidgetToJson, renderWidgetToString } from './widgets/renderer.js';
10
- export { getFastRefreshHub, isAndroidEnv, isIosEnv } from '@use-voltra/core';
10
+ export { getFastRefreshHub, isAndroidEnv, isIosEnv, useUpdateOnHMR } from '@use-voltra/core';
11
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"names":["Voltra","getComponentId","getComponentName","COMPONENT_ID_TO_NAME","COMPONENT_NAME_TO_ID","renderLiveActivityToJson","renderLiveActivityToString","getDynamicLiveActivityAttributesType","renderVoltraVariantToJson","renderWidgetToJson","renderWidgetToString","getFastRefreshHub","isAndroidEnv","isIosEnv"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,OAAO,KAAKA,MAAM,MAAM,qBAAqB;AAE7C,SAASA,MAAM;AACf,SACEC,cAAc,EACdC,gBAAgB,EAChBC,oBAAoB,EACpBC,oBAAoB,QACf,4BAA4B;AACnC,SAASC,wBAAwB,EAAEC,0BAA0B,QAAQ,6BAA6B;AAClG,SAASC,oCAAoC,QAAQ,4BAA4B;AAajF,SAASC,yBAAyB,QAAQ,qBAAqB;AAoB/D,SAASC,kBAAkB,EAAEC,oBAAoB,QAAQ,uBAAuB;AAEhF,SAASC,iBAAiB,EAAEC,YAAY,EAAEC,QAAQ,QAAQ,kBAAkB","ignoreList":[]}
1
+ {"version":3,"names":["Voltra","getComponentId","getComponentName","COMPONENT_ID_TO_NAME","COMPONENT_NAME_TO_ID","renderLiveActivityToJson","renderLiveActivityToString","getDynamicLiveActivityAttributesType","renderVoltraVariantToJson","renderWidgetToJson","renderWidgetToString","getFastRefreshHub","isAndroidEnv","isIosEnv","useUpdateOnHMR"],"sourceRoot":"../../src","sources":["index.ts"],"mappings":";;AAAA,OAAO,KAAKA,MAAM,MAAM,qBAAqB;AAE7C,SAASA,MAAM;AACf,SACEC,cAAc,EACdC,gBAAgB,EAChBC,oBAAoB,EACpBC,oBAAoB,QACf,4BAA4B;AACnC,SAASC,wBAAwB,EAAEC,0BAA0B,QAAQ,6BAA6B;AAClG,SAASC,oCAAoC,QAAQ,4BAA4B;AAajF,SAASC,yBAAyB,QAAQ,qBAAqB;AAoB/D,SAASC,kBAAkB,EAAEC,oBAAoB,QAAQ,uBAAuB;AAEhF,SAASC,iBAAiB,EAAEC,YAAY,EAAEC,QAAQ,EAAEC,cAAc,QAAQ,kBAAkB","ignoreList":[]}
@@ -10,6 +10,6 @@ export type { VoltraStyleProp, VoltraTextStyle, VoltraTextStyleProp, VoltraViewS
10
10
  export type { EventSubscription, PreloadImageFailure, PreloadImageOptions, PreloadImageSvgOptions, PreloadImageUrlOptions, PreloadImagesResult, UpdateWidgetOptions, VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue, WidgetServerCredentials, WidgetServerUpdateBody, WidgetServerUpdateOptions, WidgetServerUpdateSettings, WidgetServerUpdateSnapshot, } from './types.js';
11
11
  export { renderWidgetToJson, renderWidgetToString } from './widgets/renderer.js';
12
12
  export type { ScheduledWidgetEntry, WidgetFamily, WidgetInfo, WidgetVariants } from './widgets/types.js';
13
- export { getFastRefreshHub, isAndroidEnv, isIosEnv } from '@use-voltra/core';
13
+ export { getFastRefreshHub, isAndroidEnv, isIosEnv, useUpdateOnHMR } from '@use-voltra/core';
14
14
  export type { FastRefreshHub, WidgetBuildEnvironment, WidgetEnvironment } from '@use-voltra/core';
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4BAA4B,CAAA;AACjF,YAAY,EACV,e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E,MAAM,4BAA4B,CAAA;AACjF,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,+BAA+B,EAC/B,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC/G,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAChF,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxG,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5F,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,85 +1,5 @@
1
- export type { VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue } from '@use-voltra/core';
2
- export type EventSubscription = {
3
- remove: () => void;
4
- };
5
- type PreloadImageBaseOptions = {
6
- key: string;
7
- width?: number;
8
- height?: number;
9
- };
10
- export type PreloadImageUrlOptions = PreloadImageBaseOptions & {
11
- url: string;
12
- method?: 'GET' | 'POST' | 'PUT';
13
- headers?: Record<string, string>;
14
- };
15
- export type PreloadImageSvgOptions = PreloadImageBaseOptions & {
16
- svg: string;
17
- };
18
- export type PreloadImageOptions = PreloadImageUrlOptions | PreloadImageSvgOptions;
19
- export type PreloadImageFailure = {
20
- key: string;
21
- error: string;
22
- };
23
- export type PreloadImagesResult = {
24
- succeeded: string[];
25
- failed: PreloadImageFailure[];
26
- };
1
+ export type { EventSubscription, PreloadImageFailure, PreloadImageOptions, PreloadImageSvgOptions, PreloadImageUrlOptions, PreloadImagesResult, VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue, WidgetServerCredentials, WidgetServerUpdateBody, WidgetServerUpdateOptions, WidgetServerUpdateSettings, WidgetServerUpdateSnapshot, } from '@use-voltra/core';
27
2
  export type UpdateWidgetOptions = {
28
3
  deepLinkUrl?: string;
29
4
  };
30
- /**
31
- * @deprecated Use `setWidgetServerUpdate` with an `Authorization` header instead. These are
32
- * stored in the same place and keep the same replace-the-whole-set semantics.
33
- */
34
- export type WidgetServerCredentials = {
35
- token: string;
36
- headers?: Record<string, string>;
37
- };
38
- /**
39
- * Runtime overrides for a widget's `serverUpdate` settings — the twin of the `serverUpdate` key
40
- * in app.json, which supplies the defaults.
41
- *
42
- * Every field is optional and replaces the app.json value when set. `headers` and `query` merge
43
- * per key across layers; everything else takes the value from the most specific layer that sets
44
- * it. Passing settings without a `widgetId` sets them for every server-driven widget.
45
- */
46
- export type WidgetServerUpdateSettings = {
47
- /** Endpoint to fetch from. Must be https, or http to a local dev host in a debug build. */
48
- url?: string;
49
- /** How often to fetch, in minutes. Clamped to at least 15 and at most 24 hours. */
50
- intervalMinutes?: number;
51
- /** Set false to stop fetching and drive the widget from the app instead. Defaults to true. */
52
- enabled?: boolean;
53
- /** HTTP method. Defaults to GET. A body is dropped on GET and HEAD, with a warning. */
54
- method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
55
- /** Extra query parameters. Voltra's own keys are reserved and rejected. */
56
- query?: Record<string, string>;
57
- /** Extra request headers, for example `Authorization`. */
58
- headers?: Record<string, string>;
59
- /** Request body, sent as `application/json`. */
60
- body?: WidgetServerUpdateBody;
61
- };
62
- /** A JSON value, as accepted for a server-update request body. */
63
- export type WidgetServerUpdateBody = string | number | boolean | null | WidgetServerUpdateBody[] | {
64
- [key: string]: WidgetServerUpdateBody;
65
- };
66
- /** Options selecting which widget a settings call applies to. */
67
- export type WidgetServerUpdateOptions = {
68
- /** Widget id to scope the settings to. Omit to set them for every server-driven widget. */
69
- widgetId?: string;
70
- };
71
- /**
72
- * Fully resolved settings for one widget: every layer flattened and app.json's defaults applied,
73
- * exactly what it would fetch with right now.
74
- */
75
- export type WidgetServerUpdateSnapshot = {
76
- /** Absent when the widget is server-driven but has no URL yet. */
77
- url?: string;
78
- intervalMinutes: number;
79
- enabled: boolean;
80
- method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
81
- query: Record<string, string>;
82
- headers: Record<string, string>;
83
- body?: WidgetServerUpdateBody;
84
- };
85
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAE5G,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,GAAG;IAC7D,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;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I,GACJ,sBAAsB,EAAE,GACxB;IAAE,CAAC,GAAG,EAAE,MAAM,GAAG,sBAAsB,CAAA;CAAE,CAAA;AAE7C,iEAAiE;AACjE,MAAM,MAAM,yBAAyB,GAAG;IACtC,2FAA2F;IAC3F,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB,CAAA;AAED;;;GAGG;AACH,MAAM,MAAM,0BAA0B,GAAG;IACvC,kEAAkE;IAClE,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,eAAe,EAAE,MAAM,CAAA;IACvB,OAAO,EAAE,OAAO,CAAA;IAChB,MAAM,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,CAAA;IACnD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,CAAC,EAAE,sBAAsB,CAAA;CAC9B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA"}
@@ -10,6 +10,6 @@ export type { VoltraStyleProp, VoltraTextStyle, VoltraTextStyleProp, VoltraViewS
10
10
  export type { EventSubscription, PreloadImageFailure, PreloadImageOptions, PreloadImageSvgOptions, PreloadImageUrlOptions, PreloadImagesResult, UpdateWidgetOptions, VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue, WidgetServerCredentials, WidgetServerUpdateBody, WidgetServerUpdateOptions, WidgetServerUpdateSettings, WidgetServerUpdateSnapshot, } from './types.js';
11
11
  export { renderWidgetToJson, renderWidgetToString } from './widgets/renderer.js';
12
12
  export type { ScheduledWidgetEntry, WidgetFamily, WidgetInfo, WidgetVariants } from './widgets/types.js';
13
- export { getFastRefreshHub, isAndroidEnv, isIosEnv } from '@use-voltra/core';
13
+ export { getFastRefreshHub, isAndroidEnv, isIosEnv, useUpdateOnHMR } from '@use-voltra/core';
14
14
  export type { FastRefreshHub, WidgetBuildEnvironment, WidgetEnvironment } from '@use-voltra/core';
15
15
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,MAAM,qBAAqB,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAE,CAAA;AACjB,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,oBAAoB,EACpB,oBAAoB,GACrB,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,wBAAwB,EAAE,0BAA0B,EAAE,MAAM,6BAA6B,CAAA;AAClG,OAAO,EAAE,oCAAoC,EAAE,MAAM,4BAA4B,CAAA;AACjF,YAAY,EACV,eAAe,EACf,uBAAuB,EACvB,gBAAgB,EAChB,oBAAoB,EACpB,wBAAwB,GACzB,MAAM,0BAA0B,CAAA;AACjC,YAAY,EACV,+BAA+B,EAC/B,wBAAwB,EACxB,6BAA6B,GAC9B,MAAM,4BAA4B,CAAA;AACnC,OAAO,EAAE,yBAAyB,EAAE,MAAM,qBAAqB,CAAA;AAC/D,YAAY,EAAE,eAAe,EAAE,eAAe,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAC/G,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,mBAA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,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,YAAY,CAAA;AACnB,OAAO,EAAE,kBAAkB,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAA;AAChF,YAAY,EAAE,oBAAoB,EAAE,YAAY,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,oBAAoB,CAAA;AACxG,OAAO,EAAE,iBAAiB,EAAE,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAC5F,YAAY,EAAE,cAAc,EAAE,sBAAsB,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,85 +1,5 @@
1
- export type { VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue } from '@use-voltra/core';
2
- export type EventSubscription = {
3
- remove: () => void;
4
- };
5
- type PreloadImageBaseOptions = {
6
- key: string;
7
- width?: number;
8
- height?: number;
9
- };
10
- export type PreloadImageUrlOptions = PreloadImageBaseOptions & {
11
- url: string;
12
- method?: 'GET' | 'POST' | 'PUT';
13
- headers?: Record<string, string>;
14
- };
15
- export type PreloadImageSvgOptions = PreloadImageBaseOptions & {
16
- svg: string;
17
- };
18
- export type PreloadImageOptions = PreloadImageUrlOptions | PreloadImageSvgOptions;
19
- export type PreloadImageFailure = {
20
- key: string;
21
- error: string;
22
- };
23
- export type PreloadImagesResult = {
24
- succeeded: string[];
25
- failed: PreloadImageFailure[];
26
- };
1
+ export type { EventSubscription, PreloadImageFailure, PreloadImageOptions, PreloadImageSvgOptions, PreloadImageUrlOptions, PreloadImagesResult, VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue, WidgetServerCredentials, WidgetServerUpdateBody, WidgetServerUpdateOptions, WidgetServerUpdateSettings, WidgetServerUpdateSnapshot, } from '@use-voltra/core';
27
2
  export type UpdateWidgetOptions = {
28
3
  deepLinkUrl?: string;
29
4
  };
30
- /**
31
- * @deprecated Use `setWidgetServerUpdate` with an `Authorization` header instead. These are
32
- * stored in the same place and keep the same replace-the-whole-set semantics.
33
- */
34
- export type WidgetServerCredentials = {
35
- token: string;
36
- headers?: Record<string, string>;
37
- };
38
- /**
39
- * Runtime overrides for a widget's `serverUpdate` settings — the twin of the `serverUpdate` key
40
- * in app.json, which supplies the defaults.
41
- *
42
- * Every field is optional and replaces the app.json value when set. `headers` and `query` merge
43
- * per key across layers; everything else takes the value from the most specific layer that sets
44
- * it. Passing settings without a `widgetId` sets them for every server-driven widget.
45
- */
46
- export type WidgetServerUpdateSettings = {
47
- /** Endpoint to fetch from. Must be https, or http to a local dev host in a debug build. */
48
- url?: string;
49
- /** How often to fetch, in minutes. Clamped to at least 15 and at most 24 hours. */
50
- intervalMinutes?: number;
51
- /** Set false to stop fetching and drive the widget from the app instead. Defaults to true. */
52
- enabled?: boolean;
53
- /** HTTP method. Defaults to GET. A body is dropped on GET and HEAD, with a warning. */
54
- method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
55
- /** Extra query parameters. Voltra's own keys are reserved and rejected. */
56
- query?: Record<string, string>;
57
- /** Extra request headers, for example `Authorization`. */
58
- headers?: Record<string, string>;
59
- /** Request body, sent as `application/json`. */
60
- body?: WidgetServerUpdateBody;
61
- };
62
- /** A JSON value, as accepted for a server-update request body. */
63
- export type WidgetServerUpdateBody = string | number | boolean | null | WidgetServerUpdateBody[] | {
64
- [key: string]: WidgetServerUpdateBody;
65
- };
66
- /** Options selecting which widget a settings call applies to. */
67
- export type WidgetServerUpdateOptions = {
68
- /** Widget id to scope the settings to. Omit to set them for every server-driven widget. */
69
- widgetId?: string;
70
- };
71
- /**
72
- * Fully resolved settings for one widget: every layer flattened and app.json's defaults applied,
73
- * exactly what it would fetch with right now.
74
- */
75
- export type WidgetServerUpdateSnapshot = {
76
- /** Absent when the widget is server-driven but has no URL yet. */
77
- url?: string;
78
- intervalMinutes: number;
79
- enabled: boolean;
80
- method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
81
- query: Record<string, string>;
82
- headers: Record<string, string>;
83
- body?: WidgetServerUpdateBody;
84
- };
85
5
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AAE5G,MAAM,MAAM,iBAAiB,GAAG;IAC9B,MAAM,EAAE,MAAM,IAAI,CAAA;CACnB,CAAA;AAED,KAAK,uBAAuB,GAAG;IAC7B,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,GAAG;IAC7D,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,KAAK,CAAA;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;CACjC,CAAA;AAED,MAAM,MAAM,sBAAsB,GAAG,uBAAuB,GAAG;IAC7D,GAAG,EAAE,MAAM,CAAA;CACZ,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG,sBAAsB,GAAG,sBAAsB,CAAA;AAEjF,MAAM,MAAM,mBAAmB,GAAG;IAChC,GAAG,EAAE,MAAM,CAAA;IACX,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,SAAS,EAAE,MAAM,EAAE,CAAA;IACnB,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAC9B,CAAA;AAED,MAAM,MAAM,mBAAmB,GAAG;IAChC,WA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G,QAAQ,CAAA;IACnD,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC7B,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,IAAI,CAAC,EAAE,sBAAsB,CAAA;CAC9B,CAAA"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/types.ts"],"names":[],"mappings":"AAAA,YAAY,EACV,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,sBAAsB,EACtB,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,eAAe,EACf,uBAAuB,EACvB,sBAAsB,EACtB,yBAAyB,EACzB,0BAA0B,EAC1B,0BAA0B,GAC3B,MAAM,kBAAkB,CAAA;AAEzB,MAAM,MAAM,mBAAmB,GAAG;IAChC,WAAW,CAAC,EAAE,MAAM,CAAA;CACrB,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@use-voltra/ios",
3
- "version": "2.3.1",
3
+ "version": "2.3.2",
4
4
  "description": "Voltra for iOS",
5
5
  "main": "build/commonjs/index.js",
6
6
  "module": "build/module/index.js",
@@ -38,7 +38,7 @@
38
38
  "README.md"
39
39
  ],
40
40
  "dependencies": {
41
- "@use-voltra/core": "^2.3.1"
41
+ "@use-voltra/core": "^2.3.2"
42
42
  },
43
43
  "keywords": [
44
44
  "react-native",
package/src/index.ts CHANGED
@@ -43,5 +43,5 @@ export type {
43
43
  } from './types.js'
44
44
  export { renderWidgetToJson, renderWidgetToString } from './widgets/renderer.js'
45
45
  export type { ScheduledWidgetEntry, WidgetFamily, WidgetInfo, WidgetVariants } from './widgets/types.js'
46
- export { getFastRefreshHub, isAndroidEnv, isIosEnv } from '@use-voltra/core'
46
+ export { getFastRefreshHub, isAndroidEnv, isIosEnv, useUpdateOnHMR } from '@use-voltra/core'
47
47
  export type { FastRefreshHub, WidgetBuildEnvironment, WidgetEnvironment } from '@use-voltra/core'
package/src/types.ts CHANGED
@@ -1,101 +1,21 @@
1
- export type { VoltraElementJson, VoltraElementRef, VoltraNodeJson, VoltraPropValue } from '@use-voltra/core'
2
-
3
- export type EventSubscription = {
4
- remove: () => void
5
- }
6
-
7
- type PreloadImageBaseOptions = {
8
- key: string
9
- width?: number
10
- height?: number
11
- }
12
-
13
- export type PreloadImageUrlOptions = PreloadImageBaseOptions & {
14
- url: string
15
- method?: 'GET' | 'POST' | 'PUT'
16
- headers?: Record<string, string>
17
- }
18
-
19
- export type PreloadImageSvgOptions = PreloadImageBaseOptions & {
20
- svg: string
21
- }
22
-
23
- export type PreloadImageOptions = PreloadImageUrlOptions | PreloadImageSvgOptions
24
-
25
- export type PreloadImageFailure = {
26
- key: string
27
- error: string
28
- }
29
-
30
- export type PreloadImagesResult = {
31
- succeeded: string[]
32
- failed: PreloadImageFailure[]
33
- }
1
+ export type {
2
+ EventSubscription,
3
+ PreloadImageFailure,
4
+ PreloadImageOptions,
5
+ PreloadImageSvgOptions,
6
+ PreloadImageUrlOptions,
7
+ PreloadImagesResult,
8
+ VoltraElementJson,
9
+ VoltraElementRef,
10
+ VoltraNodeJson,
11
+ VoltraPropValue,
12
+ WidgetServerCredentials,
13
+ WidgetServerUpdateBody,
14
+ WidgetServerUpdateOptions,
15
+ WidgetServerUpdateSettings,
16
+ WidgetServerUpdateSnapshot,
17
+ } from '@use-voltra/core'
34
18
 
35
19
  export type UpdateWidgetOptions = {
36
20
  deepLinkUrl?: string
37
21
  }
38
-
39
- /**
40
- * @deprecated Use `setWidgetServerUpdate` with an `Authorization` header instead. These are
41
- * stored in the same place and keep the same replace-the-whole-set semantics.
42
- */
43
- export type WidgetServerCredentials = {
44
- token: string
45
- headers?: Record<string, string>
46
- }
47
-
48
- /**
49
- * Runtime overrides for a widget's `serverUpdate` settings — the twin of the `serverUpdate` key
50
- * in app.json, which supplies the defaults.
51
- *
52
- * Every field is optional and replaces the app.json value when set. `headers` and `query` merge
53
- * per key across layers; everything else takes the value from the most specific layer that sets
54
- * it. Passing settings without a `widgetId` sets them for every server-driven widget.
55
- */
56
- export type WidgetServerUpdateSettings = {
57
- /** Endpoint to fetch from. Must be https, or http to a local dev host in a debug build. */
58
- url?: string
59
- /** How often to fetch, in minutes. Clamped to at least 15 and at most 24 hours. */
60
- intervalMinutes?: number
61
- /** Set false to stop fetching and drive the widget from the app instead. Defaults to true. */
62
- enabled?: boolean
63
- /** HTTP method. Defaults to GET. A body is dropped on GET and HEAD, with a warning. */
64
- method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
65
- /** Extra query parameters. Voltra's own keys are reserved and rejected. */
66
- query?: Record<string, string>
67
- /** Extra request headers, for example `Authorization`. */
68
- headers?: Record<string, string>
69
- /** Request body, sent as `application/json`. */
70
- body?: WidgetServerUpdateBody
71
- }
72
-
73
- /** A JSON value, as accepted for a server-update request body. */
74
- export type WidgetServerUpdateBody =
75
- | string
76
- | number
77
- | boolean
78
- | null
79
- | WidgetServerUpdateBody[]
80
- | { [key: string]: WidgetServerUpdateBody }
81
-
82
- /** Options selecting which widget a settings call applies to. */
83
- export type WidgetServerUpdateOptions = {
84
- /** Widget id to scope the settings to. Omit to set them for every server-driven widget. */
85
- widgetId?: string
86
- }
87
-
88
- /**
89
- * Fully resolved settings for one widget: every layer flattened and app.json's defaults applied,
90
- * exactly what it would fetch with right now.
91
- */
92
- export type WidgetServerUpdateSnapshot = {
93
- /** Absent when the widget is server-driven but has no URL yet. */
94
- url?: string
95
- intervalMinutes: number
96
- enabled: boolean
97
- method: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE'
98
- query: Record<string, string>
99
- headers: Record<string, string>
100
- body?: WidgetServerUpdateBody
101
- }
@@ -1,31 +0,0 @@
1
- "use strict";
2
-
3
- Object.defineProperty(exports, "__esModule", {
4
- value: true
5
- });
6
- Object.defineProperty(exports, "NAME_TO_SHORT", {
7
- enumerable: true,
8
- get: function () {
9
- return _core.NAME_TO_SHORT;
10
- }
11
- });
12
- Object.defineProperty(exports, "SHORT_TO_NAME", {
13
- enumerable: true,
14
- get: function () {
15
- return _core.SHORT_TO_NAME;
16
- }
17
- });
18
- Object.defineProperty(exports, "expand", {
19
- enumerable: true,
20
- get: function () {
21
- return _core.expand;
22
- }
23
- });
24
- Object.defineProperty(exports, "shorten", {
25
- enumerable: true,
26
- get: function () {
27
- return _core.shorten;
28
- }
29
- });
30
- var _core = require("@use-voltra/core");
31
- //# sourceMappingURL=short-names.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["_core","require"],"sourceRoot":"../../../src","sources":["payload/short-names.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,IAAAA,KAAA,GAAAC,OAAA","ignoreList":[]}
@@ -1,4 +0,0 @@
1
- "use strict";
2
-
3
- export { expand, NAME_TO_SHORT, SHORT_TO_NAME, shorten } from '@use-voltra/core';
4
- //# sourceMappingURL=short-names.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["expand","NAME_TO_SHORT","SHORT_TO_NAME","shorten"],"sourceRoot":"../../../src","sources":["payload/short-names.ts"],"mappings":";;AAAA,SAASA,MAAM,EAAEC,aAAa,EAAEC,aAAa,EAAEC,OAAO,QAAQ,kBAAkB","ignoreList":[]}
@@ -1,2 +0,0 @@
1
- export { expand, NAME_TO_SHORT, SHORT_TO_NAME, shorten } from '@use-voltra/core';
2
- //# sourceMappingURL=short-names.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"short-names.d.ts","sourceRoot":"","sources":["../../../../src/payload/short-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1,2 +0,0 @@
1
- export { expand, NAME_TO_SHORT, SHORT_TO_NAME, shorten } from '@use-voltra/core';
2
- //# sourceMappingURL=short-names.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"short-names.d.ts","sourceRoot":"","sources":["../../../../src/payload/short-names.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA"}
@@ -1 +0,0 @@
1
- export { expand, NAME_TO_SHORT, SHORT_TO_NAME, shorten } from '@use-voltra/core'