@jpmorganchase/mosaic-types 0.1.0-beta.14 → 0.1.0-beta.16

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,11 @@
1
+ /**
2
+ * [[`ContentProps`]] specifies the page source/content
3
+ */
4
+ export interface ContentProps {
5
+ /** Page source, which will be page type specific */
6
+ source?: Record<string, unknown>;
7
+ /** Page type */
8
+ type?: string;
9
+ /** Raw page content, includes markdown and frontmatter */
10
+ raw?: string;
11
+ }
package/dist/Mode.d.ts CHANGED
@@ -1 +1,16 @@
1
- export declare type MosaicMode = 'active' | 'static';
1
+ /**
2
+ * Mosaic mode dictates how content is loaded
3
+ *
4
+ * `active`
5
+ * In this mode, content is pulled from configured data sources and updates in real-time.
6
+ * After content is updated, Mosaic plugins create an enhanced, in-memory file object, representing the content
7
+ *
8
+ * `snapshot-file`
9
+ * In this mode, previously created snapshot files are loaded from a local directory.
10
+ *
11
+ * `snapshot-s3`
12
+ * In this mode, previously created snapshot files are loaded from an S3 bucket.
13
+ *
14
+ * (A snapshot is an immutable/persisted copy of `active` content, created separately)
15
+ */
16
+ export declare type MosaicMode = 'active' | 'snapshot-file' | 'snapshot-s3';
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import type { SerialiserModuleDefinition, MosaicConfig, PluginModuleDefinition, SourceModuleDefinition, SourceWorkflow } from '@jpmorganchase/mosaic-schemas';
2
+ export * from './Content.js';
2
3
  export * from './IFileAccess.js';
3
4
  export * from './Meta.js';
4
5
  export * from './MutableData.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jpmorganchase/mosaic-types",
3
- "version": "0.1.0-beta.14",
3
+ "version": "0.1.0-beta.16",
4
4
  "description": "Mosaic BitBucket source for core file system",
5
5
  "license": "Apache-2.0",
6
6
  "author": "",
@@ -27,7 +27,7 @@
27
27
  "lint": "eslint --ignore-pattern \"**/__tests__/**\""
28
28
  },
29
29
  "devDependencies": {
30
- "@jpmorganchase/mosaic-schemas": "^0.1.0-beta.14",
30
+ "@jpmorganchase/mosaic-schemas": "^0.1.0-beta.16",
31
31
  "memfs": "^3.4.12",
32
32
  "rxjs": "^7.5.5",
33
33
  "zod": "^3.19.1"