Skip to content

Commit

Permalink
chore: prepares packages for first release
Browse files Browse the repository at this point in the history
  • Loading branch information
micheleriva committed Jul 23, 2024
1 parent 0c79133 commit ba87eb9
Show file tree
Hide file tree
Showing 38 changed files with 12,364 additions and 10,204 deletions.
4 changes: 2 additions & 2 deletions apps/demo-angular/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
"@angular/router": "^18.0.5",
"rxjs": "~7.8.1",
"tslib": "^2.6.3",
"ui-stencil": "workspace:*",
"ui-stencil-angular": "workspace:*",
"@orama/wc-components": "workspace:*",
"@orama/angular-components": "workspace:*",
"zone.js": "~0.14.7"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-angular/src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'

import { ComponentLibraryModule } from 'ui-stencil-angular/dist/component-library'
import { ComponentLibraryModule } from '@orama/angular-components/dist/component-library'

import { AppRoutingModule } from './app-routing.module'
import { AppComponent } from './app.component'
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-react/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"dependencies": {
"react": "^18.3.1",
"react-dom": "^18.3.1",
"ui-stencil-react": "workspace:*"
"@orama/react-components": "workspace:*"
},
"devDependencies": {
"@types/react": "^18.3.3",
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-react/src/App.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import './App.css'
import { defineCustomElements, OramaChatBox } from 'ui-stencil-react'
import { defineCustomElements, OramaChatBox } from '@orama/react-components'

void defineCustomElements()

Expand Down
2 changes: 1 addition & 1 deletion apps/demo-vue/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"preview": "vite preview"
},
"dependencies": {
"ui-stencil-vue": "workspace:*",
"@orama/vue-components": "workspace:*",
"vue": "^3.4.30"
},
"devDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion apps/demo-vue/src/main.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { createApp } from 'vue'
import './style.css'
import { ComponentLibrary } from 'ui-stencil-vue'
import { ComponentLibrary } from '@orama/vue-components'
import App from './App.vue'

createApp(App).use(ComponentLibrary).mount('#app')
4 changes: 2 additions & 2 deletions apps/storybook/.storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// import { defineCustomElements } from 'ui-stencil/loader'
import 'ui-stencil/dist/orama-ui/orama-ui.css'
// import { defineCustomElements } from '@orama/wc-components/loader'
import '@orama/wc-components/dist/orama-ui/orama-ui.css'
import { html } from 'lit-html'
import { DARK_THEME_BG, LIGTH_THEME_BG } from '../constants'

Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"dependencies": {
"@storybook/web-components": "^8.2.3",
"ui-stencil": "workspace:*"
"@orama/wc-components": "workspace:*"
},
"devDependencies": {
"@chromatic-com/storybook": "^1.6.1",
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-button.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'
import { spread } from '@open-wc/lit-helpers'
import { html } from 'lit-html'

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import { html } from 'lit-html'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaChatAssistentMessage> = {
title: 'Internal/Chat',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'
import { fn } from '@storybook/test'

const meta: Meta<Components.OramaChatSuggestions> = {
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-chat.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaChat> = {
title: 'Internal/Chat',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaDotsLoader> = {
title: 'Internal/DotsLoader',
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-facets.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Create a story for the OramaFacets web component
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'
import { fn } from '@storybook/test'

const meta: Meta<Components.OramaFacets> = {
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-input.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import { html } from 'lit-html'

import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'
const meta: Meta<Components.OramaInput> = {
title: 'Internal/Form',
component: 'orama-input',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaNavigationBar> = {
title: 'Internal/NavigationBar',
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/html'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaSearchResults> = {
title: 'Internal/SearchResults',
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-search.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaSearch> = {
title: 'Internal/Search',
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-text.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'
import { spread } from '@open-wc/lit-helpers'
import { html } from 'lit-html'

Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-textarea.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import { html } from 'lit-html'
import { spread } from '@open-wc/lit-helpers'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaTextarea> = {
title: 'Internal/Form',
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/internal/orama-toggler.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaToggler> = {
title: 'Internal/Toggle',
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/public/orama-chat-box.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaChatBox> = {
title: 'Public/ChatBox',
Expand Down
2 changes: 1 addition & 1 deletion apps/storybook/stories/public/orama-search-box.stories.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'
type Story = StoryObj<Components.OramaSearchBox>

const meta: Meta<Components.OramaSearchBox> = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { StoryObj, Meta } from '@storybook/web-components'
import type { Components } from 'ui-stencil'
import type { Components } from '@orama/wc-components'

const meta: Meta<Components.OramaSearchButton> = {
title: 'Public/SearchButton',
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"dev:all": "turbo run dev",
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
"lint": "turbo run lint",
"maintenance": "turbo run maintenance"
"maintenance": "turbo run maintenance",
"publish:packages": "node scripts/release.mjs"
},
"devDependencies": {
"@biomejs/biome": "^1.8.3",
Expand Down
9 changes: 5 additions & 4 deletions packages/ui-stencil-angular/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"private": true,
"name": "ui-stencil-angular",
"version": "0.0.0",
"private": false,
"name": "@orama/angular-components",
"version": "0.0.1",
"description": "Angular components for Orama Cloud",
"scripts": {
"build": "npx -p @angular/cli ng build component-library",
"clean": "rm -rf node_modules .turbo",
Expand All @@ -21,7 +22,7 @@
"@angular/router": "^18.0.5",
"rxjs": "~7.8.1",
"tslib": "^2.6.3",
"ui-stencil": "workspace:*",
"@orama/wc-components": "workspace:*",
"zone.js": "~0.14.7"
},
"devDependencies": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
{
"name": "ui-stencil-angular",
"name": "@orama/angular-components",
"version": "0.0.1",
"peerDependencies": {
"@angular/common": "^16.1.0",
"@angular/core": "^16.1.0",
"ui-stencil": "workspace:*"
"@orama/wc-components": "workspace:*"
},
"dependencies": {
"tslib": "^2.3.0"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { NgModule, APP_INITIALIZER } from '@angular/core';
import { DIRECTIVES } from './stencil-generated';
import { defineCustomElements } from 'ui-stencil/loader';
import { defineCustomElements } from '@orama/wc-components/loader';

@NgModule({
declarations: [...DIRECTIVES],
Expand Down
8 changes: 4 additions & 4 deletions packages/ui-stencil-react/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ui-stencil-react",
"version": "1.0.0",
"description": "",
"name": "@orama/react-components",
"version": "0.0.1",
"description": "React components for Orama Cloud",
"license": "ISC",
"author": "",
"main": "dist/index.js",
Expand All @@ -17,7 +17,7 @@
},
"types": "dist/types/index.d.ts",
"dependencies": {
"ui-stencil": "workspace:*"
"@orama/wc-components": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.14.9",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* auto-generated react proxies */
import { createReactComponent } from './react-component-lib';

import type { JSX } from 'ui-stencil';
import type { JSX } from '@orama/wc-components';



Expand Down
4 changes: 2 additions & 2 deletions packages/ui-stencil-react/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './components/stencil-generated'
export { defineCustomElements } from 'ui-stencil/loader'
export { defineCustomElements } from '@orama/wc-components/loader'

import 'ui-stencil/dist/orama-ui/orama-ui.css'
import '@orama/wc-components/dist/orama-ui/orama-ui.css'
2 changes: 1 addition & 1 deletion packages/ui-stencil-vue/lib/components.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
/* auto-generated vue proxies */
import { defineContainer } from './vue-component-lib/utils';

import type { JSX } from 'ui-stencil';
import type { JSX } from '@orama/wc-components';



Expand Down
4 changes: 2 additions & 2 deletions packages/ui-stencil-vue/lib/plugin.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Plugin } from 'vue'
import { defineCustomElements } from 'ui-stencil/loader'
import { defineCustomElements } from '@orama/wc-components/loader'

export const ComponentLibrary: Plugin = {
async install() {
Expand All @@ -10,4 +10,4 @@ export const ComponentLibrary: Plugin = {
export * from './components'
export * from './plugin'

import 'ui-stencil/dist/orama-ui/orama-ui.css'
import '@orama/wc-components/dist/orama-ui/orama-ui.css'
8 changes: 4 additions & 4 deletions packages/ui-stencil-vue/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ui-stencil-vue",
"version": "1.0.0",
"description": "",
"name": "@orama/vue-components",
"version": "0.0.1",
"description": "Vue components for Orama Cloud",
"license": "ISC",
"author": "",
"main": "dist/plugin.js",
Expand All @@ -13,7 +13,7 @@
},
"types": "dist/plugin.d.ts",
"dependencies": {
"ui-stencil": "workspace:*"
"@orama/wc-components": "workspace:*"
},
"devDependencies": {
"@types/node": "^20.14.9",
Expand Down
6 changes: 3 additions & 3 deletions packages/ui-stencil/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ui-stencil",
"name": "@orama/wc-components",
"version": "0.0.1",
"description": "Stencil Component Starter",
"description": "UI web components for Orama Cloud",
"license": "MIT",
"repository": {
"type": "git",
Expand Down Expand Up @@ -61,5 +61,5 @@
"collection:main": "dist/collection/index.js",
"es2015": "dist/esm/index.mjs",
"es2017": "dist/esm/index.mjs",
"unpkg": "dist/ui-stencil/ui-stencil.esm.js"
"unpkg": "dist/@orama/wc-components/orama-ui.esm.js"
}
2 changes: 1 addition & 1 deletion packages/ui-stencil/stencil.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import { angularOutputTarget } from '@stencil/angular-output-target'
import { vueOutputTarget } from '@stencil/vue-output-target'

const namespace = 'orama-ui'
const componentCorePackage = 'ui-stencil'
const componentCorePackage = '@orama/wc-components'

export const config: Config = {
namespace,
Expand Down
Loading

0 comments on commit ba87eb9

Please sign in to comment.