camox 0.76.1 → 0.77.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/core/lib/artifactTheme.js +43 -6
- package/dist/features/studio/components/LocalePicker.js +518 -134
- package/dist/lib/locale-path.js +2 -2
- package/dist/lib/queries.js +5 -1
- package/dist/package.js +1 -1
- package/dist/studio.css +1 -1
- package/package.json +4 -4
- package/skills/camox/references/artifacts.md +7 -0
package/dist/lib/locale-path.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { LOCALE_HEADER } from "@camox/api-contract/drafts";
|
|
2
|
-
import { localizedPath, parseLocalePath } from "@camox/api-contract/locales";
|
|
2
|
+
import { localePrefix, localizedPath, parseLocalePath } from "@camox/api-contract/locales";
|
|
3
3
|
|
|
4
4
|
//#region src/lib/locale-path.ts
|
|
5
5
|
/**
|
|
@@ -24,4 +24,4 @@ function localeHeaders(locale) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
//#endregion
|
|
27
|
-
export { UNNAMED_DEFAULT_LOCALE, localeHeaders, localizedPath, parseLocalePath };
|
|
27
|
+
export { UNNAMED_DEFAULT_LOCALE, localeHeaders, localePrefix, localizedPath, parseLocalePath };
|
package/dist/lib/queries.js
CHANGED
|
@@ -69,10 +69,14 @@ const specialistMutations = {
|
|
|
69
69
|
applyFix: () => getOrpc().specialists.applyFix.mutationOptions(),
|
|
70
70
|
dismissFinding: () => getOrpc().specialists.dismissFinding.mutationOptions()
|
|
71
71
|
};
|
|
72
|
-
/**
|
|
72
|
+
/**
|
|
73
|
+
* Adding and removing locales, and making one the default: content writes, so on Live they start
|
|
74
|
+
* a draft (ADR 0015).
|
|
75
|
+
*/
|
|
73
76
|
const localeMutations = {
|
|
74
77
|
add: () => getOrpc().locales.add.mutationOptions(),
|
|
75
78
|
remove: () => getOrpc().locales.remove.mutationOptions(),
|
|
79
|
+
setDefault: () => getOrpc().locales.setDefault.mutationOptions(),
|
|
76
80
|
/** Adds a page or record deleted from the locale viewed back to it. */
|
|
77
81
|
addBack: () => getOrpc().locales.addBack.mutationOptions()
|
|
78
82
|
};
|
package/dist/package.js
CHANGED