@webority/mobile-ui 0.174.0 → 0.174.1

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.
@@ -2,7 +2,7 @@
2
2
  "kind": "WeborityPhone",
3
3
  "library": {
4
4
  "name": "@webority/mobile-ui",
5
- "version": "0.174.0"
5
+ "version": "0.174.1"
6
6
  },
7
7
  "rendererProtocolVersion": 14,
8
8
  "platform": "Phone",
@@ -1,21 +1,21 @@
1
1
  {
2
2
  "name": "webority-phone",
3
- "version": "0.174.0",
3
+ "version": "0.174.1",
4
4
  "platform": "Phone",
5
5
  "kitModuleVersion": 2,
6
6
  "rendererProtocolVersion": 14,
7
7
  "library": {
8
8
  "name": "@webority/mobile-ui",
9
- "version": "0.174.0"
9
+ "version": "0.174.1"
10
10
  },
11
11
  "files": {
12
12
  "manifest.json": {
13
- "sha256": "84d3fc1f1f39c6868cd074635bfbe7e93f5d6efea2fd61604087c630108891f9",
13
+ "sha256": "a2abdc7d4a431f79ea0d5770700062568a9b7cbafc56c0c09e4115ba66a48111",
14
14
  "bytes": 673889
15
15
  },
16
16
  "kit.js": {
17
- "sha256": "78c044bff22c4ee7a20083fe0c042456da74ccf96d59b26f42d11b362a1765ee",
18
- "bytes": 5707590
17
+ "sha256": "25c31a8e86ee77a066849d370de60e8ed2e9a8ea4fff90973d57a9288d5a0046",
18
+ "bytes": 5707591
19
19
  },
20
20
  "kit.css": {
21
21
  "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855",
@@ -1 +1 @@
1
- "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fillText=fillText,exports.pluralText=pluralText,exports.readText=readText,exports.setText=setText,exports.subscribeText=subscribeText,exports.textLocale=textLocale;const DEFAULT_LOCALE="en-IN",PLACEHOLDER=/\{([A-Za-z0-9_]+)\}/g;let locale,groups=new Map,version=0;const listeners=new Set,cache=new Map;function setText(e){const t=new Map;let r;const n=Object.entries(e);for(const[e,o]of n)if(void 0!==o)if("locale"!==e){if(!isPlainRecord(o))throw new RangeError(`Text ${e} must be an object of string keys.`);t.set(e,groupOf(e,o))}else{if("string"!=typeof o)throw new RangeError("Text locale must be a BCP 47 tag string.");r=o}locale=r,groups=t,version+=1;for(const e of Array.from(listeners))e()}function readText(e,t){const r=groups.get(e);if(void 0===r)return t;const n=cache.get(e);if(void 0!==n&&n.version===version&&n.english===t&&hasKeysOf(n.merged,t))return n.merged;const o=mergeGroup(e,r,t);return cache.set(e,{version:version,english:t,merged:o}),o}function subscribeText(e){return listeners.add(e),()=>{listeners.delete(e)}}function textLocale(){return locale??DEFAULT_LOCALE}function fillText(e,t){return e.replace(PLACEHOLDER,(e,r)=>Object.hasOwn(t,r)?String(t[r]):e)}function pluralText(e,t,r,n){const o=`${t}Other`;if(!Object.hasOwn(e,o))throw new RangeError(`Plural text ${t} has no ${o} key; every plural needs its Other form.`);const s=new Intl.PluralRules(textLocale()).select(r),c=`${t}${s.charAt(0).toUpperCase()}${s.slice(1)}`,l=e[Object.hasOwn(e,c)?c:o];if(void 0===l)throw new RangeError(`Plural text ${t} has no ${c} key.`);return fillText(l,{count:r,...n})}function isPlainRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function groupOf(e,t){const r={};for(const[n,o]of Object.entries(t)){if("string"!=typeof o)throw new RangeError(`Text ${e}.${n} must be a string.`);r[n]=o}return r}function mergeGroup(e,t,r){const n={};for(const[o,s]of Object.entries(t)){const t=Object.hasOwn(r,o)?r[o]:void 0;if(void 0===t)throw new RangeError(`Text ${e}.${o} is not a key of the English text. Allowed keys: ${Object.keys(r).join(", ")}.`);const c=placeholdersOf(t);for(const t of placeholdersOf(s))if(!c.includes(t))throw new RangeError(`Text ${e}.${o} uses {${t}}, which the English text does not have. Allowed placeholders: ${0===c.length?"none":c.map(e=>`{${e}}`).join(", ")}.`);n[o]=s}return Object.assign({},r,n)}function hasKeysOf(e,t){const r=Object.keys(t);return Object.keys(e).length===r.length&&r.every(t=>Object.hasOwn(e,t))}function placeholdersOf(e){return Array.from(e.matchAll(PLACEHOLDER),e=>e[1]??"")}
1
+ "use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.fillText=fillText,exports.pluralText=pluralText,exports.readText=readText,exports.setText=setText,exports.subscribeText=subscribeText,exports.textLocale=textLocale;const DEFAULT_LOCALE="en-IN",PLACEHOLDER=/\{([A-Za-z0-9_]+)\}/g,hasOwn=(e,t)=>void 0!==Object.getOwnPropertyDescriptor(e,t);let locale,groups=new Map,version=0;const listeners=new Set,cache=new Map;function setText(e){const t=new Map;let r;const n=Object.entries(e);for(const[e,o]of n)if(void 0!==o)if("locale"!==e){if(!isPlainRecord(o))throw new RangeError(`Text ${e} must be an object of string keys.`);t.set(e,groupOf(e,o))}else{if("string"!=typeof o)throw new RangeError("Text locale must be a BCP 47 tag string.");r=o}locale=r,groups=t,version+=1;for(const e of Array.from(listeners))e()}function readText(e,t){const r=groups.get(e);if(void 0===r)return t;const n=cache.get(e);if(void 0!==n&&n.version===version&&n.english===t&&hasKeysOf(n.merged,t))return n.merged;const o=mergeGroup(e,r,t);return cache.set(e,{version:version,english:t,merged:o}),o}function subscribeText(e){return listeners.add(e),()=>{listeners.delete(e)}}function textLocale(){return locale??DEFAULT_LOCALE}function fillText(e,t){return e.replace(PLACEHOLDER,(e,r)=>hasOwn(t,r)?String(t[r]):e)}function pluralText(e,t,r,n){const o=`${t}Other`;if(!hasOwn(e,o))throw new RangeError(`Plural text ${t} has no ${o} key; every plural needs its Other form.`);const s=new Intl.PluralRules(textLocale()).select(r),l=`${t}${s.charAt(0).toUpperCase()}${s.slice(1)}`,c=e[hasOwn(e,l)?l:o];if(void 0===c)throw new RangeError(`Plural text ${t} has no ${l} key.`);return fillText(c,{count:r,...n})}function isPlainRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function groupOf(e,t){const r={};for(const[n,o]of Object.entries(t)){if("string"!=typeof o)throw new RangeError(`Text ${e}.${n} must be a string.`);r[n]=o}return r}function mergeGroup(e,t,r){const n={};for(const[o,s]of Object.entries(t)){const t=hasOwn(r,o)?r[o]:void 0;if(void 0===t)throw new RangeError(`Text ${e}.${o} is not a key of the English text. Allowed keys: ${Object.keys(r).join(", ")}.`);const l=placeholdersOf(t);for(const t of placeholdersOf(s))if(!l.includes(t))throw new RangeError(`Text ${e}.${o} uses {${t}}, which the English text does not have. Allowed placeholders: ${0===l.length?"none":l.map(e=>`{${e}}`).join(", ")}.`);n[o]=s}return Object.assign({},r,n)}function hasKeysOf(e,t){const r=Object.keys(t);return Object.keys(e).length===r.length&&r.every(t=>hasOwn(e,t))}function placeholdersOf(e){return Array.from(e.matchAll(PLACEHOLDER),e=>e[1]??"")}
@@ -1 +1 @@
1
- "use strict";const DEFAULT_LOCALE="en-IN",PLACEHOLDER=/\{([A-Za-z0-9_]+)\}/g;let locale,groups=new Map,version=0;const listeners=new Set,cache=new Map;export function setText(e){const t=new Map;let r;const n=Object.entries(e);for(const[e,o]of n)if(void 0!==o)if("locale"!==e){if(!isPlainRecord(o))throw new RangeError(`Text ${e} must be an object of string keys.`);t.set(e,groupOf(e,o))}else{if("string"!=typeof o)throw new RangeError("Text locale must be a BCP 47 tag string.");r=o}locale=r,groups=t,version+=1;for(const e of Array.from(listeners))e()}export function readText(e,t){const r=groups.get(e);if(void 0===r)return t;const n=cache.get(e);if(void 0!==n&&n.version===version&&n.english===t&&hasKeysOf(n.merged,t))return n.merged;const o=mergeGroup(e,r,t);return cache.set(e,{version:version,english:t,merged:o}),o}export function subscribeText(e){return listeners.add(e),()=>{listeners.delete(e)}}export function textLocale(){return locale??"en-IN"}export function fillText(e,t){return e.replace(PLACEHOLDER,(e,r)=>Object.hasOwn(t,r)?String(t[r]):e)}export function pluralText(e,t,r,n){const o=`${t}Other`;if(!Object.hasOwn(e,o))throw new RangeError(`Plural text ${t} has no ${o} key; every plural needs its Other form.`);const s=new Intl.PluralRules(textLocale()).select(r),c=`${t}${s.charAt(0).toUpperCase()}${s.slice(1)}`,i=e[Object.hasOwn(e,c)?c:o];if(void 0===i)throw new RangeError(`Plural text ${t} has no ${c} key.`);return fillText(i,{count:r,...n})}function isPlainRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function groupOf(e,t){const r={};for(const[n,o]of Object.entries(t)){if("string"!=typeof o)throw new RangeError(`Text ${e}.${n} must be a string.`);r[n]=o}return r}function mergeGroup(e,t,r){const n={};for(const[o,s]of Object.entries(t)){const t=Object.hasOwn(r,o)?r[o]:void 0;if(void 0===t)throw new RangeError(`Text ${e}.${o} is not a key of the English text. Allowed keys: ${Object.keys(r).join(", ")}.`);const c=placeholdersOf(t);for(const t of placeholdersOf(s))if(!c.includes(t))throw new RangeError(`Text ${e}.${o} uses {${t}}, which the English text does not have. Allowed placeholders: ${0===c.length?"none":c.map(e=>`{${e}}`).join(", ")}.`);n[o]=s}return Object.assign({},r,n)}function hasKeysOf(e,t){const r=Object.keys(t);return Object.keys(e).length===r.length&&r.every(t=>Object.hasOwn(e,t))}function placeholdersOf(e){return Array.from(e.matchAll(PLACEHOLDER),e=>e[1]??"")}
1
+ "use strict";const DEFAULT_LOCALE="en-IN",PLACEHOLDER=/\{([A-Za-z0-9_]+)\}/g,hasOwn=(e,t)=>void 0!==Object.getOwnPropertyDescriptor(e,t);let locale,groups=new Map,version=0;const listeners=new Set,cache=new Map;export function setText(e){const t=new Map;let r;const n=Object.entries(e);for(const[e,o]of n)if(void 0!==o)if("locale"!==e){if(!isPlainRecord(o))throw new RangeError(`Text ${e} must be an object of string keys.`);t.set(e,groupOf(e,o))}else{if("string"!=typeof o)throw new RangeError("Text locale must be a BCP 47 tag string.");r=o}locale=r,groups=t,version+=1;for(const e of Array.from(listeners))e()}export function readText(e,t){const r=groups.get(e);if(void 0===r)return t;const n=cache.get(e);if(void 0!==n&&n.version===version&&n.english===t&&hasKeysOf(n.merged,t))return n.merged;const o=mergeGroup(e,r,t);return cache.set(e,{version:version,english:t,merged:o}),o}export function subscribeText(e){return listeners.add(e),()=>{listeners.delete(e)}}export function textLocale(){return locale??"en-IN"}export function fillText(e,t){return e.replace(PLACEHOLDER,(e,r)=>hasOwn(t,r)?String(t[r]):e)}export function pluralText(e,t,r,n){const o=`${t}Other`;if(!hasOwn(e,o))throw new RangeError(`Plural text ${t} has no ${o} key; every plural needs its Other form.`);const s=new Intl.PluralRules(textLocale()).select(r),c=`${t}${s.charAt(0).toUpperCase()}${s.slice(1)}`,i=e[hasOwn(e,c)?c:o];if(void 0===i)throw new RangeError(`Plural text ${t} has no ${c} key.`);return fillText(i,{count:r,...n})}function isPlainRecord(e){return"object"==typeof e&&null!==e&&!Array.isArray(e)}function groupOf(e,t){const r={};for(const[n,o]of Object.entries(t)){if("string"!=typeof o)throw new RangeError(`Text ${e}.${n} must be a string.`);r[n]=o}return r}function mergeGroup(e,t,r){const n={};for(const[o,s]of Object.entries(t)){const t=hasOwn(r,o)?r[o]:void 0;if(void 0===t)throw new RangeError(`Text ${e}.${o} is not a key of the English text. Allowed keys: ${Object.keys(r).join(", ")}.`);const c=placeholdersOf(t);for(const t of placeholdersOf(s))if(!c.includes(t))throw new RangeError(`Text ${e}.${o} uses {${t}}, which the English text does not have. Allowed placeholders: ${0===c.length?"none":c.map(e=>`{${e}}`).join(", ")}.`);n[o]=s}return Object.assign({},r,n)}function hasKeysOf(e,t){const r=Object.keys(t);return Object.keys(e).length===r.length&&r.every(t=>hasOwn(e,t))}function placeholdersOf(e){return Array.from(e.matchAll(PLACEHOLDER),e=>e[1]??"")}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webority/mobile-ui",
3
- "version": "0.174.0",
3
+ "version": "0.174.1",
4
4
  "description": "Beautiful, animated, accessible React Native components, theme and form engine for Webority projects.",
5
5
  "keywords": [
6
6
  "react-native",
@@ -126,13 +126,13 @@
126
126
  }
127
127
  },
128
128
  "dependencies": {
129
- "@webority/markdown-core": "0.174.0"
129
+ "@webority/markdown-core": "0.174.1"
130
130
  },
131
131
  "peerDependencies": {
132
132
  "@react-navigation/bottom-tabs": ">=7.0.0",
133
133
  "@react-navigation/native": ">=7.0.0",
134
- "@webority/canvas-kit": "0.174.0",
135
- "@webority/mobile-core": "0.174.0",
134
+ "@webority/canvas-kit": "0.174.1",
135
+ "@webority/mobile-core": "0.174.1",
136
136
  "expo": ">=58.0.0",
137
137
  "expo-file-system": ">=58.0.0",
138
138
  "expo-haptics": ">=58.0.0",
@@ -196,10 +196,10 @@
196
196
  "@types/jest": "29.5.14",
197
197
  "@types/node": "25.6.0",
198
198
  "@types/react": "19.3.0",
199
- "@webority/canvas-kit": "0.174.0",
200
- "@webority/mobile-core": "0.174.0",
199
+ "@webority/canvas-kit": "0.174.1",
200
+ "@webority/mobile-core": "0.174.1",
201
201
  "@webority/mobile-dev": "0.0.0",
202
- "@webority/tokens": "0.174.0",
202
+ "@webority/tokens": "0.174.1",
203
203
  "expo": "58.0.23",
204
204
  "expo-file-system": "58.0.13",
205
205
  "expo-haptics": "58.0.7",