@webority/tokens 0.130.0 → 0.130.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/dist/canvas/webority-phone.json +1 -1
- package/dist/canvas/webority-web-390.json +1 -1
- package/dist/canvas/webority-web.json +1 -1
- package/dist/meanings.json +1 -1
- package/dist/upgrade/index.js +2 -2
- package/dist/upgrade/source.js +1 -1
- package/package.json +1 -1
- package/renames/0.130.0.json +141 -0
- package/renames/0.91.0.json +44 -1
- package/renames/renames.d.ts +2 -0
package/dist/meanings.json
CHANGED
package/dist/upgrade/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import{brand as e}from"../build.js";import{applyClasses as t}from"./classes.js";import{applyComponents as n}from"./components.js";import{applyCssTable as r,isCssTarget as i,ownDeclarations as a}from"./css.js";import{applyRazorAttributes as o}from"./razorAttributes.js";import{applyRazorTags as s}from"./razorTags.js";import{applyRazorValueSplits as c}from"./razorValueSplits.js";import{applyMarkup as l,applySource as u}from"./source.js";import{applyComponentProps as d,applyPropSplits as f,applyPropValues as p,applyProps as m,applyThemeReads as h}from"./themeReads.js";import{applyValueSplits as g}from"./valueSplits.js";import{createRequire as _}from"node:module";import{existsSync as v,readFileSync as y,readdirSync as b,writeFileSync as
|
|
1
|
+
import{brand as e}from"../build.js";import{applyClasses as t}from"./classes.js";import{applyComponents as n}from"./components.js";import{applyCssTable as r,isCssTarget as i,ownDeclarations as a}from"./css.js";import{applyRazorAttributes as o}from"./razorAttributes.js";import{applyRazorTags as s}from"./razorTags.js";import{applyRazorValueSplits as c}from"./razorValueSplits.js";import{applyMarkup as l,applySource as u}from"./source.js";import{applyComponentProps as d,applyPropSplits as f,applyPropValues as p,applyProps as m,applyThemeReads as h}from"./themeReads.js";import{applyValueSplits as g}from"./valueSplits.js";import{createRequire as _}from"node:module";import{existsSync as v,readFileSync as y,readdirSync as b,realpathSync as x,writeFileSync as S}from"node:fs";import{dirname as C,isAbsolute as w,join as T,relative as E,resolve as D,sep as O}from"node:path";import{fileURLToPath as k,pathToFileURL as A}from"node:url";import{spawnSync as j}from"node:child_process";var M=/^\d+\.\d+\.\d+$/,N=/^(?:workspace:|file:|link:)/,P=`WEBORITY_UPGRADE_FROM`;function F(e){if(typeof e!=`string`||!M.test(e))throw Error(`invalid version "${e}"`)}function I(e,t){F(e),F(t);let n=e.split(`.`).map(Number),r=t.split(`.`).map(Number);for(let e=0;e<3;e++)if(n[e]!==r[e])return n[e]-r[e];return 0}function L(){let e=C(k(import.meta.url));for(;;){let t=T(e,`package.json`);if(v(t)&&JSON.parse(y(t,`utf8`)).name===`@webority/tokens`)return e;let n=C(e);if(n===e)throw Error(`cannot find the @webority/tokens package folder`);e=n}}function R(e){let t=[];for(let n of b(e)){if(!n.endsWith(`.json`))continue;let r=n.slice(0,-5);M.test(r)&&t.push({version:r,table:JSON.parse(y(T(e,n),`utf8`))})}return t.sort((e,t)=>I(e.version,t.version))}function z(e,t){let n=j(`git`,[`ls-files`,`-z`,`--`,...t],{cwd:e,encoding:`utf8`,windowsHide:!0,maxBuffer:67108864});if(n.status!==0)throw Error(`not a git repository: ${e}`);let r=n.stdout.split(`\0`).filter(Boolean).map(e=>e.split(`\\`).join(`/`)).filter(t=>v(T(e,t)));return[...new Set(r)]}function B(e,t){let n=z(e,t??[`.`]);if(t!==void 0&&n.length===0)throw Error(`no tracked files under ${t.join(`, `)}`);return n}function V(e){return e.split(`/`).includes(`node_modules`)}var H=new Set([`node_modules`,`vendor`,`vendors`,`external`]),U=/\.(?:min|bundle)\.(?:js|css)$/;function W(e){let t=e.split(`/`);return t.some(e=>H.has(e))||t.some((e,n)=>e===`lib`&&t[n-1]===`wwwroot`)?!0:U.test(e)}function G(e,t){return[...new Set([...e,...t])]}function K(e,t,n){return R(e).filter(e=>I(e.version,t)>0&&I(e.version,n)<=0).map(e=>e.table)}function q(e,t){let n=Object.entries(t);if(n.length===0)return e;let r=(e,t)=>e.flatMap(e=>[e,...n.filter(([,n])=>e[t]===n).map(([n])=>({...e,[t]:n}))]),i={...e};for(let t of[`props`,`componentProps`,`propValues`,`propSplits`,`valueSplits`,`components`])e[t]!==void 0&&(i[t]=r(e[t],`package`));return e.source!==void 0&&(i.source={...e.source,flags:r(e.source.flags,`importedFrom`)}),i}function J(e,_,v,b,x,C={}){b&&x(`dry run: nothing written`);let w=v.map(e=>q(e,C)),E=[],D=[],O=[],k=_.filter(e=>i(e)&&!W(e)),A=w.map(()=>new Set);if(w.some(e=>(e.css.ownable??[]).length>0))for(let t of k){let n=y(T(e,t),`utf8`);w.forEach((e,r)=>{for(let i of a(n,t,e))A[r].add(i)})}for(let i of k){let a=y(T(e,i),`utf8`),_=a,v=e=>{for(let t of e)E.push({file:i,line:t.line,from:t.from,to:t.to}),x(`${i}:${t.line} ${t.from} -> ${t.to}`)},C=e=>{D.push({file:i,line:e.line,name:e.name,hint:e.hint}),x(`choose ${i}:${e.line} ${e.name}: ${e.hint}`)},k=e=>{for(let t of e)t.message.startsWith(`skipped, it does not parse`)?x(`skipped ${i}: ${t.message}`):C({line:t.line,name:t.path,hint:t.message})};for(let[e,a]of w.entries()){let y=r(_,i,a,A[e]);_=y.text,v(y.hits);for(let e of y.choose)C(e);for(let e of y.checkRole)x(`verify ${i}:${e.line} ${e.from} -> ${e.to}`);let b=h(_,i,a.themeReads);_=b.text,v(b.hits),k(b.findings);let S=[e=>m(e,i,a.props),e=>d(e,i,a.componentProps),e=>p(e,i,a.propValues),e=>g(e,i,a.valueSplits??[]),e=>f(e,i,a.propSplits),e=>o(e,i,a.razorAttributes),e=>n(e,i,a.components??[]),e=>s(e,i,a.razorTags??[]),e=>c(e,i,a.razorValueSplits??[]),e=>t(e,i,a.classes??[]),e=>l(e,i,a.markup),e=>u(e,i,a.source)];for(let e of S){let t=e(_);_=t.text,v(t.hits),k(t.findings)}}_!==a&&(O.push(i),b||S(T(e,i),_,`utf8`))}return{hits:E,choose:D,changedFiles:O}}function Y(e){let t=/^([ \t]+)\S/m.exec(e);return t?t[1]:4}function X(e,t,n,r,i){let a=[];for(let o of z(e,[`package.json`,`:(glob)**/package.json`])){if(V(o))continue;let s=y(T(e,o),`utf8`),c=JSON.parse(s),l=!1;for(let e of[`dependencies`,`devDependencies`]){let r=c[e];if(r)for(let e of n.npm){if(!Object.hasOwn(r,e))continue;let n=r[e];N.test(n)||n===t||(r[e]=t,l=!0,i(`pin ${o}: ${e} ${n} -> ${t}`))}}if(l&&(a.push(o),r)){let t=JSON.stringify(c,null,Y(s));s.endsWith(`
|
|
2
2
|
`)&&(t+=`
|
|
3
3
|
`),s.includes(`\r
|
|
4
4
|
`)&&(t=t.replace(/\n/g,`\r
|
|
5
|
-
`)),
|
|
5
|
+
`)),S(T(e,o),t,`utf8`)}}return a}function Z(e,t,n,r,i){let a=[];for(let o of z(e,[`Directory.Packages.props`,`:(glob)**/Directory.Packages.props`])){if(V(o))continue;let s=y(T(e,o),`utf8`),c=!1,l=s.replace(/<PackageVersion\b[^>]*>/g,e=>{let r=/\sInclude="([^"]*)"/.exec(e)?.[1],a=/\sVersion="([^"]*)"/.exec(e)?.[1];if(r===void 0||a===void 0)return e;let s=/^\[([^\]]*)\]$/.exec(a),l=s?s[1]:a,u=s?`[${t}]`:t;return!n.nuget.includes(r)||l===t?e:(i(`pin ${o}: ${r} ${a} -> ${u}`),c=!0,e.replace(/(\sVersion=")[^"]*(")/,`$1${u}$2`))});c&&(a.push(o),r&&S(T(e,o),l,`utf8`))}return a}function Q(e){let t;try{t=_(T(e,`package.json`)).resolve(`@webority/repo-checks/lockstep.json`)}catch{throw Error(`add @webority/repo-checks at the lockstep version and run again`)}return JSON.parse(y(t,`utf8`))}var $=[{file:`pnpm-lock.yaml`,manager:`pnpm`,command:[`corepack`,`pnpm`,`install`]},{file:`package-lock.json`,manager:`npm`,command:[`npm`,`install`]}];function ee(e){let t=$.filter(t=>v(T(e,t.file)));if(t.length===0)throw Error(`no pnpm-lock.yaml or package-lock.json in ${e}`);if(t.length>1)throw Error(`${e} has both ${t[0].file} and ${t[1].file}; keep one lockfile`);return t[0]}function te(e,t){let n=D(e,t),r=E(e,n);if(r===``||w(r)||r.split(O)[0]===`..`)throw Error(`--app ${t}: give a folder inside the repo root`);if(!v(T(n,`package.json`)))throw Error(`--app ${t}: no package.json in that folder`);return n}function ne(e,t,n){return j(e,t,{cwd:n.cwd,env:process.env,stdio:`inherit`,windowsHide:!0,shell:process.platform===`win32`})}async function re({appRoot:e,designRoot:t,app:n,version:r,from:i,aliases:a}){let o=x.native(T(e,`node_modules`,`@webority`,`tokens`)),s=JSON.parse(y(T(o,`package.json`),`utf8`))?.exports?.[`.`],c=typeof s==`string`?s:s?.default;if(typeof c!=`string`)throw Error(`cannot find the installed @webority/tokens entry`);process.env[P]=i;try{return await(await import(A(T(o,c)).href)).upgrade({root:t,app:n,version:r,dryRun:!1,aliases:a})}finally{delete process.env[P]}}async function ie({root:e,designRoot:t,version:n,dryRun:r,from:i,dir:a,log:o,brandFn:s,aliases:c}){let l=R(a);if(!r&&!l.some(e=>e.version===n))throw Error(`no rename table for ${n}`);let u=l.filter(e=>I(e.version,i)>0&&I(e.version,n)<=0).map(e=>e.table),d=J(e,B(e),u,r,o,c);return r||await s({root:t}),d}async function ae({root:e,designRoot:t,app:n,version:r,dryRun:i,deps:a,log:o,aliases:s}){let c=T(e,`node_modules`,`@webority`,`tokens`,`package.json`);if(!v(c))throw Error(`@webority/tokens is not installed; add it at the lockstep version and run again`);let l=JSON.parse(y(c,`utf8`)).version,u=Q(e),d=i?null:ee(e),f=[...X(e,r,u,!i,o),...Z(e,r,u,!i,o)];if(i){o(`dry run: install skipped; tables are those of the installed ${l}`);let t=K(a.renamesDir??T(e,`node_modules`,`@webority`,`tokens`,`renames`),l,r),n=J(e,B(e),t,!0,o,s);return{...n,changedFiles:G(f,n.changedFiles)}}let p=a.run??ne,[m,...h]=d.command,{status:g}=await p(m,h,{cwd:e});if(g!==0)throw Error(`${d.manager} install failed with exit code ${g}`);let _=await(a.reenter??re)({appRoot:e,designRoot:t,app:n,version:r,dryRun:!1,from:l,aliases:s});return{..._,changedFiles:G(f,_.changedFiles)}}async function oe(t,n={}){let r=t.version;F(r);let i=t.root??process.cwd(),a=t.app===void 0?i:te(i,t.app),o=t.dryRun??!1,s=t.aliases??{},c=n.log??console.log,l=()=>n.renamesDir??T(L(),`renames`);if(Array.isArray(t.paths)&&t.paths.length>0){let e=R(l()).filter(e=>e.version===r).map(e=>e.table);if(e.length===0)throw Error(`no rename table for ${r}`);return J(a,B(a,t.paths),e,o,c,s)}if(!v(T(i,`.webority`,`design.json`)))throw Error(`write .webority/design.json (design-map.md) and run again`);let u=process.env[P];return u?ie({root:a,designRoot:i,version:r,dryRun:o,from:u,dir:l(),log:c,brandFn:n.brand??e,aliases:s}):ae({root:a,designRoot:i,app:t.app,version:r,dryRun:o,deps:n,log:c,aliases:s})}export{oe as upgrade};
|
package/dist/upgrade/source.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import e from"node:path";var t=new Set([`.js`,`.jsx`,`.mjs`,`.cjs`,`.ts`,`.tsx`,`.mts`,`.cts`]),n=new Set([`.cshtml`,`.razor`,`.html`]),r=`["'\`]`,i=`[A-Za-z_$][\\w$]*`,a=e=>e.replace(/[.*+?^${}()|[\]\\]/g,`\\$&`),o=e=>[...e].sort((e,t)=>t.length-e.length).map(a).join(`|`),s=e=>{let t=[0];for(let n=0;n<e.length;n++)e[n]===`
|
|
2
2
|
`&&t.push(n+1);return t},c=(e,t)=>{let n=0,r=e.length-1;for(;n<r;){let i=n+r+1>>1;e[i]<=t?n=i:r=i-1}return n+1},l=(e,t)=>e<t?-1:+(e>t),u=(e,t,n)=>{if(t.length===0)return e;let i=new Map(t),a=RegExp(`(${r})(${o(i.keys())})\\1`,`g`),l=s(e);return e.replace(a,(e,t,r,a)=>{let o=i.get(r);return n.push({line:c(l,a),from:r,to:o}),`${t}${o}${t}`})},d=(e,t,n)=>{let r=e;for(let e of t){let t=e.receiver===void 0?void 0:RegExp(`^(?:${e.receiver})$`),o=RegExp(`(${i})(\\?\\.|\\.)${a(e.from)}(?![\\w$])`,`g`),l=s(r);r=r.replace(o,(r,i,a,o)=>t!==void 0&&!t.test(i)?r:(n.push({line:c(l,o),from:`${i}${a}${e.from}`,to:`${i}${a}${e.to}`}),`${i}${a}${e.to}`))}return r},f=(e,t)=>RegExp(`(?:\\bfrom\\s*|\\bimport\\s*\\(?\\s*|\\brequire\\(\\s*)["']${a(t)}["']`).test(e),p=(e,t)=>{let n=e.split(`
|
|
3
|
-
`),r=[],i=new Map;for(let a of t){if(a.importedFrom!==void 0&&(i.has(a.importedFrom)||i.set(a.importedFrom,f(e,a.importedFrom)),!i.get(a.importedFrom)))continue;let t=new RegExp(a.pattern);for(let e=0;e<n.length;e++){let i=t.exec(n[e]);i!==null&&r.push({line:e+1,path:i[0],message:a.hint})}}return r};
|
|
3
|
+
`),r=[],i=new Map;for(let a of t){if(a.importedFrom!==void 0&&(i.has(a.importedFrom)||i.set(a.importedFrom,f(e,a.importedFrom)),!i.get(a.importedFrom)))continue;let t=new RegExp(a.pattern);for(let e=0;e<n.length;e++){let i=t.exec(n[e]);i!==null&&r.push({line:e+1,path:i[0],message:a.hint})}}return r},m=e=>RegExp(`(?:\\b(?:import|export)\\s+(?:type\\s+)?(?:[\\w$]+\\s*,\\s*)?\\{([^}]*)\\}\\s*from\\s*|\\b(?:const|let|var)\\s*\\{([^}]*)\\}\\s*=\\s*require\\(\\s*)(["'])${a(e)}\\3`,`g`),h=(e,t)=>{let n=[],r=s(e);for(let i of t){let t=new Set(i.names);for(let a of e.matchAll(m(i.package))){let e=a[1]??a[2],o=a.index+a[0].indexOf(`{`)+1,s=0;for(let a of e.split(`,`)){let e=a.length-a.trimStart().length,l=a.trim().replace(/^type\s+/,``).split(/\s+as\s+|:/)[0].trim();t.has(l)&&n.push({line:c(r,o+s+e),path:l,message:i.hint}),s+=a.length+1}}}return n};function g(n,r,i){if(i===void 0||!t.has(e.extname(r).toLowerCase()))return{text:n,hits:[],findings:[]};let a=[],o=d(u(n,i.literals,a),i.members,a),s=p(o,i.flags);return s.push(...h(o,i.removedImports??[])),a.sort((e,t)=>e.line-t.line||l(e.from,t.from)),s.sort((e,t)=>e.line-t.line||l(e.path,t.path)),{text:o,hits:a,findings:s}}function _(t,r,i){if(i===void 0||!n.has(e.extname(r).toLowerCase()))return{text:t,hits:[],findings:[]};let a=[],o=u(t,i.literals,a),s=p(o,i.flags);return a.sort((e,t)=>e.line-t.line||l(e.from,t.from)),s.sort((e,t)=>e.line-t.line||l(e.path,t.path)),{text:o,hits:a,findings:s}}export{t as SOURCE_EXTENSIONS,_ as applyMarkup,g as applySource};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@webority/tokens",
|
|
3
|
-
"version": "0.130.
|
|
3
|
+
"version": "0.130.2",
|
|
4
4
|
"description": "The Webority design tokens in one W3C Design Tokens source (palette, scale, meaning and component tiers, with light and dark, web and phone, and 390 and 1440 widths), and the webority command that brands a product, upgrades it between releases and checks it against the token source.",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|
package/renames/0.130.0.json
CHANGED
|
@@ -1672,6 +1672,147 @@
|
|
|
1672
1672
|
"pattern": "@webority/ui-elements/tour(?![\\w-])",
|
|
1673
1673
|
"hint": "@webority/ui-elements/tour is removed in 0.130.0 with no alias; import what you use from the package root or the module that owns it"
|
|
1674
1674
|
}
|
|
1675
|
+
],
|
|
1676
|
+
"removedImports": [
|
|
1677
|
+
{
|
|
1678
|
+
"package": "@webority/mobile-ui",
|
|
1679
|
+
"names": ["Notation", "parseNotation", "sym"],
|
|
1680
|
+
"hint": "Notation leaves @webority/mobile-ui in 0.130.0: copy the component from webority-ui 0.129.0 packages/mobile-ui/src/components/Notation into the product and import it from there"
|
|
1681
|
+
},
|
|
1682
|
+
{
|
|
1683
|
+
"package": "@webority/mobile-ui",
|
|
1684
|
+
"names": ["configureFeedback", "isFeedbackEnabled"],
|
|
1685
|
+
"hint": "use setHapticsEnabled(enabled) and isHapticsEnabled() from @webority/mobile-ui instead"
|
|
1686
|
+
},
|
|
1687
|
+
{
|
|
1688
|
+
"package": "@webority/mobile-ui",
|
|
1689
|
+
"names": [
|
|
1690
|
+
"APP_ICON_SIZES",
|
|
1691
|
+
"Breakpoints",
|
|
1692
|
+
"COLOR_NAMES",
|
|
1693
|
+
"DEFAULT_AMOUNT_SLIDER_LABELS",
|
|
1694
|
+
"DEFAULT_APP_BAR_LABELS",
|
|
1695
|
+
"DEFAULT_APP_LOCK_OVERLAY_LABELS",
|
|
1696
|
+
"DEFAULT_ASYNC_BLOCK_LABELS",
|
|
1697
|
+
"DEFAULT_AUTOCOMPLETE_LABELS",
|
|
1698
|
+
"DEFAULT_AVATAR_LABELS",
|
|
1699
|
+
"DEFAULT_BADGE_LABELS",
|
|
1700
|
+
"DEFAULT_BANNER_LABELS",
|
|
1701
|
+
"DEFAULT_BOTTOM_NAVIGATION_LABELS",
|
|
1702
|
+
"DEFAULT_BOTTOM_SHEET_LABELS",
|
|
1703
|
+
"DEFAULT_CALENDAR_LABELS",
|
|
1704
|
+
"DEFAULT_CARD_LABELS",
|
|
1705
|
+
"DEFAULT_CAROUSEL_LABELS",
|
|
1706
|
+
"DEFAULT_COMPOSER_LABELS",
|
|
1707
|
+
"DEFAULT_DATE_PICKER_LABELS",
|
|
1708
|
+
"DEFAULT_DATE_RANGE_PICKER_LABELS",
|
|
1709
|
+
"DEFAULT_DATE_SEPARATOR_LABELS",
|
|
1710
|
+
"DEFAULT_DECIMAL_INPUT_LABELS",
|
|
1711
|
+
"DEFAULT_DRAWER_LABELS",
|
|
1712
|
+
"DEFAULT_ERROR_BOUNDARY_LABELS",
|
|
1713
|
+
"DEFAULT_FILE_PICKER_LABELS",
|
|
1714
|
+
"DEFAULT_FLOATING_ACTION_BUTTON_GROUP_LABELS",
|
|
1715
|
+
"DEFAULT_FORCE_UPDATE_DIALOG_LABELS",
|
|
1716
|
+
"DEFAULT_FORM_FIELD_LABELS",
|
|
1717
|
+
"DEFAULT_IMAGE_GALLERY_LABELS",
|
|
1718
|
+
"DEFAULT_INLINE_SELECT_LABELS",
|
|
1719
|
+
"DEFAULT_INPUT_LABELS",
|
|
1720
|
+
"DEFAULT_KEYBOARD_TOOLBAR_LABELS",
|
|
1721
|
+
"DEFAULT_LOADER_OVERLAY_LABELS",
|
|
1722
|
+
"DEFAULT_MENU_LABELS",
|
|
1723
|
+
"DEFAULT_MESSAGE_BUBBLE_LABELS",
|
|
1724
|
+
"DEFAULT_MESSAGE_LIST_LABELS",
|
|
1725
|
+
"DEFAULT_MODAL_LABELS",
|
|
1726
|
+
"DEFAULT_NUMBER_INPUT_LABELS",
|
|
1727
|
+
"DEFAULT_ONBOARDING_PAGER_LABELS",
|
|
1728
|
+
"DEFAULT_OPTION_SHEET_LABELS",
|
|
1729
|
+
"DEFAULT_OTP_INPUT_LABELS",
|
|
1730
|
+
"DEFAULT_OTP_RESEND_ROW_LABELS",
|
|
1731
|
+
"DEFAULT_PAGED_LIST_FOOTER_LABELS",
|
|
1732
|
+
"DEFAULT_PERMISSION_PROMPT_LABELS",
|
|
1733
|
+
"DEFAULT_PHONE_NUMBER_INPUT_LABELS",
|
|
1734
|
+
"DEFAULT_PICKER_TRIGGER_LABELS",
|
|
1735
|
+
"DEFAULT_PROFILE_COMPLETION_LABELS",
|
|
1736
|
+
"DEFAULT_PROFILE_PICKER_LABELS",
|
|
1737
|
+
"DEFAULT_PROGRESS_BAR_LABELS",
|
|
1738
|
+
"DEFAULT_RATING_LABELS",
|
|
1739
|
+
"DEFAULT_REPEATER_LABELS",
|
|
1740
|
+
"DEFAULT_RICH_TEXT_EDITOR_LABELS",
|
|
1741
|
+
"DEFAULT_SCANNER_OVERLAY_LABELS",
|
|
1742
|
+
"DEFAULT_SEARCH_BAR_LABELS",
|
|
1743
|
+
"DEFAULT_SECTION_HEADER_LABELS",
|
|
1744
|
+
"DEFAULT_SELECT_LABELS",
|
|
1745
|
+
"DEFAULT_SIGNATURE_PAD_LABELS",
|
|
1746
|
+
"DEFAULT_SKELETON_LABELS",
|
|
1747
|
+
"DEFAULT_SLIDER_FIELD_LABELS",
|
|
1748
|
+
"DEFAULT_SLIDE_TO_CONFIRM_LABELS",
|
|
1749
|
+
"DEFAULT_SORTABLE_LIST_LABELS",
|
|
1750
|
+
"DEFAULT_SPARKLINE_LABELS",
|
|
1751
|
+
"DEFAULT_SPINNER_LABELS",
|
|
1752
|
+
"DEFAULT_TIME_PICKER_LABELS",
|
|
1753
|
+
"DEFAULT_TOAST_LABELS",
|
|
1754
|
+
"DEFAULT_TOOLTIP_LABELS",
|
|
1755
|
+
"DEFAULT_TOUR_LABELS",
|
|
1756
|
+
"DEFAULT_TYPING_INDICATOR_LABELS",
|
|
1757
|
+
"DEFAULT_WHEEL_PICKER_LABELS",
|
|
1758
|
+
"DURATION_NAMES",
|
|
1759
|
+
"EASE_NAMES",
|
|
1760
|
+
"FLICK_TOLERANCE",
|
|
1761
|
+
"FONT_NAMES",
|
|
1762
|
+
"FieldErrorScrollContext",
|
|
1763
|
+
"ICONSAX_SUFFIX",
|
|
1764
|
+
"LEADING_NAMES",
|
|
1765
|
+
"LETTER_SPACING_NAMES",
|
|
1766
|
+
"PRESENCE_REDUCE_MOTION",
|
|
1767
|
+
"PRESS_ANIMATION_PRESETS",
|
|
1768
|
+
"RADIUS_NAMES",
|
|
1769
|
+
"SHADOW_NAMES",
|
|
1770
|
+
"SIZE_NAMES",
|
|
1771
|
+
"SPACE_NAMES",
|
|
1772
|
+
"SQUIRCLE_MIN_RADIUS",
|
|
1773
|
+
"SQUIRCLE_SMOOTHING",
|
|
1774
|
+
"TEXT_NAMES",
|
|
1775
|
+
"WEIGHT_NAMES",
|
|
1776
|
+
"applyMarkdownAction",
|
|
1777
|
+
"avatarToneColors",
|
|
1778
|
+
"cleanDecimalText",
|
|
1779
|
+
"darkTheme",
|
|
1780
|
+
"dayLabel",
|
|
1781
|
+
"deletePath",
|
|
1782
|
+
"feedback",
|
|
1783
|
+
"getPath",
|
|
1784
|
+
"hapticForIntent",
|
|
1785
|
+
"isFieldFilled",
|
|
1786
|
+
"isScreenSize",
|
|
1787
|
+
"isTablet",
|
|
1788
|
+
"isUnclearDecimalComma",
|
|
1789
|
+
"mergeBrand",
|
|
1790
|
+
"parseDecimalText",
|
|
1791
|
+
"parseE164",
|
|
1792
|
+
"pointDecimalText",
|
|
1793
|
+
"renderSlotIcon",
|
|
1794
|
+
"setPath",
|
|
1795
|
+
"shadowStyle",
|
|
1796
|
+
"smoothCorners",
|
|
1797
|
+
"spaceOf",
|
|
1798
|
+
"useControllableState",
|
|
1799
|
+
"useFieldErrorAnchor",
|
|
1800
|
+
"useFieldErrorScroll",
|
|
1801
|
+
"useFlickGuard",
|
|
1802
|
+
"useFormCompletion",
|
|
1803
|
+
"useLoader",
|
|
1804
|
+
"usePermissionPrompt",
|
|
1805
|
+
"usePresenceMotion",
|
|
1806
|
+
"usePressAnimation",
|
|
1807
|
+
"useResendCountdown",
|
|
1808
|
+
"useScreenDimensions",
|
|
1809
|
+
"useSkeletonClock",
|
|
1810
|
+
"useSkeletonDefaults",
|
|
1811
|
+
"useToggle",
|
|
1812
|
+
"warnUnknownProps"
|
|
1813
|
+
],
|
|
1814
|
+
"hint": "removed from the @webority/mobile-ui root in 0.130.0 with no replacement: keep a local copy in the product or drop the use"
|
|
1815
|
+
}
|
|
1675
1816
|
]
|
|
1676
1817
|
}
|
|
1677
1818
|
}
|
package/renames/0.91.0.json
CHANGED
|
@@ -83,7 +83,50 @@
|
|
|
83
83
|
"hint": "multiply the step size by leading.body, or by leading.heading for a heading"
|
|
84
84
|
}
|
|
85
85
|
],
|
|
86
|
-
"props": [
|
|
86
|
+
"props": [
|
|
87
|
+
{
|
|
88
|
+
"package": "@webority/mobile-ui",
|
|
89
|
+
"props": ["tone", "variant", "iconTone", "avatarTone"],
|
|
90
|
+
"from": "error",
|
|
91
|
+
"to": "danger"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"package": "@webority/mobile-ui",
|
|
95
|
+
"props": ["elevation"],
|
|
96
|
+
"from": "xs",
|
|
97
|
+
"to": "card"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"package": "@webority/mobile-ui",
|
|
101
|
+
"props": ["elevation"],
|
|
102
|
+
"from": "sm",
|
|
103
|
+
"to": "card"
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
"package": "@webority/mobile-ui",
|
|
107
|
+
"props": ["elevation"],
|
|
108
|
+
"from": "md",
|
|
109
|
+
"to": "elevated"
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
"package": "@webority/mobile-ui",
|
|
113
|
+
"props": ["elevation"],
|
|
114
|
+
"from": "lg",
|
|
115
|
+
"to": "popover"
|
|
116
|
+
},
|
|
117
|
+
{
|
|
118
|
+
"package": "@webority/mobile-ui",
|
|
119
|
+
"props": ["elevation"],
|
|
120
|
+
"from": "xl",
|
|
121
|
+
"to": "modal"
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"package": "@webority/mobile-ui",
|
|
125
|
+
"props": ["elevation"],
|
|
126
|
+
"from": "2xl",
|
|
127
|
+
"to": "modal"
|
|
128
|
+
}
|
|
129
|
+
],
|
|
87
130
|
"componentProps": [],
|
|
88
131
|
"propValues": [],
|
|
89
132
|
"propSplits": [],
|
package/renames/renames.d.ts
CHANGED
|
@@ -39,6 +39,8 @@ export interface SourceRules {
|
|
|
39
39
|
members: { from: string; to: string; receiver?: string }[];
|
|
40
40
|
/** Regular expressions a person must resolve: each matching line is reported as a choose entry with `hint`. When `importedFrom` is given, only in files that import that exact package name (an import of one of its subpaths does not count). */
|
|
41
41
|
flags: { pattern: string; hint: string; importedFrom?: string }[];
|
|
42
|
+
/** Names a package root stopped exporting; each import of one from exactly that specifier becomes a choose line. */
|
|
43
|
+
removedImports?: { package: string; names: string[]; hint: string }[];
|
|
42
44
|
}
|
|
43
45
|
|
|
44
46
|
/**
|