@nocobase/plugin-calendar 0.21.0-alpha.1 → 0.21.0-alpha.10

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.
@@ -1,6 +1,7 @@
1
1
  import { CompatibleSchemaInitializer } from '@nocobase/client';
2
2
  /**
3
3
  * @deprecated
4
+ * use `calendarActionInitializers` instead
4
5
  * 日历的操作配置
5
6
  */
6
7
  export declare const CalendarActionInitializers_deprecated: CompatibleSchemaInitializer;
@@ -10,3 +10,8 @@ export declare const CalendarBlockInitializer: ({ filterCollections, onlyCurrent
10
10
  createBlockSchema?: (options: any) => any;
11
11
  showAssociationFields?: boolean;
12
12
  }) => React.JSX.Element;
13
+ export declare const useCreateCalendarBlock: () => {
14
+ createCalendarBlock: ({ item }: {
15
+ item: any;
16
+ }) => Promise<void>;
17
+ };
@@ -1,9 +1,9 @@
1
1
  module.exports = {
2
- "@nocobase/client": "0.21.0-alpha.1",
3
- "react": "18.2.0",
2
+ "@nocobase/client": "0.21.0-alpha.10",
4
3
  "react-i18next": "11.18.6",
5
- "@nocobase/server": "0.21.0-alpha.1",
6
- "@nocobase/test": "0.21.0-alpha.1",
4
+ "@nocobase/server": "0.21.0-alpha.10",
5
+ "@nocobase/test": "0.21.0-alpha.10",
6
+ "react": "18.2.0",
7
7
  "@ant-design/icons": "5.2.6",
8
8
  "@formily/react": "2.3.0",
9
9
  "dayjs": "1.11.10",
@@ -1,4 +1,4 @@
1
1
  export declare const NAMESPACE = "calendar";
2
2
  export declare function i18nt(key: string, options?: any): import("i18next").TFunctionDetailedResult<object>;
3
3
  export declare function generateNTemplate(key: string): string;
4
- export declare function useTranslation(): import("react-i18next").UseTranslationResponse<"calendar", undefined>;
4
+ export declare function useTranslation(): import("react-i18next").UseTranslationResponse<("calendar" | "client")[], undefined>;
@@ -33,7 +33,9 @@ function generateNTemplate(key) {
33
33
  return `{{t('${key}', { ns: '${NAMESPACE}' })}}`;
34
34
  }
35
35
  function useTranslation() {
36
- return (0, import_react_i18next.useTranslation)(NAMESPACE);
36
+ return (0, import_react_i18next.useTranslation)([NAMESPACE, "client"], {
37
+ nsMode: "fallback"
38
+ });
37
39
  }
38
40
  // Annotate the CommonJS export names for ESM import in node:
39
41
  0 && (module.exports = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nocobase/plugin-calendar",
3
- "version": "0.21.0-alpha.1",
3
+ "version": "0.21.0-alpha.10",
4
4
  "displayName": "Calendar",
5
5
  "displayName.zh-CN": "日历",
6
6
  "description": "Provides callendar collection template and block for managing date data, typically for date/time related information such as events, appointments, tasks, and so on.",
@@ -36,7 +36,7 @@
36
36
  "url": "git+https://github.com/nocobase/nocobase.git",
37
37
  "directory": "packages/plugins/calendar"
38
38
  },
39
- "gitHead": "afd2f3d1341b85ea9daa7b2667dd4ace1fafb7ff",
39
+ "gitHead": "98adf5ec996a4f359c6ca1c4a6ac837c43b6e268",
40
40
  "keywords": [
41
41
  "Collections",
42
42
  "Blocks"