your-ai-workflow-firebase-os 2.0.9 → 2.0.10
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/{Assets-COH4Ji57.js → Assets-BKXpQmMS.js} +2 -2
- package/dist/{Assets-D7fDckSi.cjs → Assets-DoZlHuud.cjs} +1 -1
- package/dist/{Billing-kk4ZMd3z.js → Billing-A6rwfQRT.js} +2 -2
- package/dist/{Billing-DkuJdls5.cjs → Billing-CBxVy-CG.cjs} +1 -1
- package/dist/{CopyLink-C5lKLyOU.cjs → CopyLink-D6QTWSoK.cjs} +1 -1
- package/dist/{CopyLink-CNjDLzOl.js → CopyLink-kROJG9Qf.js} +1 -1
- package/dist/{DashboardNav-GgEUpyTa.cjs → DashboardNav-Bc619nqn.cjs} +1 -1
- package/dist/{DashboardNav-CEd8gGPm.js → DashboardNav-CxS3Qnl-.js} +1 -1
- package/dist/{EmailAdmin-pbQ-f9Ge.js → EmailAdmin-DbWK_5Kw.js} +4 -4
- package/dist/{EmailAdmin-d_gWd48U.cjs → EmailAdmin-sa9C5jOw.cjs} +1 -1
- package/dist/{EventCard-DAsGsicK.cjs → EventCard-D57elnQo.cjs} +1 -1
- package/dist/{EventCard-BSGLYD64.js → EventCard-DnoR91KN.js} +1 -1
- package/dist/{FormsAdmin-5KTTp6zo.cjs → FormsAdmin-Ck7ssCHd.cjs} +1 -1
- package/dist/{FormsAdmin-BNI63vEk.js → FormsAdmin-DOes2Ajy.js} +4 -4
- package/dist/{Inbox-DjslBakx.cjs → Inbox-ChBLxjCi.cjs} +1 -1
- package/dist/{Inbox-D9Y5K8Se.js → Inbox-CyteB2LL.js} +2 -2
- package/dist/{MyBookings-CkEioQIj.cjs → MyBookings-B424zfVj.cjs} +1 -1
- package/dist/{MyBookings-B4DndHV6.js → MyBookings-DLQefkDS.js} +3 -3
- package/dist/{PageTitle-DQkvCB11.cjs → PageTitle-BL50s4qY.cjs} +1 -1
- package/dist/{PageTitle-DCoUQWw6.js → PageTitle-CkZriz8K.js} +1 -1
- package/dist/{PagesAdmin-YdYgmuEB.cjs → PagesAdmin-1U73GM_o.cjs} +1 -1
- package/dist/PagesAdmin-8smM_SDx.cjs +1 -0
- package/dist/{PagesAdmin-DzLJWKBJ.js → PagesAdmin-CORR24DJ.js} +8 -8
- package/dist/{PagesAdmin-D0qgoZtW.js → PagesAdmin-hhVAwuuy.js} +1 -1
- package/dist/{PaymentsAdmin-C3cEOeIs.js → PaymentsAdmin-CoaSATtY.js} +9 -9
- package/dist/{PaymentsAdmin-B5l-f0mp.cjs → PaymentsAdmin-DdP5FeXc.cjs} +1 -1
- package/dist/{ProviderMark--adeeajP.cjs → ProviderMark-BCQRu5Gs.cjs} +1 -1
- package/dist/{ProviderMark-BvEMlZAm.js → ProviderMark-Celkjuth.js} +1 -1
- package/dist/{PublishApp-Bc82Ijkq.cjs → PublishApp-CYHX36oo.cjs} +1 -1
- package/dist/{PublishApp-B9Fo6xN0.js → PublishApp-Dagc4TYm.js} +4 -4
- package/dist/{ScheduleAdmin-bk3GgxKP.js → ScheduleAdmin-D8siv7ZQ.js} +4 -4
- package/dist/{ScheduleAdmin-Dh_hW6p4.cjs → ScheduleAdmin-ohFzK-5E.cjs} +1 -1
- package/dist/{SchedulePicker-CN0755Ek.cjs → SchedulePicker-BpPGI5VZ.cjs} +1 -1
- package/dist/{SchedulePicker-DO4PewPJ.js → SchedulePicker-sZIZec9L.js} +1 -1
- package/dist/{Setup-_G-s5y5Q.js → Setup-DOGI-_8f.js} +2 -2
- package/dist/{Setup-R4r6_tbV.cjs → Setup-DiFnnzdd.cjs} +1 -1
- package/dist/{SetupPayments-CuFk9REC.cjs → SetupPayments-BLq0W5DU.cjs} +1 -1
- package/dist/{SetupPayments-CkolcOtv.js → SetupPayments-ICqCoZeQ.js} +3 -3
- package/dist/{SignInAdmin-BLEn0rId.js → SignInAdmin-CQzPqUui.js} +5 -5
- package/dist/{SignInAdmin-B1yLLaQu.cjs → SignInAdmin-JnhCefKY.cjs} +1 -1
- package/dist/{SupportBar-DI_XbEsG.js → SupportBar-0nIiQp-_.js} +105 -104
- package/dist/SupportBar-DR52UpBq.cjs +1 -0
- package/dist/{TemplateDrive-DNBwL0oy.js → TemplateDrive-6aV9Hmh3.js} +2 -2
- package/dist/{TemplateDrive-BJN-ReA_.cjs → TemplateDrive-ElNPzwv3.cjs} +1 -1
- package/dist/ThemeAdmin-B4CIxIjh.cjs +1 -0
- package/dist/ThemeAdmin-B9VnH5xH.js +2 -0
- package/dist/{ThemeAdmin-DkgmjW3g.cjs → ThemeAdmin-BhaTfgKX.cjs} +1 -1
- package/dist/{ThemeAdmin-Cnqefrz6.js → ThemeAdmin-C_8phTKX.js} +3 -3
- package/dist/{TransactionsAdmin-C5wQRR1g.cjs → TransactionsAdmin-BiV8VgD0.cjs} +1 -1
- package/dist/{TransactionsAdmin-Brs-CEcG.js → TransactionsAdmin-DAENRmVO.js} +3 -3
- package/dist/{Users-B16L9cKI.cjs → Users-Ayu_S4cd.cjs} +1 -1
- package/dist/{Users-CbI4K_Le.js → Users-CNRVFf3-.js} +5 -5
- package/dist/{appIcons-CCArfCDe.js → appIcons-DfjKL0tw.js} +1 -1
- package/dist/{appIcons-C90OKlV5.cjs → appIcons-Xjk-LuQ5.cjs} +1 -1
- package/dist/{arrivalRoads-Cc6AZM-d.cjs → arrivalRoads-1OeHArA0.cjs} +0 -0
- package/dist/{arrivalRoads-CGXm9Ntm.js → arrivalRoads-BZ4SWRAw.js} +0 -0
- package/dist/components/TutorialVideo.d.ts +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/{paidSessions-D-zHC4oG.cjs → paidSessions-BK9qlIyL.cjs} +1 -1
- package/dist/{paidSessions-B8e5RHi4.js → paidSessions-C9392hZH.js} +2 -2
- package/dist/{recordsKey-C4E2vOti.cjs → recordsKey-B3lWGd8C.cjs} +1 -1
- package/dist/{recordsKey-Cd216nq1.js → recordsKey-CJL-dAYF.js} +1 -1
- package/dist/{roles-BBDIJzox.cjs → roles-BmnoAilb.cjs} +1 -1
- package/dist/{roles-DiwP6-WQ.js → roles-D3T8p-hA.js} +2 -2
- package/dist/server.cjs.js +1 -1
- package/dist/server.es.js +1 -1
- package/dist/vite.cjs.js +1 -1
- package/dist/vite.es.js +1 -1
- package/dist/your-ai-workflow-firebase-os.cjs.js +13 -13
- package/dist/your-ai-workflow-firebase-os.es.js +2184 -2189
- package/package.json +1 -1
- package/scripts/postinstall.js +2 -1
- package/src/pages/Home.tsx +11 -14
- package/dist/PagesAdmin-KUxCI1Mr.cjs +0 -1
- package/dist/SupportBar-DLWruzQb.cjs +0 -1
- package/dist/ThemeAdmin-CoE_c5-P.cjs +0 -1
- package/dist/ThemeAdmin-DI7QaZ-0.js +0 -2
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -316,7 +316,8 @@ if (fs.existsSync(sourceHomePath)) {
|
|
|
316
316
|
homeContent = homeContent
|
|
317
317
|
.replace(/from '\.\.\/components\/ContactPopup'/g, "from 'your-ai-workflow-firebase-os'")
|
|
318
318
|
.replace(/from '\.\.\/components\/Popup'/g, "from 'your-ai-workflow-firebase-os'")
|
|
319
|
-
.replace(/from '\.\.\/components\/media\/VideoPlayer'/g, "from 'your-ai-workflow-firebase-os'")
|
|
319
|
+
.replace(/from '\.\.\/components\/media\/VideoPlayer'/g, "from 'your-ai-workflow-firebase-os'")
|
|
320
|
+
.replace(/from '\.\.\/components\/TutorialVideo'/g, "from 'your-ai-workflow-firebase-os'");
|
|
320
321
|
// First install only — this file is meant to be edited, and reinstalling
|
|
321
322
|
// must not discard the project's own home page.
|
|
322
323
|
const homeDest = path.join(fbosDir, 'Home.tsx');
|
package/src/pages/Home.tsx
CHANGED
|
@@ -3,8 +3,7 @@ import { Code, Play } from 'lucide-react';
|
|
|
3
3
|
import { Link } from 'react-router-dom';
|
|
4
4
|
import { useState } from 'react';
|
|
5
5
|
import { ContactPopup } from '../components/ContactPopup';
|
|
6
|
-
import {
|
|
7
|
-
import { VideoPlayer } from '../components/media/VideoPlayer';
|
|
6
|
+
import { TutorialVideo } from '../components/TutorialVideo';
|
|
8
7
|
|
|
9
8
|
// ── Home page ──────────────────────────────────────────────────────────────
|
|
10
9
|
// This file IS the home page. There are no home settings anywhere in the
|
|
@@ -14,7 +13,7 @@ import { VideoPlayer } from '../components/media/VideoPlayer';
|
|
|
14
13
|
// Keep the NAMED export: App.tsx imports `{ Home }`.
|
|
15
14
|
|
|
16
15
|
/** The tutorial the second button plays. Paste your own link here. */
|
|
17
|
-
const TUTORIAL_VIDEO = 'https://
|
|
16
|
+
const TUTORIAL_VIDEO = 'https://youtu.be/YOyuogCNq9Y';
|
|
18
17
|
|
|
19
18
|
export function Home() {
|
|
20
19
|
const [showForm, setShowForm] = useState<string | null>(null);
|
|
@@ -84,19 +83,17 @@ export function Home() {
|
|
|
84
83
|
</motion.div>
|
|
85
84
|
</motion.div>
|
|
86
85
|
|
|
87
|
-
{/* Anything that opens over the page is the app's own
|
|
88
|
-
on a click outside, on Escape and on its ✕, and
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
86
|
+
{/* Anything that opens over the page is one of the app's own windows
|
|
87
|
+
(<Popup>): it closes on a click outside, on Escape and on its ✕, and
|
|
88
|
+
holds the page still. The tutorial's is <TutorialVideo> — the same
|
|
89
|
+
window the Tutorial button beside Help opens, with the app's own
|
|
90
|
+
player as big as the screen has room for. */}
|
|
91
|
+
<TutorialVideo
|
|
92
92
|
open={showTutorial}
|
|
93
|
+
href={TUTORIAL_VIDEO}
|
|
93
94
|
onClose={() => setShowTutorial(false)}
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
size="lg"
|
|
97
|
-
>
|
|
98
|
-
{showTutorial && <VideoPlayer src={TUTORIAL_VIDEO} title="Watch the tutorial" autoPlay />}
|
|
99
|
-
</Popup>
|
|
95
|
+
autoPlay
|
|
96
|
+
/>
|
|
100
97
|
|
|
101
98
|
<AnimatePresence>
|
|
102
99
|
{showForm && (
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`),require(`./TimeZoneField-Ckn1pKAL.cjs`);const e=require(`./PagesAdmin-YdYgmuEB.cjs`);exports.PagesAdmin=e.gt;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./PageTitle-DQkvCB11.cjs`),t=require(`./Trouble-KQZyf6aY.cjs`),n=require(`./chevron-down-lyDK1rfL.cjs`),r=require(`./VideoPlayer-CggwpVXH.cjs`),i=require(`./Popup-COnHpbrY.cjs`),a=require(`./mediaKind-ButDya5f.cjs`);let o=require(`react`),s=require(`react/jsx-runtime`),c=require(`react-dom`);var l={name:`chevron-up`,size:24,node:[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]};l.node;var u=n.n(l),d={name:`headset`,size:24,node:[[`path`,{d:`M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z`,key:`12oyoe`}],[`path`,{d:`M21 16v2a4 4 0 0 1-4 4h-5`,key:`1x7m43`}]]};d.node;var f=n.n(d),p={setup:``,publish:``,payments:``,users:``,signin:``},m=e=>{let t=String(e||``).trim();return/^\d+(?::\d{1,2}){1,2}$/.test(t)?t.split(`:`).map(Number).reduce((e,t)=>e*60+t,0):/^\d+$/.test(t)?Number(t.slice(0,-4)||0)*3600+Number(t.slice(-4,-2)||0)*60+Number(t.slice(-2)):0},h=e=>e&&!/^[a-z][a-z0-9+.-]*:/i.test(e)&&/^[\w.-]+\.[a-z]{2,}(?:[/?#]|$)/i.test(e)?`https://${e}`:e,g=(e,t)=>{if(!e||!(t>0))return e;try{let n=new URL(e),r=n.hostname.replace(/^(?:www|m|music|player)\./,``);return r===`youtu.be`||/(?:^|\.)youtube(?:-nocookie)?\.com$/.test(r)?n.searchParams.set(`t`,`${t}s`):/(?:^|\.)vimeo\.com$/.test(r)?n.hash=`t=${t}s`:/(?:^|\.)loom\.com$/.test(r)?n.searchParams.set(`t`,String(t)):n.hash=`t=${t}`,n.toString()}catch{return e}},_=e=>{let[t=``,n=``]=String(e||``).trim().split(/\s+/);return g(h(t),m(n))},v=e=>_(p[e]),y=`https://www.youraiworkflow.co/tutorials.json`,b=5e3,x=`fbos_tutorials`,S=!0,C=null,w=null,T=0,E=e=>!!e&&typeof e==`object`&&!Array.isArray(e),D=()=>{try{let e=JSON.parse(localStorage.getItem(x)||`null`);return E(e)?e:{}}catch{return{}}},O=e=>{try{localStorage.setItem(x,JSON.stringify(e))}catch{}};function k(){if(w)return Promise.resolve(w);if(C)return C;if(!S||typeof fetch!=`function`||Date.now()-T<3e5)return Promise.resolve(D());let e=typeof AbortController==`function`?new AbortController:null,t=e?setTimeout(()=>e.abort(),b):null;return C=fetch(y,{signal:e?.signal}).then(e=>e.ok?e.json():Promise.reject(Error(`tutorials.json: ${e.status}`))).then(e=>{if(!E(e))throw Error(`tutorials.json: not the file`);return w=e,O(e),e}).catch(()=>(T=Date.now(),D())).finally(()=>{C=null,t&&clearTimeout(t)}),C}function A(e){let[t,n]=(0,o.useState)(w);return(0,o.useEffect)(()=>{if(!e)return;let t=!0;return k().then(e=>{t&&n(e)}),()=>{t=!1}},[e]),e?_(String(t?.[e]||``)):``}var j=`Video not available`,M=e=>{let t=(e||``).trim();return/^https?:\/\//i.test(t)&&a.a(t)!==null?!0:/^https:\/\//i.test(t)&&a.u(t)===`video`};function N({children:e}){let t=(0,o.useRef)(null),[n,r]=(0,o.useState)(0);return(0,o.useLayoutEffect)(()=>{let e=t.current;if(!e)return;let n=()=>{let t=Math.min((typeof window>`u`?900:window.innerHeight)*.92-112,760);r(Math.min(e.clientWidth,16/9*Math.max(0,t)))};if(n(),window.addEventListener(`resize`,n),typeof ResizeObserver>`u`)return()=>window.removeEventListener(`resize`,n);let i=new ResizeObserver(n);return i.observe(e),()=>{i.disconnect(),window.removeEventListener(`resize`,n)}},[]),(0,s.jsx)(`div`,{ref:t,className:`flex items-center justify-center`,style:{maxHeight:`min(calc(92dvh - 112px), 760px)`},children:(0,s.jsx)(`div`,{className:`w-full`,style:n?{width:n}:void 0,children:e})})}function P({open:e,href:t,onClose:n}){let a=(t||``).trim();return(0,s.jsx)(i.t,{open:e,onClose:n,size:`xl`,title:`Tutorial`,children:(0,s.jsx)(N,{children:M(a)?(0,s.jsx)(r.t,{src:a}):(0,s.jsx)(`div`,{className:`relative w-full aspect-video overflow-hidden rounded-2xl border border-[var(--panel-border)] bg-foreground/[0.04]`,children:(0,s.jsx)(`p`,{className:`absolute inset-0 flex items-center justify-center text-[13px] font-semibold text-foreground/40`,children:j})})})})}var F=`https://youraiworkflow.co`,I=`antonina@youraiworkflow.co`,L=(t=e.y)=>t&&t!==`dev`?`${F}/report?v=${encodeURIComponent(t)}`:`${F}/report`,R={target:`_blank`,rel:`noopener noreferrer`},z=`h-9 flex items-center justify-center rounded-xl btn-secondary cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-accent`,B=`text-[13px] font-semibold text-foreground/50 hover:text-accent transition-colors whitespace-nowrap outline-none focus-visible:text-accent`,V=`pointer-events-auto max-w-full glass-popover rounded-2xl`,H=[],U=new Set,W=()=>U.forEach(e=>e()),G=e=>(U.add(e),()=>{U.delete(e)}),K=()=>H[0]?.token,q=()=>H.find(e=>e.video)?.video,J=()=>document.querySelector(`[aria-modal="true"]`)!==null,Y=e=>{let t=new MutationObserver(e);return t.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:[`aria-modal`]}),()=>t.disconnect()};function X({video:i}={}){let a=t.i(),[l,d]=(0,o.useState)(!0),[p,m]=(0,o.useState)(!1),h=(0,o.useRef)(null);h.current===null&&(h.current=Symbol(`support-bar`));let g=(0,o.useSyncExternalStore)(G,K,()=>void 0),_=(0,o.useSyncExternalStore)(G,q,()=>void 0),y=A(_),b=(0,o.useSyncExternalStore)(Y,J,()=>!1);if((0,o.useEffect)(()=>{let e=h.current;return H=[...H,{token:e,video:i}],W(),()=>{H=H.filter(t=>t.token!==e),W()}},[i]),g!==void 0&&g!==h.current)return null;let x=l?(0,s.jsxs)(`button`,{type:`button`,onClick:()=>d(!1),"aria-expanded":!1,"aria-label":`Show help`,className:`${V} h-10 pl-3.5 pr-3 flex items-center gap-2 text-[13px] font-semibold text-foreground/60 hover:text-accent hover:border-accent/40 transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,s.jsx)(f,{className:`w-4 h-4 shrink-0`}),`Help`,(0,s.jsx)(u,{className:`w-4 h-4 shrink-0 text-foreground/35`})]}):(0,s.jsxs)(`nav`,{"aria-label":`Help`,className:`${V} p-1.5 flex items-center gap-3`,children:[(0,s.jsxs)(`div`,{className:`flex items-center gap-1.5 shrink-0`,children:[(0,s.jsx)(`a`,{href:`mailto:${I}`,title:I,"aria-label":`Email me`,className:`${z} w-9`,children:(0,s.jsx)(e.h,{className:`w-4 h-4 text-foreground/80`})}),(0,s.jsxs)(`a`,{href:`${F}/book`,...R,className:`${z} gap-2 px-3.5 text-[13px] font-semibold text-foreground/80 whitespace-nowrap`,children:[(0,s.jsx)(f,{className:`w-4 h-4 shrink-0`}),(0,s.jsx)(`span`,{className:`max-sm:hidden`,children:`Book a session`}),(0,s.jsx)(`span`,{className:`sm:hidden`,children:`Book`})]})]}),(0,s.jsx)(`span`,{"aria-hidden":`true`,className:`w-px h-5 shrink-0 bg-[var(--panel-border)]`}),(0,s.jsxs)(`a`,{href:`${F}/quote`,...R,className:B,children:[(0,s.jsx)(`span`,{className:`max-sm:hidden`,children:`Request a quote`}),(0,s.jsx)(`span`,{className:`sm:hidden`,children:`Quote`})]}),(0,s.jsxs)(`a`,{href:L(),...R,className:B,children:[(0,s.jsx)(`span`,{className:`max-sm:hidden`,children:`Report an issue`}),(0,s.jsx)(`span`,{className:`sm:hidden`,children:`Report`})]}),(0,s.jsx)(`button`,{type:`button`,onClick:()=>d(!0),"aria-expanded":!0,"aria-label":`Fold help away`,title:`Fold away`,className:`w-8 h-9 -ml-1 shrink-0 flex items-center justify-center rounded-xl text-foreground/35 hover:text-foreground/70 transition-colors cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:(0,s.jsx)(n.t,{className:`w-4 h-4`})})]}),S=_&&l?(0,s.jsxs)(`button`,{type:`button`,onClick:()=>m(!0),className:`${V} h-10 pl-3.5 pr-4 flex items-center gap-2 text-[13px] font-semibold text-foreground/60 hover:text-accent hover:border-accent/40 transition-colors whitespace-nowrap cursor-pointer outline-none focus-visible:ring-2 focus-visible:ring-accent`,children:[(0,s.jsx)(r.r,{className:`w-4 h-4 shrink-0`}),`Tutorial`]}):null;return(0,s.jsxs)(s.Fragment,{children:[b?null:(0,c.createPortal)((0,s.jsxs)(`div`,{className:`fixed inset-x-0 z-30 px-4 flex justify-center gap-2 pointer-events-none transition-[bottom] duration-300 ${a?`bottom-24`:`bottom-4`}`,children:[x,S]}),document.body),_?(0,s.jsx)(P,{open:p,href:y||v(_),onClose:()=>m(!1)}):null]})}Object.defineProperty(exports,`t`,{enumerable:!0,get:function(){return X}});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
require(`./chunk-CiTBaPhY.cjs`);const e=require(`./ThemeAdmin-DkgmjW3g.cjs`);exports.ThemeAdmin=e.r;
|