@sneat/core 0.25.0 → 0.26.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/esm2022/lib/team-type.js
CHANGED
|
@@ -14,6 +14,8 @@ const concreteSpaceTypes = new Set([
|
|
|
14
14
|
'realtor',
|
|
15
15
|
'sport_club',
|
|
16
16
|
'cohabit',
|
|
17
|
+
// NoticeBoard.cc — a community centre / local venue space.
|
|
18
|
+
'community-center',
|
|
17
19
|
]);
|
|
18
20
|
/** Returns whether a value is a concrete space type accepted at an external boundary. */
|
|
19
21
|
export function isSpaceType(value) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"team-type.js","sourceRoot":"","sources":["../../../../../libs/core/src/lib/team-type.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,2EAA2E;AAC3E,iFAAiF;AACjF,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAgC;IAChE,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,SAAS;IACT,MAAM;IACN,QAAQ;IACR,UAAU;IACV,SAAS;IACT,YAAY;IACZ,SAAS;
|
|
1
|
+
{"version":3,"file":"team-type.js","sourceRoot":"","sources":["../../../../../libs/core/src/lib/team-type.ts"],"names":[],"mappings":"AAIA,MAAM,CAAC,MAAM,eAAe,GAAG,QAAQ,CAAC;AACxC,MAAM,CAAC,MAAM,iBAAiB,GAAG,UAAU,CAAC;AAC5C,MAAM,CAAC,MAAM,cAAc,GAAG,OAAO,CAAC;AAEtC,2EAA2E;AAC3E,iFAAiF;AACjF,MAAM,kBAAkB,GAAG,IAAI,GAAG,CAAgC;IAChE,eAAe;IACf,iBAAiB;IACjB,cAAc;IACd,SAAS;IACT,MAAM;IACN,QAAQ;IACR,UAAU;IACV,SAAS;IACT,YAAY;IACZ,SAAS;IACT,2DAA2D;IAC3D,kBAAkB;CACnB,CAAC,CAAC;AAEH,yFAAyF;AACzF,MAAM,UAAU,WAAW,CACzB,KAAc;IAEd,OAAO,CACL,OAAO,KAAK,KAAK,QAAQ;QACzB,kBAAkB,CAAC,GAAG,CAAC,KAAsC,CAAC,CAC/D,CAAC;AACJ,CAAC;AAED,gEAAgE;AAChE,MAAM,UAAU,cAAc,CAAC,KAAc;IAC3C,OAAO,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,SAAS,CAAC;AAChD,CAAC","sourcesContent":["import { SpaceType } from '@sneat/core-public';\n\nexport type { SpaceType } from '@sneat/core-public';\n\nexport const SpaceTypeFamily = 'family';\nexport const SpaceTypePersonal = 'personal';\nexport const SpaceTypeGroup = 'group';\n\n// A restricted-visibility space type may be introduced later if a real use\n// case arises; it was intentionally left out to avoid confusion with 'personal'.\nconst concreteSpaceTypes = new Set<Exclude<SpaceType, 'unknown'>>([\n SpaceTypeFamily,\n SpaceTypePersonal,\n SpaceTypeGroup,\n 'company',\n 'team',\n 'parish',\n 'educator',\n 'realtor',\n 'sport_club',\n 'cohabit',\n // NoticeBoard.cc — a community centre / local venue space.\n 'community-center',\n]);\n\n/** Returns whether a value is a concrete space type accepted at an external boundary. */\nexport function isSpaceType(\n value: unknown,\n): value is Exclude<SpaceType, 'unknown'> {\n return (\n typeof value === 'string' &&\n concreteSpaceTypes.has(value as Exclude<SpaceType, 'unknown'>)\n );\n}\n\n/** Parses a concrete space type from untyped external input. */\nexport function parseSpaceType(value: unknown): Exclude<SpaceType, 'unknown'> | undefined {\n return isSpaceType(value) ? value : undefined;\n}\n"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sneat/core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.26.0",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"@angular/core": ">=21.0.0",
|
|
11
11
|
"@angular/router": ">=21.0.0",
|
|
12
12
|
"@ionic/angular": ">=8.0.0",
|
|
13
|
-
"@sneat/core-public": "^0.
|
|
13
|
+
"@sneat/core-public": "^0.26.0",
|
|
14
14
|
"rxjs": ">=7.8.0"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|