@growi/core 1.0.0-next.96e3edfcdce577ec4ee9cf8f8d0ef908840d0bd4 → 1.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/dist/index.cjs +1 -1
- package/dist/index.js +20 -19
- package/dist/interfaces/growi-theme-metadata.cjs +1 -1
- package/dist/interfaces/growi-theme-metadata.cjs.map +1 -1
- package/dist/interfaces/growi-theme-metadata.d.ts +1 -0
- package/dist/interfaces/growi-theme-metadata.js +8 -4
- package/dist/interfaces/growi-theme-metadata.js.map +1 -1
- package/dist/interfaces/index.cjs +1 -1
- package/dist/interfaces/index.js +26 -25
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("./consts/accepted-upload-file-type.cjs"),s=require("./consts/growi-plugin.cjs"),c=require("./interfaces/color-scheme.cjs"),r=require("./interfaces/common.cjs"),l=require("./interfaces/external-account.cjs"),i=require("./interfaces/growi-theme-metadata.cjs"),o=require("./interfaces/lang.cjs"),e=require("./interfaces/page.cjs"),t=require("./interfaces/revision.cjs"),n=require("./interfaces/subscription.cjs"),u=require("./interfaces/user.cjs"),p=require("./interfaces/websocket.cjs");exports.AcceptedUploadFileType=a.AcceptedUploadFileType;exports.GrowiPluginType=s.GrowiPluginType;exports.ColorScheme=c.ColorScheme;exports.getIdForRef=r.getIdForRef;exports.isPopulated=r.isPopulated;exports.IExternalAuthProviderType=l.IExternalAuthProviderType;exports.GrowiThemeSchemeType=i.GrowiThemeSchemeType;exports.isGrowiThemeMetadata=i.isGrowiThemeMetadata;exports.AllLang=o.AllLang;exports.Lang=o.Lang;exports.GroupType=e.GroupType;exports.PageGrant=e.PageGrant;exports.PageStatus=e.PageStatus;exports.isIPageInfoForEntity=e.isIPageInfoForEntity;exports.isIPageInfoForListing=e.isIPageInfoForListing;exports.isIPageInfoForOperation=e.isIPageInfoForOperation;exports.Origin=t.Origin;exports.allOrigin=t.allOrigin;exports.AllSubscriptionStatusType=n.AllSubscriptionStatusType;exports.SubscriptionStatusType=n.SubscriptionStatusType;exports.USER_STATUS=u.USER_STATUS;exports.GlobalSocketEventName=p.GlobalSocketEventName;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/index.js
CHANGED
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import { AcceptedUploadFileType as r } from "./consts/accepted-upload-file-type.js";
|
|
2
2
|
import { GrowiPluginType as p } from "./consts/growi-plugin.js";
|
|
3
3
|
import { ColorScheme as a } from "./interfaces/color-scheme.js";
|
|
4
|
-
import { getIdForRef as
|
|
4
|
+
import { getIdForRef as f, isPopulated as n } from "./interfaces/common.js";
|
|
5
5
|
import { IExternalAuthProviderType as x } from "./interfaces/external-account.js";
|
|
6
|
-
import { GrowiThemeSchemeType as S } from "./interfaces/growi-theme-metadata.js";
|
|
7
|
-
import { AllLang as
|
|
8
|
-
import { GroupType as
|
|
9
|
-
import { Origin as
|
|
6
|
+
import { GrowiThemeSchemeType as s, isGrowiThemeMetadata as S } from "./interfaces/growi-theme-metadata.js";
|
|
7
|
+
import { AllLang as u, Lang as y } from "./interfaces/lang.js";
|
|
8
|
+
import { GroupType as P, PageGrant as c, PageStatus as d, isIPageInfoForEntity as G, isIPageInfoForListing as h, isIPageInfoForOperation as A } from "./interfaces/page.js";
|
|
9
|
+
import { Origin as E, allOrigin as b } from "./interfaces/revision.js";
|
|
10
10
|
import { AllSubscriptionStatusType as L, SubscriptionStatusType as O } from "./interfaces/subscription.js";
|
|
11
11
|
import { USER_STATUS as v } from "./interfaces/user.js";
|
|
12
|
-
import { GlobalSocketEventName as
|
|
12
|
+
import { GlobalSocketEventName as k } from "./interfaces/websocket.js";
|
|
13
13
|
export {
|
|
14
14
|
r as AcceptedUploadFileType,
|
|
15
|
-
|
|
15
|
+
u as AllLang,
|
|
16
16
|
L as AllSubscriptionStatusType,
|
|
17
17
|
a as ColorScheme,
|
|
18
|
-
|
|
19
|
-
|
|
18
|
+
k as GlobalSocketEventName,
|
|
19
|
+
P as GroupType,
|
|
20
20
|
p as GrowiPluginType,
|
|
21
|
-
|
|
21
|
+
s as GrowiThemeSchemeType,
|
|
22
22
|
x as IExternalAuthProviderType,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
23
|
+
y as Lang,
|
|
24
|
+
E as Origin,
|
|
25
|
+
c as PageGrant,
|
|
26
|
+
d as PageStatus,
|
|
27
27
|
O as SubscriptionStatusType,
|
|
28
28
|
v as USER_STATUS,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
29
|
+
b as allOrigin,
|
|
30
|
+
f as getIdForRef,
|
|
31
|
+
S as isGrowiThemeMetadata,
|
|
32
|
+
G as isIPageInfoForEntity,
|
|
33
|
+
h as isIPageInfoForListing,
|
|
34
|
+
A as isIPageInfoForOperation,
|
|
34
35
|
n as isPopulated
|
|
35
36
|
};
|
|
36
37
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("./color-scheme.cjs"),r={...i.ColorScheme,BOTH:"both"},n=t=>{const e=t;return e!=null&&typeof e=="object"&&Array.isArray(e)===!1&&"name"in e&&typeof e.name=="string"&&"manifestKey"in e&&typeof e.manifestKey=="string"&&"schemeType"in e&&typeof e.schemeType=="string"&&"lightBg"in e&&typeof e.lightBg=="string"&&"darkBg"in e&&typeof e.darkBg=="string"&&"lightSidebar"in e&&typeof e.lightSidebar=="string"&&"darkSidebar"in e&&typeof e.darkSidebar=="string"&&"lightIcon"in e&&typeof e.lightIcon=="string"&&"darkIcon"in e&&typeof e.darkIcon=="string"&&"createBtn"in e&&typeof e.createBtn=="string"};exports.GrowiThemeSchemeType=r;exports.isGrowiThemeMetadata=n;
|
|
2
2
|
//# sourceMappingURL=growi-theme-metadata.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"growi-theme-metadata.cjs","sources":["../../src/interfaces/growi-theme-metadata.ts"],"sourcesContent":["import { ColorScheme } from './color-scheme';\n\nexport const GrowiThemeSchemeType = {\n ...ColorScheme,\n BOTH: 'both',\n} as const;\nexport type GrowiThemeSchemeType = typeof GrowiThemeSchemeType[keyof typeof GrowiThemeSchemeType];\n\nexport type GrowiThemeMetadata = {\n name: string,\n manifestKey: string,\n schemeType: GrowiThemeSchemeType,\n lightBg: string,\n darkBg: string,\n lightSidebar: string,\n darkSidebar: string,\n lightIcon: string,\n darkIcon: string,\n createBtn: string,\n isPresetTheme?: boolean,\n};\n"],"names":["GrowiThemeSchemeType","ColorScheme"],"mappings":"sHAEaA,EAAuB,CAClC,GAAGC,EAAA,YACH,KAAM,MACR"}
|
|
1
|
+
{"version":3,"file":"growi-theme-metadata.cjs","sources":["../../src/interfaces/growi-theme-metadata.ts"],"sourcesContent":["import { ColorScheme } from './color-scheme';\n\nexport const GrowiThemeSchemeType = {\n ...ColorScheme,\n BOTH: 'both',\n} as const;\nexport type GrowiThemeSchemeType = typeof GrowiThemeSchemeType[keyof typeof GrowiThemeSchemeType];\n\nexport type GrowiThemeMetadata = {\n name: string,\n manifestKey: string,\n schemeType: GrowiThemeSchemeType,\n lightBg: string,\n darkBg: string,\n lightSidebar: string,\n darkSidebar: string,\n lightIcon: string,\n darkIcon: string,\n createBtn: string,\n isPresetTheme?: boolean,\n};\n\nexport const isGrowiThemeMetadata = (obj: unknown): obj is GrowiThemeMetadata => {\n const objAny = obj as any;\n\n return objAny != null\n && typeof objAny === 'object'\n && Array.isArray(objAny) === false\n && 'name' in objAny && typeof objAny.name === 'string'\n && 'manifestKey' in objAny && typeof objAny.manifestKey === 'string'\n && 'schemeType' in objAny && typeof objAny.schemeType === 'string'\n && 'lightBg' in objAny && typeof objAny.lightBg === 'string'\n && 'darkBg' in objAny && typeof objAny.darkBg === 'string'\n && 'lightSidebar' in objAny && typeof objAny.lightSidebar === 'string'\n && 'darkSidebar' in objAny && typeof objAny.darkSidebar === 'string'\n && 'lightIcon' in objAny && typeof objAny.lightIcon === 'string'\n && 'darkIcon' in objAny && typeof objAny.darkIcon === 'string'\n && 'createBtn' in objAny && typeof objAny.createBtn === 'string';\n};\n"],"names":["GrowiThemeSchemeType","ColorScheme","isGrowiThemeMetadata","obj","objAny"],"mappings":"sHAEaA,EAAuB,CAClC,GAAGC,EAAA,YACH,KAAM,MACR,EAiBaC,EAAwBC,GAA4C,CAC/E,MAAMC,EAASD,EAEf,OAAOC,GAAU,MACZ,OAAOA,GAAW,UAClB,MAAM,QAAQA,CAAM,IAAM,IAC1B,SAAUA,GAAU,OAAOA,EAAO,MAAS,UAC3C,gBAAiBA,GAAU,OAAOA,EAAO,aAAgB,UACzD,eAAgBA,GAAU,OAAOA,EAAO,YAAe,UACvD,YAAaA,GAAU,OAAOA,EAAO,SAAY,UACjD,WAAYA,GAAU,OAAOA,EAAO,QAAW,UAC/C,iBAAkBA,GAAU,OAAOA,EAAO,cAAiB,UAC3D,gBAAiBA,GAAU,OAAOA,EAAO,aAAgB,UACzD,cAAeA,GAAU,OAAOA,EAAO,WAAc,UACrD,aAAcA,GAAU,OAAOA,EAAO,UAAa,UACnD,cAAeA,GAAU,OAAOA,EAAO,WAAc,QAC5D"}
|
|
@@ -1,9 +1,13 @@
|
|
|
1
|
-
import { ColorScheme as
|
|
2
|
-
const
|
|
3
|
-
...
|
|
1
|
+
import { ColorScheme as i } from "./color-scheme.js";
|
|
2
|
+
const r = {
|
|
3
|
+
...i,
|
|
4
4
|
BOTH: "both"
|
|
5
|
+
}, o = (t) => {
|
|
6
|
+
const e = t;
|
|
7
|
+
return e != null && typeof e == "object" && Array.isArray(e) === !1 && "name" in e && typeof e.name == "string" && "manifestKey" in e && typeof e.manifestKey == "string" && "schemeType" in e && typeof e.schemeType == "string" && "lightBg" in e && typeof e.lightBg == "string" && "darkBg" in e && typeof e.darkBg == "string" && "lightSidebar" in e && typeof e.lightSidebar == "string" && "darkSidebar" in e && typeof e.darkSidebar == "string" && "lightIcon" in e && typeof e.lightIcon == "string" && "darkIcon" in e && typeof e.darkIcon == "string" && "createBtn" in e && typeof e.createBtn == "string";
|
|
5
8
|
};
|
|
6
9
|
export {
|
|
7
|
-
|
|
10
|
+
r as GrowiThemeSchemeType,
|
|
11
|
+
o as isGrowiThemeMetadata
|
|
8
12
|
};
|
|
9
13
|
//# sourceMappingURL=growi-theme-metadata.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"growi-theme-metadata.js","sources":["../../src/interfaces/growi-theme-metadata.ts"],"sourcesContent":["import { ColorScheme } from './color-scheme';\n\nexport const GrowiThemeSchemeType = {\n ...ColorScheme,\n BOTH: 'both',\n} as const;\nexport type GrowiThemeSchemeType = typeof GrowiThemeSchemeType[keyof typeof GrowiThemeSchemeType];\n\nexport type GrowiThemeMetadata = {\n name: string,\n manifestKey: string,\n schemeType: GrowiThemeSchemeType,\n lightBg: string,\n darkBg: string,\n lightSidebar: string,\n darkSidebar: string,\n lightIcon: string,\n darkIcon: string,\n createBtn: string,\n isPresetTheme?: boolean,\n};\n"],"names":["GrowiThemeSchemeType","ColorScheme"],"mappings":";AAEO,MAAMA,IAAuB;AAAA,EAClC,GAAGC;AAAA,EACH,MAAM;AACR;"}
|
|
1
|
+
{"version":3,"file":"growi-theme-metadata.js","sources":["../../src/interfaces/growi-theme-metadata.ts"],"sourcesContent":["import { ColorScheme } from './color-scheme';\n\nexport const GrowiThemeSchemeType = {\n ...ColorScheme,\n BOTH: 'both',\n} as const;\nexport type GrowiThemeSchemeType = typeof GrowiThemeSchemeType[keyof typeof GrowiThemeSchemeType];\n\nexport type GrowiThemeMetadata = {\n name: string,\n manifestKey: string,\n schemeType: GrowiThemeSchemeType,\n lightBg: string,\n darkBg: string,\n lightSidebar: string,\n darkSidebar: string,\n lightIcon: string,\n darkIcon: string,\n createBtn: string,\n isPresetTheme?: boolean,\n};\n\nexport const isGrowiThemeMetadata = (obj: unknown): obj is GrowiThemeMetadata => {\n const objAny = obj as any;\n\n return objAny != null\n && typeof objAny === 'object'\n && Array.isArray(objAny) === false\n && 'name' in objAny && typeof objAny.name === 'string'\n && 'manifestKey' in objAny && typeof objAny.manifestKey === 'string'\n && 'schemeType' in objAny && typeof objAny.schemeType === 'string'\n && 'lightBg' in objAny && typeof objAny.lightBg === 'string'\n && 'darkBg' in objAny && typeof objAny.darkBg === 'string'\n && 'lightSidebar' in objAny && typeof objAny.lightSidebar === 'string'\n && 'darkSidebar' in objAny && typeof objAny.darkSidebar === 'string'\n && 'lightIcon' in objAny && typeof objAny.lightIcon === 'string'\n && 'darkIcon' in objAny && typeof objAny.darkIcon === 'string'\n && 'createBtn' in objAny && typeof objAny.createBtn === 'string';\n};\n"],"names":["GrowiThemeSchemeType","ColorScheme","isGrowiThemeMetadata","obj","objAny"],"mappings":";AAEO,MAAMA,IAAuB;AAAA,EAClC,GAAGC;AAAA,EACH,MAAM;AACR,GAiBaC,IAAuB,CAACC,MAA4C;AAC/E,QAAMC,IAASD;AAEf,SAAOC,KAAU,QACZ,OAAOA,KAAW,YAClB,MAAM,QAAQA,CAAM,MAAM,MAC1B,UAAUA,KAAU,OAAOA,EAAO,QAAS,YAC3C,iBAAiBA,KAAU,OAAOA,EAAO,eAAgB,YACzD,gBAAgBA,KAAU,OAAOA,EAAO,cAAe,YACvD,aAAaA,KAAU,OAAOA,EAAO,WAAY,YACjD,YAAYA,KAAU,OAAOA,EAAO,UAAW,YAC/C,kBAAkBA,KAAU,OAAOA,EAAO,gBAAiB,YAC3D,iBAAiBA,KAAU,OAAOA,EAAO,eAAgB,YACzD,eAAeA,KAAU,OAAOA,EAAO,aAAc,YACrD,cAAcA,KAAU,OAAOA,EAAO,YAAa,YACnD,eAAeA,KAAU,OAAOA,EAAO,aAAc;AAC5D;"}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./color-scheme.cjs"),r=require("./common.cjs"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("./color-scheme.cjs"),r=require("./common.cjs"),s=require("./external-account.cjs"),t=require("./growi-theme-metadata.cjs"),o=require("./lang.cjs"),e=require("./page.cjs"),i=require("./revision.cjs"),a=require("./subscription.cjs"),u=require("./user.cjs"),c=require("./websocket.cjs");exports.ColorScheme=n.ColorScheme;exports.getIdForRef=r.getIdForRef;exports.isPopulated=r.isPopulated;exports.IExternalAuthProviderType=s.IExternalAuthProviderType;exports.GrowiThemeSchemeType=t.GrowiThemeSchemeType;exports.isGrowiThemeMetadata=t.isGrowiThemeMetadata;exports.AllLang=o.AllLang;exports.Lang=o.Lang;exports.GroupType=e.GroupType;exports.PageGrant=e.PageGrant;exports.PageStatus=e.PageStatus;exports.isIPageInfoForEntity=e.isIPageInfoForEntity;exports.isIPageInfoForListing=e.isIPageInfoForListing;exports.isIPageInfoForOperation=e.isIPageInfoForOperation;exports.Origin=i.Origin;exports.allOrigin=i.allOrigin;exports.AllSubscriptionStatusType=a.AllSubscriptionStatusType;exports.SubscriptionStatusType=a.SubscriptionStatusType;exports.USER_STATUS=u.USER_STATUS;exports.GlobalSocketEventName=c.GlobalSocketEventName;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|
package/dist/interfaces/index.js
CHANGED
|
@@ -1,32 +1,33 @@
|
|
|
1
|
-
import { ColorScheme as
|
|
2
|
-
import { getIdForRef as
|
|
3
|
-
import { IExternalAuthProviderType as
|
|
4
|
-
import { GrowiThemeSchemeType as
|
|
5
|
-
import { AllLang as
|
|
6
|
-
import { GroupType as
|
|
7
|
-
import { Origin as
|
|
8
|
-
import { AllSubscriptionStatusType as
|
|
9
|
-
import { USER_STATUS as
|
|
10
|
-
import { GlobalSocketEventName as
|
|
1
|
+
import { ColorScheme as r } from "./color-scheme.js";
|
|
2
|
+
import { getIdForRef as a, isPopulated as i } from "./common.js";
|
|
3
|
+
import { IExternalAuthProviderType as m } from "./external-account.js";
|
|
4
|
+
import { GrowiThemeSchemeType as f, isGrowiThemeMetadata as g } from "./growi-theme-metadata.js";
|
|
5
|
+
import { AllLang as s, Lang as x } from "./lang.js";
|
|
6
|
+
import { GroupType as T, PageGrant as u, PageStatus as I, isIPageInfoForEntity as P, isIPageInfoForListing as y, isIPageInfoForOperation as c } from "./page.js";
|
|
7
|
+
import { Origin as G, allOrigin as d } from "./revision.js";
|
|
8
|
+
import { AllSubscriptionStatusType as E, SubscriptionStatusType as F } from "./subscription.js";
|
|
9
|
+
import { USER_STATUS as L } from "./user.js";
|
|
10
|
+
import { GlobalSocketEventName as v } from "./websocket.js";
|
|
11
11
|
export {
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
12
|
+
s as AllLang,
|
|
13
|
+
E as AllSubscriptionStatusType,
|
|
14
|
+
r as ColorScheme,
|
|
15
|
+
v as GlobalSocketEventName,
|
|
16
|
+
T as GroupType,
|
|
17
|
+
f as GrowiThemeSchemeType,
|
|
18
|
+
m as IExternalAuthProviderType,
|
|
19
19
|
x as Lang,
|
|
20
|
-
|
|
20
|
+
G as Origin,
|
|
21
21
|
u as PageGrant,
|
|
22
22
|
I as PageStatus,
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
P as
|
|
29
|
-
y as
|
|
23
|
+
F as SubscriptionStatusType,
|
|
24
|
+
L as USER_STATUS,
|
|
25
|
+
d as allOrigin,
|
|
26
|
+
a as getIdForRef,
|
|
27
|
+
g as isGrowiThemeMetadata,
|
|
28
|
+
P as isIPageInfoForEntity,
|
|
29
|
+
y as isIPageInfoForListing,
|
|
30
|
+
c as isIPageInfoForOperation,
|
|
30
31
|
i as isPopulated
|
|
31
32
|
};
|
|
32
33
|
//# sourceMappingURL=index.js.map
|