@pramen/cms-editor 0.0.24 → 0.0.26
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/config.js +5 -0
- package/dist/index.html +4 -1
- package/dist/{main.nh6tk2qq.js → main.ywh6bxc0.js} +64 -64
- package/package.json +1 -1
- package/src/api.ts +33 -1
- package/src/app-context.tsx +56 -8
package/dist/config.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
// Runtime configuration for the pramen CMS editor. Override this file in your host app to
|
|
2
|
+
// point unauthenticated / expired sessions at an external sign-in page instead of the
|
|
3
|
+
// built-in Setup screen:
|
|
4
|
+
// window.PRAMEN_CMS_EDITOR = { signInUrl: "/signin/" };
|
|
5
|
+
window.PRAMEN_CMS_EDITOR = window.PRAMEN_CMS_EDITOR || {};
|
package/dist/index.html
CHANGED
|
@@ -6,9 +6,12 @@
|
|
|
6
6
|
<title>pramen · cms editor</title>
|
|
7
7
|
<link rel="stylesheet" href="/tokens.css" />
|
|
8
8
|
<link rel="stylesheet" href="/app.css" />
|
|
9
|
+
<!-- Runtime config, loaded before the app so window.PRAMEN_CMS_EDITOR is set at boot.
|
|
10
|
+
A default config.js ships in dist; a host overrides it to set e.g. signInUrl. -->
|
|
11
|
+
<script src="/config.js"></script>
|
|
9
12
|
</head>
|
|
10
13
|
<body>
|
|
11
14
|
<div id="app"></div>
|
|
12
|
-
<script type="module" src="/main.
|
|
15
|
+
<script type="module" src="/main.ywh6bxc0.js"></script>
|
|
13
16
|
</body>
|
|
14
17
|
</html>
|