@box/metadata-template-editor 2.3.45 → 2.4.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/chunks/metadata-field-list.js +1 -1
- package/dist/chunks/metadata-template-editor-form.js +1 -1
- package/dist/chunks/metadata-template-editor.js +1 -1
- package/dist/chunks/taxonomy-field-configuration.js +1 -1
- package/dist/chunks/taxonomy-field-configurator-initial-state.js +1 -1
- package/dist/chunks/taxonomy-selector.js +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/useTaxonomySelect.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/utils.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/context/field-configurator-context.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/context/taxonomy-options-context.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/hooks/useFieldConfiguratorBehavior.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/hooks/useTaxonomyFetch.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/index.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/messages/taxonomy-messages.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/metadata-field-configurator.js +1 -1
- package/dist/esm/lib/components/metadata-field-configurator/utils.js +1 -1
- package/dist/esm/lib/messages.js +1 -1
- package/dist/esm/lib/utils/taxonomy-identity.js +1 -0
- package/dist/esm/lib/utils/template-type-conversion/convertLocalConfiguratorToTemplateField.js +1 -1
- package/dist/i18n/bn-IN.js +2 -0
- package/dist/i18n/da-DK.js +2 -0
- package/dist/i18n/de-DE.js +2 -0
- package/dist/i18n/en-US.js +4 -112
- package/dist/i18n/es-419.js +2 -0
- package/dist/i18n/es-ES.js +2 -0
- package/dist/i18n/fi-FI.js +2 -0
- package/dist/i18n/fr-CA.js +2 -0
- package/dist/i18n/fr-FR.js +2 -0
- package/dist/i18n/hi-IN.js +2 -0
- package/dist/i18n/it-IT.js +2 -0
- package/dist/i18n/ko-KR.js +2 -0
- package/dist/i18n/nb-NO.js +2 -0
- package/dist/i18n/nl-NL.js +2 -0
- package/dist/i18n/pl-PL.js +2 -0
- package/dist/i18n/pt-BR.js +2 -0
- package/dist/i18n/ru-RU.js +2 -0
- package/dist/i18n/sv-SE.js +2 -0
- package/dist/i18n/tr-TR.js +2 -0
- package/dist/i18n/zh-CN.js +2 -0
- package/dist/i18n/zh-TW.js +2 -0
- package/dist/styles/metadata-template-editor-form.css +1 -1
- package/dist/styles/taxonomy-field-configuration.css +1 -1
- package/dist/styles/taxonomy-selector.css +1 -1
- package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/useTaxonomySelect.d.ts +1 -1
- package/dist/types/lib/components/metadata-field-configurator/components/type-specific-configuration/taxonomy/utils.d.ts +1 -0
- package/dist/types/lib/components/metadata-field-configurator/context/field-configurator-context.d.ts +5 -0
- package/dist/types/lib/components/metadata-field-configurator/context/taxonomy-options-context.d.ts +19 -2
- package/dist/types/lib/components/metadata-field-configurator/hooks/useFieldConfiguratorBehavior.d.ts +2 -7
- package/dist/types/lib/components/metadata-field-configurator/hooks/useTaxonomyFetch.d.ts +13 -8
- package/dist/types/lib/components/metadata-field-configurator/messages/taxonomy-messages.d.ts +15 -0
- package/dist/types/lib/components/metadata-field-configurator/metadata-field-configurator.d.ts +24 -56
- package/dist/types/lib/components/metadata-field-list/metadata-field-list.d.ts +8 -1
- package/dist/types/lib/components/metadata-template-editor-form/metadata-template-editor-form.d.ts +3 -1
- package/dist/types/lib/messages.d.ts +15 -0
- package/dist/types/lib/metadata-template-editor.d.ts +32 -1
- package/dist/types/lib/types.d.ts +29 -0
- package/dist/types/lib/utils/taxonomy-identity.d.ts +12 -0
- package/package.json +1 -1
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { TaxonomyOption } from '../types';
|
|
2
|
+
/**
|
|
3
|
+
* Stable identity for a taxonomy is `namespace` + `taxonomyKey`, never `id`.
|
|
4
|
+
* Two catalogues can reuse the same key (or even the same id) across namespaces.
|
|
5
|
+
*
|
|
6
|
+
* Also used as a React list key and as the stamped `id` on by-key lookup results.
|
|
7
|
+
*/
|
|
8
|
+
export declare const taxonomyCacheKey: (namespace: string, taxonomyKey: string) => string;
|
|
9
|
+
export declare const isSameTaxonomyIdentity: (taxonomy: Pick<TaxonomyOption, "namespace" | "taxonomyKey">, identity: Pick<TaxonomyOption, "namespace" | "taxonomyKey">) => boolean;
|
|
10
|
+
export declare const findTaxonomyOption: (options: TaxonomyOption[], identity: Pick<TaxonomyOption, "namespace" | "taxonomyKey">) => TaxonomyOption | undefined;
|
|
11
|
+
/** Catalogue list rows often omit levels; those still need a by-key lookup. */
|
|
12
|
+
export declare const hasHydratedLevels: (taxonomy: Pick<TaxonomyOption, "levels"> | undefined) => boolean;
|