From 9c67c87d25a2a79aedc5445d3af7062667d49e6b Mon Sep 17 00:00:00 2001
From: "hashicorp-copywrite[bot]"
<110428419+hashicorp-copywrite[bot]@users.noreply.github.com>
Date: Mon, 31 Jul 2023 16:32:38 +0000
Subject: [PATCH] [COMPLIANCE] Add Copyright and License Headers
---
examples/basic/app/(app)/layout.tsx | 5 +++++
examples/basic/app/(app)/page.tsx | 5 +++++
examples/basic/app/(swingset)/layout.tsx | 5 +++++
examples/basic/app/(swingset)/swingset/[...path]/page.tsx | 5 +++++
examples/basic/app/(swingset)/swingset/page.tsx | 5 +++++
examples/basic/components/accordion/index.tsx | 5 +++++
examples/basic/components/button/index.tsx | 5 +++++
examples/basic/components/card/index.tsx | 5 +++++
examples/basic/components/checkbox/index.tsx | 5 +++++
examples/basic/components/nested/title/index.tsx | 5 +++++
examples/basic/components/text-input/index.tsx | 5 +++++
examples/basic/components/text/index.tsx | 5 +++++
examples/basic/mdx-components.js | 5 +++++
examples/basic/next-env.d.ts | 5 +++++
examples/basic/next.config.mjs | 5 +++++
packages/swingset-theme-hashicorp/postcss.config.cjs | 5 +++++
packages/swingset-theme-hashicorp/src/MDXComponents.tsx | 5 +++++
.../swingset-theme-hashicorp/src/components/app-wrapper.tsx | 5 +++++
.../src/components/code-block/code-block.tsx | 5 +++++
.../src/components/code-block/copy-button.tsx | 5 +++++
.../src/components/code-block/helpers.ts | 5 +++++
.../src/components/code-block/index.tsx | 5 +++++
.../src/components/code-block/theme.ts | 5 +++++
packages/swingset-theme-hashicorp/src/components/link.tsx | 5 +++++
.../src/components/live-component/code-theme.tsx | 5 +++++
.../src/components/live-component/get-file-map.ts | 5 +++++
.../src/components/live-component/index.tsx | 5 +++++
.../src/components/nav-bar/index.tsx | 5 +++++
.../swingset-theme-hashicorp/src/components/nav-bar/logo.tsx | 5 +++++
.../src/components/open-in-editor.tsx | 5 +++++
.../swingset-theme-hashicorp/src/components/props-table.tsx | 5 +++++
.../src/components/side-nav/category.tsx | 5 +++++
.../src/components/side-nav/index.tsx | 5 +++++
.../src/components/side-nav/link-item.tsx | 5 +++++
.../src/components/side-nav/toggle-button.tsx | 5 +++++
.../swingset-theme-hashicorp/src/components/text/body.tsx | 5 +++++
.../swingset-theme-hashicorp/src/components/text/heading.tsx | 5 +++++
.../swingset-theme-hashicorp/src/components/text/index.tsx | 5 +++++
packages/swingset-theme-hashicorp/src/css/styles.css | 5 +++++
packages/swingset-theme-hashicorp/src/index.tsx | 5 +++++
packages/swingset-theme-hashicorp/src/page.tsx | 5 +++++
packages/swingset-theme-hashicorp/src/types.ts | 5 +++++
packages/swingset-theme-hashicorp/tailwind.config.cjs | 5 +++++
packages/swingset-theme-hashicorp/tsup.config.ts | 5 +++++
packages/swingset/__tests__/get-navigation-tree.test.ts | 5 +++++
packages/swingset/__tests__/parse-component-path.test.ts | 5 +++++
packages/swingset/loader.cjs | 5 +++++
packages/swingset/postcss.config.cjs | 5 +++++
packages/swingset/src/cli/commands/bootstrap.ts | 5 +++++
packages/swingset/src/cli/commands/default.ts | 5 +++++
packages/swingset/src/cli/index.ts | 5 +++++
packages/swingset/src/cli/utils/constants.ts | 5 +++++
packages/swingset/src/cli/utils/get-pkg-install-cmd.ts | 5 +++++
packages/swingset/src/cli/utils/logs.ts | 5 +++++
packages/swingset/src/config.ts | 5 +++++
packages/swingset/src/constants.ts | 5 +++++
packages/swingset/src/create-page.tsx | 5 +++++
packages/swingset/src/default-theme/css/styles.css | 5 +++++
packages/swingset/src/default-theme/index.tsx | 5 +++++
packages/swingset/src/default-theme/page.tsx | 5 +++++
packages/swingset/src/get-frontmatter.ts | 5 +++++
packages/swingset/src/get-navigation-tree.ts | 5 +++++
packages/swingset/src/get-props.ts | 5 +++++
packages/swingset/src/index.ts | 5 +++++
packages/swingset/src/loader.ts | 5 +++++
packages/swingset/src/meta.d.ts | 5 +++++
packages/swingset/src/meta.js | 5 +++++
packages/swingset/src/parse-component-path.ts | 5 +++++
packages/swingset/src/render.tsx | 5 +++++
packages/swingset/src/resolvers/build-load-function.ts | 5 +++++
packages/swingset/src/resolvers/component.ts | 5 +++++
packages/swingset/src/resolvers/doc.ts | 5 +++++
packages/swingset/src/resolvers/stringify-entity.ts | 5 +++++
packages/swingset/src/theme.d.ts | 5 +++++
packages/swingset/src/theme.js | 5 +++++
packages/swingset/src/types.ts | 5 +++++
packages/swingset/tailwind.config.cjs | 5 +++++
packages/swingset/tsup.config.ts | 5 +++++
packages/swingset/vitest.config.ts | 5 +++++
79 files changed, 395 insertions(+)
diff --git a/examples/basic/app/(app)/layout.tsx b/examples/basic/app/(app)/layout.tsx
index dbce4ea..d6fdffc 100644
--- a/examples/basic/app/(app)/layout.tsx
+++ b/examples/basic/app/(app)/layout.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export default function RootLayout({
children,
}: {
diff --git a/examples/basic/app/(app)/page.tsx b/examples/basic/app/(app)/page.tsx
index c07386e..c2392df 100644
--- a/examples/basic/app/(app)/page.tsx
+++ b/examples/basic/app/(app)/page.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
'use client'
import { useRouter } from 'next/navigation'
import { useEffect } from 'react'
diff --git a/examples/basic/app/(swingset)/layout.tsx b/examples/basic/app/(swingset)/layout.tsx
index 18433e5..49dc805 100644
--- a/examples/basic/app/(swingset)/layout.tsx
+++ b/examples/basic/app/(swingset)/layout.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import layout from 'swingset/theme'
export default layout
diff --git a/examples/basic/app/(swingset)/swingset/[...path]/page.tsx b/examples/basic/app/(swingset)/swingset/[...path]/page.tsx
index 59a60d0..eb09806 100644
--- a/examples/basic/app/(swingset)/swingset/[...path]/page.tsx
+++ b/examples/basic/app/(swingset)/swingset/[...path]/page.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { generateStaticParams } from 'swingset/meta'
import { Page } from 'swingset/theme'
diff --git a/examples/basic/app/(swingset)/swingset/page.tsx b/examples/basic/app/(swingset)/swingset/page.tsx
index 57fcb33..2ce013b 100644
--- a/examples/basic/app/(swingset)/swingset/page.tsx
+++ b/examples/basic/app/(swingset)/swingset/page.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import Content from './content.mdx'
export default async function SwingsetRoot() {
diff --git a/examples/basic/components/accordion/index.tsx b/examples/basic/components/accordion/index.tsx
index dbb5e9d..a61e98f 100644
--- a/examples/basic/components/accordion/index.tsx
+++ b/examples/basic/components/accordion/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { ReactElement } from 'react'
interface AccordionProps {
diff --git a/examples/basic/components/button/index.tsx b/examples/basic/components/button/index.tsx
index b8f65f5..7142774 100644
--- a/examples/basic/components/button/index.tsx
+++ b/examples/basic/components/button/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { ReactElement } from 'react'
interface ButtonProps {
diff --git a/examples/basic/components/card/index.tsx b/examples/basic/components/card/index.tsx
index 5ff6fa7..d1c4154 100644
--- a/examples/basic/components/card/index.tsx
+++ b/examples/basic/components/card/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export function Card({ children }) {
return (
diff --git a/examples/basic/components/checkbox/index.tsx b/examples/basic/components/checkbox/index.tsx
index e201f61..204d144 100644
--- a/examples/basic/components/checkbox/index.tsx
+++ b/examples/basic/components/checkbox/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export function Checkbox(props) {
return
}
diff --git a/examples/basic/components/nested/title/index.tsx b/examples/basic/components/nested/title/index.tsx
index f46cc45..7835e05 100644
--- a/examples/basic/components/nested/title/index.tsx
+++ b/examples/basic/components/nested/title/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export function Title({ children }) {
return
{children}
}
diff --git a/examples/basic/components/text-input/index.tsx b/examples/basic/components/text-input/index.tsx
index b5edeef..e68de8b 100644
--- a/examples/basic/components/text-input/index.tsx
+++ b/examples/basic/components/text-input/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export function TextInput(props) {
return
}
diff --git a/examples/basic/components/text/index.tsx b/examples/basic/components/text/index.tsx
index 6f7c7fb..83bdd80 100644
--- a/examples/basic/components/text/index.tsx
+++ b/examples/basic/components/text/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export default function Text({ children }) {
return {children}
}
diff --git a/examples/basic/mdx-components.js b/examples/basic/mdx-components.js
index e0eb7b3..71a4d70 100644
--- a/examples/basic/mdx-components.js
+++ b/examples/basic/mdx-components.js
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import themeComponents from 'swingset-theme-hashicorp/MDXComponents'
export function useMDXComponents(components) {
diff --git a/examples/basic/next-env.d.ts b/examples/basic/next-env.d.ts
index 4f11a03..e7acb07 100644
--- a/examples/basic/next-env.d.ts
+++ b/examples/basic/next-env.d.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
///
///
diff --git a/examples/basic/next.config.mjs b/examples/basic/next.config.mjs
index 8523e1b..24c70af 100644
--- a/examples/basic/next.config.mjs
+++ b/examples/basic/next.config.mjs
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import withSwingset from 'swingset'
import remarkGfm from 'remark-gfm'
import rehypeMdxCodeProps from 'rehype-mdx-code-props'
diff --git a/packages/swingset-theme-hashicorp/postcss.config.cjs b/packages/swingset-theme-hashicorp/postcss.config.cjs
index 825cb18..69c467a 100644
--- a/packages/swingset-theme-hashicorp/postcss.config.cjs
+++ b/packages/swingset-theme-hashicorp/postcss.config.cjs
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
module.exports = {
plugins: {
'postcss-import': {},
diff --git a/packages/swingset-theme-hashicorp/src/MDXComponents.tsx b/packages/swingset-theme-hashicorp/src/MDXComponents.tsx
index 76a6021..723768e 100644
--- a/packages/swingset-theme-hashicorp/src/MDXComponents.tsx
+++ b/packages/swingset-theme-hashicorp/src/MDXComponents.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { PropsTable } from './components/props-table'
import { Heading, Body } from './components/text'
import { LiveComponent } from './components/live-component'
diff --git a/packages/swingset-theme-hashicorp/src/components/app-wrapper.tsx b/packages/swingset-theme-hashicorp/src/components/app-wrapper.tsx
index ab57bf5..56cac92 100644
--- a/packages/swingset-theme-hashicorp/src/components/app-wrapper.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/app-wrapper.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
'use client'
import { SideNavigation } from './side-nav'
import { categories } from 'swingset/meta'
diff --git a/packages/swingset-theme-hashicorp/src/components/code-block/code-block.tsx b/packages/swingset-theme-hashicorp/src/components/code-block/code-block.tsx
index 4b38570..573d215 100644
--- a/packages/swingset-theme-hashicorp/src/components/code-block/code-block.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/code-block/code-block.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
'use client' //Library calls hooks internally
import { Highlight, themes } from 'prism-react-renderer'
import { parseCode, parseLanguage } from './helpers'
diff --git a/packages/swingset-theme-hashicorp/src/components/code-block/copy-button.tsx b/packages/swingset-theme-hashicorp/src/components/code-block/copy-button.tsx
index cd0a2cb..5a25459 100644
--- a/packages/swingset-theme-hashicorp/src/components/code-block/copy-button.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/code-block/copy-button.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
'use client'
import {
IconDuplicate16,
diff --git a/packages/swingset-theme-hashicorp/src/components/code-block/helpers.ts b/packages/swingset-theme-hashicorp/src/components/code-block/helpers.ts
index bd8cab7..94f9a69 100644
--- a/packages/swingset-theme-hashicorp/src/components/code-block/helpers.ts
+++ b/packages/swingset-theme-hashicorp/src/components/code-block/helpers.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { Language, MDXPreClass, MDXPreElement } from '@/types'
export const parseCode = (toParse: MDXPreElement | string): string => {
diff --git a/packages/swingset-theme-hashicorp/src/components/code-block/index.tsx b/packages/swingset-theme-hashicorp/src/components/code-block/index.tsx
index 9489cd9..fd3c860 100644
--- a/packages/swingset-theme-hashicorp/src/components/code-block/index.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/code-block/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { CodeBlock } from './code-block'
export { CodeBlock }
diff --git a/packages/swingset-theme-hashicorp/src/components/code-block/theme.ts b/packages/swingset-theme-hashicorp/src/components/code-block/theme.ts
index 7eb6a5c..8faeb74 100644
--- a/packages/swingset-theme-hashicorp/src/components/code-block/theme.ts
+++ b/packages/swingset-theme-hashicorp/src/components/code-block/theme.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export const CustomTheme = {
colors: {
accent: 'inherit',
diff --git a/packages/swingset-theme-hashicorp/src/components/link.tsx b/packages/swingset-theme-hashicorp/src/components/link.tsx
index 3595cd0..69e8fa6 100644
--- a/packages/swingset-theme-hashicorp/src/components/link.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/link.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { type ComponentProps } from 'react'
import NextLink from 'next/link'
import { cx } from 'class-variance-authority'
diff --git a/packages/swingset-theme-hashicorp/src/components/live-component/code-theme.tsx b/packages/swingset-theme-hashicorp/src/components/live-component/code-theme.tsx
index 9aed30f..4750f54 100644
--- a/packages/swingset-theme-hashicorp/src/components/live-component/code-theme.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/live-component/code-theme.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { SandpackTheme } from '@codesandbox/sandpack-react/types'
const sandpackTheme: SandpackTheme = {
diff --git a/packages/swingset-theme-hashicorp/src/components/live-component/get-file-map.ts b/packages/swingset-theme-hashicorp/src/components/live-component/get-file-map.ts
index dd76699..796619f 100644
--- a/packages/swingset-theme-hashicorp/src/components/live-component/get-file-map.ts
+++ b/packages/swingset-theme-hashicorp/src/components/live-component/get-file-map.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import type { SandpackFile } from '@codesandbox/sandpack-react'
import { parseCode } from '../code-block/helpers'
import { MDXPreElement } from '@/types'
diff --git a/packages/swingset-theme-hashicorp/src/components/live-component/index.tsx b/packages/swingset-theme-hashicorp/src/components/live-component/index.tsx
index 670cd2a..7abba11 100644
--- a/packages/swingset-theme-hashicorp/src/components/live-component/index.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/live-component/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
'use client'
import {
SandpackProvider,
diff --git a/packages/swingset-theme-hashicorp/src/components/nav-bar/index.tsx b/packages/swingset-theme-hashicorp/src/components/nav-bar/index.tsx
index 6013a29..ecc0b36 100644
--- a/packages/swingset-theme-hashicorp/src/components/nav-bar/index.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/nav-bar/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { Logo } from './logo'
import Link from 'next/link'
import { IconGithub24 } from '@hashicorp/flight-icons/svg-react'
diff --git a/packages/swingset-theme-hashicorp/src/components/nav-bar/logo.tsx b/packages/swingset-theme-hashicorp/src/components/nav-bar/logo.tsx
index f29b9b6..b25229c 100644
--- a/packages/swingset-theme-hashicorp/src/components/nav-bar/logo.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/nav-bar/logo.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { IconHashicorp24 } from '@hashicorp/flight-icons/svg-react'
function Logo() {
diff --git a/packages/swingset-theme-hashicorp/src/components/open-in-editor.tsx b/packages/swingset-theme-hashicorp/src/components/open-in-editor.tsx
index 5dd6ebe..c48d749 100644
--- a/packages/swingset-theme-hashicorp/src/components/open-in-editor.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/open-in-editor.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
'use client'
export function OpenInEditor({ path }: { path: string }) {
diff --git a/packages/swingset-theme-hashicorp/src/components/props-table.tsx b/packages/swingset-theme-hashicorp/src/components/props-table.tsx
index 652104c..61cfcb3 100644
--- a/packages/swingset-theme-hashicorp/src/components/props-table.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/props-table.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { ComponentType, ReactNode } from 'react'
interface PropsTableProps {
diff --git a/packages/swingset-theme-hashicorp/src/components/side-nav/category.tsx b/packages/swingset-theme-hashicorp/src/components/side-nav/category.tsx
index 76d96ce..ab95cc3 100644
--- a/packages/swingset-theme-hashicorp/src/components/side-nav/category.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/side-nav/category.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { NavigationNode, ComponentNode } from 'swingset/types'
import { LinkItem } from './link-item'
import { cx } from 'class-variance-authority'
diff --git a/packages/swingset-theme-hashicorp/src/components/side-nav/index.tsx b/packages/swingset-theme-hashicorp/src/components/side-nav/index.tsx
index 3dfeec6..aa406ca 100644
--- a/packages/swingset-theme-hashicorp/src/components/side-nav/index.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/side-nav/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { NavigationTree } from 'swingset/types'
import Category from './category'
import { Link } from '../link'
diff --git a/packages/swingset-theme-hashicorp/src/components/side-nav/link-item.tsx b/packages/swingset-theme-hashicorp/src/components/side-nav/link-item.tsx
index 34b8d70..8fe47e6 100644
--- a/packages/swingset-theme-hashicorp/src/components/side-nav/link-item.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/side-nav/link-item.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { Link } from '../link'
import { cx } from 'class-variance-authority'
diff --git a/packages/swingset-theme-hashicorp/src/components/side-nav/toggle-button.tsx b/packages/swingset-theme-hashicorp/src/components/side-nav/toggle-button.tsx
index 030a873..29346f5 100644
--- a/packages/swingset-theme-hashicorp/src/components/side-nav/toggle-button.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/side-nav/toggle-button.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { IconBottom24 } from '@hashicorp/flight-icons/svg-react/bottom-24'
import { cx } from 'class-variance-authority'
diff --git a/packages/swingset-theme-hashicorp/src/components/text/body.tsx b/packages/swingset-theme-hashicorp/src/components/text/body.tsx
index e8c9568..ea5fff0 100644
--- a/packages/swingset-theme-hashicorp/src/components/text/body.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/text/body.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { cva, VariantProps, cx } from 'class-variance-authority'
import { type HTMLAttributes } from 'react'
diff --git a/packages/swingset-theme-hashicorp/src/components/text/heading.tsx b/packages/swingset-theme-hashicorp/src/components/text/heading.tsx
index 5468320..16cf574 100644
--- a/packages/swingset-theme-hashicorp/src/components/text/heading.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/text/heading.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { cva, VariantProps, cx } from 'class-variance-authority'
import { type HTMLAttributes } from 'react'
diff --git a/packages/swingset-theme-hashicorp/src/components/text/index.tsx b/packages/swingset-theme-hashicorp/src/components/text/index.tsx
index 5b83b82..3d25032 100644
--- a/packages/swingset-theme-hashicorp/src/components/text/index.tsx
+++ b/packages/swingset-theme-hashicorp/src/components/text/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { Heading } from './heading'
import { Body } from './body'
diff --git a/packages/swingset-theme-hashicorp/src/css/styles.css b/packages/swingset-theme-hashicorp/src/css/styles.css
index b5c61c9..b0d498c 100644
--- a/packages/swingset-theme-hashicorp/src/css/styles.css
+++ b/packages/swingset-theme-hashicorp/src/css/styles.css
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
@tailwind base;
@tailwind components;
@tailwind utilities;
diff --git a/packages/swingset-theme-hashicorp/src/index.tsx b/packages/swingset-theme-hashicorp/src/index.tsx
index 8bcdf54..e8870b4 100644
--- a/packages/swingset-theme-hashicorp/src/index.tsx
+++ b/packages/swingset-theme-hashicorp/src/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
// NOTE: global css import needs to be at the top so component-specific CSS is loaded after the theme reset (component-specific CSS is loaded as a result of the swingset/meta import below)
import '../style.css'
import React from 'react'
diff --git a/packages/swingset-theme-hashicorp/src/page.tsx b/packages/swingset-theme-hashicorp/src/page.tsx
index 51e6e5b..2eb49cc 100644
--- a/packages/swingset-theme-hashicorp/src/page.tsx
+++ b/packages/swingset-theme-hashicorp/src/page.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { ComponentEntity, EvaluatedEntity } from 'swingset/types'
import { Heading, Body } from './components/text'
import { OpenInEditor } from './components/open-in-editor'
diff --git a/packages/swingset-theme-hashicorp/src/types.ts b/packages/swingset-theme-hashicorp/src/types.ts
index ac77261..4568856 100644
--- a/packages/swingset-theme-hashicorp/src/types.ts
+++ b/packages/swingset-theme-hashicorp/src/types.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export type Language = 'ts' | 'js' | 'jsx' | 'tsx'
export type MDXPreClass = `language-${Language}`
diff --git a/packages/swingset-theme-hashicorp/tailwind.config.cjs b/packages/swingset-theme-hashicorp/tailwind.config.cjs
index d61f013..41ec508 100644
--- a/packages/swingset-theme-hashicorp/tailwind.config.cjs
+++ b/packages/swingset-theme-hashicorp/tailwind.config.cjs
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
const colors = require('tailwindcss/colors')
/** @type {import('tailwindcss').Config} */
diff --git a/packages/swingset-theme-hashicorp/tsup.config.ts b/packages/swingset-theme-hashicorp/tsup.config.ts
index e1a7210..3cdb3f6 100644
--- a/packages/swingset-theme-hashicorp/tsup.config.ts
+++ b/packages/swingset-theme-hashicorp/tsup.config.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { Buffer } from 'node:buffer'
import { defineConfig } from 'tsup'
diff --git a/packages/swingset/__tests__/get-navigation-tree.test.ts b/packages/swingset/__tests__/get-navigation-tree.test.ts
index 4143d3f..bc286c7 100644
--- a/packages/swingset/__tests__/get-navigation-tree.test.ts
+++ b/packages/swingset/__tests__/get-navigation-tree.test.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { describe, it } from 'vitest'
import { getNavigationTree } from '../src/get-navigation-tree'
import { ComponentEntity, NavigationTree } from '../src/types'
diff --git a/packages/swingset/__tests__/parse-component-path.test.ts b/packages/swingset/__tests__/parse-component-path.test.ts
index 4aa356a..06bcddf 100644
--- a/packages/swingset/__tests__/parse-component-path.test.ts
+++ b/packages/swingset/__tests__/parse-component-path.test.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { describe, it } from 'vitest'
import { parseComponentPath } from '../src/parse-component-path'
diff --git a/packages/swingset/loader.cjs b/packages/swingset/loader.cjs
index b88925d..a523c87 100644
--- a/packages/swingset/loader.cjs
+++ b/packages/swingset/loader.cjs
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
/**
* @typedef {import('webpack').LoaderContext} LoaderContext
*
diff --git a/packages/swingset/postcss.config.cjs b/packages/swingset/postcss.config.cjs
index 825cb18..69c467a 100644
--- a/packages/swingset/postcss.config.cjs
+++ b/packages/swingset/postcss.config.cjs
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
module.exports = {
plugins: {
'postcss-import': {},
diff --git a/packages/swingset/src/cli/commands/bootstrap.ts b/packages/swingset/src/cli/commands/bootstrap.ts
index 173fa5a..05bf39e 100644
--- a/packages/swingset/src/cli/commands/bootstrap.ts
+++ b/packages/swingset/src/cli/commands/bootstrap.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import fs from 'fs'
import { Logs, codeText } from '../utils/logs'
import childProcess from 'child_process'
diff --git a/packages/swingset/src/cli/commands/default.ts b/packages/swingset/src/cli/commands/default.ts
index 77a5ae3..f2f43e6 100644
--- a/packages/swingset/src/cli/commands/default.ts
+++ b/packages/swingset/src/cli/commands/default.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { Logs } from '../utils/logs'
export const defaultCMD = {
diff --git a/packages/swingset/src/cli/index.ts b/packages/swingset/src/cli/index.ts
index 6d7b14b..7fd2fd9 100644
--- a/packages/swingset/src/cli/index.ts
+++ b/packages/swingset/src/cli/index.ts
@@ -1,4 +1,9 @@
#!/usr/bin/env node
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import yargs from 'yargs'
import { bootstrap } from './commands/bootstrap'
import { defaultCMD } from './commands/default'
diff --git a/packages/swingset/src/cli/utils/constants.ts b/packages/swingset/src/cli/utils/constants.ts
index 13e5551..46fa6b1 100644
--- a/packages/swingset/src/cli/utils/constants.ts
+++ b/packages/swingset/src/cli/utils/constants.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import fs from 'fs'
const usingSrc = fs.existsSync('./src')
diff --git a/packages/swingset/src/cli/utils/get-pkg-install-cmd.ts b/packages/swingset/src/cli/utils/get-pkg-install-cmd.ts
index 7ba5762..f70bc1c 100644
--- a/packages/swingset/src/cli/utils/get-pkg-install-cmd.ts
+++ b/packages/swingset/src/cli/utils/get-pkg-install-cmd.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { detect, PM } from 'detect-package-manager'
import { error, Logs } from './logs'
diff --git a/packages/swingset/src/cli/utils/logs.ts b/packages/swingset/src/cli/utils/logs.ts
index 2d69362..09d81fe 100644
--- a/packages/swingset/src/cli/utils/logs.ts
+++ b/packages/swingset/src/cli/utils/logs.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { FILES } from './constants'
const redTxt = '\x1b[31m'
const endTxt = '\x1b[0m'
diff --git a/packages/swingset/src/config.ts b/packages/swingset/src/config.ts
index fc96c79..77e9f52 100644
--- a/packages/swingset/src/config.ts
+++ b/packages/swingset/src/config.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { CompileOptions } from '@mdx-js/mdx'
const DEFAULT_CONFIG = {
diff --git a/packages/swingset/src/constants.ts b/packages/swingset/src/constants.ts
index c9e5563..f69245c 100644
--- a/packages/swingset/src/constants.ts
+++ b/packages/swingset/src/constants.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export const MARKDOWN_EXTENSION_REGEX = /\.mdx?$/
export const COMPONENT_DOCS_FILENAME = 'docs.mdx'
diff --git a/packages/swingset/src/create-page.tsx b/packages/swingset/src/create-page.tsx
index 1daf936..a4f4da9 100644
--- a/packages/swingset/src/create-page.tsx
+++ b/packages/swingset/src/create-page.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import React from 'react'
// note: this uses swingset/meta as the import statement, instead of a relative path, so the application build step can pick this up
import { getEntity } from 'swingset/meta'
diff --git a/packages/swingset/src/default-theme/css/styles.css b/packages/swingset/src/default-theme/css/styles.css
index 2c1aa0a..9d209e4 100644
--- a/packages/swingset/src/default-theme/css/styles.css
+++ b/packages/swingset/src/default-theme/css/styles.css
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
@tailwind base;
@tailwind components;
@tailwind utilities;
diff --git a/packages/swingset/src/default-theme/index.tsx b/packages/swingset/src/default-theme/index.tsx
index 1aeed39..9581d4f 100644
--- a/packages/swingset/src/default-theme/index.tsx
+++ b/packages/swingset/src/default-theme/index.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import React from 'react'
import Link from 'next/link'
// note: this uses swingset/meta as the import statement, instead of a relative path, so the application build step can pick this up
diff --git a/packages/swingset/src/default-theme/page.tsx b/packages/swingset/src/default-theme/page.tsx
index 0e06e4a..c1dfd56 100644
--- a/packages/swingset/src/default-theme/page.tsx
+++ b/packages/swingset/src/default-theme/page.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export default async function Page({
data,
content,
diff --git a/packages/swingset/src/get-frontmatter.ts b/packages/swingset/src/get-frontmatter.ts
index a55f88a..186df26 100644
--- a/packages/swingset/src/get-frontmatter.ts
+++ b/packages/swingset/src/get-frontmatter.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { VFile } from 'vfile'
import { matter } from 'vfile-matter'
diff --git a/packages/swingset/src/get-navigation-tree.ts b/packages/swingset/src/get-navigation-tree.ts
index 9c2579b..2c279df 100644
--- a/packages/swingset/src/get-navigation-tree.ts
+++ b/packages/swingset/src/get-navigation-tree.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import {
ComponentEntity,
DocsEntity,
diff --git a/packages/swingset/src/get-props.ts b/packages/swingset/src/get-props.ts
index ab604cb..5871613 100644
--- a/packages/swingset/src/get-props.ts
+++ b/packages/swingset/src/get-props.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import path from 'node:path'
import fs from 'node:fs'
diff --git a/packages/swingset/src/index.ts b/packages/swingset/src/index.ts
index aea5b71..a9170d8 100644
--- a/packages/swingset/src/index.ts
+++ b/packages/swingset/src/index.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import type { NextConfig } from 'next'
import {
MARKDOWN_EXTENSION_REGEX,
diff --git a/packages/swingset/src/loader.ts b/packages/swingset/src/loader.ts
index 40b6a0a..35d84f8 100644
--- a/packages/swingset/src/loader.ts
+++ b/packages/swingset/src/loader.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import path from 'node:path'
import { compile, CompileOptions } from '@mdx-js/mdx'
import { VFile } from 'vfile'
diff --git a/packages/swingset/src/meta.d.ts b/packages/swingset/src/meta.d.ts
index b4939be..9542d76 100644
--- a/packages/swingset/src/meta.d.ts
+++ b/packages/swingset/src/meta.d.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
/**
* This file is a stub for a loader target and should never be imported directly
*/
diff --git a/packages/swingset/src/meta.js b/packages/swingset/src/meta.js
index 37146ae..cc5b028 100644
--- a/packages/swingset/src/meta.js
+++ b/packages/swingset/src/meta.js
@@ -1 +1,6 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
export default ''
diff --git a/packages/swingset/src/parse-component-path.ts b/packages/swingset/src/parse-component-path.ts
index 636f8ae..c1d5dfd 100644
--- a/packages/swingset/src/parse-component-path.ts
+++ b/packages/swingset/src/parse-component-path.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { ComponentEntity } from './types'
/**
diff --git a/packages/swingset/src/render.tsx b/packages/swingset/src/render.tsx
index 4b153b9..dac461d 100644
--- a/packages/swingset/src/render.tsx
+++ b/packages/swingset/src/render.tsx
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
// note: this uses swingset/meta as the import statement, instead of a relative path, so the application build step can pick this up
import { getEntity } from 'swingset/meta'
import { type Entity, type EvaluatedEntity } from './types'
diff --git a/packages/swingset/src/resolvers/build-load-function.ts b/packages/swingset/src/resolvers/build-load-function.ts
index 4aeef2c..e42f2da 100644
--- a/packages/swingset/src/resolvers/build-load-function.ts
+++ b/packages/swingset/src/resolvers/build-load-function.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
/**
* Construct a stringified loader for an entity. Returns the default export
*/
diff --git a/packages/swingset/src/resolvers/component.ts b/packages/swingset/src/resolvers/component.ts
index 31c49f7..b9baead 100644
--- a/packages/swingset/src/resolvers/component.ts
+++ b/packages/swingset/src/resolvers/component.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import fs from 'node:fs'
import path from 'node:path'
import { globbyStream } from 'globby'
diff --git a/packages/swingset/src/resolvers/doc.ts b/packages/swingset/src/resolvers/doc.ts
index 9d3cd35..9c7c91f 100644
--- a/packages/swingset/src/resolvers/doc.ts
+++ b/packages/swingset/src/resolvers/doc.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import fs from 'node:fs'
import path from 'node:path'
import readdirp from 'readdirp'
diff --git a/packages/swingset/src/resolvers/stringify-entity.ts b/packages/swingset/src/resolvers/stringify-entity.ts
index 4746579..fc353c0 100644
--- a/packages/swingset/src/resolvers/stringify-entity.ts
+++ b/packages/swingset/src/resolvers/stringify-entity.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { Entity } from '../types'
export function stringifyEntity(entity: Entity) {
diff --git a/packages/swingset/src/theme.d.ts b/packages/swingset/src/theme.d.ts
index fc41058..853f212 100644
--- a/packages/swingset/src/theme.d.ts
+++ b/packages/swingset/src/theme.d.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { type ElementType, type ReactElement } from 'react'
import { EvaluatedEntity, SwingsetPageProps } from './types'
diff --git a/packages/swingset/src/theme.js b/packages/swingset/src/theme.js
index 24c17c6..6059b4c 100644
--- a/packages/swingset/src/theme.js
+++ b/packages/swingset/src/theme.js
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
/**
* This file is a stub for a loader target and should never be imported directly
*/
diff --git a/packages/swingset/src/types.ts b/packages/swingset/src/types.ts
index 80f32a0..d9053f6 100644
--- a/packages/swingset/src/types.ts
+++ b/packages/swingset/src/types.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import React from 'react'
export type SwingsetPageProps = {
diff --git a/packages/swingset/tailwind.config.cjs b/packages/swingset/tailwind.config.cjs
index 7b251c1..fefbb25 100644
--- a/packages/swingset/tailwind.config.cjs
+++ b/packages/swingset/tailwind.config.cjs
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
/** @type {import('tailwindcss').Config} */
module.exports = {
prefix: 'ss-',
diff --git a/packages/swingset/tsup.config.ts b/packages/swingset/tsup.config.ts
index 576d5d4..1461f40 100644
--- a/packages/swingset/tsup.config.ts
+++ b/packages/swingset/tsup.config.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { defineConfig } from 'tsup'
export default defineConfig([
diff --git a/packages/swingset/vitest.config.ts b/packages/swingset/vitest.config.ts
index 117a676..3e8a088 100644
--- a/packages/swingset/vitest.config.ts
+++ b/packages/swingset/vitest.config.ts
@@ -1,3 +1,8 @@
+/**
+ * Copyright (c) HashiCorp, Inc.
+ * SPDX-License-Identifier: MPL-2.0
+ */
+
import { defineConfig } from 'vitest/config'
export default defineConfig({