@strapi/i18n 0.0.0-experimental.a65a85fdea97faae8679d3ffc5f9d79af61abd26 → 0.0.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/README.md +1 -17
- package/package.json +4 -83
- package/dist/_chunks/SettingsPage-B73NO_8-.js +0 -585
- package/dist/_chunks/SettingsPage-B73NO_8-.js.map +0 -1
- package/dist/_chunks/SettingsPage-pvdzbKEM.mjs +0 -565
- package/dist/_chunks/SettingsPage-pvdzbKEM.mjs.map +0 -1
- package/dist/_chunks/de-9eCAqqrB.mjs +0 -66
- package/dist/_chunks/de-9eCAqqrB.mjs.map +0 -1
- package/dist/_chunks/de-DtWiGdHl.js +0 -66
- package/dist/_chunks/de-DtWiGdHl.js.map +0 -1
- package/dist/_chunks/dk-2qBjxt-P.mjs +0 -66
- package/dist/_chunks/dk-2qBjxt-P.mjs.map +0 -1
- package/dist/_chunks/dk-D8C-casx.js +0 -66
- package/dist/_chunks/dk-D8C-casx.js.map +0 -1
- package/dist/_chunks/en-BuBc6LKZ.js +0 -69
- package/dist/_chunks/en-BuBc6LKZ.js.map +0 -1
- package/dist/_chunks/en-CnrTsjWS.mjs +0 -69
- package/dist/_chunks/en-CnrTsjWS.mjs.map +0 -1
- package/dist/_chunks/es-DS-XFGSw.js +0 -66
- package/dist/_chunks/es-DS-XFGSw.js.map +0 -1
- package/dist/_chunks/es-DlmMVaBG.mjs +0 -66
- package/dist/_chunks/es-DlmMVaBG.mjs.map +0 -1
- package/dist/_chunks/fr-3S6ke71d.mjs +0 -66
- package/dist/_chunks/fr-3S6ke71d.mjs.map +0 -1
- package/dist/_chunks/fr-BTjekDpq.js +0 -66
- package/dist/_chunks/fr-BTjekDpq.js.map +0 -1
- package/dist/_chunks/index-kcYwoCdE.js +0 -1082
- package/dist/_chunks/index-kcYwoCdE.js.map +0 -1
- package/dist/_chunks/index-lckTPHiZ.mjs +0 -1058
- package/dist/_chunks/index-lckTPHiZ.mjs.map +0 -1
- package/dist/_chunks/ko-DmcGUBQ3.js +0 -65
- package/dist/_chunks/ko-DmcGUBQ3.js.map +0 -1
- package/dist/_chunks/ko-qTjQ8IMw.mjs +0 -65
- package/dist/_chunks/ko-qTjQ8IMw.mjs.map +0 -1
- package/dist/_chunks/pl-B67TSHqT.mjs +0 -66
- package/dist/_chunks/pl-B67TSHqT.mjs.map +0 -1
- package/dist/_chunks/pl-Cn5RYonZ.js +0 -66
- package/dist/_chunks/pl-Cn5RYonZ.js.map +0 -1
- package/dist/_chunks/ru-BMBgVL3s.js +0 -68
- package/dist/_chunks/ru-BMBgVL3s.js.map +0 -1
- package/dist/_chunks/ru-hagMa57T.mjs +0 -68
- package/dist/_chunks/ru-hagMa57T.mjs.map +0 -1
- package/dist/_chunks/tr-CarUU76c.js +0 -66
- package/dist/_chunks/tr-CarUU76c.js.map +0 -1
- package/dist/_chunks/tr-Dw_jmkG-.mjs +0 -66
- package/dist/_chunks/tr-Dw_jmkG-.mjs.map +0 -1
- package/dist/_chunks/zh-57YM4amO.mjs +0 -66
- package/dist/_chunks/zh-57YM4amO.mjs.map +0 -1
- package/dist/_chunks/zh-CukOviB0.js +0 -66
- package/dist/_chunks/zh-CukOviB0.js.map +0 -1
- package/dist/_chunks/zh-Hans-DSHIXAa3.js +0 -57
- package/dist/_chunks/zh-Hans-DSHIXAa3.js.map +0 -1
- package/dist/_chunks/zh-Hans-Dyc-aR-h.mjs +0 -57
- package/dist/_chunks/zh-Hans-Dyc-aR-h.mjs.map +0 -1
- package/dist/admin/index.js +0 -6
- package/dist/admin/index.js.map +0 -1
- package/dist/admin/index.mjs +0 -7
- package/dist/admin/index.mjs.map +0 -1
- package/dist/admin/src/components/CMHeaderActions.d.ts +0 -4
- package/dist/admin/src/components/CMListViewModalsAdditionalInformation.d.ts +0 -4
- package/dist/admin/src/components/CheckboxConfirmation.d.ts +0 -20
- package/dist/admin/src/components/CreateLocale.d.ts +0 -29
- package/dist/admin/src/components/DeleteLocale.d.ts +0 -5
- package/dist/admin/src/components/EditLocale.d.ts +0 -13
- package/dist/admin/src/components/Initializer.d.ts +0 -5
- package/dist/admin/src/components/LocaleListCell.d.ts +0 -9
- package/dist/admin/src/components/LocalePicker.d.ts +0 -2
- package/dist/admin/src/components/LocaleTable.d.ts +0 -11
- package/dist/admin/src/constants.d.ts +0 -22
- package/dist/admin/src/contentManagerHooks/editView.d.ts +0 -6
- package/dist/admin/src/contentManagerHooks/listView.d.ts +0 -22
- package/dist/admin/src/contentReleasesHooks/releaseDetailsView.d.ts +0 -36
- package/dist/admin/src/hooks/useI18n.d.ts +0 -16
- package/dist/admin/src/index.d.ts +0 -16
- package/dist/admin/src/middlewares/extendCTBAttributeInitialData.d.ts +0 -4
- package/dist/admin/src/middlewares/extendCTBInitialData.d.ts +0 -4
- package/dist/admin/src/middlewares/rbac-middleware.d.ts +0 -3
- package/dist/admin/src/pages/SettingsPage.d.ts +0 -3
- package/dist/admin/src/pluginId.d.ts +0 -1
- package/dist/admin/src/services/api.d.ts +0 -3
- package/dist/admin/src/services/locales.d.ts +0 -4
- package/dist/admin/src/types.d.ts +0 -9
- package/dist/admin/src/utils/baseQuery.d.ts +0 -20
- package/dist/admin/src/utils/fields.d.ts +0 -7
- package/dist/admin/src/utils/getTranslation.d.ts +0 -2
- package/dist/admin/src/utils/prefixPluginTranslations.d.ts +0 -3
- package/dist/admin/src/utils/schemas.d.ts +0 -24
- package/dist/admin/src/utils/strings.d.ts +0 -2
- package/dist/server/index.js +0 -3522
- package/dist/server/index.js.map +0 -1
- package/dist/server/index.mjs +0 -3503
- package/dist/server/index.mjs.map +0 -1
- package/dist/server/src/bootstrap.d.ts +0 -6
- package/dist/server/src/bootstrap.d.ts.map +0 -1
- package/dist/server/src/constants/index.d.ts +0 -15
- package/dist/server/src/constants/index.d.ts.map +0 -1
- package/dist/server/src/content-types/index.d.ts +0 -37
- package/dist/server/src/content-types/index.d.ts.map +0 -1
- package/dist/server/src/content-types/locale/index.d.ts +0 -35
- package/dist/server/src/content-types/locale/index.d.ts.map +0 -1
- package/dist/server/src/controllers/content-types.d.ts +0 -6
- package/dist/server/src/controllers/content-types.d.ts.map +0 -1
- package/dist/server/src/controllers/index.d.ts +0 -10
- package/dist/server/src/controllers/index.d.ts.map +0 -1
- package/dist/server/src/controllers/iso-locales.d.ts +0 -4
- package/dist/server/src/controllers/iso-locales.d.ts.map +0 -1
- package/dist/server/src/controllers/locales.d.ts +0 -4
- package/dist/server/src/controllers/locales.d.ts.map +0 -1
- package/dist/server/src/controllers/validate-locale-creation.d.ts +0 -4
- package/dist/server/src/controllers/validate-locale-creation.d.ts.map +0 -1
- package/dist/server/src/domain/locale.d.ts +0 -11
- package/dist/server/src/domain/locale.d.ts.map +0 -1
- package/dist/server/src/graphql.d.ts +0 -8
- package/dist/server/src/graphql.d.ts.map +0 -1
- package/dist/server/src/index.d.ts +0 -148
- package/dist/server/src/index.d.ts.map +0 -1
- package/dist/server/src/migrations/content-type/disable/index.d.ts +0 -3
- package/dist/server/src/migrations/content-type/disable/index.d.ts.map +0 -1
- package/dist/server/src/migrations/content-type/enable/index.d.ts +0 -3
- package/dist/server/src/migrations/content-type/enable/index.d.ts.map +0 -1
- package/dist/server/src/register.d.ts +0 -6
- package/dist/server/src/register.d.ts.map +0 -1
- package/dist/server/src/routes/admin.d.ts +0 -18
- package/dist/server/src/routes/admin.d.ts.map +0 -1
- package/dist/server/src/routes/content-api.d.ts +0 -10
- package/dist/server/src/routes/content-api.d.ts.map +0 -1
- package/dist/server/src/routes/index.d.ts +0 -28
- package/dist/server/src/routes/index.d.ts.map +0 -1
- package/dist/server/src/services/content-types.d.ts +0 -13
- package/dist/server/src/services/content-types.d.ts.map +0 -1
- package/dist/server/src/services/entity-service-decorator.d.ts +0 -29
- package/dist/server/src/services/entity-service-decorator.d.ts.map +0 -1
- package/dist/server/src/services/index.d.ts +0 -71
- package/dist/server/src/services/index.d.ts.map +0 -1
- package/dist/server/src/services/iso-locales.d.ts +0 -10
- package/dist/server/src/services/iso-locales.d.ts.map +0 -1
- package/dist/server/src/services/locales.d.ts +0 -17
- package/dist/server/src/services/locales.d.ts.map +0 -1
- package/dist/server/src/services/localizations.d.ts +0 -8
- package/dist/server/src/services/localizations.d.ts.map +0 -1
- package/dist/server/src/services/metrics.d.ts +0 -8
- package/dist/server/src/services/metrics.d.ts.map +0 -1
- package/dist/server/src/services/permissions/actions.d.ts +0 -16
- package/dist/server/src/services/permissions/actions.d.ts.map +0 -1
- package/dist/server/src/services/permissions/conditions.d.ts +0 -15
- package/dist/server/src/services/permissions/conditions.d.ts.map +0 -1
- package/dist/server/src/services/permissions/engine.d.ts +0 -6
- package/dist/server/src/services/permissions/engine.d.ts.map +0 -1
- package/dist/server/src/services/permissions/sections-builder.d.ts +0 -6
- package/dist/server/src/services/permissions/sections-builder.d.ts.map +0 -1
- package/dist/server/src/services/permissions.d.ts +0 -28
- package/dist/server/src/services/permissions.d.ts.map +0 -1
- package/dist/server/src/utils/index.d.ts +0 -43
- package/dist/server/src/utils/index.d.ts.map +0 -1
- package/dist/server/src/validation/content-types.d.ts +0 -3
- package/dist/server/src/validation/content-types.d.ts.map +0 -1
- package/dist/server/src/validation/locales.d.ts +0 -12
- package/dist/server/src/validation/locales.d.ts.map +0 -1
- package/dist/shared/contracts/content-manager.d.ts +0 -27
- package/dist/shared/contracts/iso-locales.d.ts +0 -21
- package/dist/shared/contracts/locales.d.ts +0 -77
- package/dist/shared/contracts/shared.d.ts +0 -6
- package/strapi-server.js +0 -3
@@ -1,28 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
admin: {
|
3
|
-
type: string;
|
4
|
-
routes: {
|
5
|
-
method: string;
|
6
|
-
path: string;
|
7
|
-
handler: string;
|
8
|
-
config: {
|
9
|
-
policies: (string | {
|
10
|
-
name: string;
|
11
|
-
config: {
|
12
|
-
actions: string[];
|
13
|
-
};
|
14
|
-
})[];
|
15
|
-
};
|
16
|
-
}[];
|
17
|
-
};
|
18
|
-
'content-api': {
|
19
|
-
type: string;
|
20
|
-
routes: {
|
21
|
-
method: string;
|
22
|
-
path: string;
|
23
|
-
handler: string;
|
24
|
-
}[];
|
25
|
-
};
|
26
|
-
};
|
27
|
-
export default _default;
|
28
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/routes/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,wBAGE"}
|
@@ -1,13 +0,0 @@
|
|
1
|
-
declare const contentTypes: () => {
|
2
|
-
isLocalizedContentType: (model: any) => boolean;
|
3
|
-
getValidLocale: (locale: any) => Promise<any>;
|
4
|
-
getLocalizedAttributes: (model: any) => string[];
|
5
|
-
getNonLocalizedAttributes: (model: any) => string[];
|
6
|
-
copyNonLocalizedAttributes: (model: any, entry: any) => any;
|
7
|
-
fillNonLocalizedAttributes: (entry: any, relatedEntry: any, { model }: any) => void;
|
8
|
-
getNestedPopulateOfNonLocalizedAttributes: (modelUID: any) => string[];
|
9
|
-
};
|
10
|
-
type ContentTypesService = typeof contentTypes;
|
11
|
-
export default contentTypes;
|
12
|
-
export { ContentTypesService };
|
13
|
-
//# sourceMappingURL=content-types.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"content-types.d.ts","sourceRoot":"","sources":["../../../../server/src/services/content-types.ts"],"names":[],"mappings":"AA6LA,QAAA,MAAM,YAAY;oCA1IqB,GAAG;6BAjCJ,GAAG;oCAsGF,GAAG;uCA5DA,GAAG;wCAiDF,GAAG,SAAS,GAAG;wCAwBf,GAAG,gBAAgB,GAAG,aAAa,GAAG;0DAmBpB,GAAG;CA6C9D,CAAC;AAEH,KAAK,mBAAmB,GAAG,OAAO,YAAY,CAAC;AAE/C,eAAe,YAAY,CAAC;AAC5B,OAAO,EAAE,mBAAmB,EAAE,CAAC"}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
declare const entityServiceDecorator: () => {
|
2
|
-
decorator: (service: any) => {
|
3
|
-
/**
|
4
|
-
* Wraps result
|
5
|
-
* @param {object} result - result object of query
|
6
|
-
* @param {object} ctx - Query context
|
7
|
-
* @param {object} ctx.model - Model that is being used
|
8
|
-
*/
|
9
|
-
wrapResult(result?: {}, ctx?: {}): Promise<any>;
|
10
|
-
/**
|
11
|
-
* Wraps query options. In particular will add default locale to query params
|
12
|
-
* @param {object} params - Query options object (params, data, files, populate)
|
13
|
-
* @param {object} ctx - Query context
|
14
|
-
* @param {object} ctx.model - Model that is being used
|
15
|
-
*/
|
16
|
-
wrapParams(params?: any, ctx?: any): Promise<any>;
|
17
|
-
/**
|
18
|
-
* Find an entry or several if fetching all locales
|
19
|
-
* @param {string} uid - Model uid
|
20
|
-
* @param {object} opts - Query options object (params, data, files, populate)
|
21
|
-
*/
|
22
|
-
findMany(uid: any, opts: any): Promise<any>;
|
23
|
-
};
|
24
|
-
wrapParams: (params?: any, ctx?: any) => Promise<any>;
|
25
|
-
};
|
26
|
-
type EntityServiceDecoratorService = typeof entityServiceDecorator;
|
27
|
-
export default entityServiceDecorator;
|
28
|
-
export type { EntityServiceDecoratorService };
|
29
|
-
//# sourceMappingURL=entity-service-decorator.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"entity-service-decorator.d.ts","sourceRoot":"","sources":["../../../../server/src/services/entity-service-decorator.ts"],"names":[],"mappings":"AA4HA,QAAA,MAAM,sBAAsB;yBAhEA,GAAG;QAC7B;;;;;WAKG;;QAKH;;;;;WAKG;4BACsB,GAAG,QAAY,GAAG;QAc3C;;;;WAIG;sBACiB,GAAG,QAAQ,GAAG;;0BAzEF,GAAG,QAAY,GAAG;CAwGlD,CAAC;AAEH,KAAK,6BAA6B,GAAG,OAAO,sBAAsB,CAAC;AAEnE,eAAe,sBAAsB,CAAC;AACtC,YAAY,EAAE,6BAA6B,EAAE,CAAC"}
|
@@ -1,71 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
permissions: () => {
|
3
|
-
actions: {
|
4
|
-
actions: {
|
5
|
-
section: string;
|
6
|
-
category: string;
|
7
|
-
subCategory: string;
|
8
|
-
pluginName: string;
|
9
|
-
displayName: string;
|
10
|
-
uid: string;
|
11
|
-
}[];
|
12
|
-
registerI18nActions: () => Promise<void>;
|
13
|
-
registerI18nActionsHooks: () => void;
|
14
|
-
updateActionsProperties: () => void;
|
15
|
-
syncSuperAdminPermissionsWithLocales: () => Promise<void>;
|
16
|
-
};
|
17
|
-
sectionsBuilder: {
|
18
|
-
localesPropertyHandler: ({ action, section }: any) => Promise<void>;
|
19
|
-
registerLocalesPropertyHandler: () => void;
|
20
|
-
};
|
21
|
-
engine: {
|
22
|
-
willRegisterPermission: (context: any) => void;
|
23
|
-
registerI18nPermissionsHandlers: () => void;
|
24
|
-
};
|
25
|
-
};
|
26
|
-
metrics: () => {
|
27
|
-
sendDidInitializeEvent: () => Promise<void>;
|
28
|
-
sendDidUpdateI18nLocalesEvent: () => Promise<void>;
|
29
|
-
};
|
30
|
-
localizations: () => {
|
31
|
-
syncNonLocalizedAttributes: (sourceEntry: any, model: import("@strapi/types/dist/struct").ContentTypeSchema) => Promise<void>;
|
32
|
-
};
|
33
|
-
locales: () => {
|
34
|
-
find: (params?: any) => Promise<any[]>;
|
35
|
-
findById: (id: any) => Promise<any>;
|
36
|
-
findByCode: (code: any) => Promise<any>;
|
37
|
-
create: (locale: any) => Promise<any>;
|
38
|
-
update: (params: any, updates: any) => Promise<any>;
|
39
|
-
count: (params?: any) => Promise<number>;
|
40
|
-
setDefaultLocale: ({ code }: any) => Promise<void>;
|
41
|
-
getDefaultLocale: () => Promise<unknown>;
|
42
|
-
setIsDefault: (locales: any) => Promise<any>;
|
43
|
-
delete: ({ id }: any) => Promise<any>;
|
44
|
-
initDefaultLocale: () => Promise<void>;
|
45
|
-
};
|
46
|
-
'iso-locales': () => {
|
47
|
-
getIsoLocales: () => {
|
48
|
-
code: string;
|
49
|
-
name: string;
|
50
|
-
}[];
|
51
|
-
};
|
52
|
-
'entity-service-decorator': () => {
|
53
|
-
decorator: (service: any) => {
|
54
|
-
wrapResult(result?: {}, ctx?: {}): Promise<any>;
|
55
|
-
wrapParams(params?: any, ctx?: any): Promise<any>;
|
56
|
-
findMany(uid: any, opts: any): Promise<any>;
|
57
|
-
};
|
58
|
-
wrapParams: (params?: any, ctx?: any) => Promise<any>;
|
59
|
-
};
|
60
|
-
'content-types': () => {
|
61
|
-
isLocalizedContentType: (model: any) => boolean;
|
62
|
-
getValidLocale: (locale: any) => Promise<any>;
|
63
|
-
getLocalizedAttributes: (model: any) => string[];
|
64
|
-
getNonLocalizedAttributes: (model: any) => string[];
|
65
|
-
copyNonLocalizedAttributes: (model: any, entry: any) => any;
|
66
|
-
fillNonLocalizedAttributes: (entry: any, relatedEntry: any, { model }: any) => void;
|
67
|
-
getNestedPopulateOfNonLocalizedAttributes: (modelUID: any) => string[];
|
68
|
-
};
|
69
|
-
};
|
70
|
-
export default _default;
|
71
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/services/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wBAQE"}
|
@@ -1,10 +0,0 @@
|
|
1
|
-
declare const isoLocalesService: () => {
|
2
|
-
getIsoLocales: () => {
|
3
|
-
code: string;
|
4
|
-
name: string;
|
5
|
-
}[];
|
6
|
-
};
|
7
|
-
type ISOLocalesService = typeof isoLocalesService;
|
8
|
-
export default isoLocalesService;
|
9
|
-
export type { ISOLocalesService };
|
10
|
-
//# sourceMappingURL=iso-locales.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"iso-locales.d.ts","sourceRoot":"","sources":["../../../../server/src/services/iso-locales.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,iBAAiB;;;;;CAErB,CAAC;AAEH,KAAK,iBAAiB,GAAG,OAAO,iBAAiB,CAAC;AAElD,eAAe,iBAAiB,CAAC;AACjC,YAAY,EAAE,iBAAiB,EAAE,CAAC"}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
declare const locales: () => {
|
2
|
-
find: (params?: any) => Promise<any[]>;
|
3
|
-
findById: (id: any) => Promise<any>;
|
4
|
-
findByCode: (code: any) => Promise<any>;
|
5
|
-
create: (locale: any) => Promise<any>;
|
6
|
-
update: (params: any, updates: any) => Promise<any>;
|
7
|
-
count: (params?: any) => Promise<number>;
|
8
|
-
setDefaultLocale: ({ code }: any) => Promise<void>;
|
9
|
-
getDefaultLocale: () => Promise<unknown>;
|
10
|
-
setIsDefault: (locales: any) => Promise<any>;
|
11
|
-
delete: ({ id }: any) => Promise<any>;
|
12
|
-
initDefaultLocale: () => Promise<void>;
|
13
|
-
};
|
14
|
-
type LocaleService = typeof locales;
|
15
|
-
export default locales;
|
16
|
-
export type { LocaleService };
|
17
|
-
//# sourceMappingURL=locales.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../server/src/services/locales.ts"],"names":[],"mappings":"AAqFA,QAAA,MAAM,OAAO;oBAjFS,GAAG;mBAGH,GAAG;uBAEC,GAAG;qBAKC,GAAG;qBAQH,GAAG,WAAW,GAAG;qBAVxB,GAAG;iCAmCU,GAAG;;4BAKF,GAAG;qBApBR,GAAG;;CAiEjC,CAAC;AAEH,KAAK,aAAa,GAAG,OAAO,OAAO,CAAC;AAEpC,eAAe,OAAO,CAAC;AACvB,YAAY,EAAE,aAAa,EAAE,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
import { type Schema } from '@strapi/types';
|
2
|
-
declare const localizations: () => {
|
3
|
-
syncNonLocalizedAttributes: (sourceEntry: any, model: Schema.ContentType) => Promise<void>;
|
4
|
-
};
|
5
|
-
type LocalizationsService = typeof localizations;
|
6
|
-
export default localizations;
|
7
|
-
export type { LocalizationsService };
|
8
|
-
//# sourceMappingURL=localizations.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"localizations.d.ts","sourceRoot":"","sources":["../../../../server/src/services/localizations.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,MAAM,EAAE,MAAM,eAAe,CAAC;AA+D5C,QAAA,MAAM,aAAa;8CAxDoC,GAAG,SAAS,OAAO,WAAW;CA0DnF,CAAC;AAEH,KAAK,oBAAoB,GAAG,OAAO,aAAa,CAAC;AAEjD,eAAe,aAAa,CAAC;AAC7B,YAAY,EAAE,oBAAoB,EAAE,CAAC"}
|
@@ -1,8 +0,0 @@
|
|
1
|
-
declare const metrics: () => {
|
2
|
-
sendDidInitializeEvent: () => Promise<void>;
|
3
|
-
sendDidUpdateI18nLocalesEvent: () => Promise<void>;
|
4
|
-
};
|
5
|
-
type MetricsService = typeof metrics;
|
6
|
-
export default metrics;
|
7
|
-
export type { MetricsService };
|
8
|
-
//# sourceMappingURL=metrics.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"metrics.d.ts","sourceRoot":"","sources":["../../../../server/src/services/metrics.ts"],"names":[],"mappings":"AAuBA,QAAA,MAAM,OAAO;;;CAGX,CAAC;AAEH,KAAK,cAAc,GAAG,OAAO,OAAO,CAAC;AAErC,eAAe,OAAO,CAAC;AACvB,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
@@ -1,16 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
actions: {
|
3
|
-
section: string;
|
4
|
-
category: string;
|
5
|
-
subCategory: string;
|
6
|
-
pluginName: string;
|
7
|
-
displayName: string;
|
8
|
-
uid: string;
|
9
|
-
}[];
|
10
|
-
registerI18nActions: () => Promise<void>;
|
11
|
-
registerI18nActionsHooks: () => void;
|
12
|
-
updateActionsProperties: () => void;
|
13
|
-
syncSuperAdminPermissionsWithLocales: () => Promise<void>;
|
14
|
-
};
|
15
|
-
export default _default;
|
16
|
-
//# sourceMappingURL=actions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"actions.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/permissions/actions.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAuHA,wBAME"}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
declare const _default: {
|
2
|
-
conditions: {
|
3
|
-
displayName: string;
|
4
|
-
name: string;
|
5
|
-
plugin: string;
|
6
|
-
handler(user: any, options: any): true | {
|
7
|
-
locale: {
|
8
|
-
$in: any;
|
9
|
-
};
|
10
|
-
};
|
11
|
-
}[];
|
12
|
-
registerI18nConditions: () => Promise<void>;
|
13
|
-
};
|
14
|
-
export default _default;
|
15
|
-
//# sourceMappingURL=conditions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"conditions.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/permissions/conditions.ts"],"names":[],"mappings":";;;;;;;;;;;;;AA8BA,wBAGE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"engine.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/permissions/engine.ts"],"names":[],"mappings":";;;;AAyDA,wBAGE"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"sections-builder.d.ts","sourceRoot":"","sources":["../../../../../server/src/services/permissions/sections-builder.ts"],"names":[],"mappings":";;;;AA4CA,wBAGE"}
|
@@ -1,28 +0,0 @@
|
|
1
|
-
declare const permissions: () => {
|
2
|
-
actions: {
|
3
|
-
actions: {
|
4
|
-
section: string;
|
5
|
-
category: string;
|
6
|
-
subCategory: string;
|
7
|
-
pluginName: string;
|
8
|
-
displayName: string;
|
9
|
-
uid: string;
|
10
|
-
}[];
|
11
|
-
registerI18nActions: () => Promise<void>;
|
12
|
-
registerI18nActionsHooks: () => void;
|
13
|
-
updateActionsProperties: () => void;
|
14
|
-
syncSuperAdminPermissionsWithLocales: () => Promise<void>;
|
15
|
-
};
|
16
|
-
sectionsBuilder: {
|
17
|
-
localesPropertyHandler: ({ action, section }: any) => Promise<void>;
|
18
|
-
registerLocalesPropertyHandler: () => void;
|
19
|
-
};
|
20
|
-
engine: {
|
21
|
-
willRegisterPermission: (context: any) => void;
|
22
|
-
registerI18nPermissionsHandlers: () => void;
|
23
|
-
};
|
24
|
-
};
|
25
|
-
type PermissionsService = typeof permissions;
|
26
|
-
export default permissions;
|
27
|
-
export type { PermissionsService };
|
28
|
-
//# sourceMappingURL=permissions.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"permissions.d.ts","sourceRoot":"","sources":["../../../../server/src/services/permissions.ts"],"names":[],"mappings":"AAIA,QAAA,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;CAIf,CAAC;AAEH,KAAK,kBAAkB,GAAG,OAAO,WAAW,CAAC;AAE7C,eAAe,WAAW,CAAC;AAC3B,YAAY,EAAE,kBAAkB,EAAE,CAAC"}
|
@@ -1,43 +0,0 @@
|
|
1
|
-
import type { LocaleService } from '../services/locales';
|
2
|
-
import type { PermissionsService } from '../services/permissions';
|
3
|
-
import type { ContentTypesService } from '../services/content-types';
|
4
|
-
import type { MetricsService } from '../services/metrics';
|
5
|
-
import type { EntityServiceDecoratorService } from '../services/entity-service-decorator';
|
6
|
-
import type { ISOLocalesService } from '../services/iso-locales';
|
7
|
-
import type { LocalizationsService } from '../services/localizations';
|
8
|
-
type S = {
|
9
|
-
permissions: PermissionsService;
|
10
|
-
metrics: MetricsService;
|
11
|
-
locales: LocaleService;
|
12
|
-
localizations: LocalizationsService;
|
13
|
-
['iso-locales']: ISOLocalesService;
|
14
|
-
['content-types']: ContentTypesService;
|
15
|
-
['entity-service-decorator']: EntityServiceDecoratorService;
|
16
|
-
};
|
17
|
-
declare const getCoreStore: () => {
|
18
|
-
get(params?: Partial<{
|
19
|
-
key: string;
|
20
|
-
type?: string | undefined;
|
21
|
-
environment?: string | undefined;
|
22
|
-
name?: string | undefined;
|
23
|
-
tag?: string | undefined;
|
24
|
-
}> | undefined): Promise<unknown>;
|
25
|
-
set(params?: Partial<{
|
26
|
-
key: string;
|
27
|
-
value: unknown;
|
28
|
-
type?: string | undefined;
|
29
|
-
environment?: string | undefined;
|
30
|
-
name?: string | undefined;
|
31
|
-
tag?: string | undefined;
|
32
|
-
}> | undefined): Promise<void>;
|
33
|
-
delete(params?: Partial<{
|
34
|
-
key: string;
|
35
|
-
type?: string | undefined;
|
36
|
-
environment?: string | undefined;
|
37
|
-
name?: string | undefined;
|
38
|
-
tag?: string | undefined;
|
39
|
-
}> | undefined): Promise<void>;
|
40
|
-
};
|
41
|
-
declare const getService: <T extends keyof S>(name: T) => ReturnType<S[T]>;
|
42
|
-
export { getService, getCoreStore };
|
43
|
-
//# sourceMappingURL=index.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../server/src/utils/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,sCAAsC,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AACjE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,2BAA2B,CAAC;AAEtE,KAAK,CAAC,GAAG;IACP,WAAW,EAAE,kBAAkB,CAAC;IAChC,OAAO,EAAE,cAAc,CAAC;IACxB,OAAO,EAAE,aAAa,CAAC;IACvB,aAAa,EAAE,oBAAoB,CAAC;IACpC,CAAC,aAAa,CAAC,EAAE,iBAAiB,CAAC;IACnC,CAAC,eAAe,CAAC,EAAE,mBAAmB,CAAC;IACvC,CAAC,0BAA0B,CAAC,EAAE,6BAA6B,CAAC;CAC7D,CAAC;AAEF,QAAA,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;CAEjB,CAAC;AAGF,QAAA,MAAM,UAAU,4BAA6B,CAAC,KAAG,WAAW,CAAC,CAAC,CAAC,CAAC,CAE/D,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC"}
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"content-types.d.ts","sourceRoot":"","sources":["../../../../server/src/validation/content-types.ts"],"names":[],"mappings":"AAkBA,QAAA,MAAM,sCAAsC,oEAE3C,CAAC;AAEF,OAAO,EAAE,sCAAsC,EAAE,CAAC"}
|
@@ -1,12 +0,0 @@
|
|
1
|
-
import { yup } from '@strapi/utils';
|
2
|
-
declare const validateCreateLocaleInput: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
3
|
-
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
4
|
-
code: import("yup/lib/string").RequiredStringSchema<string | undefined, Record<string, any>>;
|
5
|
-
isDefault: import("yup/lib/boolean").RequiredBooleanSchema<boolean | undefined, Record<string, any>>;
|
6
|
-
}>>>;
|
7
|
-
declare const validateUpdateLocaleInput: (body: unknown, errorMessage?: string | undefined) => Promise<import("yup/lib/object").AssertsShape<import("yup/lib/object").Assign<import("yup/lib/object").ObjectShape, {
|
8
|
-
name: import("yup").StringSchema<string | null | undefined, Record<string, any>, string | null | undefined>;
|
9
|
-
isDefault: yup.BooleanSchema<boolean | undefined, Record<string, any>, boolean | undefined>;
|
10
|
-
}>>>;
|
11
|
-
export { validateCreateLocaleInput, validateUpdateLocaleInput };
|
12
|
-
//# sourceMappingURL=locales.d.ts.map
|
@@ -1 +0,0 @@
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../server/src/validation/locales.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,GAAG,EAAqB,MAAM,eAAe,CAAC;AAuBvD,QAAA,MAAM,yBAAyB;;;;IAAwC,CAAC;AACxE,QAAA,MAAM,yBAAyB;;;IAAwC,CAAC;AAExE,OAAO,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,CAAC"}
|
@@ -1,27 +0,0 @@
|
|
1
|
-
import { Data } from '@strapi/types';
|
2
|
-
import { errors } from '@strapi/utils';
|
3
|
-
/**
|
4
|
-
* POST /i18n/content-manager/actions/get-non-localized-fields - Get the localized fields
|
5
|
-
*/
|
6
|
-
export declare namespace GetNonLocalizedFields {
|
7
|
-
interface Request {
|
8
|
-
query: {};
|
9
|
-
body: {
|
10
|
-
id?: Data.ID;
|
11
|
-
locale?: string;
|
12
|
-
model: string;
|
13
|
-
};
|
14
|
-
}
|
15
|
-
/**
|
16
|
-
* TODO: this should follow the usual `data/error` pattern.
|
17
|
-
*/
|
18
|
-
interface Response {
|
19
|
-
nonLocalizedFields: object;
|
20
|
-
localizations: Array<{
|
21
|
-
id: Data.ID;
|
22
|
-
locale: string;
|
23
|
-
publishedAt: string | null;
|
24
|
-
}>;
|
25
|
-
error?: errors.ApplicationError;
|
26
|
-
}
|
27
|
-
}
|
@@ -1,21 +0,0 @@
|
|
1
|
-
import { errors } from '@strapi/utils';
|
2
|
-
export interface ISOLocale {
|
3
|
-
code: string;
|
4
|
-
name: string;
|
5
|
-
}
|
6
|
-
/**
|
7
|
-
* GET /i18n/iso-locales - Get all the locales
|
8
|
-
*/
|
9
|
-
export declare namespace GetISOLocales {
|
10
|
-
interface Request {
|
11
|
-
query: {};
|
12
|
-
body: {};
|
13
|
-
}
|
14
|
-
/**
|
15
|
-
* TODO: this should follow the usual `data/error` pattern.
|
16
|
-
*/
|
17
|
-
type Response = ISOLocale[] | {
|
18
|
-
data: null;
|
19
|
-
error: errors.ApplicationError;
|
20
|
-
};
|
21
|
-
}
|
@@ -1,77 +0,0 @@
|
|
1
|
-
import { errors } from '@strapi/utils';
|
2
|
-
import { Entity } from './shared';
|
3
|
-
export interface Locale extends Entity {
|
4
|
-
code: string;
|
5
|
-
isDefault: boolean;
|
6
|
-
name: string;
|
7
|
-
}
|
8
|
-
/**
|
9
|
-
* GET /i18n/locales - Get all the locales
|
10
|
-
*/
|
11
|
-
export declare namespace GetLocales {
|
12
|
-
interface Request {
|
13
|
-
query: {};
|
14
|
-
body: {};
|
15
|
-
}
|
16
|
-
/**
|
17
|
-
* TODO: this should follow the usual `data/error` pattern.
|
18
|
-
*/
|
19
|
-
type Response = Locale[] | {
|
20
|
-
data: null;
|
21
|
-
error: errors.ApplicationError;
|
22
|
-
};
|
23
|
-
}
|
24
|
-
/**
|
25
|
-
* POST /i18n/locales - Create a single locale
|
26
|
-
*/
|
27
|
-
export declare namespace CreateLocale {
|
28
|
-
interface Request {
|
29
|
-
query: {};
|
30
|
-
body: Omit<Locale, keyof Entity>;
|
31
|
-
}
|
32
|
-
/**
|
33
|
-
* TODO: this should follow the usual `data/error` pattern.
|
34
|
-
*/
|
35
|
-
type Response = Locale | {
|
36
|
-
data: null;
|
37
|
-
error: errors.ApplicationError;
|
38
|
-
};
|
39
|
-
}
|
40
|
-
/**
|
41
|
-
* DEL /i18n/locales/:id - Delete a single locale
|
42
|
-
*/
|
43
|
-
export declare namespace DeleteLocale {
|
44
|
-
interface Request {
|
45
|
-
query: {};
|
46
|
-
body: {};
|
47
|
-
}
|
48
|
-
interface Params {
|
49
|
-
id: Locale['id'];
|
50
|
-
}
|
51
|
-
/**
|
52
|
-
* TODO: this should follow the usual `data/error` pattern.
|
53
|
-
*/
|
54
|
-
type Response = Locale | {
|
55
|
-
data: null;
|
56
|
-
error: errors.ApplicationError;
|
57
|
-
};
|
58
|
-
}
|
59
|
-
/**
|
60
|
-
* PUT /i18n/locales/:id - Update a single locale
|
61
|
-
*/
|
62
|
-
export declare namespace UpdateLocale {
|
63
|
-
interface Request {
|
64
|
-
query: {};
|
65
|
-
body: Pick<Locale, 'name' | 'isDefault'>;
|
66
|
-
}
|
67
|
-
interface Params {
|
68
|
-
id: Locale['id'];
|
69
|
-
}
|
70
|
-
/**
|
71
|
-
* TODO: this should follow the usual `data/error` pattern.
|
72
|
-
*/
|
73
|
-
type Response = Locale | {
|
74
|
-
data: null;
|
75
|
-
error: errors.ApplicationError;
|
76
|
-
};
|
77
|
-
}
|
package/strapi-server.js
DELETED