@bake-native/core 0.1.0-rc.0 → 0.1.0-rc.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.
package/host-runtime.js CHANGED
@@ -16,6 +16,7 @@ import { installVisibility } from './visibility.js';
16
16
  import { installElementApi } from './element-api.js';
17
17
  import { installMediaElement } from './media-element.js';
18
18
  import { installPageElements } from './page-elements.js';
19
+ import { installCloseWatcher } from './close-watcher.js';
19
20
  import { nativeViewRefs } from './view-ref-writer.js';
20
21
  import { bakeProps, installBakeTraps, takePropReads, throwIfRead } from './first-screen.js';
21
22
 
@@ -95,6 +96,9 @@ if (sendBinary) {
95
96
  // fetch rejects there.
96
97
  // Bundled only when the app names one of these globals (bake build, __BAKE_WEB_FETCH__).
97
98
  if (__BAKE_WEB_FETCH__) installWebFetch(globalThis, sendBinary ? post : null);
99
+ // CloseWatcher: Android's back, Escape and other close requests (close-watcher.js); the core keeps
100
+ // the stack and asks a watcher through __bakeDispatch(-1, {type: 'closerequest', id}).
101
+ const closeRequest = installCloseWatcher(globalThis, sendBinary ? post : null);
98
102
  // crypto.getRandomValues / randomUUID from the OS CSPRNG (web-crypto.js, the core's
99
103
  // __bakeRandomWords). Installed before the app module runs, so the bake's traps (installed at
100
104
  // mount) see it. Bundled only when the app names `crypto` (bake build, __BAKE_WEB_CRYPTO__).
@@ -346,9 +350,11 @@ function dispatchDomEvent(root, message, isInactiveListenerError) {
346
350
  let stopped = false;
347
351
  let immediate = false;
348
352
  let prevented = false;
353
+ const eventTarget = element(target);
354
+ if (eventTarget && typeof payload.target?.value === 'string') eventTarget.value = payload.target.value;
349
355
  const event = Object.assign({}, payload, {
350
356
  type,
351
- target: element(target),
357
+ target: eventTarget,
352
358
  currentTarget: null,
353
359
  relatedTarget: element(related),
354
360
  eventPhase: 0,
@@ -432,6 +438,13 @@ export function mountNative(App, adapter) {
432
438
  // the element it happened on, so that element is the currentTarget while the listener runs, as
433
439
  // in the DOM, and null once dispatch is over. The core sends the element's fields as `target`.
434
440
  globalThis.__bakeDispatch = (listener, payload) => {
441
+ // A close request for a CloseWatcher (bake_core::close_watch::CLOSE_WATCHER_LISTENER): a
442
+ // discrete user event, as a click.
443
+ if (listener === -1) {
444
+ if (root.eventScope) root.eventScope('discrete', () => closeRequest(payload.id));
445
+ else closeRequest(payload.id);
446
+ return true;
447
+ }
435
448
  payload = (mediaApi ? mediaApi.event(payload, element) : payload) ?? {};
436
449
  const at = payload.currentTarget ?? payload.target;
437
450
  const own = at != null && typeof at === 'object';
@@ -76,6 +76,16 @@ interface AbortSignal {
76
76
  declare var AbortSignal: { prototype: AbortSignal; abort(reason?: any): AbortSignal; timeout(ms: number): AbortSignal; any(signals: Iterable<AbortSignal>): AbortSignal };
77
77
  interface AbortController { readonly signal: AbortSignal; abort(reason?: any): void }
78
78
  declare var AbortController: { new (): AbortController; prototype: AbortController };
79
+ // CloseWatcher (close-watcher.js): Android's back, Escape and other close requests. Unlike
80
+ // Chromium, cancel is always cancelable and watchers are never grouped.
81
+ interface CloseWatcherEvent { readonly type: 'cancel' | 'close'; readonly cancelable: boolean; readonly defaultPrevented: boolean; readonly target: CloseWatcher; preventDefault(): void }
82
+ interface CloseWatcher {
83
+ oncancel: ((event: CloseWatcherEvent) => void) | null; onclose: ((event: CloseWatcherEvent) => void) | null;
84
+ requestClose(): void; close(): void; destroy(): void;
85
+ addEventListener(type: 'cancel' | 'close', listener: (event: CloseWatcherEvent) => void, options?: { once?: boolean; signal?: AbortSignal }): void;
86
+ removeEventListener(type: 'cancel' | 'close', listener: (event: CloseWatcherEvent) => void): void;
87
+ }
88
+ declare var CloseWatcher: { new (options?: { signal?: AbortSignal }): CloseWatcher; prototype: CloseWatcher };
79
89
  interface DOMException extends Error { readonly name: string; readonly code: number }
80
90
  declare var DOMException: { new (message?: string, name?: string): DOMException; prototype: DOMException; readonly ABORT_ERR: 20; readonly TIMEOUT_ERR: 23 };
81
91
  interface URLSearchParams {
@@ -17,7 +17,14 @@
17
17
  "attributes": ["type", "value", "defaultValue", "checked", "defaultChecked", "disabled", "placeholder", "name", "min", "max", "step",
18
18
  "maxlength", "maxLength", "switch", "inputmode", "inputMode", "enterkeyhint", "enterKeyHint", "autocomplete", "autoComplete",
19
19
  "autocorrect", "autoCorrect", "autocapitalize", "autoCapitalize", "spellcheck", "spellCheck", "suppressNativeChangeWarning"],
20
- "values": { "type": ["text", "password", "email", "search", "tel", "url", "number", "checkbox", "radio", "range", "date", "time", "datetime-local", "color"] }
20
+ "values": {
21
+ "type": ["text", "password", "email", "search", "tel", "url", "number", "checkbox", "radio", "range", "date", "time", "datetime-local", "color"],
22
+ "inputmode": ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"], "inputMode": ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"],
23
+ "enterkeyhint": ["enter", "done", "go", "next", "previous", "search", "send"], "enterKeyHint": ["enter", "done", "go", "next", "previous", "search", "send"],
24
+ "autocapitalize": ["none", "off", "sentences", "on", "words", "characters"], "autoCapitalize": ["none", "off", "sentences", "on", "words", "characters"],
25
+ "autocorrect": ["", "on", "off", "true", "false"], "autoCorrect": ["", "on", "off", "true", "false"],
26
+ "spellcheck": ["", "true", "false"], "spellCheck": ["", "true", "false"]
27
+ }
21
28
  },
22
29
  "kbd": {}, "label": { "attributes": ["for", "htmlFor"] }, "li": {}, "main": {}, "mark": {}, "menu": {},
23
30
  "meter": { "attributes": ["value", "min", "max"] },
@@ -32,7 +39,14 @@
32
39
  "textarea": {
33
40
  "attributes": ["value", "defaultValue", "disabled", "placeholder", "name", "rows", "maxlength", "maxLength", "inputmode", "inputMode",
34
41
  "enterkeyhint", "enterKeyHint", "autocomplete", "autoComplete", "autocorrect", "autoCorrect", "autocapitalize",
35
- "autoCapitalize", "spellcheck", "spellCheck", "suppressNativeChangeWarning"]
42
+ "autoCapitalize", "spellcheck", "spellCheck", "suppressNativeChangeWarning"],
43
+ "values": {
44
+ "inputmode": ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"], "inputMode": ["none", "text", "decimal", "numeric", "tel", "search", "email", "url"],
45
+ "enterkeyhint": ["enter", "done", "go", "next", "previous", "search", "send"], "enterKeyHint": ["enter", "done", "go", "next", "previous", "search", "send"],
46
+ "autocapitalize": ["none", "off", "sentences", "on", "words", "characters"], "autoCapitalize": ["none", "off", "sentences", "on", "words", "characters"],
47
+ "autocorrect": ["", "on", "off", "true", "false"], "autoCorrect": ["", "on", "off", "true", "false"],
48
+ "spellcheck": ["", "true", "false"], "spellCheck": ["", "true", "false"]
49
+ }
36
50
  },
37
51
  "time": {}, "u": {}, "ul": {}, "var": {},
38
52
  "svg": { "svg": true }, "g": { "svg": true }, "path": { "svg": true }, "rect": { "svg": true }, "circle": { "svg": true },
@@ -54,8 +68,8 @@
54
68
  "bake-tabbar": { "attributes": "*", "internal": "Universal UI", "targets": ["ios", "mac", "android"] },
55
69
  "swiftui-*": { "attributes": "*", "internal": "the SwiftUI adapters", "targets": ["ios", "mac"],
56
70
  "kinds": ["host", "vstack", "hstack", "zstack", "group", "spacer", "divider", "scrollview", "glasseffectcontainer",
57
- "text", "label", "image", "progressview", "button", "toggle", "slider", "picker", "textfield",
58
- "securefield", "menu", "form", "list", "section", "navigationstack", "toolbaritem", "bakeview",
71
+ "text", "label", "contentunavailableview", "labeledcontent", "link", "image", "progressview", "button", "toggle", "slider", "picker", "textfield",
72
+ "securefield", "menu", "form", "list", "section", "swipeactions", "swipeactiongroup", "navigationstack", "toolbaritem", "bakeview",
59
73
  "bottomsheet", "tabview", "tab"],
60
74
  "unknown": { "why": "the SwiftUI host draws no such component (its registry is the kinds list in native-support.json)",
61
75
  "instead": "a component exported by your adapter's ui/swift-ui entry" } }
@@ -134,7 +148,7 @@
134
148
  "font-style": ["normal", "italic", "oblique"], "fontStyle": ["normal", "italic", "oblique"],
135
149
  "role": ["alert", "alertdialog", "article", "banner", "button", "cell", "checkbox", "columnheader", "combobox", "complementary", "contentinfo",
136
150
  "dialog", "figure", "form", "generic", "grid", "gridcell", "group", "heading", "img", "image", "link", "list", "listbox", "listitem", "log",
137
- "main", "menu", "menuitem", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio",
151
+ "main", "menu", "menuitem", "menuitemcheckbox", "menuitemradio", "meter", "navigation", "none", "note", "option", "paragraph", "presentation", "progressbar", "radio",
138
152
  "radiogroup", "region", "row", "search", "searchbox", "separator", "slider", "spinbutton", "status", "switch", "tab", "table", "tablist",
139
153
  "tabpanel", "text", "textbox", "toolbar", "tooltip"],
140
154
  "aria-haspopup": ["false", "true", "menu", "listbox", "tree", "grid", "dialog"],
@@ -142,6 +156,8 @@
142
156
  "aria-orientation": ["horizontal", "vertical", "undefined"]
143
157
  },
144
158
  "valueTargets": {
159
+ "enterkeyhint": { "previous": { "targets": ["android", "mac", "windows"], "why": "UIKit has no Previous return key", "instead": "choose another enterkeyhint for iOS" } },
160
+ "enterKeyHint": { "previous": { "targets": ["android", "mac", "windows"], "why": "UIKit has no Previous return key", "instead": "choose another enterKeyHint for iOS" } },
145
161
  "dir": { "rtl": { "targets": ["ios", "mac", "android"], "why": "the text backend of this target shapes paragraphs left to right (the same as `direction: rtl`, css-direction)", "instead": "leave the default (ltr) on this target" } }
146
162
  },
147
163
  "unsupported": {
@@ -198,6 +214,7 @@
198
214
  "supported": {
199
215
  "onClick": { "event": "click" },
200
216
  "onPress": { "event": "click", "note": "alias of onClick" },
217
+ "onBeforeInput": { "event": "beforeinput", "capture": true, "targets": ["ios", "android"] },
201
218
  "onInput": { "event": "input", "elements": ["input", "textarea", "select"] },
202
219
  "onChange": { "event": "change", "elements": ["input", "textarea", "select"], "note": "a text field commits (Return or blur); in React, onChange of a text input, textarea or range, date, time or color input is the input event, as React DOM" },
203
220
  "onSubmit": { "event": "submit", "elements": ["input", "textarea"], "note": "a text field's commit (Return) when it has no change listener (an Octane onChange; a React text field's onChange is on input)" },
@@ -260,7 +277,7 @@
260
277
  "onCut": { "why": "clipboard events are not delivered", "instead": "a native module" },
261
278
  "onPaste": { "why": "clipboard events are not delivered", "instead": "a native module" },
262
279
  "onSelect": { "why": "text selection events are not delivered", "instead": "nothing yet" },
263
- "onBefore": { "why": "beforeinput / beforetoggle are not delivered", "instead": "onInput / onToggle" },
280
+ "onBefore": { "why": "beforetoggle is not delivered", "instead": "onToggle" },
264
281
  "onGot": { "why": "pointer capture is not implemented", "instead": "onClick" },
265
282
  "onLost": { "why": "pointer capture is not implemented", "instead": "onClick" }
266
283
  }
@@ -268,7 +285,7 @@
268
285
  "element": {
269
286
  "$comment": "Element handles (refs, event targets) on native targets: getComputedStyle answers `computedStyle` (bake_core::element::COMPUTED_STYLE_PROPERTIES; the last eight are properties the CSS lint rejects, so always their initial value) and custom properties through getPropertyValue('--name') (env() replaced; requires.globals `custom-properties`) and addEventListener takes `events` (REF_EVENT_TYPES); anything else throws E_UNSUPPORTED. The core's tests check both lists against these.",
270
287
  "computedStyle": ["display", "position", "visibility", "opacity", "overflow", "overflowX", "overflowY", "pointerEvents", "zIndex", "transform", "animationName", "animationDuration", "animationDelay", "animationIterationCount", "animationFillMode", "animationDirection", "transitionProperty", "transitionDuration", "transitionDelay", "width", "height", "boxSizing", "direction", "borderTopWidth", "borderRightWidth", "borderBottomWidth", "borderLeftWidth", "paddingTop", "paddingRight", "paddingBottom", "paddingLeft", "translate", "scale", "rotate", "perspective", "containerType", "backdropFilter", "willChange", "contain"],
271
- "events": ["click", "change", "pointerdown", "pointerup", "pointermove", "pointercancel", "pointerover", "pointerout", "pointerenter", "pointerleave", "gotpointercapture", "lostpointercapture", "mousedown", "mouseup", "mousemove", "mouseover", "mouseout", "mouseenter", "mouseleave", "keydown", "keyup", "focus", "blur", "focusin", "focusout", "wheel", "animationstart", "animationiteration", "animationend", "animationcancel", "transitionrun", "transitionstart", "transitionend", "transitioncancel"]
288
+ "events": ["click", "change", "pointerdown", "pointerup", "pointermove", "pointercancel", "pointerover", "pointerout", "pointerenter", "pointerleave", "gotpointercapture", "lostpointercapture", "mousedown", "mouseup", "mousemove", "mouseover", "mouseout", "mouseenter", "mouseleave", "keydown", "keyup", "beforeinput", "focus", "blur", "focusin", "focusout", "wheel", "animationstart", "animationiteration", "animationend", "animationcancel", "transitionrun", "transitionstart", "transitionend", "transitioncancel"]
272
289
  },
273
290
  "globals": {
274
291
  "$comment": "Free identifiers a native bundle may read. `hermes`: what Hermes itself defines (checked against the real VM by tests/fail-closed/hermes-globals). `runtime`: what BakeNative installs (host-runtime.js, the native bridge). `crypto`: the members of `crypto` (web-crypto.js); any other is an error (`crypto.subtle`: global-crypto-subtle). `alert` and `confirm` (dialogs.js) return a Promise: a confirm() result must be awaited or returned (global-confirm-sync), and .then on either throws on the web (global-dialog-then). `typeof X` reads and `globalThis.X` feature tests are always allowed.",
@@ -283,7 +300,7 @@
283
300
  "console": ["log", "debug", "info", "warn", "error"],
284
301
  "runtime": ["setTimeout", "setInterval", "clearTimeout", "clearInterval", "requestAnimationFrame", "cancelAnimationFrame", "performance", "native", "getComputedStyle",
285
302
  "fetch", "Request", "Response", "Headers", "AbortController", "AbortSignal", "DOMException", "URL", "URLSearchParams", "Blob", "crypto",
286
- "alert", "confirm"],
303
+ "alert", "confirm", "CloseWatcher"],
287
304
  "crypto": ["getRandomValues", "randomUUID"],
288
305
  "runtimePrefixes": ["__bake", "__BAKE", "__host"],
289
306
  "intl": { "targets": ["ios", "mac", "android", "windows"], "note": "Intl.Collator, Intl.DateTimeFormat, Intl.NumberFormat and Intl.getCanonicalLocales, over the platform's ICU (Foundation on iOS and macOS). Hermes has no Intl.PluralRules, RelativeTimeFormat, ListFormat, DisplayNames, Segmenter, Locale, DurationFormat or supportedValuesOf, and the Intl lint names what to use instead" },
@@ -293,7 +310,7 @@
293
310
  "self": { "why": "there is no DOM window on native targets", "instead": "globalThis" },
294
311
  "navigator": { "why": "there is no navigator on native targets", "instead": "import.meta.env.BAKE_TARGET, or a native module" },
295
312
  "location": { "why": "there is no page URL on native targets", "instead": "read the initial URL from host.props and subscribe to incoming URLs with host.on" },
296
- "history": { "why": "there is no session history on native targets", "instead": "keep the current screen in component state and handle incoming URLs with host.props and host.on" },
313
+ "history": { "why": "there is no session history on native targets", "instead": "keep the current screen in component state, close it on Android's back with a CloseWatcher, and handle incoming URLs with host.props and host.on" },
297
314
  "localStorage": { "why": "there is no web storage on native targets", "instead": "a native module" },
298
315
  "sessionStorage": { "why": "there is no web storage on native targets", "instead": "a native module" },
299
316
  "indexedDB": { "why": "there is no web storage on native targets", "instead": "a native module" },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bake-native/core",
3
- "version": "0.1.0-rc.0",
3
+ "version": "0.1.0-rc.2",
4
4
  "description": "Build and run baked first frames on web, iOS, Android, macOS and Windows with the bake CLI.",
5
5
  "type": "module",
6
6
  "exports": {
@@ -50,6 +50,7 @@
50
50
  "batch-wire.js",
51
51
  "determinism.js",
52
52
  "web-fetch.js",
53
+ "close-watcher.js",
53
54
  "web-crypto.js",
54
55
  "dom-exception.js",
55
56
  "dialogs.js",
@@ -134,10 +135,10 @@
134
135
  },
135
136
  "types": "./index.d.ts",
136
137
  "optionalDependencies": {
137
- "@bake-native/toolchain-darwin-arm64": "0.1.0-rc.0",
138
- "@bake-native/toolchain-darwin-x64": "0.1.0-rc.0",
139
- "@bake-native/toolchain-linux-x64": "0.1.0-rc.0",
140
- "@bake-native/toolchain-win32-x64": "0.1.0-rc.0"
138
+ "@bake-native/toolchain-darwin-x64": "0.1.0-rc.2",
139
+ "@bake-native/toolchain-linux-x64": "0.1.0-rc.2",
140
+ "@bake-native/toolchain-darwin-arm64": "0.1.0-rc.2",
141
+ "@bake-native/toolchain-win32-x64": "0.1.0-rc.2"
141
142
  },
142
143
  "publishConfig": {
143
144
  "access": "public"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "format": 1,
3
- "runtime": "0.1.0-rc.0",
3
+ "runtime": "0.1.0-rc.2",
4
4
  "hostProtocol": 4,
5
5
  "minHostProtocol": 4,
6
6
  "batch": {
@@ -119,6 +119,7 @@
119
119
  "animationend",
120
120
  "animationiteration",
121
121
  "animationstart",
122
+ "beforeinput",
122
123
  "blur",
123
124
  "change",
124
125
  "click",
@@ -11,18 +11,24 @@ export const padding = (args) => m('padding', args);
11
11
  export const frame = (args) => m('frame', args);
12
12
  /** `.background(color)`, optionally clipped to `shape` ('capsule' | 'circle' | { roundedRectangle: r }). */
13
13
  export const background = (color, shape) => m('background', { color, shape });
14
- /** `.foregroundStyle(color)`. */
14
+ /** `.foregroundStyle(...)`: a color or the system secondary foreground style. */
15
15
  export const foregroundStyle = (color) => m('foregroundStyle', { color });
16
+ /** `.listRowBackground(color)` on a Form or List row. */
17
+ export const listRowBackground = (color) => m('listRowBackground', { color });
16
18
  /** `.font(.system(size:weight:design:))` or a text style: `font({ textStyle: 'headline' })`. */
17
19
  export const font = (args) => m('font', args);
18
20
  /** `.bold()`. */
19
21
  export const bold = () => m('bold');
20
22
  /** `.italic()`. */
21
23
  export const italic = () => m('italic');
24
+ /** `.monospacedDigit()`: digits in the current font keep the same width. */
25
+ export const monospacedDigit = () => m('monospacedDigit');
22
26
  /** `.tint(color)`. */
23
27
  export const tint = (color) => m('tint', { color });
24
28
  /** `.buttonStyle(...)`: 'automatic' | 'bordered' | 'borderedProminent' | 'borderless' | 'plain' | 'glass' | 'glassProminent'. */
25
29
  export const buttonStyle = (style) => m('buttonStyle', { style });
30
+ /** `.buttonBorderShape(...)`: changes the bordered or glass style's shape. */
31
+ export const buttonBorderShape = (shape) => m('buttonBorderShape', { shape });
26
32
  /** `.controlSize(...)`: 'mini' | 'small' | 'regular' | 'large' | 'extraLarge'. */
27
33
  export const controlSize = (size) => m('controlSize', { size });
28
34
  /** `.glassEffect(_:in:)` (iOS 26 / macOS 26 Liquid Glass): `{ glass: { variant: 'regular' | 'clear', interactive, tint }, shape }`. */
@@ -31,6 +37,8 @@ export const glassEffect = (args) => m('glassEffect', args);
31
37
  export const cornerRadius = (radius) => m('cornerRadius', { radius });
32
38
  /** `.clipShape(...)`: 'capsule' | 'circle' | 'rectangle' | { roundedRectangle: r }. */
33
39
  export const clipShape = (shape) => m('clipShape', { shape });
40
+ /** `.contentShape(.rect)`: the whole rectangle answers a press, even with transparent content. */
41
+ export const contentShape = (shape) => m('contentShape', { shape });
34
42
  /** `.opacity(v)`. */
35
43
  export const opacity = (value) => m('opacity', { value });
36
44
  /** `.shadow(color:radius:x:y:)`. */
@@ -43,6 +51,8 @@ export const pickerStyle = (style) => m('pickerStyle', { style });
43
51
  export const toggleStyle = (style) => m('toggleStyle', { style });
44
52
  /** `.labelsHidden()`. */
45
53
  export const labelsHidden = () => m('labelsHidden');
54
+ /** `.labelStyle(.iconOnly)`: show the symbol while keeping the accessible label. */
55
+ export const labelStyle = (style) => m('labelStyle', { style });
46
56
  /** `.accessibilityLabel(value)`: the accessible name of an unlabeled view. */
47
57
  export const accessibilityLabel = (value) => m('accessibilityLabel', { value });
48
58
  /** `.multilineTextAlignment(...)`: 'leading' | 'center' | 'trailing'. */
@@ -115,7 +125,8 @@ export function webStyle(mods) {
115
125
  s.background = x.color;
116
126
  if (shapeRadius(x.shape)) s.borderRadius = shapeRadius(x.shape);
117
127
  break;
118
- case 'foregroundStyle': s.color = x.color; break;
128
+ case 'foregroundStyle': s.color = x.color === 'secondary' ? 'GrayText' : x.color; break;
129
+ case 'listRowBackground': s.backgroundColor = x.color; break;
119
130
  case 'tint': s.accentColor = x.color; break;
120
131
  case 'font':
121
132
  if (x.size != null) s.fontSize = px(x.size);
@@ -127,6 +138,7 @@ export function webStyle(mods) {
127
138
  break;
128
139
  case 'bold': s.fontWeight = 700; break;
129
140
  case 'italic': s.fontStyle = 'italic'; break;
141
+ case 'monospacedDigit': s.fontVariantNumeric = 'tabular-nums'; break;
130
142
  case 'cornerRadius': s.borderRadius = px(x.radius); s.overflow = 'hidden'; break;
131
143
  case 'clipShape': s.borderRadius = shapeRadius(x.shape) ?? '0px'; s.overflow = 'hidden'; break;
132
144
  case 'opacity': s.opacity = x.value; break;