@growi/core 3.1.0 → 3.1.1-next.2d441a0a5af12a41bec4a11f7dc263329b5cb45d

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.
@@ -0,0 +1,2 @@
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=["note","tip","important","info","warning","danger","caution"];exports.AllCallout=t;
2
+ //# sourceMappingURL=callout.cjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout.cjs","sources":["../../src/consts/callout.ts"],"sourcesContent":["// Ref: https://github.com/Microflash/remark-callout-directives/blob/fabe4d8adc7738469f253836f0da346591ea2a2b/themes/github/index.js\n// Ref: https://github.com/orgs/community/discussions/16925\n\n/**\n * Callout (admonition) variant names — the single source of truth shared by the\n * renderer (the remark plugin in apps/app `features/callout`) and the editor\n * slash commands (`packages/editor` extended-elements). Adding or removing a\n * variant is a one-line change here that propagates to both.\n */\nexport const AllCallout = [\n 'note',\n 'tip',\n 'important',\n 'info',\n 'warning',\n 'danger',\n 'caution',\n] as const;\nexport type Callout = (typeof AllCallout)[number];\n"],"names":["AllCallout"],"mappings":"gFASO,MAAMA,EAAa,CACxB,OACA,MACA,YACA,OACA,UACA,SACA,SACF"}
@@ -0,0 +1,8 @@
1
+ /**
2
+ * Callout (admonition) variant names — the single source of truth shared by the
3
+ * renderer (the remark plugin in apps/app `features/callout`) and the editor
4
+ * slash commands (`packages/editor` extended-elements). Adding or removing a
5
+ * variant is a one-line change here that propagates to both.
6
+ */
7
+ export declare const AllCallout: readonly ["note", "tip", "important", "info", "warning", "danger", "caution"];
8
+ export type Callout = (typeof AllCallout)[number];
@@ -0,0 +1,13 @@
1
+ const n = [
2
+ "note",
3
+ "tip",
4
+ "important",
5
+ "info",
6
+ "warning",
7
+ "danger",
8
+ "caution"
9
+ ];
10
+ export {
11
+ n as AllCallout
12
+ };
13
+ //# sourceMappingURL=callout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"callout.js","sources":["../../src/consts/callout.ts"],"sourcesContent":["// Ref: https://github.com/Microflash/remark-callout-directives/blob/fabe4d8adc7738469f253836f0da346591ea2a2b/themes/github/index.js\n// Ref: https://github.com/orgs/community/discussions/16925\n\n/**\n * Callout (admonition) variant names — the single source of truth shared by the\n * renderer (the remark plugin in apps/app `features/callout`) and the editor\n * slash commands (`packages/editor` extended-elements). Adding or removing a\n * variant is a one-line change here that propagates to both.\n */\nexport const AllCallout = [\n 'note',\n 'tip',\n 'important',\n 'info',\n 'warning',\n 'danger',\n 'caution',\n] as const;\nexport type Callout = (typeof AllCallout)[number];\n"],"names":["AllCallout"],"mappings":"AASO,MAAMA,IAAa;AAAA,EACxB;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF;"}
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("./accepted-upload-file-type.cjs"),i=require("./growi-plugin.cjs"),e=require("./renderer.cjs"),T=require("./system.cjs"),r=require("./ydoc-status.cjs");exports.AcceptedUploadFileType=o.AcceptedUploadFileType;exports.GrowiPluginType=i.GrowiPluginType;exports.GROWI_IS_CONTENT_RENDERING_ATTR=e.GROWI_IS_CONTENT_RENDERING_ATTR;exports.GROWI_IS_CONTENT_RENDERING_SELECTOR=e.GROWI_IS_CONTENT_RENDERING_SELECTOR;exports.GrowiDeploymentType=T.GrowiDeploymentType;exports.GrowiServiceType=T.GrowiServiceType;exports.YDocStatus=r.YDocStatus;exports.YJS_WEBSOCKET_BASE_PATH=r.YJS_WEBSOCKET_BASE_PATH;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./accepted-upload-file-type.cjs"),t=require("./callout.cjs"),i=require("./growi-plugin.cjs"),e=require("./renderer.cjs"),o=require("./system.cjs"),r=require("./ydoc-status.cjs");exports.AcceptedUploadFileType=T.AcceptedUploadFileType;exports.AllCallout=t.AllCallout;exports.GrowiPluginType=i.GrowiPluginType;exports.GROWI_IS_CONTENT_RENDERING_ATTR=e.GROWI_IS_CONTENT_RENDERING_ATTR;exports.GROWI_IS_CONTENT_RENDERING_SELECTOR=e.GROWI_IS_CONTENT_RENDERING_SELECTOR;exports.GrowiDeploymentType=o.GrowiDeploymentType;exports.GrowiServiceType=o.GrowiServiceType;exports.YDocStatus=r.YDocStatus;exports.YJS_WEBSOCKET_BASE_PATH=r.YJS_WEBSOCKET_BASE_PATH;
2
2
  //# sourceMappingURL=index.cjs.map
@@ -1,4 +1,5 @@
1
1
  export * from './accepted-upload-file-type.js';
2
+ export * from './callout.js';
2
3
  export * from './growi-plugin.js';
3
4
  export * from './renderer.js';
4
5
  export * from './system.js';
@@ -1,16 +1,18 @@
1
1
  import { AcceptedUploadFileType as r } from "./accepted-upload-file-type.js";
2
- import { GrowiPluginType as p } from "./growi-plugin.js";
3
- import { GROWI_IS_CONTENT_RENDERING_ATTR as _, GROWI_IS_CONTENT_RENDERING_SELECTOR as t } from "./renderer.js";
4
- import { GrowiDeploymentType as R, GrowiServiceType as S } from "./system.js";
5
- import { YDocStatus as i, YJS_WEBSOCKET_BASE_PATH as m } from "./ydoc-status.js";
2
+ import { AllCallout as T } from "./callout.js";
3
+ import { GrowiPluginType as E } from "./growi-plugin.js";
4
+ import { GROWI_IS_CONTENT_RENDERING_ATTR as l, GROWI_IS_CONTENT_RENDERING_SELECTOR as N } from "./renderer.js";
5
+ import { GrowiDeploymentType as S, GrowiServiceType as m } from "./system.js";
6
+ import { YDocStatus as f, YJS_WEBSOCKET_BASE_PATH as i } from "./ydoc-status.js";
6
7
  export {
7
8
  r as AcceptedUploadFileType,
8
- _ as GROWI_IS_CONTENT_RENDERING_ATTR,
9
- t as GROWI_IS_CONTENT_RENDERING_SELECTOR,
10
- R as GrowiDeploymentType,
11
- p as GrowiPluginType,
12
- S as GrowiServiceType,
13
- i as YDocStatus,
14
- m as YJS_WEBSOCKET_BASE_PATH
9
+ T as AllCallout,
10
+ l as GROWI_IS_CONTENT_RENDERING_ATTR,
11
+ N as GROWI_IS_CONTENT_RENDERING_SELECTOR,
12
+ S as GrowiDeploymentType,
13
+ E as GrowiPluginType,
14
+ m as GrowiServiceType,
15
+ f as YDocStatus,
16
+ i as YJS_WEBSOCKET_BASE_PATH
15
17
  };
16
18
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;"}
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./consts/accepted-upload-file-type.cjs"),u=require("./consts/growi-plugin.cjs"),r=require("./consts/renderer.cjs"),t=require("./consts/system.cjs"),s=require("./consts/ydoc-status.cjs"),I=require("./interfaces/color-scheme.cjs"),o=require("./interfaces/common.cjs"),a=require("./interfaces/config-manager.cjs"),l=require("./interfaces/growi-app-info.cjs"),g=require("./interfaces/growi-theme-metadata.cjs"),S=require("./interfaces/lang.cjs"),e=require("./interfaces/page.cjs"),i=require("./interfaces/primitive/string.cjs"),p=require("./interfaces/revision.cjs"),n=require("./interfaces/scope.cjs"),T=require("./interfaces/subscription.cjs"),E=require("./interfaces/user.cjs");exports.AcceptedUploadFileType=c.AcceptedUploadFileType;exports.GrowiPluginType=u.GrowiPluginType;exports.GROWI_IS_CONTENT_RENDERING_ATTR=r.GROWI_IS_CONTENT_RENDERING_ATTR;exports.GROWI_IS_CONTENT_RENDERING_SELECTOR=r.GROWI_IS_CONTENT_RENDERING_SELECTOR;exports.GrowiDeploymentType=t.GrowiDeploymentType;exports.GrowiServiceType=t.GrowiServiceType;exports.YDocStatus=s.YDocStatus;exports.YJS_WEBSOCKET_BASE_PATH=s.YJS_WEBSOCKET_BASE_PATH;exports.ColorScheme=I.ColorScheme;exports.getIdForRef=o.getIdForRef;exports.getIdStringForRef=o.getIdStringForRef;exports.isPopulated=o.isPopulated;exports.isRef=o.isRef;exports.ConfigSource=a.ConfigSource;exports.defineConfig=a.defineConfig;exports.GrowiWikiType=l.GrowiWikiType;exports.GrowiThemeSchemeType=g.GrowiThemeSchemeType;exports.isGrowiThemeMetadata=g.isGrowiThemeMetadata;exports.AllLang=S.AllLang;exports.Lang=S.Lang;exports.GroupType=e.GroupType;exports.PageGrant=e.PageGrant;exports.PageStatus=e.PageStatus;exports.isIPageInfo=e.isIPageInfo;exports.isIPageInfoForEmpty=e.isIPageInfoForEmpty;exports.isIPageInfoForEntity=e.isIPageInfoForEntity;exports.isIPageInfoForListing=e.isIPageInfoForListing;exports.isIPageInfoForOperation=e.isIPageInfoForOperation;exports.isIPageNotFoundInfo=e.isIPageNotFoundInfo;exports.isNonBlankString=i.isNonBlankString;exports.isNonEmptyString=i.isNonEmptyString;exports.toNonBlankString=i.toNonBlankString;exports.toNonBlankStringOrUndefined=i.toNonBlankStringOrUndefined;exports.toNonEmptyString=i.toNonEmptyString;exports.toNonEmptyStringOrUndefined=i.toNonEmptyStringOrUndefined;exports.Origin=p.Origin;exports.allOrigin=p.allOrigin;exports.ACTION=n.ACTION;exports.ALL_SIGN=n.ALL_SIGN;exports.SCOPE=n.SCOPE;exports.AllSubscriptionStatusType=T.AllSubscriptionStatusType;exports.SubscriptionStatusType=T.SubscriptionStatusType;exports.USER_STATUS=E.USER_STATUS;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./consts/accepted-upload-file-type.cjs"),c=require("./consts/callout.cjs"),l=require("./consts/growi-plugin.cjs"),r=require("./consts/renderer.cjs"),t=require("./consts/system.cjs"),a=require("./consts/ydoc-status.cjs"),I=require("./interfaces/color-scheme.cjs"),i=require("./interfaces/common.cjs"),s=require("./interfaces/config-manager.cjs"),E=require("./interfaces/growi-app-info.cjs"),g=require("./interfaces/growi-theme-metadata.cjs"),S=require("./interfaces/lang.cjs"),e=require("./interfaces/page.cjs"),o=require("./interfaces/primitive/string.cjs"),p=require("./interfaces/revision.cjs"),n=require("./interfaces/scope.cjs"),u=require("./interfaces/subscription.cjs"),y=require("./interfaces/user.cjs");exports.AcceptedUploadFileType=T.AcceptedUploadFileType;exports.AllCallout=c.AllCallout;exports.GrowiPluginType=l.GrowiPluginType;exports.GROWI_IS_CONTENT_RENDERING_ATTR=r.GROWI_IS_CONTENT_RENDERING_ATTR;exports.GROWI_IS_CONTENT_RENDERING_SELECTOR=r.GROWI_IS_CONTENT_RENDERING_SELECTOR;exports.GrowiDeploymentType=t.GrowiDeploymentType;exports.GrowiServiceType=t.GrowiServiceType;exports.YDocStatus=a.YDocStatus;exports.YJS_WEBSOCKET_BASE_PATH=a.YJS_WEBSOCKET_BASE_PATH;exports.ColorScheme=I.ColorScheme;exports.getIdForRef=i.getIdForRef;exports.getIdStringForRef=i.getIdStringForRef;exports.isPopulated=i.isPopulated;exports.isRef=i.isRef;exports.ConfigSource=s.ConfigSource;exports.defineConfig=s.defineConfig;exports.GrowiWikiType=E.GrowiWikiType;exports.GrowiThemeSchemeType=g.GrowiThemeSchemeType;exports.isGrowiThemeMetadata=g.isGrowiThemeMetadata;exports.AllLang=S.AllLang;exports.Lang=S.Lang;exports.GroupType=e.GroupType;exports.PageGrant=e.PageGrant;exports.PageStatus=e.PageStatus;exports.isIPageInfo=e.isIPageInfo;exports.isIPageInfoForEmpty=e.isIPageInfoForEmpty;exports.isIPageInfoForEntity=e.isIPageInfoForEntity;exports.isIPageInfoForListing=e.isIPageInfoForListing;exports.isIPageInfoForOperation=e.isIPageInfoForOperation;exports.isIPageNotFoundInfo=e.isIPageNotFoundInfo;exports.isNonBlankString=o.isNonBlankString;exports.isNonEmptyString=o.isNonEmptyString;exports.toNonBlankString=o.toNonBlankString;exports.toNonBlankStringOrUndefined=o.toNonBlankStringOrUndefined;exports.toNonEmptyString=o.toNonEmptyString;exports.toNonEmptyStringOrUndefined=o.toNonEmptyStringOrUndefined;exports.Origin=p.Origin;exports.allOrigin=p.allOrigin;exports.ACTION=n.ACTION;exports.ALL_SIGN=n.ALL_SIGN;exports.SCOPE=n.SCOPE;exports.AllSubscriptionStatusType=u.AllSubscriptionStatusType;exports.SubscriptionStatusType=u.SubscriptionStatusType;exports.USER_STATUS=y.USER_STATUS;
2
2
  //# sourceMappingURL=index.cjs.map
package/dist/index.js CHANGED
@@ -1,63 +1,65 @@
1
1
  import { AcceptedUploadFileType as e } from "./consts/accepted-upload-file-type.js";
2
- import { GrowiPluginType as i } from "./consts/growi-plugin.js";
3
- import { GROWI_IS_CONTENT_RENDERING_ATTR as p, GROWI_IS_CONTENT_RENDERING_SELECTOR as f } from "./consts/renderer.js";
4
- import { GrowiDeploymentType as m, GrowiServiceType as a } from "./consts/system.js";
5
- import { YDocStatus as T, YJS_WEBSOCKET_BASE_PATH as I } from "./consts/ydoc-status.js";
2
+ import { AllCallout as i } from "./consts/callout.js";
3
+ import { GrowiPluginType as p } from "./consts/growi-plugin.js";
4
+ import { GROWI_IS_CONTENT_RENDERING_ATTR as S, GROWI_IS_CONTENT_RENDERING_SELECTOR as m } from "./consts/renderer.js";
5
+ import { GrowiDeploymentType as g, GrowiServiceType as T } from "./consts/system.js";
6
+ import { YDocStatus as l, YJS_WEBSOCKET_BASE_PATH as s } from "./consts/ydoc-status.js";
6
7
  import { ColorScheme as E } from "./interfaces/color-scheme.js";
7
- import { getIdForRef as N, getIdStringForRef as l, isPopulated as y, isRef as G } from "./interfaces/common.js";
8
- import { ConfigSource as _, defineConfig as d } from "./interfaces/config-manager.js";
9
- import { GrowiWikiType as R } from "./interfaces/growi-app-info.js";
10
- import { GrowiThemeSchemeType as c, isGrowiThemeMetadata as A } from "./interfaces/growi-theme-metadata.js";
11
- import { AllLang as F, Lang as w } from "./interfaces/lang.js";
12
- import { GroupType as B, PageGrant as U, PageStatus as h, isIPageInfo as k, isIPageInfoForEmpty as D, isIPageInfoForEntity as W, isIPageInfoForListing as b, isIPageInfoForOperation as Y, isIPageNotFoundInfo as v } from "./interfaces/page.js";
13
- import { isNonBlankString as J, isNonEmptyString as K, toNonBlankString as M, toNonBlankStringOrUndefined as j, toNonEmptyString as q, toNonEmptyStringOrUndefined as z } from "./interfaces/primitive/string.js";
14
- import { Origin as V, allOrigin as X } from "./interfaces/revision.js";
15
- import { ACTION as $, ALL_SIGN as oo, SCOPE as ro } from "./interfaces/scope.js";
16
- import { AllSubscriptionStatusType as to, SubscriptionStatusType as io } from "./interfaces/subscription.js";
17
- import { USER_STATUS as po } from "./interfaces/user.js";
8
+ import { getIdForRef as y, getIdStringForRef as G, isPopulated as O, isRef as _ } from "./interfaces/common.js";
9
+ import { ConfigSource as u, defineConfig as P } from "./interfaces/config-manager.js";
10
+ import { GrowiWikiType as A } from "./interfaces/growi-app-info.js";
11
+ import { GrowiThemeSchemeType as c, isGrowiThemeMetadata as F } from "./interfaces/growi-theme-metadata.js";
12
+ import { AllLang as L, Lang as B } from "./interfaces/lang.js";
13
+ import { GroupType as h, PageGrant as k, PageStatus as D, isIPageInfo as W, isIPageInfoForEmpty as b, isIPageInfoForEntity as Y, isIPageInfoForListing as v, isIPageInfoForOperation as H, isIPageNotFoundInfo as J } from "./interfaces/page.js";
14
+ import { isNonBlankString as M, isNonEmptyString as j, toNonBlankString as q, toNonBlankStringOrUndefined as z, toNonEmptyString as Q, toNonEmptyStringOrUndefined as V } from "./interfaces/primitive/string.js";
15
+ import { Origin as Z, allOrigin as $ } from "./interfaces/revision.js";
16
+ import { ACTION as ro, ALL_SIGN as eo, SCOPE as to } from "./interfaces/scope.js";
17
+ import { AllSubscriptionStatusType as no, SubscriptionStatusType as po } from "./interfaces/subscription.js";
18
+ import { USER_STATUS as So } from "./interfaces/user.js";
18
19
  export {
19
- $ as ACTION,
20
- oo as ALL_SIGN,
20
+ ro as ACTION,
21
+ eo as ALL_SIGN,
21
22
  e as AcceptedUploadFileType,
22
- F as AllLang,
23
- to as AllSubscriptionStatusType,
23
+ i as AllCallout,
24
+ L as AllLang,
25
+ no as AllSubscriptionStatusType,
24
26
  E as ColorScheme,
25
- _ as ConfigSource,
26
- p as GROWI_IS_CONTENT_RENDERING_ATTR,
27
- f as GROWI_IS_CONTENT_RENDERING_SELECTOR,
28
- B as GroupType,
29
- m as GrowiDeploymentType,
30
- i as GrowiPluginType,
31
- a as GrowiServiceType,
27
+ u as ConfigSource,
28
+ S as GROWI_IS_CONTENT_RENDERING_ATTR,
29
+ m as GROWI_IS_CONTENT_RENDERING_SELECTOR,
30
+ h as GroupType,
31
+ g as GrowiDeploymentType,
32
+ p as GrowiPluginType,
33
+ T as GrowiServiceType,
32
34
  c as GrowiThemeSchemeType,
33
- R as GrowiWikiType,
34
- w as Lang,
35
- V as Origin,
36
- U as PageGrant,
37
- h as PageStatus,
38
- ro as SCOPE,
39
- io as SubscriptionStatusType,
40
- po as USER_STATUS,
41
- T as YDocStatus,
42
- I as YJS_WEBSOCKET_BASE_PATH,
43
- X as allOrigin,
44
- d as defineConfig,
45
- N as getIdForRef,
46
- l as getIdStringForRef,
47
- A as isGrowiThemeMetadata,
48
- k as isIPageInfo,
49
- D as isIPageInfoForEmpty,
50
- W as isIPageInfoForEntity,
51
- b as isIPageInfoForListing,
52
- Y as isIPageInfoForOperation,
53
- v as isIPageNotFoundInfo,
54
- J as isNonBlankString,
55
- K as isNonEmptyString,
56
- y as isPopulated,
57
- G as isRef,
58
- M as toNonBlankString,
59
- j as toNonBlankStringOrUndefined,
60
- q as toNonEmptyString,
61
- z as toNonEmptyStringOrUndefined
35
+ A as GrowiWikiType,
36
+ B as Lang,
37
+ Z as Origin,
38
+ k as PageGrant,
39
+ D as PageStatus,
40
+ to as SCOPE,
41
+ po as SubscriptionStatusType,
42
+ So as USER_STATUS,
43
+ l as YDocStatus,
44
+ s as YJS_WEBSOCKET_BASE_PATH,
45
+ $ as allOrigin,
46
+ P as defineConfig,
47
+ y as getIdForRef,
48
+ G as getIdStringForRef,
49
+ F as isGrowiThemeMetadata,
50
+ W as isIPageInfo,
51
+ b as isIPageInfoForEmpty,
52
+ Y as isIPageInfoForEntity,
53
+ v as isIPageInfoForListing,
54
+ H as isIPageInfoForOperation,
55
+ J as isIPageNotFoundInfo,
56
+ M as isNonBlankString,
57
+ j as isNonEmptyString,
58
+ O as isPopulated,
59
+ _ as isRef,
60
+ q as toNonBlankString,
61
+ z as toNonBlankStringOrUndefined,
62
+ Q as toNonEmptyString,
63
+ V as toNonEmptyStringOrUndefined
62
64
  };
63
65
  //# sourceMappingURL=index.js.map
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@growi/core",
3
- "version": "3.1.0",
3
+ "version": "3.1.1-next.2d441a0a5af12a41bec4a11f7dc263329b5cb45d",
4
4
  "description": "GROWI Core Libraries",
5
5
  "license": "MIT",
6
6
  "repository": {