@storybook/addon-onboarding 11.0.0-alpha.8 → 11.0.0-beta.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.
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IntentSurvey
3
- } from "./chunk-IQU35HZW.js";
3
+ } from "./chunk-KOESDW5S.js";
4
4
  import {
5
5
  ADDON_CONTROLS_ID,
6
6
  ADDON_ONBOARDING_CHANNEL
@@ -853,7 +853,7 @@ var require_prop_types = __commonJS({
853
853
  import React14, { useCallback as useCallback3, useEffect as useEffect5, useState as useState3 } from "react";
854
854
  import { SyntaxHighlighter } from "storybook/internal/components";
855
855
  import { SAVE_STORY_RESPONSE } from "storybook/internal/core-events";
856
- import { ThemeProvider as ThemeProvider2, convert as convert2, styled as styled4, themes as themes2 } from "storybook/theming";
856
+ import { ThemeProvider as ThemeProvider2, convert as convert2, styled as styled4, themes as themes2 } from "storybook/theming/emotion";
857
857
 
858
858
  // ../../core/src/manager/components/TourGuide/HighlightElement.tsx
859
859
  import { useEffect } from "react";
@@ -5461,14 +5461,14 @@ __publicField(Joyride, "defaultProps", defaultProps);
5461
5461
  var components_default = Joyride;
5462
5462
 
5463
5463
  // ../../core/src/manager/components/TourGuide/TourGuide.tsx
5464
- import { useTheme } from "storybook/theming";
5465
- import { ThemeProvider, convert, themes } from "storybook/theming";
5464
+ import { useTheme } from "storybook/theming/emotion";
5465
+ import { ThemeProvider, convert, themes } from "storybook/theming/emotion";
5466
5466
 
5467
5467
  // ../../core/src/manager/components/TourGuide/TourTooltip.tsx
5468
5468
  import React10, { useEffect as useEffect2 } from "react";
5469
5469
  import { Button } from "storybook/internal/components";
5470
5470
  import { CloseAltIcon } from "@storybook/icons";
5471
- import { color, styled } from "storybook/theming";
5471
+ import { color, styled } from "storybook/theming/emotion";
5472
5472
  var ONBOARDING_ARROW_STYLE_ID = "storybook-onboarding-arrow-style", TooltipBody = styled.div`
5473
5473
  padding: 15px;
5474
5474
  border-radius: 5px;
@@ -5546,7 +5546,7 @@ var ONBOARDING_ARROW_STYLE_ID = "storybook-onboarding-arrow-style", TooltipBody
5546
5546
  ariaLabel: "Close"
5547
5547
  },
5548
5548
  React10.createElement(CloseAltIcon, null)
5549
- )), React10.createElement(TooltipContent, null, step.content)), React10.createElement(TooltipFooter, { id: "buttonNext" }, React10.createElement(Count, null, index + 1, " of ", size), !step.hideNextButton && React10.createElement(NextButton, { ...primaryProps }, index + 1 === size ? "Done" : "Next"))));
5549
+ )), React10.createElement(TooltipContent, null, step.content)), React10.createElement(TooltipFooter, { id: "buttonNext" }, React10.createElement(Count, null, index + 1, " of ", size), !step.hideNextButton && React10.createElement(NextButton, { ariaLabel: !1, ...primaryProps }, index + 1 === size ? "Done" : "Next"))));
5550
5550
 
5551
5551
  // ../../core/src/manager/components/TourGuide/TourGuide.tsx
5552
5552
  var keepTooltipInViewport = {
@@ -5738,7 +5738,7 @@ function F({ class: e2, ...t2 }) {
5738
5738
  }
5739
5739
 
5740
5740
  // src/components/Confetti/Confetti.tsx
5741
- import { styled as styled2 } from "storybook/theming";
5741
+ import { styled as styled2 } from "storybook/theming/emotion";
5742
5742
  var Wrapper2 = styled2.div({
5743
5743
  zIndex: 9999,
5744
5744
  position: "fixed",
@@ -5769,7 +5769,7 @@ var Wrapper2 = styled2.div({
5769
5769
  // src/features/SplashScreen/SplashScreen.tsx
5770
5770
  import React13, { useCallback as useCallback2, useEffect as useEffect4, useState as useState2 } from "react";
5771
5771
  import { ArrowRightIcon } from "@storybook/icons";
5772
- import { keyframes as keyframes2, styled as styled3 } from "storybook/theming";
5772
+ import { keyframes as keyframes2, styled as styled3 } from "storybook/theming/emotion";
5773
5773
  var fadeIn = keyframes2({
5774
5774
  from: {
5775
5775
  opacity: 0
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  IntentSurvey
3
- } from "./chunk-IQU35HZW.js";
3
+ } from "./chunk-KOESDW5S.js";
4
4
  import {
5
5
  ADDON_ONBOARDING_CHANNEL
6
6
  } from "./chunk-VFOIHBP2.js";
@@ -8,7 +8,7 @@ import "./chunk-UBBB7RW7.js";
8
8
 
9
9
  // src/Survey.tsx
10
10
  import React, { useCallback, useEffect, useState } from "react";
11
- import { ThemeProvider, convert } from "storybook/theming";
11
+ import { ThemeProvider, convert } from "storybook/theming/emotion";
12
12
  var theme = convert();
13
13
  function Survey({ api }) {
14
14
  let userAgent = globalThis?.navigator?.userAgent, [isOpen, setIsOpen] = useState(!0);
@@ -1,7 +1,7 @@
1
1
  // src/features/IntentSurvey/IntentSurvey.tsx
2
2
  import React, { Fragment, useState } from "react";
3
3
  import { Button, Form, Modal } from "storybook/internal/components";
4
- import { styled } from "storybook/theming";
4
+ import { styled } from "storybook/theming/emotion";
5
5
 
6
6
  // ../../.storybook/isChromatic.ts
7
7
  function isChromatic(windowArg) {
package/dist/manager.js CHANGED
@@ -9,7 +9,7 @@ import React, { Suspense, lazy } from "react";
9
9
  import { createRoot } from "react-dom/client";
10
10
  import { STORY_SPECIFIED } from "storybook/internal/core-events";
11
11
  import { addons, internal_universalChecklistStore as checklistStore } from "storybook/manager-api";
12
- var Onboarding = lazy(() => import("./_browser-chunks/Onboarding-MO6RLPMV.js")), Survey = lazy(() => import("./_browser-chunks/Survey-ONUNS54C.js")), root = null, render = (node) => {
12
+ var Onboarding = lazy(() => import("./_browser-chunks/Onboarding-SR6LWOES.js")), Survey = lazy(() => import("./_browser-chunks/Survey-VJEGT4RP.js")), root = null, render = (node) => {
13
13
  let container = document.getElementById("storybook-addon-onboarding");
14
14
  container || (container = document.createElement("div"), container.id = "storybook-addon-onboarding", document.body.appendChild(container)), root = root ?? createRoot(container), root.render(React.createElement(Suspense, { fallback: React.createElement("div", null) }, node));
15
15
  };
package/dist/preset.js CHANGED
@@ -1,10 +1,10 @@
1
- import CJS_COMPAT_NODE_URL_pcrce1bdqsd from 'node:url';
2
- import CJS_COMPAT_NODE_PATH_pcrce1bdqsd from 'node:path';
3
- import CJS_COMPAT_NODE_MODULE_pcrce1bdqsd from "node:module";
1
+ import CJS_COMPAT_NODE_URL_87r0nr7106j from 'node:url';
2
+ import CJS_COMPAT_NODE_PATH_87r0nr7106j from 'node:path';
3
+ import CJS_COMPAT_NODE_MODULE_87r0nr7106j from "node:module";
4
4
 
5
- var __filename = CJS_COMPAT_NODE_URL_pcrce1bdqsd.fileURLToPath(import.meta.url);
6
- var __dirname = CJS_COMPAT_NODE_PATH_pcrce1bdqsd.dirname(__filename);
7
- var require = CJS_COMPAT_NODE_MODULE_pcrce1bdqsd.createRequire(import.meta.url);
5
+ var __filename = CJS_COMPAT_NODE_URL_87r0nr7106j.fileURLToPath(import.meta.url);
6
+ var __dirname = CJS_COMPAT_NODE_PATH_87r0nr7106j.dirname(__filename);
7
+ var require = CJS_COMPAT_NODE_MODULE_87r0nr7106j.createRequire(import.meta.url);
8
8
 
9
9
  // ------------------------------------------------------------
10
10
  // end of CJS compatibility banner, injected by Storybook's esbuild configuration
@@ -14,7 +14,7 @@ var require = CJS_COMPAT_NODE_MODULE_pcrce1bdqsd.createRequire(import.meta.url);
14
14
  import { telemetry } from "storybook/internal/telemetry";
15
15
 
16
16
  // package.json
17
- var version = "11.0.0-alpha.8";
17
+ var version = "11.0.0-beta.0";
18
18
 
19
19
  // src/constants.ts
20
20
  var ADDON_ID = "storybook/onboarding", ADDON_ONBOARDING_CHANNEL = `${ADDON_ID}/channel`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storybook/addon-onboarding",
3
- "version": "11.0.0-alpha.8",
3
+ "version": "11.0.0-beta.0",
4
4
  "description": "Storybook Onboarding: Help new users learn how to write stories",
5
5
  "keywords": [
6
6
  "storybook",
@@ -56,7 +56,7 @@
56
56
  "typescript": "^6.0.3"
57
57
  },
58
58
  "peerDependencies": {
59
- "storybook": "^11.0.0-alpha.8"
59
+ "storybook": "^11.0.0-beta.0"
60
60
  },
61
61
  "publishConfig": {
62
62
  "access": "public"