@oxy.so/bloom 21.6.0 → 21.7.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/docs/adoption-matrix.mdx +3 -3
- package/docs/platform-surface.mdx +20 -0
- package/docs/public-parts.mdx +3 -2
- package/docs/task-catalog.json +1 -1
- package/docs/task-catalog.mdx +1 -1
- package/docs/window.mdx +30 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.web.js.map +1 -1
- package/lib/commonjs/locale/translations/ar.js +21 -1
- package/lib/commonjs/locale/translations/ar.js.map +1 -1
- package/lib/commonjs/locale/translations/bn.js +21 -1
- package/lib/commonjs/locale/translations/bn.js.map +1 -1
- package/lib/commonjs/locale/translations/ca.js +21 -1
- package/lib/commonjs/locale/translations/ca.js.map +1 -1
- package/lib/commonjs/locale/translations/de.js +21 -1
- package/lib/commonjs/locale/translations/de.js.map +1 -1
- package/lib/commonjs/locale/translations/es.js +21 -1
- package/lib/commonjs/locale/translations/es.js.map +1 -1
- package/lib/commonjs/locale/translations/fr.js +21 -1
- package/lib/commonjs/locale/translations/fr.js.map +1 -1
- package/lib/commonjs/locale/translations/hi.js +21 -1
- package/lib/commonjs/locale/translations/hi.js.map +1 -1
- package/lib/commonjs/locale/translations/id.js +21 -1
- package/lib/commonjs/locale/translations/id.js.map +1 -1
- package/lib/commonjs/locale/translations/it.js +21 -1
- package/lib/commonjs/locale/translations/it.js.map +1 -1
- package/lib/commonjs/locale/translations/ja.js +21 -1
- package/lib/commonjs/locale/translations/ja.js.map +1 -1
- package/lib/commonjs/locale/translations/pt.js +21 -1
- package/lib/commonjs/locale/translations/pt.js.map +1 -1
- package/lib/commonjs/locale/translations/ru.js +21 -1
- package/lib/commonjs/locale/translations/ru.js.map +1 -1
- package/lib/commonjs/locale/translations/tr.js +21 -1
- package/lib/commonjs/locale/translations/tr.js.map +1 -1
- package/lib/commonjs/locale/translations/zh.js +21 -1
- package/lib/commonjs/locale/translations/zh.js.map +1 -1
- package/lib/commonjs/platform-surface/context.js +16 -0
- package/lib/commonjs/platform-surface/context.js.map +1 -1
- package/lib/commonjs/window/WindowControls.js +61 -16
- package/lib/commonjs/window/WindowControls.js.map +1 -1
- package/lib/commonjs/window/WindowLayouts.js +86 -0
- package/lib/commonjs/window/WindowLayouts.js.map +1 -0
- package/lib/commonjs/window/layouts-registry.js +27 -0
- package/lib/commonjs/window/layouts-registry.js.map +1 -0
- package/lib/commonjs/window/layouts.js +27 -0
- package/lib/commonjs/window/layouts.js.map +1 -0
- package/lib/commonjs/window/messages.js +21 -1
- package/lib/commonjs/window/messages.js.map +1 -1
- package/lib/commonjs/window/use-window.js +16 -4
- package/lib/commonjs/window/use-window.js.map +1 -1
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.web.js.map +1 -1
- package/lib/module/locale/translations/ar.js +21 -1
- package/lib/module/locale/translations/ar.js.map +1 -1
- package/lib/module/locale/translations/bn.js +21 -1
- package/lib/module/locale/translations/bn.js.map +1 -1
- package/lib/module/locale/translations/ca.js +21 -1
- package/lib/module/locale/translations/ca.js.map +1 -1
- package/lib/module/locale/translations/de.js +21 -1
- package/lib/module/locale/translations/de.js.map +1 -1
- package/lib/module/locale/translations/es.js +21 -1
- package/lib/module/locale/translations/es.js.map +1 -1
- package/lib/module/locale/translations/fr.js +21 -1
- package/lib/module/locale/translations/fr.js.map +1 -1
- package/lib/module/locale/translations/hi.js +21 -1
- package/lib/module/locale/translations/hi.js.map +1 -1
- package/lib/module/locale/translations/id.js +21 -1
- package/lib/module/locale/translations/id.js.map +1 -1
- package/lib/module/locale/translations/it.js +21 -1
- package/lib/module/locale/translations/it.js.map +1 -1
- package/lib/module/locale/translations/ja.js +21 -1
- package/lib/module/locale/translations/ja.js.map +1 -1
- package/lib/module/locale/translations/pt.js +21 -1
- package/lib/module/locale/translations/pt.js.map +1 -1
- package/lib/module/locale/translations/ru.js +21 -1
- package/lib/module/locale/translations/ru.js.map +1 -1
- package/lib/module/locale/translations/tr.js +21 -1
- package/lib/module/locale/translations/tr.js.map +1 -1
- package/lib/module/locale/translations/zh.js +21 -1
- package/lib/module/locale/translations/zh.js.map +1 -1
- package/lib/module/platform-surface/context.js +15 -0
- package/lib/module/platform-surface/context.js.map +1 -1
- package/lib/module/window/WindowControls.js +61 -16
- package/lib/module/window/WindowControls.js.map +1 -1
- package/lib/module/window/WindowLayouts.js +82 -0
- package/lib/module/window/WindowLayouts.js.map +1 -0
- package/lib/module/window/layouts-registry.js +22 -0
- package/lib/module/window/layouts-registry.js.map +1 -0
- package/lib/module/window/layouts.js +12 -0
- package/lib/module/window/layouts.js.map +1 -0
- package/lib/module/window/messages.js +21 -1
- package/lib/module/window/messages.js.map +1 -1
- package/lib/module/window/use-window.js +17 -5
- package/lib/module/window/use-window.js.map +1 -1
- package/lib/typescript/commonjs/index.d.ts +1 -1
- package/lib/typescript/commonjs/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/index.web.d.ts +1 -1
- package/lib/typescript/commonjs/index.web.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/commonjs/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/commonjs/platform-surface/context.d.ts +6 -0
- package/lib/typescript/commonjs/platform-surface/context.d.ts.map +1 -1
- package/lib/typescript/commonjs/platform-surface/index.d.ts +1 -1
- package/lib/typescript/commonjs/platform-surface/index.d.ts.map +1 -1
- package/lib/typescript/commonjs/platform-surface/types.d.ts +31 -1
- package/lib/typescript/commonjs/platform-surface/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/WindowControls.d.ts +4 -0
- package/lib/typescript/commonjs/window/WindowControls.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/WindowLayouts.d.ts +20 -0
- package/lib/typescript/commonjs/window/WindowLayouts.d.ts.map +1 -0
- package/lib/typescript/commonjs/window/layouts-registry.d.ts +19 -0
- package/lib/typescript/commonjs/window/layouts-registry.d.ts.map +1 -0
- package/lib/typescript/commonjs/window/layouts.d.ts +4 -0
- package/lib/typescript/commonjs/window/layouts.d.ts.map +1 -0
- package/lib/typescript/commonjs/window/messages.d.ts +22 -0
- package/lib/typescript/commonjs/window/messages.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/types.d.ts +15 -1
- package/lib/typescript/commonjs/window/types.d.ts.map +1 -1
- package/lib/typescript/commonjs/window/use-window.d.ts.map +1 -1
- package/lib/typescript/module/index.d.ts +1 -1
- package/lib/typescript/module/index.d.ts.map +1 -1
- package/lib/typescript/module/index.web.d.ts +1 -1
- package/lib/typescript/module/index.web.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ar.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/bn.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ca.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/de.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/es.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/fr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/hi.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/id.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/it.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ja.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/pt.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/ru.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/tr.d.ts.map +1 -1
- package/lib/typescript/module/locale/translations/zh.d.ts.map +1 -1
- package/lib/typescript/module/platform-surface/context.d.ts +6 -0
- package/lib/typescript/module/platform-surface/context.d.ts.map +1 -1
- package/lib/typescript/module/platform-surface/index.d.ts +1 -1
- package/lib/typescript/module/platform-surface/index.d.ts.map +1 -1
- package/lib/typescript/module/platform-surface/types.d.ts +31 -1
- package/lib/typescript/module/platform-surface/types.d.ts.map +1 -1
- package/lib/typescript/module/window/WindowControls.d.ts +4 -0
- package/lib/typescript/module/window/WindowControls.d.ts.map +1 -1
- package/lib/typescript/module/window/WindowLayouts.d.ts +20 -0
- package/lib/typescript/module/window/WindowLayouts.d.ts.map +1 -0
- package/lib/typescript/module/window/layouts-registry.d.ts +19 -0
- package/lib/typescript/module/window/layouts-registry.d.ts.map +1 -0
- package/lib/typescript/module/window/layouts.d.ts +4 -0
- package/lib/typescript/module/window/layouts.d.ts.map +1 -0
- package/lib/typescript/module/window/messages.d.ts +22 -0
- package/lib/typescript/module/window/messages.d.ts.map +1 -1
- package/lib/typescript/module/window/types.d.ts +15 -1
- package/lib/typescript/module/window/types.d.ts.map +1 -1
- package/lib/typescript/module/window/use-window.d.ts.map +1 -1
- package/package.json +20 -2
- package/src/__tests__/support/public-part-classifications.json +1 -0
- package/src/index.ts +1 -0
- package/src/index.web.ts +1 -0
- package/src/locale/translations/ar.ts +20 -0
- package/src/locale/translations/bn.ts +20 -0
- package/src/locale/translations/ca.ts +20 -0
- package/src/locale/translations/de.ts +20 -0
- package/src/locale/translations/es.ts +20 -0
- package/src/locale/translations/fr.ts +20 -0
- package/src/locale/translations/hi.ts +20 -0
- package/src/locale/translations/id.ts +20 -0
- package/src/locale/translations/it.ts +20 -0
- package/src/locale/translations/ja.ts +20 -0
- package/src/locale/translations/pt.ts +20 -0
- package/src/locale/translations/ru.ts +20 -0
- package/src/locale/translations/tr.ts +20 -0
- package/src/locale/translations/zh.ts +20 -0
- package/src/platform-surface/context.ts +17 -0
- package/src/platform-surface/index.ts +1 -0
- package/src/platform-surface/types.ts +45 -0
- package/src/window/WindowControls.tsx +72 -18
- package/src/window/WindowLayouts.tsx +108 -0
- package/src/window/layouts-registry.ts +26 -0
- package/src/window/layouts.ts +12 -0
- package/src/window/messages.ts +42 -0
- package/src/window/types.ts +20 -1
- package/src/window/use-window.ts +14 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/window/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/window/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACvC,OAAO,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEpE,OAAO,KAAK,EACV,oBAAoB,EACpB,qBAAqB,EACrB,mBAAmB,EACpB,MAAM,8BAA2B,CAAC;AAEnC,gEAAgE;AAChE,MAAM,WAAW,YAAa,SAAQ,mBAAmB;IACvD,wEAAwE;IACxE,QAAQ,CAAC,QAAQ,EAAE,OAAO,GAAG,UAAU,CAAC;IACxC,QAAQ,CAAC,OAAO,EAAE,qBAAqB,CAAC;IACxC,uCAAuC;IACvC,KAAK,IAAI,IAAI,CAAC;IACd,QAAQ,IAAI,IAAI,CAAC;IACjB,qDAAqD;IACrD,IAAI,IAAI,IAAI,CAAC;IACb,8DAA8D;IAC9D,SAAS,IAAI,IAAI,CAAC;IAClB,uFAAuF;IACvF,QAAQ,CAAC,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,oBAAoB,KAAK,IAAI,CAAC;IACzD,kGAAkG;IAClG,QAAQ,CAAC,aAAa,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAC;CACpD;AAED;;;GAGG;AACH,MAAM,WAAW,gBAAgB;IAC/B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;;;;GAKG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED,MAAM,WAAW,mBAAmB;IAClC;;;;OAIG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sDAAsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,4DAA4D;IAC5D,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,oDAAoD;IACpD,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,qEAAqE;AACrE,MAAM,WAAW,qBACf,SAAQ,IAAI,CACV,SAAS,EACP,OAAO,GACP,UAAU,GACV,2BAA2B,GAC3B,kBAAkB,GAClB,+BAA+B,CAClC;IACD,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,+DAA+D;AAC/D,MAAM,WAAW,kBAAkB;IACjC,wBAAwB;IACxB,QAAQ,EAAE,KAAK,CAAC,YAAY,CAAC;IAC7B,0EAA0E;IAC1E,KAAK,CAAC,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IAC7B,8EAA8E;IAC9E,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"use-window.d.ts","sourceRoot":"","sources":["../../../../src/window/use-window.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAMlF;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,YAAY,GAAG,IAAI,
|
|
1
|
+
{"version":3,"file":"use-window.d.ts","sourceRoot":"","sources":["../../../../src/window/use-window.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,kBAAkB,EAAE,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAS,CAAC;AAMlF;;;;GAIG;AACH,wBAAgB,SAAS,IAAI,YAAY,GAAG,IAAI,CAqD/C;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,IAAI,OAAO,CAQ7C;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,kBAAkB,CAG1D;AAED;;;;;;;GAOG;AACH,wBAAgB,mBAAmB,IAAI,MAAM,CAE5C;AAOD;;;;;;;;GAQG;AACH,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,gBAAgB,GAAG,IAAI,CAWlE"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oxy.so/bloom",
|
|
3
|
-
"version": "21.
|
|
3
|
+
"version": "21.7.0",
|
|
4
4
|
"packageManager": "bun@1.4.3",
|
|
5
5
|
"description": "Bloom UI — Oxy ecosystem component library for React Native + Expo + Web",
|
|
6
6
|
"main": "lib/commonjs/index.js",
|
|
@@ -11,7 +11,8 @@
|
|
|
11
11
|
"sideEffects": [
|
|
12
12
|
"**/hooks/use-prefers-reduced-motion.*",
|
|
13
13
|
"**/theme/init-css-interop.*",
|
|
14
|
-
"**/toast/use-stack-hover.*"
|
|
14
|
+
"**/toast/use-stack-hover.*",
|
|
15
|
+
"**/window/layouts.*"
|
|
15
16
|
],
|
|
16
17
|
"publishConfig": {
|
|
17
18
|
"access": "public"
|
|
@@ -681,6 +682,20 @@
|
|
|
681
682
|
"default": "./lib/commonjs/agent-avatar/svg/index.js"
|
|
682
683
|
}
|
|
683
684
|
},
|
|
685
|
+
"./window/layouts": {
|
|
686
|
+
"react-native": {
|
|
687
|
+
"types": "./lib/typescript/module/window/layouts.d.ts",
|
|
688
|
+
"default": "./src/window/layouts.ts"
|
|
689
|
+
},
|
|
690
|
+
"import": {
|
|
691
|
+
"types": "./lib/typescript/module/window/layouts.d.ts",
|
|
692
|
+
"default": "./lib/module/window/layouts.js"
|
|
693
|
+
},
|
|
694
|
+
"require": {
|
|
695
|
+
"types": "./lib/typescript/commonjs/window/layouts.d.ts",
|
|
696
|
+
"default": "./lib/commonjs/window/layouts.js"
|
|
697
|
+
}
|
|
698
|
+
},
|
|
684
699
|
"./avatar-flight": {
|
|
685
700
|
"react-native": {
|
|
686
701
|
"types": "./lib/typescript/module/avatar-flight/index.d.ts",
|
|
@@ -4854,6 +4869,9 @@
|
|
|
4854
4869
|
"agent-avatar/svg": [
|
|
4855
4870
|
"./lib/typescript/module/agent-avatar/svg/index.d.ts"
|
|
4856
4871
|
],
|
|
4872
|
+
"window/layouts": [
|
|
4873
|
+
"./lib/typescript/module/window/layouts.d.ts"
|
|
4874
|
+
],
|
|
4857
4875
|
"avatar-flight": [
|
|
4858
4876
|
"./lib/typescript/module/avatar-flight/index.d.ts"
|
|
4859
4877
|
],
|
|
@@ -1628,6 +1628,7 @@
|
|
|
1628
1628
|
"src/web-search/WebSearch.tsx#WebSearch",
|
|
1629
1629
|
"src/window/WindowControls.tsx#WindowControls",
|
|
1630
1630
|
"src/window/WindowDragRegion.tsx#WindowDragRegion",
|
|
1631
|
+
"src/window/WindowLayouts.tsx#WindowLayouts",
|
|
1631
1632
|
"src/wizard/WizardFooter.tsx#WizardFooter",
|
|
1632
1633
|
"src/wizard/WizardProgress.tsx#WizardProgress",
|
|
1633
1634
|
"src/zoomable-media-gallery/ZoomableMediaGallery.tsx#ZoomableMediaGallery"
|
package/src/index.ts
CHANGED
package/src/index.web.ts
CHANGED
|
@@ -3350,6 +3350,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
3350
3350
|
close: 'إغلاق',
|
|
3351
3351
|
minimize: 'تصغير',
|
|
3352
3352
|
zoom: 'تكبير',
|
|
3353
|
+
layouts: 'تخطيطات النافذة',
|
|
3354
|
+
moveAndResize: 'نقل وتغيير الحجم',
|
|
3355
|
+
fillAndArrange: 'ملء وترتيب',
|
|
3356
|
+
fill: 'ملء',
|
|
3357
|
+
center: 'توسيط',
|
|
3358
|
+
left: 'يسار',
|
|
3359
|
+
right: 'يمين',
|
|
3360
|
+
top: 'أعلى',
|
|
3361
|
+
bottom: 'أسفل',
|
|
3362
|
+
topLeft: 'أعلى اليسار',
|
|
3363
|
+
topRight: 'أعلى اليمين',
|
|
3364
|
+
bottomLeft: 'أسفل اليسار',
|
|
3365
|
+
bottomRight: 'أسفل اليمين',
|
|
3366
|
+
leftRight: 'يسار ويمين',
|
|
3367
|
+
rightLeft: 'يمين ويسار',
|
|
3368
|
+
topBottom: 'أعلى وأسفل',
|
|
3369
|
+
bottomTop: 'أسفل وأعلى',
|
|
3370
|
+
quarters: 'أرباع',
|
|
3371
|
+
returnToPrevious: 'العودة إلى الحجم السابق',
|
|
3372
|
+
moveToDesktop: (d) => `نقل إلى سطح المكتب ${d}`,
|
|
3353
3373
|
};
|
|
3354
3374
|
|
|
3355
3375
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2871,6 +2871,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2871
2871
|
close: 'বন্ধ করুন',
|
|
2872
2872
|
minimize: 'ছোট করুন',
|
|
2873
2873
|
zoom: 'জুম করুন',
|
|
2874
|
+
layouts: 'উইন্ডোর বিন্যাস',
|
|
2875
|
+
moveAndResize: 'সরান ও আকার বদলান',
|
|
2876
|
+
fillAndArrange: 'পূরণ ও সাজান',
|
|
2877
|
+
fill: 'পূরণ করুন',
|
|
2878
|
+
center: 'মাঝখানে',
|
|
2879
|
+
left: 'বাঁ',
|
|
2880
|
+
right: 'ডান',
|
|
2881
|
+
top: 'উপর',
|
|
2882
|
+
bottom: 'নিচ',
|
|
2883
|
+
topLeft: 'উপরে বাঁ',
|
|
2884
|
+
topRight: 'উপরে ডান',
|
|
2885
|
+
bottomLeft: 'নিচে বাঁ',
|
|
2886
|
+
bottomRight: 'নিচে ডান',
|
|
2887
|
+
leftRight: 'বাঁ ও ডান',
|
|
2888
|
+
rightLeft: 'ডান ও বাঁ',
|
|
2889
|
+
topBottom: 'উপর ও নিচ',
|
|
2890
|
+
bottomTop: 'নিচ ও উপর',
|
|
2891
|
+
quarters: 'চতুর্থাংশ',
|
|
2892
|
+
returnToPrevious: 'আগের আকারে ফিরুন',
|
|
2893
|
+
moveToDesktop: (d) => `ডেস্কটপ ${d}-এ সরান`,
|
|
2874
2894
|
};
|
|
2875
2895
|
|
|
2876
2896
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2968,6 +2968,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2968
2968
|
close: 'Tanca',
|
|
2969
2969
|
minimize: 'Minimitza',
|
|
2970
2970
|
zoom: 'Maximitza',
|
|
2971
|
+
layouts: 'Disposicions de la finestra',
|
|
2972
|
+
moveAndResize: 'Mou i redimensiona',
|
|
2973
|
+
fillAndArrange: 'Omple i organitza',
|
|
2974
|
+
fill: 'Omple',
|
|
2975
|
+
center: 'Centra',
|
|
2976
|
+
left: 'Esquerra',
|
|
2977
|
+
right: 'Dreta',
|
|
2978
|
+
top: 'A dalt',
|
|
2979
|
+
bottom: 'A baix',
|
|
2980
|
+
topLeft: 'A dalt a l’esquerra',
|
|
2981
|
+
topRight: 'A dalt a la dreta',
|
|
2982
|
+
bottomLeft: 'A baix a l’esquerra',
|
|
2983
|
+
bottomRight: 'A baix a la dreta',
|
|
2984
|
+
leftRight: 'Esquerra i dreta',
|
|
2985
|
+
rightLeft: 'Dreta i esquerra',
|
|
2986
|
+
topBottom: 'A dalt i a baix',
|
|
2987
|
+
bottomTop: 'A baix i a dalt',
|
|
2988
|
+
quarters: 'Quarts',
|
|
2989
|
+
returnToPrevious: 'Torna a la mida anterior',
|
|
2990
|
+
moveToDesktop: (d) => `Mou a l’escriptori ${d}`,
|
|
2971
2991
|
};
|
|
2972
2992
|
|
|
2973
2993
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -3002,6 +3002,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
3002
3002
|
close: 'Schließen',
|
|
3003
3003
|
minimize: 'Minimieren',
|
|
3004
3004
|
zoom: 'Zoomen',
|
|
3005
|
+
layouts: 'Fensteranordnungen',
|
|
3006
|
+
moveAndResize: 'Bewegen & Größe ändern',
|
|
3007
|
+
fillAndArrange: 'Füllen & Anordnen',
|
|
3008
|
+
fill: 'Füllen',
|
|
3009
|
+
center: 'Zentrieren',
|
|
3010
|
+
left: 'Links',
|
|
3011
|
+
right: 'Rechts',
|
|
3012
|
+
top: 'Oben',
|
|
3013
|
+
bottom: 'Unten',
|
|
3014
|
+
topLeft: 'Oben links',
|
|
3015
|
+
topRight: 'Oben rechts',
|
|
3016
|
+
bottomLeft: 'Unten links',
|
|
3017
|
+
bottomRight: 'Unten rechts',
|
|
3018
|
+
leftRight: 'Links & Rechts',
|
|
3019
|
+
rightLeft: 'Rechts & Links',
|
|
3020
|
+
topBottom: 'Oben & Unten',
|
|
3021
|
+
bottomTop: 'Unten & Oben',
|
|
3022
|
+
quarters: 'Viertel',
|
|
3023
|
+
returnToPrevious: 'Vorherige Größe wiederherstellen',
|
|
3024
|
+
moveToDesktop: (d) => `Auf Schreibtisch ${d} bewegen`,
|
|
3005
3025
|
};
|
|
3006
3026
|
|
|
3007
3027
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2996,6 +2996,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2996
2996
|
close: 'Cerrar',
|
|
2997
2997
|
minimize: 'Minimizar',
|
|
2998
2998
|
zoom: 'Maximizar',
|
|
2999
|
+
layouts: 'Disposiciones de la ventana',
|
|
3000
|
+
moveAndResize: 'Mover y redimensionar',
|
|
3001
|
+
fillAndArrange: 'Rellenar y organizar',
|
|
3002
|
+
fill: 'Rellenar',
|
|
3003
|
+
center: 'Centrar',
|
|
3004
|
+
left: 'Izquierda',
|
|
3005
|
+
right: 'Derecha',
|
|
3006
|
+
top: 'Arriba',
|
|
3007
|
+
bottom: 'Abajo',
|
|
3008
|
+
topLeft: 'Arriba a la izquierda',
|
|
3009
|
+
topRight: 'Arriba a la derecha',
|
|
3010
|
+
bottomLeft: 'Abajo a la izquierda',
|
|
3011
|
+
bottomRight: 'Abajo a la derecha',
|
|
3012
|
+
leftRight: 'Izquierda y derecha',
|
|
3013
|
+
rightLeft: 'Derecha e izquierda',
|
|
3014
|
+
topBottom: 'Arriba y abajo',
|
|
3015
|
+
bottomTop: 'Abajo y arriba',
|
|
3016
|
+
quarters: 'Cuartos',
|
|
3017
|
+
returnToPrevious: 'Volver al tamaño anterior',
|
|
3018
|
+
moveToDesktop: (d) => `Mover al escritorio ${d}`,
|
|
2999
3019
|
};
|
|
3000
3020
|
|
|
3001
3021
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -3010,6 +3010,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
3010
3010
|
close: 'Fermer',
|
|
3011
3011
|
minimize: 'Réduire',
|
|
3012
3012
|
zoom: 'Agrandir',
|
|
3013
|
+
layouts: 'Dispositions de la fenêtre',
|
|
3014
|
+
moveAndResize: 'Déplacer et redimensionner',
|
|
3015
|
+
fillAndArrange: 'Remplir et organiser',
|
|
3016
|
+
fill: 'Remplir',
|
|
3017
|
+
center: 'Centrer',
|
|
3018
|
+
left: 'Gauche',
|
|
3019
|
+
right: 'Droite',
|
|
3020
|
+
top: 'Haut',
|
|
3021
|
+
bottom: 'Bas',
|
|
3022
|
+
topLeft: 'En haut à gauche',
|
|
3023
|
+
topRight: 'En haut à droite',
|
|
3024
|
+
bottomLeft: 'En bas à gauche',
|
|
3025
|
+
bottomRight: 'En bas à droite',
|
|
3026
|
+
leftRight: 'Gauche et droite',
|
|
3027
|
+
rightLeft: 'Droite et gauche',
|
|
3028
|
+
topBottom: 'Haut et bas',
|
|
3029
|
+
bottomTop: 'Bas et haut',
|
|
3030
|
+
quarters: 'Quarts',
|
|
3031
|
+
returnToPrevious: 'Revenir à la taille précédente',
|
|
3032
|
+
moveToDesktop: (d) => `Placer sur le bureau ${d}`,
|
|
3013
3033
|
};
|
|
3014
3034
|
|
|
3015
3035
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2891,6 +2891,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2891
2891
|
close: 'बंद करें',
|
|
2892
2892
|
minimize: 'छोटा करें',
|
|
2893
2893
|
zoom: 'ज़ूम करें',
|
|
2894
|
+
layouts: 'विंडो लेआउट',
|
|
2895
|
+
moveAndResize: 'ले जाएँ और आकार बदलें',
|
|
2896
|
+
fillAndArrange: 'भरें और व्यवस्थित करें',
|
|
2897
|
+
fill: 'भरें',
|
|
2898
|
+
center: 'बीच में',
|
|
2899
|
+
left: 'बाएँ',
|
|
2900
|
+
right: 'दाएँ',
|
|
2901
|
+
top: 'ऊपर',
|
|
2902
|
+
bottom: 'नीचे',
|
|
2903
|
+
topLeft: 'ऊपर बाएँ',
|
|
2904
|
+
topRight: 'ऊपर दाएँ',
|
|
2905
|
+
bottomLeft: 'नीचे बाएँ',
|
|
2906
|
+
bottomRight: 'नीचे दाएँ',
|
|
2907
|
+
leftRight: 'बाएँ और दाएँ',
|
|
2908
|
+
rightLeft: 'दाएँ और बाएँ',
|
|
2909
|
+
topBottom: 'ऊपर और नीचे',
|
|
2910
|
+
bottomTop: 'नीचे और ऊपर',
|
|
2911
|
+
quarters: 'चौथाई',
|
|
2912
|
+
returnToPrevious: 'पिछले आकार पर लौटें',
|
|
2913
|
+
moveToDesktop: (d) => `डेस्कटॉप ${d} पर ले जाएँ`,
|
|
2894
2914
|
};
|
|
2895
2915
|
|
|
2896
2916
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2954,6 +2954,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2954
2954
|
close: 'Tutup',
|
|
2955
2955
|
minimize: 'Minimalkan',
|
|
2956
2956
|
zoom: 'Perbesar',
|
|
2957
|
+
layouts: 'Tata letak jendela',
|
|
2958
|
+
moveAndResize: 'Pindahkan & Ubah Ukuran',
|
|
2959
|
+
fillAndArrange: 'Isi & Atur',
|
|
2960
|
+
fill: 'Isi',
|
|
2961
|
+
center: 'Tengahkan',
|
|
2962
|
+
left: 'Kiri',
|
|
2963
|
+
right: 'Kanan',
|
|
2964
|
+
top: 'Atas',
|
|
2965
|
+
bottom: 'Bawah',
|
|
2966
|
+
topLeft: 'Kiri Atas',
|
|
2967
|
+
topRight: 'Kanan Atas',
|
|
2968
|
+
bottomLeft: 'Kiri Bawah',
|
|
2969
|
+
bottomRight: 'Kanan Bawah',
|
|
2970
|
+
leftRight: 'Kiri & Kanan',
|
|
2971
|
+
rightLeft: 'Kanan & Kiri',
|
|
2972
|
+
topBottom: 'Atas & Bawah',
|
|
2973
|
+
bottomTop: 'Bawah & Atas',
|
|
2974
|
+
quarters: 'Perempat',
|
|
2975
|
+
returnToPrevious: 'Kembali ke Ukuran Sebelumnya',
|
|
2976
|
+
moveToDesktop: (d) => `Pindahkan ke Desktop ${d}`,
|
|
2957
2977
|
};
|
|
2958
2978
|
|
|
2959
2979
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2995,6 +2995,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2995
2995
|
close: 'Chiudi',
|
|
2996
2996
|
minimize: 'Riduci a icona',
|
|
2997
2997
|
zoom: 'Ingrandisci',
|
|
2998
|
+
layouts: 'Disposizioni della finestra',
|
|
2999
|
+
moveAndResize: 'Sposta e ridimensiona',
|
|
3000
|
+
fillAndArrange: 'Riempi e disponi',
|
|
3001
|
+
fill: 'Riempi',
|
|
3002
|
+
center: 'Centra',
|
|
3003
|
+
left: 'Sinistra',
|
|
3004
|
+
right: 'Destra',
|
|
3005
|
+
top: 'Alto',
|
|
3006
|
+
bottom: 'Basso',
|
|
3007
|
+
topLeft: 'In alto a sinistra',
|
|
3008
|
+
topRight: 'In alto a destra',
|
|
3009
|
+
bottomLeft: 'In basso a sinistra',
|
|
3010
|
+
bottomRight: 'In basso a destra',
|
|
3011
|
+
leftRight: 'Sinistra e destra',
|
|
3012
|
+
rightLeft: 'Destra e sinistra',
|
|
3013
|
+
topBottom: 'Alto e basso',
|
|
3014
|
+
bottomTop: 'Basso e alto',
|
|
3015
|
+
quarters: 'Quarti',
|
|
3016
|
+
returnToPrevious: 'Torna alla dimensione precedente',
|
|
3017
|
+
moveToDesktop: (d) => `Sposta sulla scrivania ${d}`,
|
|
2998
3018
|
};
|
|
2999
3019
|
|
|
3000
3020
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2905,6 +2905,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2905
2905
|
close: '閉じる',
|
|
2906
2906
|
minimize: '最小化',
|
|
2907
2907
|
zoom: 'ズーム',
|
|
2908
|
+
layouts: 'ウインドウのレイアウト',
|
|
2909
|
+
moveAndResize: '移動とサイズ変更',
|
|
2910
|
+
fillAndArrange: 'フィルと配置',
|
|
2911
|
+
fill: 'フィル',
|
|
2912
|
+
center: '中央',
|
|
2913
|
+
left: '左',
|
|
2914
|
+
right: '右',
|
|
2915
|
+
top: '上',
|
|
2916
|
+
bottom: '下',
|
|
2917
|
+
topLeft: '左上',
|
|
2918
|
+
topRight: '右上',
|
|
2919
|
+
bottomLeft: '左下',
|
|
2920
|
+
bottomRight: '右下',
|
|
2921
|
+
leftRight: '左と右',
|
|
2922
|
+
rightLeft: '右と左',
|
|
2923
|
+
topBottom: '上と下',
|
|
2924
|
+
bottomTop: '下と上',
|
|
2925
|
+
quarters: '4分割',
|
|
2926
|
+
returnToPrevious: '前のサイズに戻す',
|
|
2927
|
+
moveToDesktop: (d) => `デスクトップ${d}に移動`,
|
|
2908
2928
|
};
|
|
2909
2929
|
|
|
2910
2930
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -3015,6 +3015,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
3015
3015
|
close: 'Fechar',
|
|
3016
3016
|
minimize: 'Minimizar',
|
|
3017
3017
|
zoom: 'Maximizar',
|
|
3018
|
+
layouts: 'Disposições da janela',
|
|
3019
|
+
moveAndResize: 'Mover e redimensionar',
|
|
3020
|
+
fillAndArrange: 'Preencher e organizar',
|
|
3021
|
+
fill: 'Preencher',
|
|
3022
|
+
center: 'Centralizar',
|
|
3023
|
+
left: 'Esquerda',
|
|
3024
|
+
right: 'Direita',
|
|
3025
|
+
top: 'Superior',
|
|
3026
|
+
bottom: 'Inferior',
|
|
3027
|
+
topLeft: 'Superior esquerdo',
|
|
3028
|
+
topRight: 'Superior direito',
|
|
3029
|
+
bottomLeft: 'Inferior esquerdo',
|
|
3030
|
+
bottomRight: 'Inferior direito',
|
|
3031
|
+
leftRight: 'Esquerda e direita',
|
|
3032
|
+
rightLeft: 'Direita e esquerda',
|
|
3033
|
+
topBottom: 'Superior e inferior',
|
|
3034
|
+
bottomTop: 'Inferior e superior',
|
|
3035
|
+
quarters: 'Quartos',
|
|
3036
|
+
returnToPrevious: 'Voltar ao tamanho anterior',
|
|
3037
|
+
moveToDesktop: (d) => `Mover para a mesa ${d}`,
|
|
3018
3038
|
};
|
|
3019
3039
|
|
|
3020
3040
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -3295,6 +3295,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
3295
3295
|
close: 'Закрыть',
|
|
3296
3296
|
minimize: 'Свернуть',
|
|
3297
3297
|
zoom: 'Изменить масштаб',
|
|
3298
|
+
layouts: 'Расположение окна',
|
|
3299
|
+
moveAndResize: 'Переместить и изменить размер',
|
|
3300
|
+
fillAndArrange: 'Заполнить и упорядочить',
|
|
3301
|
+
fill: 'Заполнить',
|
|
3302
|
+
center: 'По центру',
|
|
3303
|
+
left: 'Слева',
|
|
3304
|
+
right: 'Справа',
|
|
3305
|
+
top: 'Сверху',
|
|
3306
|
+
bottom: 'Снизу',
|
|
3307
|
+
topLeft: 'Слева сверху',
|
|
3308
|
+
topRight: 'Справа сверху',
|
|
3309
|
+
bottomLeft: 'Слева снизу',
|
|
3310
|
+
bottomRight: 'Справа снизу',
|
|
3311
|
+
leftRight: 'Слева и справа',
|
|
3312
|
+
rightLeft: 'Справа и слева',
|
|
3313
|
+
topBottom: 'Сверху и снизу',
|
|
3314
|
+
bottomTop: 'Снизу и сверху',
|
|
3315
|
+
quarters: 'Четверти',
|
|
3316
|
+
returnToPrevious: 'Вернуть прежний размер',
|
|
3317
|
+
moveToDesktop: (d) => `Переместить на рабочий стол ${d}`,
|
|
3298
3318
|
};
|
|
3299
3319
|
|
|
3300
3320
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2925,6 +2925,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2925
2925
|
close: 'Kapat',
|
|
2926
2926
|
minimize: 'Küçült',
|
|
2927
2927
|
zoom: 'Büyüt',
|
|
2928
|
+
layouts: 'Pencere yerleşimleri',
|
|
2929
|
+
moveAndResize: 'Taşı ve yeniden boyutlandır',
|
|
2930
|
+
fillAndArrange: 'Doldur ve düzenle',
|
|
2931
|
+
fill: 'Doldur',
|
|
2932
|
+
center: 'Ortala',
|
|
2933
|
+
left: 'Sol',
|
|
2934
|
+
right: 'Sağ',
|
|
2935
|
+
top: 'Üst',
|
|
2936
|
+
bottom: 'Alt',
|
|
2937
|
+
topLeft: 'Sol üst',
|
|
2938
|
+
topRight: 'Sağ üst',
|
|
2939
|
+
bottomLeft: 'Sol alt',
|
|
2940
|
+
bottomRight: 'Sağ alt',
|
|
2941
|
+
leftRight: 'Sol ve sağ',
|
|
2942
|
+
rightLeft: 'Sağ ve sol',
|
|
2943
|
+
topBottom: 'Üst ve alt',
|
|
2944
|
+
bottomTop: 'Alt ve üst',
|
|
2945
|
+
quarters: 'Çeyrekler',
|
|
2946
|
+
returnToPrevious: 'Önceki boyuta dön',
|
|
2947
|
+
moveToDesktop: (d) => `Masaüstü ${d} öğesine taşı`,
|
|
2928
2948
|
};
|
|
2929
2949
|
|
|
2930
2950
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -2831,6 +2831,26 @@ const WINDOW_MESSAGES: Translations['WINDOW_MESSAGES'] = {
|
|
|
2831
2831
|
close: '关闭',
|
|
2832
2832
|
minimize: '最小化',
|
|
2833
2833
|
zoom: '缩放',
|
|
2834
|
+
layouts: '窗口布局',
|
|
2835
|
+
moveAndResize: '移动与调整大小',
|
|
2836
|
+
fillAndArrange: '填充与排列',
|
|
2837
|
+
fill: '填充',
|
|
2838
|
+
center: '居中',
|
|
2839
|
+
left: '左',
|
|
2840
|
+
right: '右',
|
|
2841
|
+
top: '上',
|
|
2842
|
+
bottom: '下',
|
|
2843
|
+
topLeft: '左上',
|
|
2844
|
+
topRight: '右上',
|
|
2845
|
+
bottomLeft: '左下',
|
|
2846
|
+
bottomRight: '右下',
|
|
2847
|
+
leftRight: '左和右',
|
|
2848
|
+
rightLeft: '右和左',
|
|
2849
|
+
topBottom: '上和下',
|
|
2850
|
+
bottomTop: '下和上',
|
|
2851
|
+
quarters: '四等分',
|
|
2852
|
+
returnToPrevious: '恢复之前的大小',
|
|
2853
|
+
moveToDesktop: (d) => `移到桌面 ${d}`,
|
|
2834
2854
|
};
|
|
2835
2855
|
|
|
2836
2856
|
const CONNECTION_STATUS_MESSAGES: Translations['CONNECTION_STATUS_MESSAGES'] = {
|
|
@@ -57,6 +57,23 @@ export function usePlatformWindow(): PlatformWindow | null {
|
|
|
57
57
|
return adapter.window;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
/**
|
|
61
|
+
* The window's layouts when the adapter reports `window` and `window-layout` (`PlatformWindow`'s
|
|
62
|
+
* `layOut`, and `moveToDesktop` where it has desktops), otherwise null. Throws for
|
|
63
|
+
* `window-layout` without `layOut`.
|
|
64
|
+
*/
|
|
65
|
+
export function usePlatformWindowLayout(): Pick<PlatformWindow, 'layOut' | 'moveToDesktop'> | null {
|
|
66
|
+
const adapter = useContext(PlatformSurfaceContext);
|
|
67
|
+
const window = usePlatformWindow();
|
|
68
|
+
if (!window || !adapter?.capabilities.has('window-layout')) return null;
|
|
69
|
+
if (!window.layOut) {
|
|
70
|
+
throw new Error(
|
|
71
|
+
`Bloom: the ${adapter.platform} platform adapter reports 'window-layout' without a window's layOut.`,
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
return window;
|
|
75
|
+
}
|
|
76
|
+
|
|
60
77
|
/**
|
|
61
78
|
* The platform's menu bar when the adapter reports `menu-bar`, otherwise null
|
|
62
79
|
* (a `Menubar` draws itself in the window). An adapter that reports the
|
|
@@ -11,6 +11,11 @@ import type { FloatingAlign, FloatingSide } from '../floating/types';
|
|
|
11
11
|
* (close, minimize, zoom) in its top leading corner, and can be moved,
|
|
12
12
|
* zoomed and minimized. Bloom keeps the controls' room and, where the
|
|
13
13
|
* platform asks it to, draws them (`@oxy.so/bloom/window`).
|
|
14
|
+
* - `window-layout`: with `window`, the platform lays the window out on its
|
|
15
|
+
* display as a Mac tiles windows since macOS 15 (`PlatformWindow.layOut`),
|
|
16
|
+
* and moves it between its desktops where it has them
|
|
17
|
+
* (`PlatformWindow.moveToDesktop`, `PlatformWindowState.desktops`): the
|
|
18
|
+
* zoom control shows the layouts on hover and long press.
|
|
14
19
|
* - `menu-bar`: the platform shows the active window's menus in a bar of its
|
|
15
20
|
* own (the top of the screen, as on a Mac). A `Menubar` then draws nothing in
|
|
16
21
|
* the window: it describes its menus to the platform (`PlatformMenuBar`) and
|
|
@@ -39,6 +44,7 @@ import type { FloatingAlign, FloatingSide } from '../floating/types';
|
|
|
39
44
|
export type SurfaceCapability =
|
|
40
45
|
| 'popup-surface'
|
|
41
46
|
| 'window'
|
|
47
|
+
| 'window-layout'
|
|
42
48
|
| 'pointer'
|
|
43
49
|
| 'menu-bar'
|
|
44
50
|
| 'appearance'
|
|
@@ -332,8 +338,36 @@ export interface PlatformWindowState {
|
|
|
332
338
|
readonly maximized: boolean;
|
|
333
339
|
/** Full screen: no controls and no room. */
|
|
334
340
|
readonly fullscreen: boolean;
|
|
341
|
+
/**
|
|
342
|
+
* The platform's desktops (a Mac's Spaces) and the one the window is on, numbered from 0, where
|
|
343
|
+
* it lets a window move between them (`moveToDesktop`); absent where it does not.
|
|
344
|
+
*/
|
|
345
|
+
readonly desktops?: { readonly count: number; readonly current: number };
|
|
335
346
|
}
|
|
336
347
|
|
|
348
|
+
/**
|
|
349
|
+
* Where a window can be laid out on its display's work area, as a Mac's tiling since macOS 15:
|
|
350
|
+
* Fill and Center; the halves and quarters; the arrangements of the window with those behind it
|
|
351
|
+
* (`leftRight`: this one left, the next right); and back to the frame it had before.
|
|
352
|
+
*/
|
|
353
|
+
export type PlatformWindowLayout =
|
|
354
|
+
| 'fill'
|
|
355
|
+
| 'center'
|
|
356
|
+
| 'left'
|
|
357
|
+
| 'right'
|
|
358
|
+
| 'top'
|
|
359
|
+
| 'bottom'
|
|
360
|
+
| 'topLeft'
|
|
361
|
+
| 'topRight'
|
|
362
|
+
| 'bottomLeft'
|
|
363
|
+
| 'bottomRight'
|
|
364
|
+
| 'leftRight'
|
|
365
|
+
| 'rightLeft'
|
|
366
|
+
| 'topBottom'
|
|
367
|
+
| 'bottomTop'
|
|
368
|
+
| 'quarters'
|
|
369
|
+
| 'returnToPrevious';
|
|
370
|
+
|
|
337
371
|
/**
|
|
338
372
|
* The application's window, with the `window` capability. Its state is an
|
|
339
373
|
* external store (`getState` + `subscribe`, as `useSyncExternalStore` reads
|
|
@@ -365,6 +399,17 @@ export interface PlatformWindow {
|
|
|
365
399
|
* any size leaves it out, and Bloom then asks nothing.
|
|
366
400
|
*/
|
|
367
401
|
setSizeLimits?(limits: PlatformWindowSizeLimits): void;
|
|
402
|
+
/**
|
|
403
|
+
* Lays the window out (`PlatformWindowLayout`), as the platform's own tiling does: required with
|
|
404
|
+
* the `window-layout` capability, which makes the zoom control show the layouts on hover and
|
|
405
|
+
* long press, as a Mac's green button does.
|
|
406
|
+
*/
|
|
407
|
+
layOut?(layout: PlatformWindowLayout): void;
|
|
408
|
+
/**
|
|
409
|
+
* Moves the window to another of the platform's desktops, numbered from 0
|
|
410
|
+
* (`PlatformWindowState.desktops`), with `window-layout`, where the platform has desktops.
|
|
411
|
+
*/
|
|
412
|
+
moveToDesktop?(desktop: number): void;
|
|
368
413
|
}
|
|
369
414
|
|
|
370
415
|
/**
|