astro-tractstack 2.0.45 → 2.0.47
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.js +0 -6
- package/package.json +1 -1
- package/templates/src/components/edit/panels/StyleLinkPanel.tsx +0 -4
- package/templates/src/constants.ts +4 -0
- package/templates/src/pages/sandbox.astro +0 -3
- package/templates/src/utils/actions/preParse_Action.ts +2 -8
- package/utils/inject-files.ts +0 -6
package/dist/index.js
CHANGED
|
@@ -150,12 +150,6 @@ async function w(t, e, c) {
|
|
|
150
150
|
),
|
|
151
151
|
dest: "src/components/compositor/nodes/Pane_layout.tsx"
|
|
152
152
|
},
|
|
153
|
-
{
|
|
154
|
-
src: t(
|
|
155
|
-
"../templates/src/components/codehooks/SandboxAuthWrapper.tsx"
|
|
156
|
-
),
|
|
157
|
-
dest: "src/components/codehooks/SandboxAuthWrapper.tsx"
|
|
158
|
-
},
|
|
159
153
|
{
|
|
160
154
|
src: t(
|
|
161
155
|
"../templates/src/components/codehooks/SandboxRegisterForm.tsx"
|
package/package.json
CHANGED
|
@@ -66,7 +66,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
|
|
|
66
66
|
textSIZE: ['base'],
|
|
67
67
|
transition: ['colors'],
|
|
68
68
|
transitionDURATION: ['200'],
|
|
69
|
-
w: ['full'],
|
|
70
69
|
},
|
|
71
70
|
{
|
|
72
71
|
bgCOLOR: ['blue-700'],
|
|
@@ -88,7 +87,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
|
|
|
88
87
|
textSIZE: ['base'],
|
|
89
88
|
transition: ['colors'],
|
|
90
89
|
transitionDURATION: ['200'],
|
|
91
|
-
w: ['full'],
|
|
92
90
|
},
|
|
93
91
|
{
|
|
94
92
|
bgCOLOR: ['blue-50'],
|
|
@@ -109,7 +107,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
|
|
|
109
107
|
textSIZE: ['base'],
|
|
110
108
|
transition: ['colors'],
|
|
111
109
|
transitionDURATION: ['200'],
|
|
112
|
-
w: ['full'],
|
|
113
110
|
},
|
|
114
111
|
{
|
|
115
112
|
bgCOLOR: ['white'],
|
|
@@ -133,7 +130,6 @@ const buttonStyleClasses: ButtonStylePair[] = [
|
|
|
133
130
|
textSIZE: ['base'],
|
|
134
131
|
transition: ['colors'],
|
|
135
132
|
transitionDURATION: ['200'],
|
|
136
|
-
w: ['full'],
|
|
137
133
|
},
|
|
138
134
|
{
|
|
139
135
|
textCOLOR: ['myblack'],
|
|
@@ -71,6 +71,10 @@ export const GOTO_TARGETS: GotoTargets = {
|
|
|
71
71
|
name: 'Home Page',
|
|
72
72
|
description: 'Navigate to the home page',
|
|
73
73
|
},
|
|
74
|
+
sandbox: {
|
|
75
|
+
name: 'Sandbox',
|
|
76
|
+
description: 'Enter the Story Keep',
|
|
77
|
+
},
|
|
74
78
|
concierge: {
|
|
75
79
|
name: 'Concierge',
|
|
76
80
|
subcommands: ['profile'],
|
|
@@ -12,7 +12,6 @@ import StoryKeepToolBar from '@/components/edit/ToolBar';
|
|
|
12
12
|
import StoryKeepToolMode from '@/components/edit/ToolMode';
|
|
13
13
|
import SettingsPanel from '@/components/edit/SettingsPanel';
|
|
14
14
|
import { Compositor } from '@/components/compositor/Compositor';
|
|
15
|
-
import SandboxAuthWrapper from '@/components/codehooks/SandboxAuthWrapper.tsx';
|
|
16
15
|
import { preHealthCheck } from '@/utils/backend';
|
|
17
16
|
|
|
18
17
|
if (!import.meta.env.PRIVATE_SANDBOX_SECRET) {
|
|
@@ -63,8 +62,6 @@ const hasProfile = Astro.request.headers
|
|
|
63
62
|
isStoryKeep={true}
|
|
64
63
|
isEditor={true}
|
|
65
64
|
>
|
|
66
|
-
<SandboxAuthWrapper client:load isServerSideAuthenticated={!!hasProfile} />
|
|
67
|
-
|
|
68
65
|
<CodeHook
|
|
69
66
|
target="get-tractstack"
|
|
70
67
|
options={{
|
|
@@ -22,6 +22,8 @@ export const preParseAction = (
|
|
|
22
22
|
return ``;
|
|
23
23
|
case `goto`:
|
|
24
24
|
switch (parameterOne) {
|
|
25
|
+
case `sandbox`:
|
|
26
|
+
return `/sandbox`;
|
|
25
27
|
case `storykeep`:
|
|
26
28
|
if (parameterTwo) {
|
|
27
29
|
switch (parameterTwo) {
|
|
@@ -68,14 +70,6 @@ export const preParseAction = (
|
|
|
68
70
|
return null;
|
|
69
71
|
case `url`:
|
|
70
72
|
return parameterTwo;
|
|
71
|
-
case `sandbox`:
|
|
72
|
-
if (parameterTwo) {
|
|
73
|
-
switch (parameterTwo) {
|
|
74
|
-
case `claim`:
|
|
75
|
-
return `/sandbox/claim`;
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
return ``;
|
|
79
73
|
default:
|
|
80
74
|
console.log(`LispActionPayload preParse misfire on goto`, payload);
|
|
81
75
|
}
|
package/utils/inject-files.ts
CHANGED
|
@@ -151,12 +151,6 @@ export async function injectTemplateFiles(
|
|
|
151
151
|
),
|
|
152
152
|
dest: 'src/components/compositor/nodes/Pane_layout.tsx',
|
|
153
153
|
},
|
|
154
|
-
{
|
|
155
|
-
src: resolve(
|
|
156
|
-
'../templates/src/components/codehooks/SandboxAuthWrapper.tsx'
|
|
157
|
-
),
|
|
158
|
-
dest: 'src/components/codehooks/SandboxAuthWrapper.tsx',
|
|
159
|
-
},
|
|
160
154
|
{
|
|
161
155
|
src: resolve(
|
|
162
156
|
'../templates/src/components/codehooks/SandboxRegisterForm.tsx'
|