twenty 2.56.0 → 2.58.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/dist/app-template/yarn.lock +106 -106
- package/dist/app-worker.cjs +1 -1
- package/dist/chunks/FileFolder-BmCXp_bX.cjs +1 -0
- package/dist/chunks/TwentyStandardApplicationUniversalIdentifier-Cm4vo0D3.cjs +1 -0
- package/dist/chunks/api-key-stdin-hint.constant-BTPNgm3m.cjs +1 -0
- package/dist/chunks/build-source-manifest-DcRIFlDb.cjs +2 -0
- package/dist/chunks/build-source-snapshot-C0UVzVTo.cjs +897 -0
- package/dist/chunks/{cli-version.constant-CXTtLO6W.cjs → cli-version.constant-jomCqLLP.cjs} +1 -1
- package/dist/chunks/code-step-file-suffix.constant-B6vqrfcU.cjs +1 -0
- package/dist/chunks/collect-translatable-strings-AWv41yIv.cjs +1 -0
- package/dist/chunks/collect-watch-inputs-DfWAkX1r.cjs +1 -0
- package/dist/chunks/compile-application-translations-Da3xWXl-.cjs +58 -0
- package/dist/chunks/convert-to-label-CI8cZyg_.cjs +1 -0
- package/dist/chunks/create-http-status-error-1VM7PoVZ.cjs +1 -0
- package/dist/chunks/create-metadata-client-oO0QvH6j.cjs +6 -0
- package/dist/chunks/create-pull-base-write-CQHTbtQP.cjs +1 -0
- package/dist/chunks/create-rest-client-CMUss3u-.cjs +1 -0
- package/dist/chunks/extract-manifest-from-file-DPDIhnyg.cjs +1 -0
- package/dist/chunks/extract-source-translations--J7rPcdh.cjs +1 -0
- package/dist/chunks/{fetch-metadata-inspection-BBWnhrft.cjs → fetch-metadata-inspection-LB3RA2cV.cjs} +1 -1
- package/dist/chunks/{fetch-signed-in-identity-C-qQ3udY.cjs → fetch-signed-in-identity-GVHuJKXy.cjs} +1 -1
- package/dist/chunks/fetch-workspace-or-throw-CGlqJOIG.cjs +1 -0
- package/dist/chunks/format-body-DlJyFFVS.cjs +1 -0
- package/dist/chunks/format-data-value-D_1TNU-r.cjs +1 -0
- package/dist/chunks/format-metadata-fields-DmRandPR.cjs +2 -0
- package/dist/chunks/format-metadata-owner-ByoX2plp.cjs +1 -0
- package/dist/chunks/format-progress-line-BoU0vHbc.cjs +1 -0
- package/dist/chunks/formatBytes-CUW21d2t.cjs +1 -0
- package/dist/chunks/generate-application-client-Dlp_O7qk.cjs +1 -0
- package/dist/chunks/{get-client-generation-skip-reason-DTIfgD_s.cjs → get-client-generation-skip-reason-CkpxXdRw.cjs} +1 -1
- package/dist/chunks/get-field-universal-identifier.util-d1401qKf.cjs +1 -0
- package/dist/chunks/get-function-input-schema-ClPQURr8.cjs +1 -0
- package/dist/chunks/get-local-status-BbRv0a22.cjs +1 -0
- package/dist/chunks/{global-flags.constant-EQCqyBC2.cjs → global-flags.constant-DooTv_Uq.cjs} +1 -1
- package/dist/chunks/is-access-token-expiring-BvJhEqtV.cjs +1 -0
- package/dist/chunks/is-application-not-found-error-CQ7k4hGU.cjs +1 -0
- package/dist/chunks/is-exported-manifest-DRPkDqYh.cjs +1 -0
- package/dist/chunks/is-locale-catalog-T4W5NhnW.cjs +1 -0
- package/dist/chunks/{AppLocales-CcZVcJIa-BjjIbbsZ.cjs → is-supported-locale-DUMI9QQ2.cjs} +1 -1
- package/dist/chunks/is-valid-package-name-Bv-sKHlR.cjs +1 -0
- package/dist/chunks/isNonEmptyArray-v52xg4Xj.cjs +1 -0
- package/dist/chunks/isPlainObject-fJEJm71P.cjs +1 -0
- package/dist/chunks/isValidUniversalIdentifier-DymFerYs.cjs +1 -0
- package/dist/chunks/kebab-case-B3kq7ANN.cjs +1 -0
- package/dist/chunks/locale-catalog-format-BD4XDEnl.cjs +1 -0
- package/dist/chunks/{metadata-page.constant-qMNOJLjJ.cjs → metadata-page.constant-Bt8myt0X.cjs} +1 -1
- package/dist/chunks/parse-api-url-B5c0Gh_n.cjs +1 -0
- package/dist/chunks/parse-app-export-CmFKsj2e.cjs +1 -0
- package/dist/chunks/parse-extraction-locale-B0apfizg.cjs +1 -0
- package/dist/chunks/parse-graphql-response-D3WfxVAu.cjs +1 -0
- package/dist/chunks/parse-json-input-DxGKbeED.cjs +1 -0
- package/dist/chunks/print-typescript-value-BjYn0ZFT.cjs +3 -0
- package/dist/chunks/pull-minimum-sdk-version.constant-0v8yv93F.cjs +6 -0
- package/dist/chunks/pull-source-C6LiDOqa.cjs +1 -0
- package/dist/chunks/read-app-identity-DyMNXRhZ.cjs +1 -0
- package/dist/chunks/read-application-identifier-hrv6xLTN.cjs +1 -0
- package/dist/chunks/read-application-identity-CyVawH0m.cjs +1 -0
- package/dist/chunks/read-bounded-body-BekYzK8S.cjs +1 -0
- package/dist/chunks/read-config-6GnzcpJm.cjs +1 -0
- package/dist/chunks/read-infer-deletion-option-Br1FJCfZ.cjs +8 -0
- package/dist/chunks/read-json-object-BMftwGZ5.cjs +1 -0
- package/dist/chunks/read-local-container-DsjjrgOn.cjs +1 -0
- package/dist/chunks/read-snapshot-file-D-s1kuCP.cjs +1 -0
- package/dist/chunks/{read-source-identity-CDv42KDj.cjs → read-source-identity-CXzcnYKk.cjs} +1 -1
- package/dist/chunks/record-pull-base-BZ6YgdEp.cjs +1 -0
- package/dist/chunks/{record-typecheck-config-inputs-DV3LeWK2.cjs → record-typecheck-config-inputs-U2RUjjp9.cjs} +1 -1
- package/dist/chunks/request-oauth-tokens-B4JHBmVU.cjs +1 -0
- package/dist/chunks/resolve-app-project-B4IjfcM-.cjs +1 -0
- package/dist/chunks/resolve-command-target-CwC9p_NB.cjs +1 -0
- package/dist/chunks/resolve-inside-sdk-DA7EQpf0.cjs +1 -0
- package/dist/chunks/resolve-metadata-object-CN7eAeDR.cjs +1 -0
- package/dist/chunks/resolve-project-typescript-DO4LrLr-.cjs +1 -0
- package/dist/chunks/resolve-request-url-BzW185lE.cjs +1 -0
- package/dist/chunks/resolve-source-sdk-C4Hu045V.cjs +1 -0
- package/dist/chunks/run-api-graphql-command-x0ynMacW.cjs +1 -0
- package/dist/chunks/run-api-rest-command-p5A2Fb05.cjs +1 -0
- package/dist/chunks/{run-app-add-command-o4tAyrDF.cjs → run-app-add-command-oHIkbKe1.cjs} +20 -18
- package/dist/chunks/{run-app-apply-command-CnVUshfx.cjs → run-app-apply-command-Ww_5FeZf.cjs} +2 -2
- package/dist/chunks/run-app-build-command-DpgKL1XF.cjs +2 -0
- package/dist/chunks/{run-app-dev-command-Ml0sKfeA.cjs → run-app-dev-command-DVOvwZdx.cjs} +1 -1
- package/dist/chunks/run-app-exec-command-Cly1JhuE.cjs +3 -0
- package/dist/chunks/run-app-generate-client-command-CVwOI5-n.cjs +2 -0
- package/dist/chunks/{run-app-init-command-XjO6SJpP.cjs → run-app-init-command-DdSdOmo5.cjs} +1 -1
- package/dist/chunks/run-app-install-command-zs9OY8uz.cjs +1 -0
- package/dist/chunks/{run-app-logs-command-IlwI3B9r.cjs → run-app-logs-command-CnW8I5a0.cjs} +3 -3
- package/dist/chunks/run-app-operation-CBy4X1VK.cjs +1 -0
- package/dist/chunks/{run-app-plan-command-1we4YlYM.cjs → run-app-plan-command-Cuz9v8Db.cjs} +1 -1
- package/dist/chunks/run-app-publish-command-DACw_WFa.cjs +1 -0
- package/dist/chunks/run-app-pull-command-CNbC_iZs.cjs +6 -0
- package/dist/chunks/run-app-translations-extract-command-BZEJppmw.cjs +2 -0
- package/dist/chunks/{run-app-typecheck-command-C3z8IIuQ.cjs → run-app-typecheck-command-BHFWyv_1.cjs} +1 -1
- package/dist/chunks/{run-app-uninstall-command-BjqZ4eN7.cjs → run-app-uninstall-command-DvBgm_4t.cjs} +1 -1
- package/dist/chunks/run-auth-login-command-DmnIxGG3.cjs +1 -0
- package/dist/chunks/{run-auth-logout-command-BJj49Lps.cjs → run-auth-logout-command-BMpq04ml.cjs} +1 -1
- package/dist/chunks/run-auth-status-command-2Xrg0AoZ.cjs +1 -0
- package/dist/chunks/{run-cli-yIhKkhUO.cjs → run-cli-BoGVmb1j.cjs} +8 -8
- package/dist/chunks/run-commands-command-DZkaWdQm.cjs +2 -0
- package/dist/chunks/{run-data-get-command-J8vwRqXK.cjs → run-data-get-command-BE6hUvWQ.cjs} +1 -1
- package/dist/chunks/run-data-list-command-CVubWAFh.cjs +1 -0
- package/dist/chunks/{run-doctor-command-CGAJlZ8M.cjs → run-doctor-command-OCHUN5AA.cjs} +2 -2
- package/dist/chunks/run-local-logs-command-CkZln0BN.cjs +1 -0
- package/dist/chunks/run-local-reset-command-B5UrKkAf.cjs +2 -0
- package/dist/chunks/run-local-start-command-Cp8nzjc6.cjs +1 -0
- package/dist/chunks/{run-local-status-command-JakSWQH2.cjs → run-local-status-command-E3cpSfTu.cjs} +1 -1
- package/dist/chunks/run-local-stop-command-Cr3oAzQ9.cjs +1 -0
- package/dist/chunks/run-local-upgrade-command-Ch5AvQjt.cjs +1 -0
- package/dist/chunks/run-metadata-field-describe-command-Bof9tzyG.cjs +3 -0
- package/dist/chunks/{run-metadata-field-list-command-Dq8JWMNS.cjs → run-metadata-field-list-command-C2AxyLJH.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-describe-command-BeyWRTEV.cjs → run-metadata-object-describe-command-CEh8rVCs.cjs} +1 -1
- package/dist/chunks/{run-metadata-object-list-command-CSCOKM3y.cjs → run-metadata-object-list-command-4qWTuJlm.cjs} +1 -1
- package/dist/chunks/run-open-command-BWRHlLfS.cjs +1 -0
- package/dist/chunks/{run-remote-list-command-BSOS3z6p.cjs → run-remote-list-command-C2tZHRAT.cjs} +1 -1
- package/dist/chunks/{run-remote-remove-command-B485SDzS.cjs → run-remote-remove-command-Dc0XJydM.cjs} +1 -1
- package/dist/chunks/{run-remote-rename-command-6uSnN2c_.cjs → run-remote-rename-command-3AzuENYT.cjs} +1 -1
- package/dist/chunks/{run-remote-use-command-DyUpoMX7.cjs → run-remote-use-command-BKVP65QI.cjs} +1 -1
- package/dist/chunks/{run-version-command-BvTg8tp9.cjs → run-version-command-BZ_R0Tss.cjs} +1 -1
- package/dist/chunks/select-target-Ck9mdMLQ.cjs +1 -0
- package/dist/chunks/sign-in-to-remote-again-DN6ov5o2.cjs +1 -0
- package/dist/chunks/sign-in-with-browser-DXd6hkJk.cjs +124 -0
- package/dist/chunks/standard-object-fields.constant-2yLND0Cg.cjs +1 -0
- package/dist/chunks/to-public-target-BltDNpJN.cjs +1 -0
- package/dist/chunks/to-worker-output-diagnostics-DlISjOqp.cjs +2 -0
- package/dist/chunks/{typecheck-application-rMuH9bYM.cjs → typecheck-application-8A504oUF.cjs} +1 -1
- package/dist/chunks/{update-config-D0Y-TAiW.cjs → update-config-Bk0qgzgZ.cjs} +1 -1
- package/dist/chunks/wait-for-local-environment-BmOFeICJ.cjs +1 -0
- package/dist/chunks/write-config-atomically-B6XQJ6XK.cjs +1 -0
- package/dist/cli.cjs +1 -1
- package/docs/commands.md +1 -1
- package/package.json +2 -2
- package/src/app/pull/README.md +6 -2
- package/src/app/source/README.md +1 -1
- package/dist/chunks/application-xzYK_VZV.cjs +0 -5
- package/dist/chunks/build-source-manifest-CWg4z3sT.cjs +0 -2
- package/dist/chunks/build-source-snapshot-CNIkoxN6.cjs +0 -26
- package/dist/chunks/collect-translatable-strings-Drwh6Av8.cjs +0 -1
- package/dist/chunks/collect-watch-inputs-Dn6g1cNu.cjs +0 -1
- package/dist/chunks/compile-application-translations-BS7FQ7zb.cjs +0 -870
- package/dist/chunks/constants-BVRtHFho-CGmbRR4M.cjs +0 -55
- package/dist/chunks/convert-to-label-CbLHl7Lv.cjs +0 -1
- package/dist/chunks/create-http-status-error-DGznRpsu.cjs +0 -1
- package/dist/chunks/create-metadata-client-CZSrLZOR.cjs +0 -6
- package/dist/chunks/create-pull-base-write-BxCvm_m8.cjs +0 -1
- package/dist/chunks/create-rest-client-8cQWvHwx.cjs +0 -1
- package/dist/chunks/extract-manifest-from-file-CAbBympP.cjs +0 -1
- package/dist/chunks/extract-source-translations-BUR0Rc6f.cjs +0 -1
- package/dist/chunks/fetch-workspace-or-throw-J79slzbc.cjs +0 -1
- package/dist/chunks/format-body-C7fmVDAZ.cjs +0 -1
- package/dist/chunks/format-data-value-fs3RrhMv.cjs +0 -1
- package/dist/chunks/format-metadata-fields-9yjjSDbM.cjs +0 -2
- package/dist/chunks/format-metadata-owner-BeV6-_Th.cjs +0 -1
- package/dist/chunks/format-progress-line-Cj65-DU5.cjs +0 -1
- package/dist/chunks/generate-application-client-B4yPRWWv.cjs +0 -1
- package/dist/chunks/get-function-input-schema-GNk3NRLJ-DscBUsKy.cjs +0 -1
- package/dist/chunks/get-local-status-D52rgA2e.cjs +0 -1
- package/dist/chunks/get-system-view-universal-identifier.util-Bq8_ovT3-CXfImcpX.cjs +0 -1
- package/dist/chunks/is-access-token-expiring-DYNdux1L.cjs +0 -1
- package/dist/chunks/is-application-not-found-error-AJka4bNR.cjs +0 -1
- package/dist/chunks/is-exported-manifest-Bj0l5om_.cjs +0 -1
- package/dist/chunks/is-locale-catalog-D0wFrW8f.cjs +0 -1
- package/dist/chunks/is-supported-locale-C33Of85N.cjs +0 -1
- package/dist/chunks/is-valid-package-name-DvFQq5au.cjs +0 -1
- package/dist/chunks/kebab-case-D0usAzG-.cjs +0 -1
- package/dist/chunks/locale-catalog-format-D2tDWYnc.cjs +0 -20
- package/dist/chunks/metadata-BYjbOpo6.cjs +0 -1
- package/dist/chunks/parse-api-url-jHzjLWX1.cjs +0 -1
- package/dist/chunks/parse-app-export-hG8ubXTU.cjs +0 -1
- package/dist/chunks/parse-extraction-locale-h0bmy8hf.cjs +0 -1
- package/dist/chunks/parse-graphql-response-C2la3nev.cjs +0 -1
- package/dist/chunks/parse-json-input-DPZY9jQQ.cjs +0 -1
- package/dist/chunks/print-typescript-value-BsjFUceV.cjs +0 -3
- package/dist/chunks/pull-minimum-sdk-version.constant-EdauMnSl.cjs +0 -6
- package/dist/chunks/pull-source-DeVIgzVE.cjs +0 -1
- package/dist/chunks/read-app-identity-D6Cp_N-A.cjs +0 -1
- package/dist/chunks/read-application-identifier-CR_a7oUp.cjs +0 -1
- package/dist/chunks/read-application-identity-CbZIanaH.cjs +0 -1
- package/dist/chunks/read-bounded-body-BHRu5J2Y.cjs +0 -1
- package/dist/chunks/read-config-BwRvqqhW.cjs +0 -1
- package/dist/chunks/read-infer-deletion-option-BQJz4Jqq.cjs +0 -8
- package/dist/chunks/read-json-object-BP1Q_W12.cjs +0 -1
- package/dist/chunks/read-local-container-CidDipKg.cjs +0 -1
- package/dist/chunks/read-snapshot-file-BPLzlSH_.cjs +0 -1
- package/dist/chunks/record-pull-base-BiVlDaBW.cjs +0 -1
- package/dist/chunks/request-oauth-tokens-DJatgiZE.cjs +0 -1
- package/dist/chunks/resolve-app-project-DrRcP_gL.cjs +0 -1
- package/dist/chunks/resolve-command-target-Czttq45g.cjs +0 -1
- package/dist/chunks/resolve-inside-sdk-Ca2uRzQW.cjs +0 -1
- package/dist/chunks/resolve-metadata-object-xK90Ursp.cjs +0 -1
- package/dist/chunks/resolve-project-typescript-BxIGFhr6.cjs +0 -1
- package/dist/chunks/resolve-request-url-I1EOOumy.cjs +0 -1
- package/dist/chunks/resolve-source-sdk-DQnc0tSq.cjs +0 -1
- package/dist/chunks/run-api-graphql-command-CmGTtFbD.cjs +0 -1
- package/dist/chunks/run-api-rest-command-CnYQWgNv.cjs +0 -1
- package/dist/chunks/run-app-build-command-hjBbY-k_.cjs +0 -2
- package/dist/chunks/run-app-exec-command-DMpczF0l.cjs +0 -3
- package/dist/chunks/run-app-generate-client-command-D6c8FnpJ.cjs +0 -2
- package/dist/chunks/run-app-install-command-DlXSkmZV.cjs +0 -1
- package/dist/chunks/run-app-operation-kyBLbhLr.cjs +0 -1
- package/dist/chunks/run-app-publish-command-cPw8ZxuU.cjs +0 -1
- package/dist/chunks/run-app-pull-command-Douf4yQq.cjs +0 -6
- package/dist/chunks/run-app-translations-extract-command-BIHvH8MO.cjs +0 -2
- package/dist/chunks/run-auth-login-command-7E6YFU2x.cjs +0 -1
- package/dist/chunks/run-auth-status-command-CEKg6671.cjs +0 -1
- package/dist/chunks/run-commands-command-3PU3OrJ-.cjs +0 -2
- package/dist/chunks/run-data-list-command-B4mffvAw.cjs +0 -1
- package/dist/chunks/run-local-logs-command-DYNNZaAA.cjs +0 -1
- package/dist/chunks/run-local-reset-command-txQMpX4Y.cjs +0 -2
- package/dist/chunks/run-local-start-command-DMqvXuI8.cjs +0 -1
- package/dist/chunks/run-local-stop-command-CKzb8k8I.cjs +0 -1
- package/dist/chunks/run-local-upgrade-command-BxhahQIt.cjs +0 -1
- package/dist/chunks/run-metadata-field-describe-command-C8NDfCQv.cjs +0 -3
- package/dist/chunks/run-open-command-DWajZfpf.cjs +0 -1
- package/dist/chunks/select-target-g9eHGzvk.cjs +0 -1
- package/dist/chunks/sign-in-to-remote-again-m84b1K-f.cjs +0 -1
- package/dist/chunks/sign-in-with-browser-PLGwMTwd.cjs +0 -124
- package/dist/chunks/to-public-target-D00so1uO.cjs +0 -1
- package/dist/chunks/to-worker-output-diagnostics-BrOMgkAW.cjs +0 -2
- package/dist/chunks/utils-BZkF-gp5-DunD-YmD.cjs +0 -11
- package/dist/chunks/wait-for-local-environment-B1bVbQGm.cjs +0 -1
- package/dist/chunks/write-config-atomically-BheBtCVO.cjs +0 -1
- /package/dist/chunks/{capitalize-DFPVt1IM-CF4z3TZK.cjs → capitalize-CF4z3TZK.cjs} +0 -0
- /package/dist/chunks/{isDefined-Dtu5EYqP-CJctgvfE.cjs → isDefined-CJctgvfE.cjs} +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return`2.
|
|
1
|
+
Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return`2.58.0`}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return`.code.ts`}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-mLOUI7ql.cjs");let t=require("node:fs/promises"),n=require("typescript");n=e.r(n);var r=(e,t)=>`${e}.${t}`,i={objectMetadata:[`labelSingular`,`labelPlural`,`description`],fieldMetadata:[`label`,`description`],view:[`name`],viewFieldGroup:[`name`],pageLayout:[`name`],pageLayoutTab:[`title`],pageLayoutWidget:[`title`],commandMenuItem:[`label`,`shortLabel`],navigationMenuItem:[`name`],timelineActivityType:[`label`],settingsMenuItem:[`title`],skill:[`label`,`description`]},a=(e,t)=>t!==void 0&&t.length>0?`${t}${e}`:e,o=e=>e.replace(/\s+/g,` `).trim(),s=new Set([`t`,`msg`]),c=`Trans`,l=e=>{if(e!==void 0&&(n.isStringLiteral(e)||n.isNoSubstitutionTemplateLiteral(e)))return e.text},u=e=>{if(e===void 0)return;let t=l(e);if(t!==void 0)return{message:t};if(!n.isObjectLiteralExpression(e))return;let r=e.properties.find(e=>e.name!==void 0&&n.isIdentifier(e.name)&&e.name.text===`message`);if(r===void 0||!n.isPropertyAssignment(r))return;let i=l(r.initializer);if(i===void 0)return;let a=e.properties.find(e=>e.name!==void 0&&n.isIdentifier(e.name)&&e.name.text===`context`),o=a!==void 0&&n.isPropertyAssignment(a)?l(a.initializer):void 0;return o===void 0?{message:i}:{message:i,context:o}},d=(e,t)=>{let r=e.attributes.properties.find(e=>n.isJsxAttribute(e)&&e.name.getText()===t);if(r===void 0||!n.isJsxAttribute(r))return;let i=r.initializer;if(i!==void 0){if(n.isStringLiteral(i))return i.text;if(n.isJsxExpression(i))return l(i.expression)}},f=e=>{let t=e.children;if(t.some(e=>n.isJsxExpression(e)||n.isJsxElement(e)||n.isJsxSelfClosingElement(e)))return;let r=o(t.filter(e=>n.isJsxText(e)).map(e=>e.getText()).join(``));return r.length>0?r:void 0},p=e=>{let t=new Map;for(let n of e)t.set(a(n.message,n.context),n);return[...t.values()]},m=async e=>{if(e.length===0)return[];let r=[];for(let i=0;i<e.length;i++){let a;try{a=await(0,t.readFile)(e[i],`utf8`)}catch{continue}let o=n.createSourceFile(`front-component-${i}.tsx`,a,n.ScriptTarget.Latest,!0,n.ScriptKind.TSX),l=e=>{if(n.isCallExpression(e)){let t=e.expression;if(n.isIdentifier(t)&&s.has(t.text)){let t=u(e.arguments[0]);t!==void 0&&r.push(t)}return}if(n.isJsxSelfClosingElement(e)){if(e.tagName.getText()!==c)return;let t=d(e,`message`);if(t!==void 0&&t.length>0){let n=d(e,`context`);r.push(n===void 0?{message:t}:{message:t,context:n})}return}if(n.isJsxElement(e)){let t=e.openingElement;if(t.tagName.getText()!==c)return;let n=d(t,`message`)??f(e);if(n!==void 0&&n.length>0){let e=d(t,`context`);r.push(e===void 0?{message:n}:{message:n,context:e})}}},p=e=>{l(e),n.forEachChild(e,p)};n.forEachChild(o,p)}return p(r)},h={objectMetadata:`objects`,fieldMetadata:`fields`,view:`views`,pageLayout:`pageLayouts`,pageLayoutTab:`pageLayoutTabs`,pageLayoutWidget:`pageLayoutWidgets`,commandMenuItem:`commandMenuItems`,navigationMenuItem:`navigationMenuItems`,timelineActivityType:`timelineActivityTypes`,settingsMenuItem:`settingsMenuItems`},g=e=>{let t=new Map,n=(e,n)=>{if(!(typeof e!=`object`||!e))for(let a of i[n]){let i=e[a];if(typeof i!=`string`||i.length===0)continue;let o=r(n,a);t.set(JSON.stringify([o,i]),{message:i,context:o})}};for(let[t,r]of Object.entries(h)){let i=e[r];if(Array.isArray(i))for(let e of i)n(e,t)}for(let t of e.objects??[])for(let e of t.fields??[])n(e,`fieldMetadata`);for(let t of e.pageLayouts??[])for(let e of t.tabs??[]){n(e,`pageLayoutTab`);for(let t of e.widgets??[])n(t,`pageLayoutWidget`)}for(let t of e.pageLayoutTabs??[])for(let e of t.widgets??[])n(e,`pageLayoutWidget`);return[...t.values()]};Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return m}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return a}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return g}});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const e=require("./rolldown-runtime-mLOUI7ql.cjs"),t=require("./isDefined-CJctgvfE.cjs"),n=require("./read-watch-input-stamp-BxeOb0vI.cjs");let r=require("node:async_hooks"),i=require("node:path"),a=require("node:fs");var o=e.n({collectWatchInputs:()=>c,getWatchInputPlugins:()=>p,recordWatchFile:()=>d,recordWatchProbe:()=>f}),s=new r.AsyncLocalStorage,c=async e=>{let t=new Map,n=new Map,r=await s.run({inputs:t,probes:n},e),a=new Set([...t.values()].filter(e=>e.kind===`file`&&e.stamp!==null).map(e=>(0,i.dirname)(e.path)));for(let[e,r]of n)a.has((0,i.dirname)(r.path))&&!t.has(e)&&t.set(e,r);return{result:r,watchInputs:[...t.values()]}},l=(e,t,r)=>{let o;try{o=(0,a.realpathSync)(t)}catch{o=(0,i.resolve)(t)}if(n.n(o))return;let s=`${r}:${o}`;if(!e.has(s)){let t={path:o,kind:r};e.set(s,{...t,stamp:n.t(t)})}return o},u=(e,t)=>{let n=(0,i.dirname)(t);for(;(0,i.dirname)(n)!==n;){try{if((0,a.statSync)(n).isDirectory()){l(e,n,`directory`);return}}catch{}n=(0,i.dirname)(n)}},d=e=>{let n=s.getStore();if(!t.t(n))return;let r=l(n.inputs,e,`file`);t.t(r)&&u(n.inputs,r)},f=e=>{let n=s.getStore();t.t(n)&&l(n.probes,e,`file`)},p=()=>{let e=s.getStore();if(!t.t(e))return[];let{inputs:n}=e;return[{name:`collect-watch-inputs`,setup:e=>{e.onLoad({filter:/.*/,namespace:`file`},({path:e})=>{let r=l(n,e,`file`);t.t(r)&&u(n,r)}),e.onResolve({filter:/^\./},({path:e,resolveDir:t})=>{t.length>0&&u(n,(0,i.resolve)(t,e))})}}]};Object.defineProperty(exports,"i",{enumerable:!0,get:function(){return f}}),Object.defineProperty(exports,"n",{enumerable:!0,get:function(){return p}}),Object.defineProperty(exports,"r",{enumerable:!0,get:function(){return d}}),Object.defineProperty(exports,"t",{enumerable:!0,get:function(){return o}});
|